3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 17:45:32 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-05-15 11:59:37 -07:00
parent 186a3c58e5
commit ca2497eecb
2 changed files with 3 additions and 4 deletions

View file

@ -1914,9 +1914,8 @@ public:
return mk_fresh_const(prefix.c_str(), s, skolem);
}
app * mk_fresh_const(symbol const& prefix, sort * s, bool skolem = true) {
auto str = prefix.str();
return mk_fresh_const(str.c_str(), s, skolem);
app * mk_fresh_const(symbol const& prefix, sort * s, bool skolem = true) {
return mk_const(mk_fresh_func_decl(prefix, symbol::null, 0, nullptr, s, skolem));
}
symbol mk_fresh_var_name(char const * prefix = nullptr);

View file

@ -3168,7 +3168,7 @@ namespace smt {
}
else {
expr_ref proxy(m), fml(m);
proxy = m.mk_fresh_const("proxy", m.mk_bool_sort());
proxy = m.mk_fresh_const(symbol(), m.mk_bool_sort());
fml = m.mk_implies(proxy, e);
m_asserted_formulas.assert_expr(fml);
asm2proxy.push_back(std::make_pair(e, proxy));