mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
internalize reflect
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b86432e2a3
commit
6d244ed2aa
|
@ -246,12 +246,12 @@ namespace smt {
|
||||||
SASSERT(m->get_num_args() == 2);
|
SASSERT(m->get_num_args() == 2);
|
||||||
if (m_util.is_numeral(arg2, _val2)) {
|
if (m_util.is_numeral(arg2, _val2)) {
|
||||||
numeral val(_val1 + _val2);
|
numeral val(_val1 + _val2);
|
||||||
|
if (reflection_enabled()) {
|
||||||
|
internalize_term_core(to_app(arg1));
|
||||||
|
internalize_term_core(to_app(arg2));
|
||||||
|
mk_enode(m);
|
||||||
|
}
|
||||||
theory_var v = internalize_numeral(m, val);
|
theory_var v = internalize_numeral(m, val);
|
||||||
if (reflection_enabled()) {
|
|
||||||
internalize_term_core(to_app(arg1));
|
|
||||||
internalize_term_core(to_app(arg2));
|
|
||||||
mk_enode(m);
|
|
||||||
}
|
|
||||||
add_row_entry<true>(r_id, numeral::one(), v);
|
add_row_entry<true>(r_id, numeral::one(), v);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue