-
Notifications
You must be signed in to change notification settings - Fork 17
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 #449 from diffblue/netlist-bmc-unsupported-property
netlist-BMC now gives error for unsupported properties
- Loading branch information
Showing
5 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CORE | ||
bmc_unsupported_property3.smv | ||
--aig | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
^\[main::spec1\] !G main::var::x = FALSE: FAILURE: property not supported by netlist BMC engine$ | ||
^\[main::spec2\] G main::var::x = FALSE: REFUTED$ | ||
-- | ||
^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,8 @@ | ||
MODULE main | ||
|
||
VAR x : boolean; | ||
|
||
ASSIGN init(x) := 1; | ||
|
||
LTLSPEC !G x=0 | ||
LTLSPEC G x=0 |
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
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ Author: Daniel Kroening, [email protected] | |
#include <util/ebmc_util.h> | ||
|
||
#include <temporal-logic/temporal_expr.h> | ||
#include <temporal-logic/temporal_logic.h> | ||
#include <verilog/sva_expr.h> | ||
|
||
#include "instantiate_netlist.h" | ||
|
@@ -199,3 +200,27 @@ void unwind_property( | |
} | ||
} | ||
|
||
/*******************************************************************\ | ||
Function: netlist_bmc_supports_property | ||
Inputs: | ||
Outputs: | ||
Purpose: | ||
\*******************************************************************/ | ||
|
||
bool netlist_bmc_supports_property(const exprt &expr) | ||
{ | ||
// We do AG p only. | ||
if(expr.id() == ID_AG) | ||
return !has_temporal_operator(to_AG_expr(expr).op()); | ||
else if(expr.id() == ID_G) | ||
return !has_temporal_operator(to_G_expr(expr).op()); | ||
else if(expr.id() == ID_sva_always) | ||
return !has_temporal_operator(to_sva_always_expr(expr).op()); | ||
else | ||
return false; | ||
} |
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