Skip to content

Commit

Permalink
Addressing code review leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusAdam committed Dec 14, 2023
1 parent 34e3a1b commit f283759
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cprover_bindings/src/goto_program/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ impl Symbol {
self
}

/// Set `is_property` to true.
/// Set `is_property`.
pub fn with_is_property(mut self, v: bool) -> Self {
self.is_property = v;
self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ impl<'tcx> GotocCtx<'tcx> {
pub fn attach_contract(&mut self, instance: Instance<'tcx>, contract: Vec<Local>) {
// This should be safe, since the contract is pretty much evaluated as
// though it was the first (or last) assertion in the function.
assert!(self.current_fn.is_none());
self.set_current_fn(instance);
let goto_contract = self.as_goto_contract(contract);
let name = self.current_fn().name();
Expand Down

0 comments on commit f283759

Please sign in to comment.