We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1670345 commit fb7d09eCopy full SHA for fb7d09e
prusti-interface/src/specs/typed.rs
@@ -247,7 +247,16 @@ impl SpecGraph<ProcedureSpecification> {
247
) -> &mut ProcedureSpecification {
248
self.specs_with_constraints
249
.entry(constraint)
250
- .or_insert_with(|| self.base_spec.clone())
+ .or_insert_with(|| {
251
+ let mut base = self.base_spec.clone();
252
+
253
+ // Preconditions of the base spec do not appear in the constrained spec
254
+ // Any preconditions that exist on the base spec are thus pruned
255
+ // (see comment on impl block)
256
+ base.pres = SpecificationItem::Empty;
257
258
+ base
259
+ })
260
}
261
262
/// Gets the constraint of a spec function `spec`.
0 commit comments