mirror of
https://github.com/Z3Prover/z3
synced 2025-06-23 14:23:40 +00:00
fix sls build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
73f09fe94a
commit
2ecb1c8b94
5 changed files with 14 additions and 7 deletions
|
@ -1,10 +1,12 @@
|
||||||
script({
|
script({
|
||||||
tools: ["agent_fs", "agent_git", "agent_github"],
|
tools: ["agent_fs", "agent_git", "agent_github"],
|
||||||
|
model: "azure:gpt-4o",
|
||||||
|
maxTokens: 20000
|
||||||
})
|
})
|
||||||
|
|
||||||
const {
|
const {
|
||||||
workflow = "latest failed",
|
workflow = "RISC V and PowerPC 64",
|
||||||
failure_run_id = "latest",
|
failure_run_id = "11296730058",
|
||||||
branch = await git.defaultBranch(),
|
branch = await git.defaultBranch(),
|
||||||
} = env.vars
|
} = env.vars
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"genaiscript": "^1.63.0"
|
"genaiscript": "^1.63.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"gcm": "genaiscript run gcm"
|
"gcm": "genaiscript run gcm",
|
||||||
|
"gai": "genaiscript run gai"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,7 @@ namespace sls {
|
||||||
void context::updt_params(params_ref const& p) {
|
void context::updt_params(params_ref const& p) {
|
||||||
smt_params_helper smtp(p);
|
smt_params_helper smtp(p);
|
||||||
m_rand.set_seed(smtp.random_seed());
|
m_rand.set_seed(smtp.random_seed());
|
||||||
|
m_params.append(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
void context::register_plugin(plugin* p) {
|
void context::register_plugin(plugin* p) {
|
||||||
|
|
|
@ -108,6 +108,7 @@ namespace sls {
|
||||||
indexed_uint_set m_relevant, m_visited;
|
indexed_uint_set m_relevant, m_visited;
|
||||||
expr_ref_vector m_atoms;
|
expr_ref_vector m_atoms;
|
||||||
unsigned_vector m_atom2bool_var;
|
unsigned_vector m_atom2bool_var;
|
||||||
|
params_ref m_params;
|
||||||
vector<ptr_vector<expr>> m_parents;
|
vector<ptr_vector<expr>> m_parents;
|
||||||
sat::literal_vector m_root_literals, m_unit_literals;
|
sat::literal_vector m_root_literals, m_unit_literals;
|
||||||
indexed_uint_set m_unit_indices;
|
indexed_uint_set m_unit_indices;
|
||||||
|
@ -149,6 +150,7 @@ namespace sls {
|
||||||
|
|
||||||
void on_restart();
|
void on_restart();
|
||||||
void updt_params(params_ref const& p);
|
void updt_params(params_ref const& p);
|
||||||
|
params_ref const& get_params() const { return m_params; }
|
||||||
|
|
||||||
// expose sat_solver to plugins
|
// expose sat_solver to plugins
|
||||||
vector<sat::clause_info> const& clauses() const { return s.clauses(); }
|
vector<sat::clause_info> const& clauses() const { return s.clauses(); }
|
||||||
|
|
|
@ -38,7 +38,7 @@ namespace sls {
|
||||||
|
|
||||||
void euf_plugin::initialize() {
|
void euf_plugin::initialize() {
|
||||||
m_incremental = ctx.get_params().get_bool("euf_incremental", m_incremental);
|
m_incremental = ctx.get_params().get_bool("euf_incremental", m_incremental);
|
||||||
IF_VERBOSE(2, verbose_stream() << "sls.euf: incremental " << m_incremental << < "\n");
|
IF_VERBOSE(2, verbose_stream() << "sls.euf: incremental " << m_incremental << "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void euf_plugin::start_propagation() {
|
void euf_plugin::start_propagation() {
|
||||||
|
@ -80,6 +80,7 @@ namespace sls {
|
||||||
replay();
|
replay();
|
||||||
}
|
}
|
||||||
void euf_plugin::resolve() {
|
void euf_plugin::resolve() {
|
||||||
|
auto& g = *m_g;
|
||||||
if (!g.inconsistent())
|
if (!g.inconsistent())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -118,7 +119,7 @@ namespace sls {
|
||||||
auto l = m_replay_stack.back();
|
auto l = m_replay_stack.back();
|
||||||
m_replay_stack.pop_back();
|
m_replay_stack.pop_back();
|
||||||
propagate_literal_incremental_step(l);
|
propagate_literal_incremental_step(l);
|
||||||
if (g.inconsistent())
|
if (m_g->inconsistent())
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -149,8 +150,8 @@ namespace sls {
|
||||||
expr_ref eq(m.mk_eq(a, b), m);
|
expr_ref eq(m.mk_eq(a, b), m);
|
||||||
auto c = g.find(eq);
|
auto c = g.find(eq);
|
||||||
if (!g.find(eq)) {
|
if (!g.find(eq)) {
|
||||||
enode* args[2] = { g.find(a), g.find(b) };
|
euf::enode* args[2] = { g.find(a), g.find(b) };
|
||||||
c = g.mk(eq, 2, args, nullptr);
|
c = g.mk(eq, 0, 2, args);
|
||||||
}
|
}
|
||||||
g.merge(c, g.find(m.mk_false()), to_ptr(lit));
|
g.merge(c, g.find(m.mk_false()), to_ptr(lit));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue