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.
code_declt::set_initial_value
1 parent 51887aa commit 8a14e67Copy full SHA for 8a14e67
src/goto-instrument/dump_c.cpp
@@ -654,7 +654,7 @@ void dump_ct::cleanup_decl(
654
655
if(value)
656
{
657
- decl.operands().resize(1);
+ decl.set_initial_value({});
658
}
659
660
goto_programt tmp;
src/goto-instrument/goto_program2code.cpp
@@ -477,7 +477,7 @@ goto_programt::const_targett goto_program2codet::convert_decl(
477
478
if(next->is_assign())
479
480
- d.copy_to_operands(next->get_assign().rhs());
+ d.set_initial_value({next->get_assign().rhs()});
481
482
else
483
0 commit comments