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 458ae26 commit cf2c4bfCopy full SHA for cf2c4bf
src/util/std_expr.cpp
@@ -25,6 +25,14 @@ bool constant_exprt::value_is_zero_string() const
25
return val.find_first_not_of('0')==std::string::npos;
26
}
27
28
+constant_exprt make_boolean_expr(bool value)
29
+{
30
+ if(value)
31
+ return true_exprt();
32
+ else
33
+ return false_exprt();
34
+}
35
+
36
exprt disjunction(const exprt::operandst &op)
37
{
38
if(op.empty())
src/util/std_expr.h
@@ -4121,6 +4121,9 @@ class false_exprt:public constant_exprt
4121
4122
};
4123
4124
+/// \brief returns true_exprt if given true and false_exprt otherwise
4125
+constant_exprt make_boolean_expr(bool);
4126
4127
/// \brief The NIL expression
4128
class nil_exprt : public nullary_exprt
4129
0 commit comments