mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 03:57:51 +00:00
compile
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
0c4824f194
commit
82a364ed7b
4 changed files with 42 additions and 13 deletions
|
@ -45,6 +45,7 @@ add_executable(test-z3
|
|||
f2n.cpp
|
||||
factor_rewriter.cpp
|
||||
finder.cpp
|
||||
fixplex.cpp
|
||||
fixed_bit_vector.cpp
|
||||
for_each_file.cpp
|
||||
get_consequences.cpp
|
||||
|
|
25
src/test/fixplex.cpp
Normal file
25
src/test/fixplex.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#include "math/polysat/fixplex.h"
|
||||
#include "math/polysat/fixplex_def.h"
|
||||
|
||||
namespace polysat {
|
||||
|
||||
typedef uint64_ext::numeral numeral;
|
||||
|
||||
static void test1() {
|
||||
reslimit lim;
|
||||
fixplex<uint64_ext> fp(lim);
|
||||
var_t x = 0, y = 1, z = 2, u = 3;
|
||||
fp.ensure_var(3);
|
||||
|
||||
var_t ys[2] = { y, z };
|
||||
numeral coeffs[2] = { 1, 4 };
|
||||
fp.add_row(x, 2, ys, coeffs);
|
||||
fp.set_lo(x, 1);
|
||||
fp.set_hi(x, 2);
|
||||
fp.make_feasible();
|
||||
}
|
||||
}
|
||||
|
||||
void tst_fixplex() {
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue