Skip to content

Commit

Permalink
Fix rebase mess
Browse files Browse the repository at this point in the history
Signed-off-by: Enrico Ghiorzi <[email protected]>
  • Loading branch information
EnricoGhiorzi committed Nov 18, 2024
1 parent df3b608 commit 2d05f14
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 12 additions & 0 deletions scan_core/src/pmtl/numset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ impl NumSet {
}
}

pub fn from_range(lower_bound: DenseTime, upper_bound: DenseTime) -> Self {
if lower_bound < upper_bound {
if lower_bound == (0, 0) {
Self(vec![(upper_bound, true)])
} else {
Self(vec![(lower_bound, false), (upper_bound, true)])
}
} else {
Self::new()
}
}

#[inline(always)]
pub fn bounds(&self) -> &[(DenseTime, bool)] {
&self.0
Expand Down
12 changes: 10 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
use std::{
path::PathBuf,
sync::{
atomic::{AtomicU32, Ordering},
Arc,
},
};

use crate::PrintTrace;
use clap::Parser;
use indicatif::{ProgressBar, ProgressStyle};
use scan::*;
use crate::PrintTrace;
use scan_fmt_xml::scan_core::*;

/// A statistical model checker for large concurrent systems
#[derive(Parser)]
Expand Down

0 comments on commit 2d05f14

Please sign in to comment.