-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #895 from diffblue/xnor-fix
bump CBMC dependency
- Loading branch information
Showing
9 changed files
with
75 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule cbmc
updated
3 files
+20 −15 | src/solvers/flattening/boolbv_bitwise.cpp | |
+15 −14 | src/solvers/prop/prop_conv_solver.cpp | |
+10 −0 | src/util/ieee_float.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE broken-smt-backend | ||
nand4.sv | ||
--bound 0 | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- | ||
^warning: ignoring | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module main(output [31:0] nand_out, input [31:0] nand_in1, nand_in2, nand_in3); | ||
|
||
// An 'nand' with three inputs over 32 bits. | ||
nand x1[31:0] (nand_out, nand_in1, nand_in2, nand_in3); | ||
|
||
// should pass | ||
nand_x1_ok: assert final (~(nand_in1 & nand_in2 & nand_in3)==nand_out); | ||
|
||
// An 'nand' with one input over 32 bits. | ||
nand x2[31:0] (nand_out, nand_in1); | ||
|
||
// should pass | ||
nand_x2_ok: assert final (~nand_in1==nand_out); | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE broken-smt-backend | ||
nor4.sv | ||
--bound 0 | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- | ||
^warning: ignoring | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module main(output [31:0] nor_out, input [31:0] nor_in1, nor_in2, nor_in3); | ||
|
||
// An 'nor' with three inputs over 32 bits. | ||
nor x1[31:0] (nor_out, nor_in1, nor_in2, nor_in3); | ||
|
||
// should pass | ||
nor_x1_ok: assert final (~(nor_in1 | nor_in2 | nor_in3)==nor_out); | ||
|
||
// An 'nor' with one input over 32 bits. | ||
nor x2[31:0] (nor_out, nor_in1); | ||
|
||
// should pass | ||
nor_x2_ok: assert final (~nor_in1==nor_out); | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CORE broken-smt-backend | ||
xnor4.sv | ||
--bound 0 | ||
^\[main\.xnor_x1_ok\] always ~\(main\.xnor_in1 \^ main\.xnor_in2 \^ main.xnor_in3\) == main.xnor_out: PROVED up to bound 0$ | ||
^\[main\.xnor_x2_ok\] always ~main\.xnor_in1 == main.xnor_out: PROVED up to bound 0$ | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- | ||
^warning: ignoring | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module main(output [31:0] xnor_out, input [31:0] xnor_in1, xnor_in2, xnor_in3); | ||
|
||
// An 'xnor' with three inputs over 32 bits. | ||
xnor x1[31:0] (xnor_out, xnor_in1, xnor_in2, xnor_in3); | ||
|
||
// should pass | ||
xnor_x1_ok: assert final (~(xnor_in1 ^ xnor_in2 ^ xnor_in3)==xnor_out); | ||
|
||
// An 'xnor' with one input over 32 bits. | ||
xnor x2[31:0] (xnor_out, xnor_in1); | ||
|
||
// should pass | ||
xnor_x2_ok: assert final (~xnor_in1==xnor_out); | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters