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 bafd7e7 commit 69e4f1cCopy full SHA for 69e4f1c
src/util/std_expr.h
@@ -179,6 +179,15 @@ class symbol_exprt : public nullary_exprt
179
set_identifier(identifier);
180
}
181
182
+ /// Generate a symbol_exprt without a proper type. Use if, and only if, the
183
+ /// type either cannot be determined just yet (such as during type checking)
184
+ /// or when the type truly is immaterial. The latter case may better be dealt
185
+ /// with by using just an irep_idt, and not a symbol_exprt.
186
+ static symbol_exprt typeless(const irep_idt &id)
187
+ {
188
+ return symbol_exprt(id, typet());
189
+ }
190
+
191
void set_identifier(const irep_idt &identifier)
192
{
193
set(ID_identifier, identifier);
0 commit comments