File tree Expand file tree Collapse file tree 7 files changed +1
-34
lines changed Expand file tree Collapse file tree 7 files changed +1
-34
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,6 @@ mod ffi {
269
269
/// If there are more executions, this method prepares for the next execution and returns `true`.
270
270
fn isExplorationDone ( self : Pin < & mut MiriGenMCShim > ) -> bool ;
271
271
272
- fn printGraph ( self : Pin < & mut MiriGenMCShim > ) ;
273
272
fn printEstimationResults ( self : & MiriGenMCShim , elapsed_time_sec : f64 ) ;
274
273
}
275
274
}
Original file line number Diff line number Diff line change @@ -113,8 +113,6 @@ struct MiriGenMCShim : private GenMCDriver {
113
113
return --globalInstructions[tid].event ;
114
114
}
115
115
116
- void printGraph () { GenMCDriver::debugPrintGraph (); }
117
-
118
116
void printEstimationResults (const double elapsed_time_sec) const
119
117
{
120
118
// TODO GENMC(CLEANUP): should this happen on the Rust side?
Original file line number Diff line number Diff line change @@ -194,7 +194,6 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
194
194
if genmc_config. do_estimation ( )
195
195
&& miri_genmc:: run_genmc_mode (
196
196
& config,
197
- genmc_config,
198
197
eval_entry_once,
199
198
miri_genmc:: Mode :: Estimation ,
200
199
)
@@ -205,7 +204,6 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
205
204
206
205
let return_code = miri_genmc:: run_genmc_mode (
207
206
& config,
208
- genmc_config,
209
207
eval_entry_once,
210
208
miri_genmc:: Mode :: Verification ,
211
209
)
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ use super::GenmcParams;
6
6
#[ derive( Debug , Default , Clone ) ]
7
7
pub struct GenmcConfig {
8
8
pub ( super ) params : GenmcParams ,
9
- print_exec_graphs : bool ,
10
9
do_estimation : bool ,
11
10
}
12
11
@@ -16,10 +15,6 @@ impl GenmcConfig {
16
15
self . params . log_level_trace = true ;
17
16
}
18
17
19
- pub fn print_exec_graphs ( & self ) -> bool {
20
- self . print_exec_graphs
21
- }
22
-
23
18
pub fn do_estimation ( & self ) -> bool {
24
19
self . do_estimation
25
20
}
@@ -49,9 +44,6 @@ impl GenmcConfig {
49
44
if trimmed_arg == "log-trace" {
50
45
// TODO GENMC: maybe expand to allow more control over log level?
51
46
genmc_config. set_log_level_trace ( ) ;
52
- } else if trimmed_arg == "print-graphs" {
53
- // TODO GENMC (DOCUMENTATION)
54
- genmc_config. print_exec_graphs = true ;
55
47
} else if trimmed_arg == "estimate" {
56
48
// TODO GENMC (DOCUMENTATION): naming, off/on by default?
57
49
genmc_config. do_estimation = true ;
Original file line number Diff line number Diff line change @@ -51,10 +51,6 @@ impl GenmcCtx {
51
51
unreachable ! ( )
52
52
}
53
53
54
- pub fn print_genmc_graph ( & self ) {
55
- unreachable ! ( )
56
- }
57
-
58
54
pub fn is_exploration_done ( & self ) -> bool {
59
55
unreachable ! ( )
60
56
}
@@ -272,10 +268,6 @@ impl GenmcConfig {
272
268
}
273
269
}
274
270
275
- pub fn print_exec_graphs ( & self ) -> bool {
276
- unreachable ! ( )
277
- }
278
-
279
271
pub fn do_estimation ( & self ) -> bool {
280
272
unreachable ! ( )
281
273
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use std::fmt::Display;
2
2
use std:: rc:: Rc ;
3
3
use std:: time:: Instant ;
4
4
5
- use crate :: { GenmcConfig , GenmcCtx , MiriConfig } ;
5
+ use crate :: { GenmcCtx , MiriConfig } ;
6
6
7
7
#[ derive( Clone , Copy , PartialEq , Eq ) ]
8
8
pub enum Mode {
@@ -21,7 +21,6 @@ impl Display for Mode {
21
21
22
22
pub fn run_genmc_mode (
23
23
config : & MiriConfig ,
24
- genmc_config : & GenmcConfig ,
25
24
eval_entry : impl Fn ( Rc < GenmcCtx > ) -> Option < i32 > ,
26
25
mode : Mode ,
27
26
) -> Option < i32 > {
@@ -32,10 +31,6 @@ pub fn run_genmc_mode(
32
31
tracing:: info!( "Miri-GenMC loop {}" , rep + 1 ) ;
33
32
let result = eval_entry ( genmc_ctx. clone ( ) ) ;
34
33
35
- if genmc_config. print_exec_graphs ( ) {
36
- genmc_ctx. print_genmc_graph ( ) ;
37
- }
38
-
39
34
// TODO GENMC (ERROR REPORTING): we currently do this here, so we can still print the GenMC graph above
40
35
let return_code = result?;
41
36
Original file line number Diff line number Diff line change @@ -99,13 +99,6 @@ impl GenmcCtx {
99
99
mc. as_ref ( ) . getExploredExecutionCount ( )
100
100
}
101
101
102
- pub fn print_genmc_graph ( & self ) {
103
- info ! ( "GenMC: print the Execution graph" ) ;
104
- let mut mc = self . handle . borrow_mut ( ) ;
105
- let pinned_mc = mc. as_mut ( ) ;
106
- pinned_mc. printGraph ( ) ;
107
- }
108
-
109
102
/// This function determines if we should continue exploring executions or if we are done.
110
103
///
111
104
/// In GenMC mode, the input program should be repeatedly executed until this function returns `true` or an error is found.
You can’t perform that action at this time.
0 commit comments