Skip to content

Commit

Permalink
fixup! Make node point to builtin func they result from
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbrenguier committed Mar 12, 2018
1 parent 08812b3 commit f3f6030
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solvers/refinement/string_refinement_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@ optionalt<exprt> string_dependencest::eval(
return eval_string_cache[it->second];

const auto node = string_nodes[it->second];
if(const auto &f = node.result_from)
const auto &f = node.result_from;
if(f && node.dependencies.size() == 1 && !node.depends_on_unknown_builtin_function)
{
const auto value_opt = get_builtin_function(*f).eval(get_value);
eval_string_cache[it->second] = value_opt;
Expand Down

0 comments on commit f3f6030

Please sign in to comment.