From: Hamed Date: Fri, 14 Jul 2017 21:51:01 +0000 (-0700) Subject: Getting some bugs fixed ... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=36e4dc00d0322622c568a98d6a66b47398653889;p=satune.git Getting some bugs fixed ... --- diff --git a/src/Backend/constraint.c b/src/Backend/constraint.c index 72c74c7..8c4b7c8 100644 --- a/src/Backend/constraint.c +++ b/src/Backend/constraint.c @@ -487,6 +487,7 @@ void convertConstraint(CNF *cnf, VectorEdge *stack, Edge root, bool backtrackLit } } CNFExpr * cnfExp = (CNFExpr *) nroot->ptrAnnot[isNegEdge(root)]; + ASSERT(cnfExp!=NULL); if (isProxy(cnfExp)) { Literal l=getProxy(cnfExp); Literal clause[] = {l}; diff --git a/src/Backend/satfuncencoder.c b/src/Backend/satfuncencoder.c index 741806e..e64cb09 100644 --- a/src/Backend/satfuncencoder.c +++ b/src/Backend/satfuncencoder.c @@ -255,6 +255,10 @@ void encodeEnumTableElemFunctionSATEncoder(SATEncoder* This, ElementFunction* fu ArrayElement* elements= &func->inputs; Table* table = ((FunctionTable*) (func->function))->table; uint size = getSizeVectorTableEntry(&table->entries); + for(uint i=0; ientries, i);