mirror of
https://github.com/Z3Prover/z3
synced 2025-06-14 09:56:15 +00:00
add operator for issue #860
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
cb75a55095
commit
ae9a3bfc24
3 changed files with 12 additions and 1 deletions
|
@ -1063,9 +1063,10 @@ extern "C" {
|
||||||
case OP_BV2INT: return Z3_OP_BV2INT;
|
case OP_BV2INT: return Z3_OP_BV2INT;
|
||||||
case OP_CARRY: return Z3_OP_CARRY;
|
case OP_CARRY: return Z3_OP_CARRY;
|
||||||
case OP_XOR3: return Z3_OP_XOR3;
|
case OP_XOR3: return Z3_OP_XOR3;
|
||||||
|
case OP_BIT2BOOL: return Z3_OP_BIT2BOOL;
|
||||||
case OP_BSMUL_NO_OVFL: return Z3_OP_BSMUL_NO_OVFL;
|
case OP_BSMUL_NO_OVFL: return Z3_OP_BSMUL_NO_OVFL;
|
||||||
case OP_BUMUL_NO_OVFL: return Z3_OP_BUMUL_NO_OVFL;
|
case OP_BUMUL_NO_OVFL: return Z3_OP_BUMUL_NO_OVFL;
|
||||||
case OP_BSMUL_NO_UDFL: return Z3_OP_BSMUL_NO_UDFL;
|
case OP_BSMUL_NO_UDFL: return Z3_OP_BSMUL_NO_UDFL;
|
||||||
case OP_BSDIV_I: return Z3_OP_BSDIV_I;
|
case OP_BSDIV_I: return Z3_OP_BSDIV_I;
|
||||||
case OP_BUDIV_I: return Z3_OP_BUDIV_I;
|
case OP_BUDIV_I: return Z3_OP_BUDIV_I;
|
||||||
case OP_BSREM_I: return Z3_OP_BSREM_I;
|
case OP_BSREM_I: return Z3_OP_BSREM_I;
|
||||||
|
|
|
@ -18,6 +18,7 @@ Notes:
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.Contracts;
|
using System.Diagnostics.Contracts;
|
||||||
|
|
||||||
|
@ -126,6 +127,14 @@ namespace Microsoft.Z3
|
||||||
Assert(constraints);
|
Assert(constraints);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Alias for Assert.
|
||||||
|
/// </summary>
|
||||||
|
public void Add(IEnumerable<BoolExpr> constraints)
|
||||||
|
{
|
||||||
|
Assert(constraints.ToArray());
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Assert multiple constraints into the solver, and track them (in the unsat) core
|
/// Assert multiple constraints into the solver, and track them (in the unsat) core
|
||||||
/// using the Boolean constants in ps.
|
/// using the Boolean constants in ps.
|
||||||
|
|
|
@ -1060,6 +1060,7 @@ typedef enum {
|
||||||
Z3_OP_EXT_ROTATE_LEFT,
|
Z3_OP_EXT_ROTATE_LEFT,
|
||||||
Z3_OP_EXT_ROTATE_RIGHT,
|
Z3_OP_EXT_ROTATE_RIGHT,
|
||||||
|
|
||||||
|
Z3_OP_BIT2BOOL,
|
||||||
Z3_OP_INT2BV,
|
Z3_OP_INT2BV,
|
||||||
Z3_OP_BV2INT,
|
Z3_OP_BV2INT,
|
||||||
Z3_OP_CARRY,
|
Z3_OP_CARRY,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue