Skip to content

Commit

Permalink
print binary for string constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kroening committed May 13, 2018
1 parent 3f7d3e0 commit eff2e51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/goto-programs/goto_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ std::string trace_value_binary(
if(!to_integer(expr, i) && i>=0)
return integer2string(i, 2);
}
else if(type.id()==ID_string)
{
return integer2string(expr.get(ID_value).get_no(), 2);
}
}
else if(expr.id()==ID_array)
{
Expand Down

0 comments on commit eff2e51

Please sign in to comment.