-
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 #650 from diffblue/move_k_induction
Move k-induction invocation
- Loading branch information
Showing
4 changed files
with
18 additions
and
16 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 |
---|---|---|
|
@@ -18,7 +18,6 @@ Author: Daniel Kroening, [email protected] | |
#include "ebmc_error.h" | ||
#include "ebmc_version.h" | ||
#include "ic3_engine.h" | ||
#include "k_induction.h" | ||
#include "liveness_to_safety.h" | ||
#include "neural_liveness.h" | ||
#include "property_checker.h" | ||
|
@@ -160,9 +159,6 @@ int ebmc_parse_optionst::doit() | |
return do_ic3(cmdline, ui_message_handler); | ||
#endif | ||
|
||
if(cmdline.isset("k-induction")) | ||
return do_k_induction(cmdline, ui_message_handler); | ||
|
||
if(cmdline.isset("neural-liveness")) | ||
return do_neural_liveness(cmdline, ui_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,15 +10,19 @@ Author: Daniel Kroening, [email protected] | |
#define CPROVER_EBMC_K_INDUCTION_H | ||
|
||
#include <util/cmdline.h> | ||
#include <util/ui_message.h> | ||
#include <util/message.h> | ||
|
||
#include "ebmc_solver_factory.h" | ||
|
||
int do_k_induction(const cmdlinet &, ui_message_handlert &); | ||
|
||
class transition_systemt; | ||
class ebmc_propertiest; | ||
|
||
int k_induction( | ||
const cmdlinet &, | ||
transition_systemt &, | ||
ebmc_propertiest &, | ||
message_handlert &); | ||
|
||
// Basic k-induction. The result is stored in the ebmc_propertiest argument. | ||
void k_induction( | ||
std::size_t k, | ||
|
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ Author: Daniel Kroening, [email protected] | |
#include "dimacs_writer.h" | ||
#include "ebmc_error.h" | ||
#include "ebmc_solver_factory.h" | ||
#include "k_induction.h" | ||
#include "output_file.h" | ||
#include "report_results.h" | ||
|
||
|
@@ -388,6 +389,10 @@ int property_checker( | |
return bit_level_bmc( | ||
cmdline, transition_system, properties, message_handler); | ||
} | ||
else if(cmdline.isset("k-induction")) | ||
{ | ||
return k_induction(cmdline, transition_system, properties, message_handler); | ||
} | ||
else | ||
{ | ||
// default engine is word-level BMC | ||
|