mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
don't rely on initializer list implementations, there are no constructors in the standard
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
09fa657be9
commit
d183ac23d0
9 changed files with 22 additions and 13 deletions
|
@ -256,9 +256,10 @@ namespace polysat {
|
|||
return ctx.get_trail_stack();
|
||||
}
|
||||
|
||||
bool solver::add_axiom(char const* name, core_vector const& cs, bool is_redundant) {
|
||||
bool solver::add_axiom(char const* name, constraint_or_dependency const* begin, constraint_or_dependency const* end, bool is_redundant) {
|
||||
sat::literal_vector lits;
|
||||
for (auto e : cs) {
|
||||
for (auto it = begin; it != end; ++it) {
|
||||
auto const& e = *it;
|
||||
if (std::holds_alternative<dependency>(e)) {
|
||||
auto d = *std::get_if<dependency>(&e);
|
||||
SASSERT(!d.is_null());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue