Skip to content

Commit

Permalink
now qepcad-sat checks whether input is quantifier-free or not and giv…
Browse files Browse the repository at this point in the history
…es a helpful message if not.
  • Loading branch information
chriswestbrown committed Jul 19, 2024
1 parent 9a9b9bf commit 2f3270a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interpreter/src/shell/qepcad-inter/qepcad-inter.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ class CommQepcadSat : public EICommand
else return new ErrObj("Symbol not understood");
}
// TODO!! check that F is quantifier free
if (!isQuantifierFree(F)) {
return new ErrObj("Input has quantifiers: 'qepcad-sat' requires a quantifier-free formula. Try 'qepcad-qe'. See (help 'qepcad-sat).");
}
TAndRef Fp = new TAndObj();
Fp->AND(F);
bool conjunctionCase = isConjunctionOfAtoms(Fp);
Expand Down

0 comments on commit 2f3270a

Please sign in to comment.