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 c1c5fa7Copy full SHA for c1c5fa7
src/util/expr_util.cpp
@@ -281,3 +281,11 @@ bool is_constantt::is_constant_address_of(const exprt &expr) const
281
282
return false;
283
}
284
+
285
+constant_exprt make_boolean_expr(bool value)
286
+{
287
+ if(value)
288
+ return true_exprt();
289
+ else
290
+ return false_exprt();
291
+}
src/util/expr_util.h
@@ -21,6 +21,7 @@ Author: Daniel Kroening, [email protected]
21
22
#include <functional>
23
24
+class constant_exprt;
25
class exprt;
26
class symbol_exprt;
27
class update_exprt;
@@ -96,4 +97,7 @@ class is_constantt
96
97
virtual bool is_constant_address_of(const exprt &) const;
98
};
99
100
+/// returns true_exprt if given true and false_exprt otherwise
101
+constant_exprt make_boolean_expr(bool);
102
103
#endif // CPROVER_UTIL_EXPR_UTIL_H
0 commit comments