-
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.
This adds support for the combination of IC3 or BDDs and the liveness-to-safety translation.
- Loading branch information
Showing
13 changed files
with
73 additions
and
13 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,7 @@ | ||
CORE | ||
failing1.sv | ||
--bdd --liveness-to-safety | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
^\[main\.p0\] always s_eventually main\.my_bit: REFUTED$ | ||
-- |
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,7 @@ | ||
CORE | ||
failing1.sv | ||
--ic3 --liveness-to-safety | ||
^EXIT=1$ | ||
^SIGNAL=0$ | ||
^property FAILED$ | ||
-- |
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,7 @@ | ||
CORE | ||
failing2.sv | ||
--ic3 --liveness-to-safety | ||
^EXIT=1$ | ||
^SIGNAL=0$ | ||
^property FAILED$ | ||
-- |
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,7 @@ | ||
CORE | ||
passing1.sv | ||
--liveness-to-safety --bdd | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^\[main\.p0\] always s_eventually main\.my_bit: PROVED$ | ||
-- |
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,6 @@ | ||
KNOWNBUG | ||
passing1.sv | ||
--liveness-to-safety --ic3 | ||
^EXIT=0$ | ||
^SIGNAL=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CORE | ||
passing2.sv | ||
--ic3 --liveness-to-safety | ||
^EXIT=0$ | ||
^SIGNAL=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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ Author: Daniel Kroening, [email protected] | |
#include <util/format_expr.h> | ||
|
||
#include <ebmc/ebmc_properties.h> | ||
#include <ebmc/liveness_to_safety.h> | ||
#include <ebmc/transition_system.h> | ||
#include <solvers/bdd/miniBDD/miniBDD.h> | ||
#include <solvers/sat/satcheck.h> | ||
|
@@ -177,13 +178,18 @@ int bdd_enginet::operator()() | |
properties = ebmc_propertiest::from_command_line( | ||
cmdline, transition_system, message.get_message_handler()); | ||
|
||
// possibly apply liveness-to-safety | ||
if(cmdline.isset("liveness-to-safety")) | ||
liveness_to_safety(transition_system, properties); | ||
|
||
const auto property_map = properties.make_property_map(); | ||
|
||
message.status() << "Building netlist" << messaget::eom; | ||
|
||
convert_trans_to_netlist( | ||
transition_system.symbol_table, | ||
transition_system.main_symbol->name, | ||
transition_system.trans_expr, | ||
property_map, | ||
netlist, | ||
message.get_message_handler()); | ||
|
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
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ Author: Eugene Goldberg, [email protected] | |
#include <util/ui_message.h> | ||
|
||
#include <ebmc/ebmc_properties.h> | ||
#include <ebmc/liveness_to_safety.h> | ||
#include <ebmc/report_results.h> | ||
|
||
#include <trans-netlist/netlist.h> | ||
|
@@ -95,12 +96,17 @@ int ic3_enginet::operator()() | |
properties = ebmc_propertiest::from_command_line( | ||
cmdline, transition_system, message.get_message_handler()); | ||
|
||
// possibly apply liveness-to-safety | ||
if(cmdline.isset("liveness-to-safety")) | ||
liveness_to_safety(transition_system, properties); | ||
|
||
// make net-list | ||
message.status() << "Generating Netlist" << messaget::eom; | ||
|
||
convert_trans_to_netlist( | ||
transition_system.symbol_table, | ||
transition_system.main_symbol->name, | ||
transition_system.trans_expr, | ||
properties.make_property_map(), | ||
netlist, | ||
message.get_message_handler()); | ||
|
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 |
---|---|---|
|
@@ -10,13 +10,15 @@ Author: Daniel Kroening, [email protected] | |
#define CPROVER_TRANS_NETLIST_TRANS_H | ||
|
||
#include <util/expr.h> | ||
#include <util/mathematical_expr.h> | ||
#include <util/message.h> | ||
#include <util/namespace.h> | ||
#include <util/symbol_table_base.h> | ||
|
||
void convert_trans_to_netlist( | ||
symbol_table_baset &, | ||
const irep_idt &module, | ||
const transt &, | ||
const std::map<irep_idt, exprt> &properties, | ||
class netlistt &dest, | ||
message_handlert &); | ||
|