Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions src/ae/AeValSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,15 @@ namespace ufo
{
ExprSet lits;
u.getTrueLiterals(pr, m, lits, true);
pr = simplifyArithm(mixQE(conjoin(lits, efac), exp, m, u, debug));
outs() << "Lits with var : { \n";
for (auto a: lits)
if (contains(a, exp))
outs() << a << "\n";
outs() << "}\n" << std::endl;
pr = mixQE(conjoin(lits, efac), exp, m, u, debug);
if(m.eval(exp) != exp)
modelMap[exp] = mk<EQ>(exp, m.eval(exp));

if(debug)
MBPSanityCheck(m, pr);

if(debug >= 2)
{
outs() << "\nmodel " << partitioning_size << ":\n";
Expand All @@ -198,8 +200,12 @@ namespace ufo
}
outs() << "projection:\n";
pprint(pr, 2);
outs() << std::endl;
}

if(debug)
MBPSanityCheck(m, pr);

for(auto it = lits.begin(); it != lits.end();)
{
if(contains(*it, exp))
Expand All @@ -223,10 +229,14 @@ namespace ufo
{
assert(isOpX<TRUE>(m.eval(pr)));
ExprVector args;
for(auto temp : v)
ExprVector argsPr;
for(auto temp : v) {
args.push_back(temp->last());
argsPr.push_back(temp->last());
}
args.push_back(t);
boost::tribool impl = u.implies(pr, mknary<EXISTS>(args));
argsPr.push_back(pr);
boost::tribool impl = u.implies(mknary<EXISTS>(argsPr), mknary<EXISTS>(args));
tribool_assert(impl);
};

Expand Down Expand Up @@ -1267,8 +1277,8 @@ namespace ufo
minusSets(ex_qvars, fa_qvars);
}

s = convertIntsToReals<DIV>(s);
t = convertIntsToReals<DIV>(t);
s = convertIdivToDiv<DIV>(s);
t = convertIdivToDiv<DIV>(t);

if(debug >= 3)
{
Expand Down
Loading