mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
deal with compiler warnings (unused variables etc)
This commit is contained in:
parent
6092bf534c
commit
c0f80f92ba
8 changed files with 14 additions and 23 deletions
|
@ -100,6 +100,7 @@ static void test_mk_distinct() {
|
|||
Z3_sort bv32 = Z3_mk_bv_sort(ctx, 32);
|
||||
Z3_ast args[] = { Z3_mk_int64(ctx, 0, bv8), Z3_mk_int64(ctx, 0, bv32) };
|
||||
Z3_ast d = Z3_mk_distinct(ctx, 2, args);
|
||||
VERIFY(d);
|
||||
ENSURE(cb_called);
|
||||
Z3_del_config(cfg);
|
||||
Z3_del_context(ctx);
|
||||
|
|
|
@ -28,13 +28,9 @@ void mk_bits(ast_manager & m, char const * prefix, unsigned sz, expr_ref_vector
|
|||
sort_ref b(m);
|
||||
b = m.mk_bool_sort();
|
||||
for (unsigned i = 0; i < sz; ++i) {
|
||||
char buffer[128];
|
||||
#ifdef _WINDOWS
|
||||
sprintf_s(buffer, Z3_ARRAYSIZE(buffer), "%s%d.smt", prefix, i);
|
||||
#else
|
||||
sprintf(buffer, "%s%d.smt", prefix, i);
|
||||
#endif
|
||||
r.push_back(m.mk_const(symbol(buffer), b));
|
||||
std::stringstream ous;
|
||||
ous << prefix << i << ".smt2";
|
||||
r.push_back(m.mk_const(symbol(ous.str()), b));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ Revision History:
|
|||
#include "util/debug.h"
|
||||
#include "util/rlimit.h"
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
template class interval_manager<im_default_config>;
|
||||
typedef im_default_config::interval interval;
|
||||
|
@ -200,15 +201,13 @@ static void mk_random_interval(T & cfg, interval & a, unsigned magnitude) {
|
|||
#define BUFFER_SZ 256
|
||||
static int g_problem_id = 0;
|
||||
static char g_buffer[BUFFER_SZ];
|
||||
static std::stringstream ous;
|
||||
|
||||
char const * get_next_file_name() {
|
||||
#ifdef _WINDOWS
|
||||
sprintf_s(g_buffer, BUFFER_SZ, "interval_lemma_%d.smt2", g_problem_id);
|
||||
#else
|
||||
sprintf(g_buffer, "interval_lemma_%d.smt2", g_problem_id);
|
||||
#endif
|
||||
ous.clear();
|
||||
ous << "interval_lemma_" << g_problem_id << ".smt2";
|
||||
g_problem_id++;
|
||||
return g_buffer;
|
||||
return ous.str().c_str();
|
||||
}
|
||||
|
||||
static void display_lemmas(unsynch_mpq_manager & nm, char const * result_term,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue