Go to the documentation of this file.
12 #ifndef CPROVER_GOTO_SYMEX_GOTO_SYMEX_IS_CONSTANT_H
13 #define CPROVER_GOTO_SYMEX_GOTO_SYMEX_IS_CONSTANT_H
23 if(expr.
id() == ID_mult)
25 bool found_non_constant =
false;
30 if(it->find(ID_C_c_sizeof_type).is_not_nil())
33 found_non_constant =
true;
36 return !found_non_constant;
38 else if(expr.
id() == ID_with)
55 #endif // CPROVER_GOTO_SYMEX_GOTO_SYMEX_IS_CONSTANT_H
Determine whether an expression is constant.
bool is_constant(const exprt &expr) const override
This function determines what expressions are to be propagated as "constants".
Base class for all expressions.
virtual bool is_constant(const exprt &) const
This function determines what expressions are to be propagated as "constants".
#define forall_operands(it, expr)
const irep_idt & id() const
Deprecated expression utility functions.