mirror of
https://github.com/Z3Prover/z3
synced 2025-11-13 17:41:16 +00:00
Extend spacer with callback events
Callback events allow the client of spacer to get events during exection. The events include new lemmas and unfolding.
This commit is contained in:
parent
b51251f394
commit
3c7165780c
12 changed files with 254 additions and 8 deletions
38
src/muz/spacer/spacer_callback.cpp
Normal file
38
src/muz/spacer/spacer_callback.cpp
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/**++
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue