Skip to content

Commit 9ca1a0c

Browse files
committed
Minor cleanup
1 parent 88ea77d commit 9ca1a0c

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,
@@ -27,10 +26,7 @@ impl GenmcScalar {
2726

2827
impl Default for GenmcParams {
2928
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 }
3430
}
3531
}
3632

@@ -64,21 +60,6 @@ mod ffi {
6460
SequentiallyConsistent = 6,
6561
}
6662

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-
8263
#[derive(Debug, Clone, Copy)]
8364
struct GenmcScalar {
8465
value: u64,
@@ -108,7 +89,6 @@ mod ffi {
10889
include!("MiriInterface.hpp");
10990

11091
type MemOrdering;
111-
type RMWBinOp;
11292

11393
// Types for Scheduling queries:
11494
type ActionKind;
@@ -121,8 +101,7 @@ mod ffi {
121101

122102
type MiriGenMCShim;
123103

124-
fn createGenmcHandle(config: &GenmcParams)
125-
-> UniquePtr<MiriGenMCShim>;
104+
fn createGenmcHandle(config: &GenmcParams) -> UniquePtr<MiriGenMCShim>;
126105
fn getGlobalAllocStaticMask() -> u64;
127106

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

0 commit comments

Comments
 (0)