Skip to content

Commit 6d5ddf5

Browse files
authored
Merge pull request #6991 from diffblue/goto_program_output_expression
pretty-print expression instructions
2 parents 7153dc5 + 09e1041 commit 6d5ddf5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

regression/goto-instrument/remove-calls-no-body2/test.desc

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ main.c
66
^VERIFICATION SUCCESSFUL$
77
func3\(\)
88
func4\(\)
9-
567\)
10-
285\)
9+
567$
10+
285$
1111
ret1 :=.*nondet.*
1212
--
1313
func1\(.*\)

src/goto-programs/goto_program.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ std::ostream &goto_programt::instructiont::output(std::ostream &out) const
123123
<< '\n';
124124
break;
125125
}
126+
else if(code.get_statement() == ID_expression)
127+
{
128+
out << "EXPRESSION " << format(code.op0()) << '\n';
129+
break;
130+
}
126131
else if(code.get_statement() == ID_havoc_object)
127132
{
128133
out << "HAVOC_OBJECT " << format(code.op0()) << '\n';

0 commit comments

Comments
 (0)