3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-20 10:10:21 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-06-28 17:46:29 -07:00
parent 6f4c873b29
commit 6fad478a18
10 changed files with 771 additions and 710 deletions

View file

@ -1151,14 +1151,18 @@ struct sat2goal::imp {
sat::card_extension* ext = get_card_extension(s);
if (ext) {
for (unsigned i = 0; i < ext->num_pb(); ++i) {
assert_pb(r, ext->get_pb(i));
}
for (unsigned i = 0; i < ext->num_card(); ++i) {
assert_card(r, ext->get_card(i));
}
for (unsigned i = 0; i < ext->num_xor(); ++i) {
assert_xor(r, ext->get_xor(i));
for (auto* c : ext->constraints()) {
switch (c->tag()) {
case sat::card_extension::card_t:
assert_card(r, c->to_card());
break;
case sat::card_extension::pb_t:
assert_pb(r, c->to_pb());
break;
case sat::card_extension::xor_t:
assert_xor(r, c->to_xor());
break;
}
}
}
}