Skip to content

Commit 8ac8620

Browse files
author
Daniel Kroening
committed
print binary for string constants
1 parent c3ec3dd commit 8ac8620

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/goto-programs/goto_trace.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ std::string trace_value_binary(
154154
if(!to_integer(expr, i) && i>=0)
155155
return integer2string(i, 2);
156156
}
157+
else if(type.id()==ID_string)
158+
{
159+
return integer2string(expr.get(ID_value).get_no(), 2);
160+
}
157161
}
158162
else if(expr.id()==ID_array)
159163
{

0 commit comments

Comments
 (0)