mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
work around regression with use of mk_app_core, returning BR_FAILED if nothing is rewritten
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
648a531950
commit
e13b61eae8
3 changed files with 8 additions and 8 deletions
|
@ -2777,25 +2777,25 @@ namespace Microsoft.Z3
|
|||
/// <summary>
|
||||
/// Create an at-most-k constraint.
|
||||
/// </summary>
|
||||
public BoolExpr MkAtMost(BoolExpr[] args, uint k)
|
||||
public BoolExpr MkAtMost(IEnumerable<BoolExpr> args, uint k)
|
||||
{
|
||||
Contract.Requires(args != null);
|
||||
Contract.Requires(Contract.Result<BoolExpr[]>() != null);
|
||||
CheckContextMatch<BoolExpr>(args);
|
||||
return new BoolExpr(this, Native.Z3_mk_atmost(nCtx, (uint) args.Length,
|
||||
AST.ArrayToNative(args), k));
|
||||
return new BoolExpr(this, Native.Z3_mk_atmost(nCtx, (uint) args.Count(),
|
||||
AST.EnumToNative(args), k));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create an at-least-k constraint.
|
||||
/// </summary>
|
||||
public BoolExpr MkAtLeast(BoolExpr[] args, uint k)
|
||||
public BoolExpr MkAtLeast(IEnumerable<BoolExpr> args, uint k)
|
||||
{
|
||||
Contract.Requires(args != null);
|
||||
Contract.Requires(Contract.Result<BoolExpr[]>() != null);
|
||||
CheckContextMatch<BoolExpr>(args);
|
||||
return new BoolExpr(this, Native.Z3_mk_atleast(nCtx, (uint) args.Length,
|
||||
AST.ArrayToNative(args), k));
|
||||
return new BoolExpr(this, Native.Z3_mk_atleast(nCtx, (uint) args.Count(),
|
||||
AST.EnumToNative(args), k));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue