Skip to content

Commit

Permalink
Ugly commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
vakaras committed Mar 13, 2023
1 parent cd890b7 commit f2b1764
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use vir_crate::{

use super::PredicateState;

#[derive(Clone)]
#[derive(Clone, Debug)]
pub(in super::super::super) struct FoldUnfoldState {
/// If this state is a merge of multiple incoming states, then
/// `incoming_labels` contains the list of basic blocks from where the
Expand Down
2 changes: 0 additions & 2 deletions prusti-viper/src/encoder/high/procedures/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ impl<'v, 'tcx: 'v> HighProcedureEncoderInterface<'tcx> for super::super::super::
) -> SpannedEncodingResult<Vec<vir_mid::ProcedureDecl>> {
let mut procedures = Vec::new();
for procedure_high in self.encode_procedure_core_proof_high(proc_def_id, check_mode)? {
debug!("procedure_high:\n{}", procedure_high);
let procedure_typed = self.procedure_high_to_typed(procedure_high)?;
debug!("procedure_typed:\n{}", procedure_typed);
let procedure =
super::inference::infer_shape_operations(self, proc_def_id, procedure_typed)?;
procedures.push(procedure);
Expand Down
6 changes: 3 additions & 3 deletions prusti-viper/src/encoder/mir/specifications/specs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,27 +102,27 @@ impl<'tcx> Specifications<'tcx> {
self.user_typed_specs.get_ghost_end(def_id)
}

#[tracing::instrument(level = "trace", skip(self))]
pub(super) fn get_specification_region_begin(
&self,
def_id: &DefId,
) -> Option<&SpecificationRegionBegin> {
trace!("Get begin specification region specs of {:?}", def_id);
self.user_typed_specs.get_specification_region_begin(def_id)
}

#[tracing::instrument(level = "trace", skip(self))]
pub(super) fn get_specification_region_end(
&self,
def_id: &DefId,
) -> Option<&SpecificationRegionEnd> {
trace!("Get end specification region specs of {:?}", def_id);
self.user_typed_specs.get_specification_region_end(def_id)
}

#[tracing::instrument(level = "trace", skip(self))]
pub(super) fn get_specification_expression(
&self,
def_id: &DefId,
) -> Option<&SpecificationExpression> {
trace!("Get specification expression specs of {:?}", def_id);
self.user_typed_specs.get_specification_expression(def_id)
}

Expand Down

0 comments on commit f2b1764

Please sign in to comment.