mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
deal with warnings over unused variables and procedures
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
64af8981ba
commit
eacef5f3f9
|
@ -1057,6 +1057,8 @@ void opt_translate_example() {
|
||||||
o1.add(x + y <= 11);
|
o1.add(x + y <= 11);
|
||||||
optimize::handle h1 = o1.maximize(x);
|
optimize::handle h1 = o1.maximize(x);
|
||||||
optimize::handle h2 = o1.maximize(y);
|
optimize::handle h2 = o1.maximize(y);
|
||||||
|
(void)h1;
|
||||||
|
(void)h2;
|
||||||
optimize o2(c2, o1);
|
optimize o2(c2, o1);
|
||||||
expr z = c2.int_const("z");
|
expr z = c2.int_const("z");
|
||||||
expr x2 = c2.int_const("x");
|
expr x2 = c2.int_const("x");
|
||||||
|
|
|
@ -2196,13 +2196,6 @@ static bool is_smt2_file(char const* filename) {
|
||||||
return (len > 4 && !strcmp(filename + len - 5,".smt2"));
|
return (len > 4 && !strcmp(filename + len - 5,".smt2"));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void check_error(z3::context& ctx) {
|
|
||||||
Z3_error_code e = Z3_get_error_code(ctx);
|
|
||||||
if (e != Z3_OK) {
|
|
||||||
std::cout << Z3_get_error_msg(ctx, e) << "\n";
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void display_tptp(std::ostream& out) {
|
static void display_tptp(std::ostream& out) {
|
||||||
// run SMT2 parser, pretty print TFA format.
|
// run SMT2 parser, pretty print TFA format.
|
||||||
|
|
Loading…
Reference in a new issue