Skip to content

Commit b57e96b

Browse files
committed
Minor cleanup
1 parent 2b1470c commit b57e96b

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

genmc-sys/src/lib.rs

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
pub use self::ffi::*;
2-
31
pub use cxx::UniquePtr;
42

3+
pub use self::ffi::*;
54

65
/// Defined in "genmc/src/Support/SAddr.hpp"
76
/// FIXME: currently we use `getGlobalAllocStaticMask()` to ensure the constant is consistent between Miri and GenMC,
@@ -25,10 +24,7 @@ impl GenmcScalar {
2524

2625
impl Default for GenmcParams {
2726
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 }
3228
}
3329
}
3430

@@ -62,21 +58,6 @@ mod ffi {
6258
SequentiallyConsistent = 6,
6359
}
6460

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-
8061
#[derive(Debug, Clone, Copy)]
8162
struct GenmcScalar {
8263
value: u64,
@@ -141,7 +122,6 @@ mod ffi {
141122
include!("MiriInterface.hpp");
142123

143124
type MemOrdering;
144-
type RMWBinOp;
145125

146126
// Types for Scheduling queries:
147127
type ActionKind;
@@ -155,8 +135,7 @@ mod ffi {
155135

156136
type MiriGenMCShim;
157137

158-
fn createGenmcHandle(config: &GenmcParams)
159-
-> UniquePtr<MiriGenMCShim>;
138+
fn createGenmcHandle(config: &GenmcParams) -> UniquePtr<MiriGenMCShim>;
160139
fn getGlobalAllocStaticMask() -> u64;
161140

162141
fn handleExecutionStart(self: Pin<&mut MiriGenMCShim>);

0 commit comments

Comments
 (0)