mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
adding optimization to dense difference logic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e94a1b56ae
commit
f82f7f83b9
7 changed files with 253 additions and 9 deletions
|
@ -23,6 +23,7 @@ Notes:
|
|||
#include "smt_context.h"
|
||||
#include "theory_arith.h"
|
||||
#include "theory_diff_logic.h"
|
||||
#include "theory_dense_diff_logic.h"
|
||||
#include "theory_pb.h"
|
||||
#include "ast_pp.h"
|
||||
#include "ast_smt_pp.h"
|
||||
|
@ -97,6 +98,18 @@ namespace opt {
|
|||
else if (typeid(smt::theory_idl&) == typeid(*arith_theory)) {
|
||||
return dynamic_cast<smt::theory_idl&>(*arith_theory);
|
||||
}
|
||||
else if (typeid(smt::theory_dense_mi&) == typeid(*arith_theory)) {
|
||||
return dynamic_cast<smt::theory_dense_mi&>(*arith_theory);
|
||||
}
|
||||
else if (typeid(smt::theory_dense_i&) == typeid(*arith_theory)) {
|
||||
return dynamic_cast<smt::theory_dense_i&>(*arith_theory);
|
||||
}
|
||||
else if (typeid(smt::theory_dense_smi&) == typeid(*arith_theory)) {
|
||||
return dynamic_cast<smt::theory_dense_smi&>(*arith_theory);
|
||||
}
|
||||
else if (typeid(smt::theory_dense_si&) == typeid(*arith_theory)) {
|
||||
return dynamic_cast<smt::theory_dense_si&>(*arith_theory);
|
||||
}
|
||||
else {
|
||||
UNREACHABLE();
|
||||
return dynamic_cast<smt::theory_mi_arith&>(*arith_theory);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue