mirror of
https://github.com/Z3Prover/z3
synced 2025-11-12 00:52:04 +00:00
Callback events allow the client of spacer to get events during exection. The events include new lemmas and unfolding.
38 lines
No EOL
578 B
C++
38 lines
No EOL
578 B
C++
/**++
|
|
Copyright (c) 2017 Microsoft Corporation and Matteo Marescotti
|
|
|
|
Module Name:
|
|
|
|
spacer_callback.cpp
|
|
|
|
Abstract:
|
|
|
|
SPACER plugin for handling events
|
|
|
|
Author:
|
|
|
|
Matteo Marescotti
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
|
|
#include "spacer_callback.h"
|
|
#include "muz/spacer/spacer_context.h"
|
|
|
|
|
|
namespace spacer {
|
|
|
|
void user_callback::new_lemma_eh(expr *lemma, unsigned level) {
|
|
m_new_lemma_eh(m_state, lemma, level);
|
|
}
|
|
|
|
void user_callback::predecessor_eh() {
|
|
m_predecessor_eh(m_state);
|
|
}
|
|
|
|
void user_callback::unfold_eh() {
|
|
m_unfold_eh(m_state);
|
|
}
|
|
|
|
} |