File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,14 @@ class goto_programt
615
615
return instructions.insert (target, instructiont ());
616
616
}
617
617
618
+ // / Insertion before the instruction pointed-to by the given instruction
619
+ // / iterator `target`.
620
+ // / \return newly inserted location
621
+ targett insert_before (const_targett target, instructiont &&i)
622
+ {
623
+ return instructions.insert (target, std::move (i));
624
+ }
625
+
618
626
// / Insertion after the instruction pointed-to by the given instruction
619
627
// / iterator `target`.
620
628
// / \return newly inserted location
@@ -623,6 +631,14 @@ class goto_programt
623
631
return instructions.insert (std::next (target), instructiont ());
624
632
}
625
633
634
+ // / Insertion after the instruction pointed-to by the given instruction
635
+ // / iterator `target`.
636
+ // / \return newly inserted location
637
+ targett insert_after (const_targett target, instructiont &&i)
638
+ {
639
+ return instructions.insert (std::next (target), std::move (i));
640
+ }
641
+
626
642
// / Appends the given program `p` to `*this`. `p` is destroyed.
627
643
void destructive_append (goto_programt &p)
628
644
{
You can’t perform that action at this time.
0 commit comments