Skip to content

Commit

Permalink
get values for nondet symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
polgreen authored and Daniel Kroening committed Feb 19, 2018
1 parent a827c77 commit 1ebec11
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/solvers/smt2/smt2_conv.cpp
Expand Up @@ -189,6 +189,15 @@ exprt smt2_convt::get(const exprt &expr) const
if(it!=identifier_map.end())
return it->second.value;
}
else if(expr.id()==ID_nondet_symbol)
{
const irep_idt &id=to_nondet_symbol_expr(expr).get_identifier();

identifier_mapt::const_iterator it=identifier_map.find(id);

if(it!=identifier_map.end())
return it->second.value;
}
else if(expr.id()==ID_member)
{
const member_exprt &member_expr=to_member_expr(expr);
Expand Down

0 comments on commit 1ebec11

Please sign in to comment.