Skip to content

Commit

Permalink
Merge pull request #605 from viperproject/meilers_precise_quantified_…
Browse files Browse the repository at this point in the history
…fields

Ignoring function bodies as well for finding qpFields/qpPredicates
  • Loading branch information
marcoeilers authored Sep 2, 2022
2 parents 3007816 + bac5224 commit 9b7d6bc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ object QuantifiedPermissions {
case m@Method(_, _, _, pres, posts, _) if m != root =>
// use only specification of called methods
pres ++ posts
case f@Function(_, _, _, pres, posts, _) if f != root=>
// use only specification of called functions
pres ++ posts
case _ => Seq(currentRoot)
}

Expand Down Expand Up @@ -134,6 +137,9 @@ object QuantifiedPermissions {
case m@Method(_, _, _, pres, posts, _) if m != root =>
// use only specification of called methods
pres ++ posts
case f@Function(_, _, _, pres, posts, _) if f != root =>
// use only specification of called functions
pres ++ posts
case _ => Seq(currentRoot)
}

Expand Down

0 comments on commit 9b7d6bc

Please sign in to comment.