Skip to content

Commit

Permalink
feat(stn): add relevance based theory propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimo committed Nov 19, 2024
1 parent eb11bc7 commit f419d15
Show file tree
Hide file tree
Showing 5 changed files with 762 additions and 895 deletions.
5 changes: 5 additions & 0 deletions solver/src/backtrack/trail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ impl<Event> Trail<Event> {
&self.trail[u32::from(index) as usize]
}

/// Returns the Id of the next event to be inserted in the trail
pub fn next_event(&self) -> EventIndex {
EventIndex::new(self.trail.len())
}

/// Removes and returns the last event within the last saved state.
///
/// # Panic
Expand Down
Loading

0 comments on commit f419d15

Please sign in to comment.