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 @@ -573,6 +573,14 @@ class goto_programt
573
573
return instructions.insert (target, instructiont ());
574
574
}
575
575
576
+ // / Insertion before the instruction pointed-to by the given instruction
577
+ // / iterator `target`.
578
+ // / \return newly inserted location
579
+ targett insert_before (const_targett target, const instructiont &i)
580
+ {
581
+ return instructions.insert (target, i);
582
+ }
583
+
576
584
// / Insertion after the instruction pointed-to by the given instruction
577
585
// / iterator `target`.
578
586
// / \return newly inserted location
@@ -581,6 +589,14 @@ class goto_programt
581
589
return instructions.insert (std::next (target), instructiont ());
582
590
}
583
591
592
+ // / Insertion after the instruction pointed-to by the given instruction
593
+ // / iterator `target`.
594
+ // / \return newly inserted location
595
+ targett insert_after (const_targett target, const instructiont &i)
596
+ {
597
+ return instructions.insert (std::next (target), i);
598
+ }
599
+
584
600
// / Appends the given program `p` to `*this`. `p` is destroyed.
585
601
void destructive_append (goto_programt &p)
586
602
{
You can’t perform that action at this time.
0 commit comments