File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,24 @@ class forall_exprt : public quantifier_exprt
337
337
}
338
338
};
339
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
+ PRECONDITION (expr.id () == ID_forall);
352
+ DATA_INVARIANT (
353
+ expr.operands ().size () == 2 ,
354
+ " forall expressions have exactly two operands" );
355
+ return static_cast <forall_exprt &>(expr);
356
+ }
357
+
340
358
// / \brief An exists expression
341
359
class exists_exprt : public quantifier_exprt
342
360
{
You can’t perform that action at this time.
0 commit comments