Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/main/scala/rules/QuantifiedChunkSupport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ object quantifiedChunkSupporter extends QuantifiedChunkSupport {
arguments.flatMap {
case SeqAt(seq, _) => Some(seq)
case MapLookup(map, _) => Some(map)
// TODO: Add a case for (domain or heap-dep.) function applications, i.e. fun(_)
case App(f, _) => Some(AppHint(f))
case _ => None
}

Expand Down
7 changes: 7 additions & 0 deletions src/main/scala/state/Terms.scala
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,13 @@ object App extends ((Applicable, Seq[Term]) => App) {
def unapply(app: App) = Some((app.applicable, app.args))
}

/*
* Applicable without arguments, only to be used as a hint for quantified chunks.
*/
case class AppHint(applicable: Applicable) extends Term {
val sort = applicable.resultSort
}

/*
* Terms
*/
Expand Down