Skip to content

Commit a1edc82

Browse files
committed
constructors for forall_expr/exists_exprt with multiple bindings
This adds convenience constructors for forall/exists expressions with multiple bindings.
1 parent 293ba53 commit a1edc82

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/util/mathematical_expr.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,11 @@ class forall_exprt : public quantifier_exprt
336336
: quantifier_exprt(ID_forall, _symbol, _where)
337337
{
338338
}
339+
340+
forall_exprt(const binding_exprt::variablest &_variables, const exprt &_where)
341+
: quantifier_exprt(ID_forall, _variables, _where)
342+
{
343+
}
339344
};
340345

341346
template <>
@@ -373,6 +378,11 @@ class exists_exprt : public quantifier_exprt
373378
: quantifier_exprt(ID_exists, _symbol, _where)
374379
{
375380
}
381+
382+
exists_exprt(const binding_exprt::variablest &_variables, const exprt &_where)
383+
: quantifier_exprt(ID_exists, _variables, _where)
384+
{
385+
}
376386
};
377387

378388
template <>

0 commit comments

Comments
 (0)