mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
use type constrsaints for co-variant subtying to enable .net 3.5
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d4539b8887
commit
310c0f31a1
8 changed files with 48 additions and 48 deletions
|
@ -111,7 +111,7 @@ namespace Microsoft.Z3
|
|||
Contract.Requires(constraints != null);
|
||||
Contract.Requires(Contract.ForAll(constraints, c => c != null));
|
||||
|
||||
Context.CheckContextMatch(constraints);
|
||||
Context.CheckContextMatch<BoolExpr>(constraints);
|
||||
foreach (BoolExpr a in constraints)
|
||||
{
|
||||
Native.Z3_solver_assert(Context.nCtx, NativeObject, a.NativeObject);
|
||||
|
@ -142,8 +142,8 @@ namespace Microsoft.Z3
|
|||
Contract.Requires(constraints != null);
|
||||
Contract.Requires(Contract.ForAll(constraints, c => c != null));
|
||||
Contract.Requires(Contract.ForAll(ps, c => c != null));
|
||||
Context.CheckContextMatch(constraints);
|
||||
Context.CheckContextMatch(ps);
|
||||
Context.CheckContextMatch<BoolExpr>(constraints);
|
||||
Context.CheckContextMatch<BoolExpr>(ps);
|
||||
if (constraints.Length != ps.Length)
|
||||
throw new Z3Exception("Argument size mismatch");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue