-
Notifications
You must be signed in to change notification settings - Fork 273
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 #1339 from diffblue/initialize_goto_model
New API for getting goto models
- Loading branch information
Showing
134 changed files
with
1,053 additions
and
1,311 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
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 |
---|---|---|
|
@@ -15,13 +15,13 @@ Author: Daniel Kroening, [email protected] | |
#include <iosfwd> | ||
#include <map> | ||
|
||
#include <goto-programs/goto_functions.h> | ||
#include <goto-programs/goto_model.h> | ||
|
||
class call_grapht | ||
{ | ||
public: | ||
call_grapht(); | ||
explicit call_grapht(const goto_functionst &); | ||
explicit call_grapht(const goto_modelt &); | ||
|
||
void output_dot(std::ostream &out) const; | ||
void output(std::ostream &out) const; | ||
|
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
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,11 +12,8 @@ Author: Daniel Kroening, [email protected] | |
#ifndef CPROVER_ANALYSES_INTERVAL_ANALYSIS_H | ||
#define CPROVER_ANALYSES_INTERVAL_ANALYSIS_H | ||
|
||
#include <util/namespace.h> | ||
#include <goto-programs/goto_functions.h> | ||
class goto_modelt; | ||
|
||
void interval_analysis( | ||
const namespacet &ns, | ||
goto_functionst &goto_functions); | ||
void interval_analysis(goto_modelt &); | ||
|
||
#endif // CPROVER_ANALYSES_INTERVAL_ANALYSIS_H |
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 |
---|---|---|
|
@@ -13,9 +13,9 @@ Author: Georg Weissenbacher, [email protected] | |
|
||
#include <iostream> | ||
|
||
void show_natural_loops(const goto_functionst &goto_functions) | ||
void show_natural_loops(const goto_modelt &goto_model) | ||
{ | ||
forall_goto_functions(it, goto_functions) | ||
forall_goto_functions(it, goto_model.goto_functions) | ||
{ | ||
std::cout << "*** " << it->first << '\n'; | ||
|
||
|
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 |
---|---|---|
|
@@ -16,8 +16,7 @@ Author: Georg Weissenbacher, [email protected] | |
#include <iosfwd> | ||
#include <set> | ||
|
||
#include <goto-programs/goto_program.h> | ||
#include <goto-programs/goto_functions.h> | ||
#include <goto-programs/goto_model.h> | ||
|
||
#include "cfg_dominators.h" | ||
|
||
|
@@ -70,7 +69,7 @@ class natural_loopst: | |
typedef natural_loops_templatet<goto_programt, goto_programt::targett> | ||
natural_loops_mutablet; | ||
|
||
void show_natural_loops(const goto_functionst &goto_functions); | ||
void show_natural_loops(const goto_modelt &); | ||
|
||
/// Finds all back-edges and computes the natural loops | ||
#ifdef DEBUG | ||
|
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 |
---|---|---|
|
@@ -16,14 +16,15 @@ Author: Daniel Kroening, [email protected] | |
#include <map> | ||
|
||
#include <util/options.h> | ||
#include <util/ui_message.h> | ||
|
||
#include <solvers/prop/prop.h> | ||
#include <solvers/prop/prop_conv.h> | ||
#include <solvers/sat/cnf.h> | ||
#include <solvers/sat/satcheck.h> | ||
#include <solvers/smt1/smt1_dec.h> | ||
#include <solvers/smt2/smt2_dec.h> | ||
#include <langapi/language_ui.h> | ||
|
||
#include <goto-symex/symex_target_equation.h> | ||
#include <goto-programs/safety_checker.h> | ||
|
||
|
@@ -56,7 +57,7 @@ class bmct:public safety_checkert | |
// additional stuff | ||
expr_listt bmc_constraints; | ||
|
||
void set_ui(language_uit::uit _ui) { ui=_ui; } | ||
void set_ui(ui_message_handlert::uit _ui) { ui=_ui; } | ||
|
||
// the safety_checkert interface | ||
virtual resultt operator()( | ||
|
@@ -74,7 +75,7 @@ class bmct:public safety_checkert | |
prop_convt &prop_conv; | ||
|
||
// use gui format | ||
language_uit::uit ui; | ||
ui_message_handlert::uit ui; | ||
|
||
virtual decision_proceduret::resultt | ||
run_decision_procedure(prop_convt &prop_conv); | ||
|
Oops, something went wrong.