mirror of
https://github.com/Z3Prover/z3
synced 2026-07-05 14:56:11 +00:00
Restore atom2bool_var.cpp to fix CI build break
This commit is contained in:
parent
4b7e4cf08a
commit
af5bbb4566
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
Copyright (c) 2011 Microsoft Corporation
|
||||||
|
|
||||||
Module Name:
|
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 {
|
expr* atom2bool_var::bool_var2expr(sat::bool_var v) const {
|
||||||
for (auto const& [key, val] : m_mapping)
|
for (auto const& kv : m_mapping)
|
||||||
if (val == v)
|
if (kv.m_value == v)
|
||||||
return key;
|
return kv.m_key;
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue