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 8d27131 commit 06ebe72Copy full SHA for 06ebe72
src/util/std_code.h
@@ -48,6 +48,15 @@ class codet:public exprt
48
set_statement(statement);
49
}
50
51
+ /// \param statement: Specifies the type of the `codet` to be constructed,
52
+ /// e.g. `ID_block` for a \ref code_blockt or `ID_assign` for a
53
+ /// \ref code_assignt.
54
+ /// \param _op: any operands to be added
55
+ explicit codet(const irep_idt &statement, operandst _op) : codet(statement)
56
+ {
57
+ operands() = std::move(_op);
58
+ }
59
+
60
void set_statement(const irep_idt &statement)
61
{
62
set(ID_statement, statement);
0 commit comments