-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump Clap version. Ghost to Snapshot in Scratch and NewDB
- Loading branch information
Showing
8 changed files
with
219 additions
and
60 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ impl ClauseManager { | |
//#[requires([email protected]() + (@lits).len() + @HEADER_LEN <= @u32::MAX)] // TODO: May have to move this to a runtime check | ||
#[requires(clause_invariant_seq(lits@, self.clause_allocator.num_vars@))] | ||
pub(crate) fn learn_clause(&mut self, lits: &[Lit]) -> CRef { | ||
let old_self: Ghost<&mut ClauseManager> = ghost!(self); | ||
let old_self: Snapshot<&mut ClauseManager> = snapshot!(self); | ||
proof_assert!(self.learnt_core.are_implied_by(self.original_clauses, self.clause_allocator)); | ||
let cref = self.clause_allocator.add_clause(lits); | ||
proof_assert!(^*old_self == ^self); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ authors = ["Sarek Høverstad Skotåm <[email protected]>"] | |
edition = "2021" | ||
|
||
[dependencies] | ||
clap = "2.33.3" | ||
clap = "4.5.4" | ||
creusot-contracts = { git = "https://github.com/xldenis/creusot", version = "^0", rev = "1357cc97" } | ||
|
||
# This is just copied verbatim from CreuSAT. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.