Skip to content

Commit f3f6030

Browse files
fixup! Make node point to builtin func they result from
1 parent 08812b3 commit f3f6030

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/solvers/refinement/string_refinement_util.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@ optionalt<exprt> string_dependencest::eval(
478478
return eval_string_cache[it->second];
479479

480480
const auto node = string_nodes[it->second];
481-
if(const auto &f = node.result_from)
481+
const auto &f = node.result_from;
482+
if(f && node.dependencies.size() == 1 && !node.depends_on_unknown_builtin_function)
482483
{
483484
const auto value_opt = get_builtin_function(*f).eval(get_value);
484485
eval_string_cache[it->second] = value_opt;

0 commit comments

Comments
 (0)