From 1a6258dd16f4241eca5c78c2cfb60c4a3a16edd7 Mon Sep 17 00:00:00 2001 From: trevor_hansen Date: Fri, 10 Sep 2010 14:43:26 +0000 Subject: [PATCH] When encoding to CNF via ABC, use the simple mapping if there are more than 10M nodes. This is because currently ABC seems to have a 4GB memory limit internally. So any more than about 10M nodes maxes out the memory. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1016 e59a4935-1847-0410-ae03-e826735625c1 --- src/to-sat/AIG/BBNodeManagerAIG.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/to-sat/AIG/BBNodeManagerAIG.cpp b/src/to-sat/AIG/BBNodeManagerAIG.cpp index f124737..db97940 100644 --- a/src/to-sat/AIG/BBNodeManagerAIG.cpp +++ b/src/to-sat/AIG/BBNodeManagerAIG.cpp @@ -56,7 +56,10 @@ namespace BEEV break; } } - cnfData = Cnf_Derive(aigMgr, 0); + if (aigMgr->nObjs[AIG_OBJ_AND] < 10000000) + cnfData = Cnf_Derive(aigMgr, 0); + else + cnfData = Cnf_DeriveSimple(aigMgr, 0); BBNodeManagerAIG::SymbolToBBNode::const_iterator it; -- 2.47.3