File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1833,7 +1833,7 @@ void goto_checkt::goto_check(
1833
1833
lhs);
1834
1834
goto_programt::targett t =
1835
1835
new_code.add (goto_programt::make_assignment (
1836
- code_assignt ( std::move (lhs), std::move (rhs) ), i.source_location ));
1836
+ std::move (lhs), std::move (rhs), i.source_location ));
1837
1837
t->code .add_source_location ()=i.source_location ;
1838
1838
}
1839
1839
}
@@ -1848,8 +1848,7 @@ void goto_checkt::goto_check(
1848
1848
const symbol_exprt leak_expr=leak.symbol_expr ();
1849
1849
1850
1850
// add self-assignment to get helpful counterexample output
1851
- new_code.add (
1852
- goto_programt::make_assignment (code_assignt (leak_expr, leak_expr)));
1851
+ new_code.add (goto_programt::make_assignment (leak_expr, leak_expr));
1853
1852
1854
1853
source_locationt source_location;
1855
1854
source_location.set_function (function_identifier);
Original file line number Diff line number Diff line change @@ -593,7 +593,7 @@ void dump_ct::cleanup_decl(
593
593
tmp.add (goto_programt::make_decl (decl.symbol ()));
594
594
595
595
if (value.is_not_nil ())
596
- tmp.add (goto_programt::make_assignment (code_assignt ( decl.op0 (), value) ));
596
+ tmp.add (goto_programt::make_assignment (decl.symbol (), value));
597
597
598
598
tmp.add (goto_programt::make_end_function ());
599
599
You can’t perform that action at this time.
0 commit comments