Skip to content

Commit f1cfdd8

Browse files
committed
Fix and improve simplifier debug output
The debug output uses "format", which requires format_expr.h to be included.
1 parent 37a8720 commit f1cfdd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/util/simplify_expr.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Author: Daniel Kroening, [email protected]
3030
// #define DEBUGX
3131

3232
#ifdef DEBUGX
33+
#include "format_expr.h"
3334
#include <iostream>
3435
#endif
3536

@@ -2233,8 +2234,8 @@ bool simplify_exprt::simplify_node(exprt &expr)
22332234
#endif
22342235
)
22352236
{
2236-
std::cout << "===== " << format(old) << "\n ---> " << format(expr)
2237-
<< "\n";
2237+
std::cout << "===== " << old.id() << ": " << format(old) << '\n'
2238+
<< " ---> " << format(expr) << '\n';
22382239
}
22392240
#endif
22402241

0 commit comments

Comments
 (0)