File tree Expand file tree Collapse file tree 1 file changed +3
-24
lines changed Expand file tree Collapse file tree 1 file changed +3
-24
lines changed Original file line number Diff line number Diff line change 1
- pub use self :: ffi:: * ;
2
-
3
1
pub use cxx:: UniquePtr ;
4
2
3
+ pub use self :: ffi:: * ;
5
4
6
5
/// Defined in "genmc/src/Support/SAddr.hpp"
7
6
/// FIXME: currently we use `getGlobalAllocStaticMask()` to ensure the constant is consistent between Miri and GenMC,
@@ -25,10 +24,7 @@ impl GenmcScalar {
25
24
26
25
impl Default for GenmcParams {
27
26
fn default ( ) -> Self {
28
- Self {
29
- print_random_schedule_seed : false ,
30
- do_symmetry_reduction : false ,
31
- }
27
+ Self { print_random_schedule_seed : false , do_symmetry_reduction : false }
32
28
}
33
29
}
34
30
@@ -62,21 +58,6 @@ mod ffi {
62
58
SequentiallyConsistent = 6 ,
63
59
}
64
60
65
- #[ derive( Debug ) ]
66
- enum RMWBinOp {
67
- Xchg = 0 ,
68
- Add = 1 ,
69
- Sub = 2 ,
70
- And = 3 ,
71
- Nand = 4 ,
72
- Or = 5 ,
73
- Xor = 6 ,
74
- Max = 7 ,
75
- Min = 8 ,
76
- UMax = 9 ,
77
- UMin = 10 ,
78
- }
79
-
80
61
#[ derive( Debug , Clone , Copy ) ]
81
62
struct GenmcScalar {
82
63
value : u64 ,
@@ -141,7 +122,6 @@ mod ffi {
141
122
include ! ( "MiriInterface.hpp" ) ;
142
123
143
124
type MemOrdering ;
144
- type RMWBinOp ;
145
125
146
126
// Types for Scheduling queries:
147
127
type ActionKind ;
@@ -155,8 +135,7 @@ mod ffi {
155
135
156
136
type MiriGenMCShim ;
157
137
158
- fn createGenmcHandle ( config : & GenmcParams )
159
- -> UniquePtr < MiriGenMCShim > ;
138
+ fn createGenmcHandle ( config : & GenmcParams ) -> UniquePtr < MiriGenMCShim > ;
160
139
fn getGlobalAllocStaticMask ( ) -> u64 ;
161
140
162
141
fn handleExecutionStart ( self : Pin < & mut MiriGenMCShim > ) ;
You can’t perform that action at this time.
0 commit comments