Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/cbmc
Submodule cbmc updated 1342 files
3 changes: 1 addition & 2 deletions regression/ebmc/elbtunnel/test.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CORE broken-smt-backend
CORE
elbtunnel.aig.smv
--bound 12
^EXIT=10$
Expand All @@ -14,4 +14,3 @@ elbtunnel.aig.smv
--
^warning: ignoring
--
The test fails in MacOS CI with Z3.
2 changes: 1 addition & 1 deletion regression/smv/expressions/smv_toint1.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KNOWNBUG
CORE broken-smt-backend
smv_toint1.smv

^\[.*\] toint\(0\) = 0: PROVED .*$
Expand Down
2 changes: 1 addition & 1 deletion regression/verilog/expressions/inside1.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CORE broken-smt-backend
CORE
inside1.sv

^\[.*\] always 2 inside \{1, 2, 3\}: PROVED .*$
Expand Down
3 changes: 1 addition & 2 deletions regression/verilog/expressions/signing_cast1.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CORE broken-smt-backend
CORE
signing_cast1.sv
--module main
^\[main\.p0\] always signed'\(1'b1\) == -1: PROVED .*$
Expand All @@ -12,4 +12,3 @@ signing_cast1.sv
--
^warning: ignoring
--
The width of the operand is not preserved.
1 change: 1 addition & 0 deletions src/ebmc/ebmc_solver_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ ebmc_solver_factoryt ebmc_solver_factory(const cmdlinet &cmdline)
std::string("Generated by EBMC ") + EBMC_VERSION,
"QF_AUFBV",
smt2_solver.value(),
"", // solver binary
message_handler)};
}
};
Expand Down
36 changes: 1 addition & 35 deletions src/trans-netlist/unwind_netlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,40 +21,6 @@ Author: Daniel Kroening, kroening@kroening.com

/*******************************************************************\

Function: cnf_gate_and

Inputs:

Outputs:

Purpose:

\*******************************************************************/

// This is a copy of cnft::gate_and, which is protected.
inline void cnf_gate_and(cnft &cnf, literalt a, literalt b, literalt o)
{
// a*b=c <==> (a + o')( b + o')(a'+b'+o)
bvt lits(2);

lits[0] = pos(a);
lits[1] = neg(o);
cnf.lcnf(lits);

lits[0] = pos(b);
lits[1] = neg(o);
cnf.lcnf(lits);

lits.clear();
lits.reserve(3);
lits.push_back(neg(a));
lits.push_back(neg(b));
lits.push_back(pos(o));
cnf.lcnf(lits);
}

/*******************************************************************\

Function: unwind

Inputs:
Expand Down Expand Up @@ -102,7 +68,7 @@ void unwind(
literalt la=bmc_map.translate(t, node.a);
literalt lb=bmc_map.translate(t, node.b);

cnf_gate_and(solver, la, lb, timeframe[n].solver_literal);
solver.gate_and(la, lb, timeframe[n].solver_literal);
}
}

Expand Down
Loading