mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
add e_internalized() check in theory_str::get_arith_value()
This commit is contained in:
parent
69f0ed9b1f
commit
7ddb940f77
|
@ -4656,6 +4656,11 @@ namespace smt {
|
|||
context& ctx = get_context();
|
||||
ast_manager & m = get_manager();
|
||||
|
||||
// safety
|
||||
if (!ctx.e_internalized(e)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// if an integer constant exists in the eqc, it should be the root
|
||||
enode * en_e = ctx.get_enode(e);
|
||||
enode * root_e = en_e->get_root();
|
||||
|
|
Loading…
Reference in a new issue