CFLAGS = $(CFLAGS_BASE)
endif
-CXXFLAGS = $(CFLAGS) -Wall -Wextra -DEXT_HASH_MAP -Wno-deprecated
+#CXXFLAGS = $(CFLAGS) -Wall -Wextra -DEXT_HASH_MAP -Wno-deprecated
+CXXFLAGS = $(CFLAGS) -Wextra -DEXT_HASH_MAP -Wno-deprecated
#CXXFLAGS = $(CFLAGS) -Wall -DTR1_UNORDERED_MAP
#CXXFLAGS = $(CFLAGS) -Wall
#LDFLAGS= -lstdc++
done
-echo "PREFIX=$PREFIX" > config.info
+echo "PREFIX=$PREFIX" > make-scripts/config.info
echo "Setting prefix to... $PREFIX"
if [ $CXX ]
-then echo "CXX=$CXX" >> config.info
+then echo "CXX=$CXX" >> make-scripts/config.info
export CXX="$CXX"
echo "Setting CXX to... $CXX"
fi
if [ ! -d $PREFIX/include ]
-then mkdir $PREFIX/include
+then mkdir -p $PREFIX/include
fi
if [ ! -d $PREFIX/bin ]
-then mkdir $PREFIX/bin
+then mkdir -p $PREFIX/bin
fi
if [ ! -d $PREFIX/lib ]
fi
echo "STP is configured successfully."
-cp Makefile.in Makefile
+cp make-scripts/Makefile.in Makefile
echo
echo "Type 'make' to compile STP."
# To make in optimized mode, type 'make "OPTIMIZE=-O3"
-include Makefile.common config.info
+include Makefile.common make-scripts/config.info
BIN_DIR=$(PREFIX)/bin
LIB_DIR=$(PREFIX)/lib
--- /dev/null
+PREFIX=/usr/local
ASTNodeStats("adding false readaxioms to SAT: ", FalseAxioms);
//printf("spot 01\n");
int res2 = 2;
+ //if (FalseAxiomsVec.size() > 0)
if (FalseAxiomsVec.size() > oldFalseAxiomsSize)
{
res2 = CallSAT_ResultCheck(newS, FalseAxioms, orig_input);
}
}
}
- //ASTNode RemainingAxioms = RemainingAxiomsVec[0];
ASTNode RemainingAxioms = (RemainingAxiomsVec.size() > 1) ? CreateNode(AND, RemainingAxiomsVec) : RemainingAxiomsVec[0];
ASTNodeStats("adding remaining readaxioms to SAT: ", RemainingAxioms);
return CallSAT_ResultCheck(newS, RemainingAxioms, orig_input);
/********************************************************************
- * AUTHORS: Vijay Ganesh, David L. Dill
+ * AUTHORS: Vijay Ganesh
*
* BEGIN DATE: November, 2005
*
{
// signed shift, and the number was originally negative.
// Shift may be larger than the inputwidth.
- for (int i =0; i < min(shift,inputwidth);i++)
+ for (unsigned int i =0; i < min(shift,inputwidth);i++)
{
CONSTANTBV::BitVector_Bit_On(output,(inputwidth-1 -i));
}
nodestar a = (nodestar)e;
BEEV::ASTVec c = a->GetChildren();
- if(0 <= (unsigned)i && (unsigned)i < c.size()) {
+ if(0 <= i && i < c.size()) {
BEEV::ASTNode o = c[i];
nodestar output = new node(o);
//if(cinterface_exprdelete_on) created_exprs.push_back(output);
| BOOLEXTRACT_TOK '(' Expr ',' NUMERAL_TOK ')'
{
unsigned int width = $3->GetValueWidth();
- if(0 > (unsigned)$5 || width <= (unsigned)$5)
+ if(width <= (unsigned)$5)
yyerror("Fatal Error: BOOLEXTRACT: trying to boolextract a bit which beyond range");
BEEV::ASTNode hi = BEEV::globalBeevMgr_for_parser->CreateBVConst(32, $5);
if (width < 0)
yyerror("Negative width in extract");
- if((unsigned)$3 >= $1->GetValueWidth() || (unsigned)$5 < 0)
+ if((unsigned)$3 >= $1->GetValueWidth())
yyerror("Parsing: Wrong width in BVEXTRACT\n");
BEEV::ASTNode hi = BEEV::globalBeevMgr_for_parser->CreateBVConst(32, $3);
if (width < 0)
yyerror("Negative width in extract");
- if((unsigned)$3 >= $7->GetValueWidth() || (unsigned)$5 < 0)
+ if((unsigned)$3 >= $7->GetValueWidth())
yyerror("Parsing: Wrong width in BVEXTRACT\n");
BEEV::ASTNode hi = BEEV::globalBeevMgr_for_parser->CreateBVConst(32, $3);
ASSERT (BITS16_ONE_MACRO = 0hex0001);
ASSERT (BITS16_TWO_MACRO = 0hex0002);
-ASSERT (HIGH_ENERGY_MACRO = 0hex0001);
-ASSERT (LOW_ENERGY_MACRO = 0hex0000);
+ASSERT (HIGH_ENERGY_MACRO = 0hex0FFF);
+ASSERT (LOW_ENERGY_MACRO = 0hex007F);
ASSERT (FACE_LEN1_MACRO = 0hex1);
ASSERT (FACE_LEN2_MACRO = 0hex2);
% final query
-ASSERT (BVGE(inner_energy, 0hex0FF0));
+ASSERT (BVGE(inner_energy, 0hexEFFF));
QUERY FALSE;
\ No newline at end of file