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 ad092e2Copy full SHA for ad092e2
src/util/std_code.h
@@ -842,6 +842,20 @@ class code_fort:public codet
842
operands().resize(4);
843
}
844
845
+ /// A statement describing a for loop with initializer \p _init, loop
846
+ /// condition \p _cond, increment \p _iter, and body \p _body.
847
+ code_fort(
848
+ const exprt &_init,
849
+ const exprt &_cond,
850
+ const exprt &_iter,
851
+ const codet &_body)
852
+ : codet(ID_for)
853
+ {
854
+ reserve_operands(4);
855
+ add_to_operands(_init, _cond, _iter);
856
+ add_to_operands(_body);
857
+ }
858
+
859
// nil or a statement
860
const exprt &init() const
861
{
0 commit comments