Skip to content

Commit

Permalink
fix: z3 bug where known variables were interpreted as "known"
Browse files Browse the repository at this point in the history
  • Loading branch information
sillydan1 committed Sep 14, 2022
1 parent 29cbe74 commit f3430b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/drivers/z3_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ namespace expr {
}

auto z3_driver::as_z3_expression(const identifier_t& ref) -> z3::expr {
if(known.contains(ref.ident))
return as_z3_expression(known.at(ref.ident));
auto it = find(ref.ident);
return std::visit(ya::overload(
[this, &ref](const int& _) { return c.int_const(ref.ident.c_str()); },
Expand Down

0 comments on commit f3430b0

Please sign in to comment.