Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/scala/viper/silver/utility/Caching.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ trait DependencyAware {
*
* This method is imprecise, but practical. Here's a list of known imprecisions:
* - axioms are considered as global dependencies (even if they don't influence the method);
* - functions are considered as global dependencies (even if they don't influence the method);
* - fields are considered as global dependencies (even if they don't influence the method);
* - concrete predicates used abstractly (w/o unfolding) bring transitive dependencies via their body.
*
Expand All @@ -73,7 +74,7 @@ trait DependencyAware {
def getDependencies(p: Program, m: Method): List[Hashable] = {
val marker: mutable.Set[Hashable] = mutable.Set.empty
markSubAST(m, marker)
Seq(m) ++ p.domains ++ p.fields ++
Seq(m) ++ p.domains ++ p.functions ++ p.fields ++
(m.pres ++ m.posts ++ m.body.toSeq).flatMap {
n => n.deepCollect {
case method_call: MethodCall =>
Expand Down