We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc4ffae commit 9244f3fCopy full SHA for 9244f3f
src/util/mathematical_expr.h
@@ -337,6 +337,24 @@ class forall_exprt : public quantifier_exprt
337
}
338
};
339
340
+inline const forall_exprt &to_forall_expr(const exprt &expr)
341
+{
342
+ PRECONDITION(expr.id() == ID_forall);
343
+ DATA_INVARIANT(
344
+ expr.operands().size() == 2,
345
+ "forall expressions have exactly two operands");
346
+ return static_cast<const forall_exprt &>(expr);
347
+}
348
+
349
+inline forall_exprt &to_forall_expr(exprt &expr)
350
351
352
353
354
355
+ return static_cast<forall_exprt &>(expr);
356
357
358
/// \brief An exists expression
359
class exists_exprt : public quantifier_exprt
360
{
0 commit comments