.PHONY: all
all:
$(MAKE) -C $(SRC)/AST
- $(MAKE) -C $(SRC)/sat core
+ $(MAKE) -C $(SRC)/sat simp
$(MAKE) -C $(SRC)/simplifier
$(MAKE) -C $(SRC)/bitvec
$(MAKE) -C $(SRC)/c_interface
.PHONY: all
all:
$(MAKE) -C $(SRC)/AST
- $(MAKE) -C $(SRC)/sat core
+ $(MAKE) -C $(SRC)/sat simp
$(MAKE) -C $(SRC)/simplifier
$(MAKE) -C $(SRC)/bitvec
$(MAKE) -C $(SRC)/c_interface
int res;
//solver instantiated here
- MINISAT::Solver newS;
+ MINISAT::SimpSolver newS;
if (arrayread_refinement_flag)
{
counterexample_checking_during_refinement = true;
//a is of the form var, and b is const
if ((k1 == READ && a[0].GetKind() == SYMBOL && a[1].GetKind() == BVCONST &&
(k2 == BVCONST)))
- // ||
+// ||
// k2 == READ && b[0].GetKind() == SYMBOL && b[1].GetKind() == BVCONST)))
return 1;
ASTNode BeevMgr::SimplifyFormula(const ASTNode& b, bool pushNeg)
{
- if (!optimize_flag)
- return b;
+ if (!optimize_flag)
+ return b;
Kind kind = b.GetKind();
if (BOOLEAN_TYPE != b.GetType())
ASTNode BeevMgr::SimplifyAtomicFormula(const ASTNode& a, bool pushNeg)
{
if (!optimize_flag)
- {
- return a;
- }
+ return a;
+
ASTNode output;
if (CheckSimplifyMap(a, output, pushNeg))
Kind k1 = in1.GetKind();
Kind k2 = in2.GetKind();
- if (!optimize_flag)
- {
- return CreateNode(EQ, in1, in2);
- }
+ // if (!optimize_flag)
+// {
+// return CreateNode(EQ, in1, in2);
+// }
if (in1 == in2)
//terms are syntactically the same
ASTNode BeevMgr::SimplifyIteFormula(const ASTNode& b, bool pushNeg)
{
if (!optimize_flag)
- return b;
+ return b;
ASTNode output;
if (CheckSimplifyMap(b, output, pushNeg))
//cout << "SimplifyTerm: input: " << a << endl;
if (!optimize_flag)
{
- return inputterm;
+ return inputterm;
}
+
ASTNode output;
assert(BVTypeCheck(inputterm));
-
//########################################
//########################################