3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-15 03:25:43 +00:00

use patterns

This commit is contained in:
Nikolaj Bjorner 2026-07-07 09:56:37 -07:00
parent 7040a74d1a
commit 965db51b5c

View file

@ -219,9 +219,7 @@ namespace smt {
STRACE(triggers, tout <<", Pat: "<< expr_ref(pat, m()););
STRACE(causality, tout <<", Father:";);
}
for (auto n : used_enodes) {
enode *orig = std::get<0>(n);
enode *substituted = std::get<1>(n);
for (auto [orig, substituted] : used_enodes) {
(void) substituted;
if (orig == nullptr) {
STRACE(causality, tout << " #" << substituted->get_owner_id(););
@ -260,9 +258,7 @@ namespace smt {
log_justification_to_root(out, bindings[i], already_visited, m_context, m());
}
for (auto n : used_enodes) {
enode *orig = std::get<0>(n);
enode *substituted = std::get<1>(n);
for (auto [orig, substituted] : used_enodes) {
if (orig != nullptr) {
log_justification_to_root(out, orig, already_visited, m_context, m());
log_justification_to_root(out, substituted, already_visited, m_context, m());