git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1339
e59a4935-1847-0410-ae03-
e826735625c1
bool
ToSATAIG::CallSAT(SATSolver& satSolver, const ASTNode& input, bool needAbsRef)
{
- if (cb != NULL && cb->isUnsatisfiable())
+ // Shortcut if known. This avoids calling the setup of the CNF generator.
+ // setup takes about 15ms.
+ if (input == ASTFalse && !needAbsRef)
+ return false;
+
+ if (input == ASTTrue && !needAbsRef)
+ return true;
+
+ if (cb != NULL && cb->isUnsatisfiable())
return false;
if (simp == NULL)