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 36c1fa5 commit fc8c74dCopy full SHA for fc8c74d
src/util/std_code.h
@@ -583,6 +583,25 @@ class code_ifthenelset:public codet
583
op2().make_nil();
584
}
585
586
+ /// An if \p condition then \p then_code else \p else_code statement.
587
+ code_ifthenelset(
588
+ const exprt &condition,
589
+ const codet &then_code,
590
+ const codet &else_code)
591
+ : codet(ID_ifthenelse)
592
+ {
593
+ add_to_operands(condition, then_code, else_code);
594
+ }
595
+
596
+ /// An if \p condition then \p then_code statement (no "else" case).
597
598
599
+ const codet &then_code)
600
601
602
+ add_to_operands(condition, then_code, nil_exprt());
603
604
605
const exprt &cond() const
606
{
607
return op0();
0 commit comments