3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-06-19 15:16:29 +00:00

Restore atom2bool_var.cpp to fix CI build break

This commit is contained in:
copilot-swe-agent[bot] 2026-06-12 06:37:48 +00:00 committed by GitHub
parent 4b7e4cf08a
commit af5bbb4566
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
add a smart constructor to seq_util to create the simplified range given two characters. It would create either the empty regex, the singleton string or a range expression./*++
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
@ -50,9 +50,9 @@ sat::bool_var atom2bool_var::to_bool_var(expr * n) const {
}
expr* atom2bool_var::bool_var2expr(sat::bool_var v) const {
for (auto const& [key, val] : m_mapping)
if (val == v)
return key;
for (auto const& kv : m_mapping)
if (kv.m_value == v)
return kv.m_key;
return nullptr;
}