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,
@@ -27,10 +26,7 @@ impl GenmcScalar {
27
26
28
27
impl Default for GenmcParams {
29
28
fn default ( ) -> Self {
30
- Self {
31
- print_random_schedule_seed : false ,
32
- do_symmetry_reduction : false ,
33
- }
29
+ Self { print_random_schedule_seed : false , do_symmetry_reduction : false }
34
30
}
35
31
}
36
32
@@ -64,21 +60,6 @@ mod ffi {
64
60
SequentiallyConsistent = 6 ,
65
61
}
66
62
67
- #[ derive( Debug ) ]
68
- enum RMWBinOp {
69
- Xchg = 0 ,
70
- Add = 1 ,
71
- Sub = 2 ,
72
- And = 3 ,
73
- Nand = 4 ,
74
- Or = 5 ,
75
- Xor = 6 ,
76
- Max = 7 ,
77
- Min = 8 ,
78
- UMax = 9 ,
79
- UMin = 10 ,
80
- }
81
-
82
63
#[ derive( Debug , Clone , Copy ) ]
83
64
struct GenmcScalar {
84
65
value : u64 ,
@@ -108,7 +89,6 @@ mod ffi {
108
89
include ! ( "MiriInterface.hpp" ) ;
109
90
110
91
type MemOrdering ;
111
- type RMWBinOp ;
112
92
113
93
// Types for Scheduling queries:
114
94
type ActionKind ;
@@ -121,8 +101,7 @@ mod ffi {
121
101
122
102
type MiriGenMCShim ;
123
103
124
- fn createGenmcHandle ( config : & GenmcParams )
125
- -> UniquePtr < MiriGenMCShim > ;
104
+ fn createGenmcHandle ( config : & GenmcParams ) -> UniquePtr < MiriGenMCShim > ;
126
105
fn getGlobalAllocStaticMask ( ) -> u64 ;
127
106
128
107
fn handleExecutionStart ( self : Pin < & mut MiriGenMCShim > ) ;
You can’t perform that action at this time.
0 commit comments