mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
remove static from format (not thread safe), remove std::move #1466
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2853558bc2
commit
3e810d6c54
3 changed files with 5 additions and 5 deletions
|
@ -151,7 +151,7 @@ namespace format_ns {
|
|||
}
|
||||
|
||||
format * mk_int(ast_manager & m, int i) {
|
||||
static char buffer[128];
|
||||
char buffer[128];
|
||||
#ifdef _WINDOWS
|
||||
sprintf_s(buffer, ARRAYSIZE(buffer), "%d", i);
|
||||
#else
|
||||
|
@ -161,7 +161,7 @@ namespace format_ns {
|
|||
}
|
||||
|
||||
format * mk_unsigned(ast_manager & m, unsigned u) {
|
||||
static char buffer[128];
|
||||
char buffer[128];
|
||||
#ifdef _WINDOWS
|
||||
sprintf_s(buffer, ARRAYSIZE(buffer), "%u", u);
|
||||
#else
|
||||
|
|
|
@ -88,7 +88,7 @@ class elim_aux_assertions {
|
|||
|
||||
app_ref m_aux;
|
||||
public:
|
||||
elim_aux_assertions(app_ref aux) : m_aux(std::move(aux)) {}
|
||||
elim_aux_assertions(app_ref const& aux) : m_aux(aux) {}
|
||||
|
||||
void mk_or_core(expr_ref_vector &args, expr_ref &res)
|
||||
{
|
||||
|
|
|
@ -190,8 +190,8 @@ namespace datalog {
|
|||
func_decl_ref m_pred;
|
||||
reg_idx m_reg;
|
||||
public:
|
||||
instr_io(bool store, func_decl_ref pred, reg_idx reg)
|
||||
: m_store(store), m_pred(std::move(pred)), m_reg(reg) {}
|
||||
instr_io(bool store, func_decl_ref const& pred, reg_idx reg)
|
||||
: m_store(store), m_pred(pred), m_reg(reg) {}
|
||||
virtual bool perform(execution_context & ctx) {
|
||||
log_verbose(ctx);
|
||||
if (m_store) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue