We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcce848 commit 141b5e5Copy full SHA for 141b5e5
src/util/expr.cpp
@@ -104,8 +104,7 @@ void exprt::make_not()
104
}
105
else
106
{
107
- new_expr=exprt(ID_not, type());
108
- new_expr.move_to_operands(*this);
+ new_expr = not_exprt(*this);
109
110
111
swap(new_expr);
src/util/std_code.h
@@ -139,7 +139,9 @@ class code_blockt:public codet
139
140
void move(codet &code)
141
142
- move_to_operands(code);
+ code_operandst &stmts = statements();
143
+ stmts.push_back(static_cast<const codet &>(get_nil_irep()));
144
+ stmts.back().swap(code);
145
146
147
void add(const codet &code)
0 commit comments