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 c3ec3dd commit 8ac8620
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 @@ -154,6 +154,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 8ac8620

Please sign in to comment.