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 69f54ca commit 8a572dcCopy full SHA for 8a572dc
src/util/std_code.h
@@ -622,6 +622,23 @@ class code_ifthenelset:public codet
622
op2().make_nil();
623
}
624
625
+ /// An if \p condition then \p then_code else \p else_code statement.
626
+ code_ifthenelset(
627
+ const exprt &condition,
628
+ const codet &then_code,
629
+ const codet &else_code)
630
+ : codet(ID_ifthenelse)
631
+ {
632
+ add_to_operands(condition, then_code, else_code);
633
+ }
634
+
635
+ /// An if \p condition then \p then_code statement (no "else" case).
636
+ code_ifthenelset(const exprt &condition, const codet &then_code)
637
638
639
+ add_to_operands(condition, then_code, nil_exprt());
640
641
642
const exprt &cond() const
643
{
644
return op0();
0 commit comments