Skip to content

Commit eff2e51

Browse files
committed
print binary for string constants
1 parent 3f7d3e0 commit eff2e51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/goto-programs/goto_trace.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ std::string trace_value_binary(
132132
if(!to_integer(expr, i) && i>=0)
133133
return integer2string(i, 2);
134134
}
135+
else if(type.id()==ID_string)
136+
{
137+
return integer2string(expr.get(ID_value).get_no(), 2);
138+
}
135139
}
136140
else if(expr.id()==ID_array)
137141
{

0 commit comments

Comments
 (0)