3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-20 07:36:38 +00:00

use z3str2 eqc semantics for get_eqc_value

This commit is contained in:
Murphy Berzish 2016-09-14 15:37:48 -04:00
parent 50353168ef
commit 804009a757

View file

@ -3967,6 +3967,7 @@ void theory_str::unroll_str2reg_constStr(expr * unrollFunc, expr * eqConstStr) {
* Return that constant if it is found, and set hasEqcValue to true.
* Otherwise, return n, and set hasEqcValue to false.
*/
/*
expr * theory_str::get_eqc_value(expr * n, bool & hasEqcValue) {
context & ctx = get_context();
// I hope this works
@ -3985,6 +3986,12 @@ expr * theory_str::get_eqc_value(expr * n, bool & hasEqcValue) {
hasEqcValue = false;
return n;
}
*/
expr * theory_str::get_eqc_value(expr * n, bool & hasEqcValue) {
return z3str2_get_eqc_value(n, hasEqcValue);
}
// Simulate the behaviour of get_eqc_value() from Z3str2.
// We only check m_find for a string constant.