Skip to content

Commit 9d2d55d

Browse files
author
Daniel Kroening
committed
print binary for string constants
1 parent 0f190d3 commit 9d2d55d

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
@@ -134,6 +134,10 @@ std::string trace_value_binary(
134134
if(!to_integer(expr, i) && i>=0)
135135
return integer2string(i, 2);
136136
}
137+
else if(type.id()==ID_string)
138+
{
139+
return integer2string(expr.get(ID_value).get_no(), 2);
140+
}
137141
}
138142
else if(expr.id()==ID_array)
139143
{

0 commit comments

Comments
 (0)