Skip to content

Commit

Permalink
option to disable additional ADT/heap arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
pruemmer committed Oct 29, 2021
1 parent d8397a0 commit 0f2557b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/lazabs/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class GlobalParameters extends Cloneable {
CCReader.ArithmeticMode.Mathematical
var arrayRemoval = false
var arrayQuantification : Option[Int] = None
var expandADTArguments = true
var princess = false
var staticAccelerate = false
var dynamicAccelerate = false
Expand Down Expand Up @@ -189,6 +190,7 @@ class GlobalParameters extends Cloneable {
that.finiteDomainPredBound = this.finiteDomainPredBound
that.arithmeticMode = this.arithmeticMode
that.arrayRemoval = this.arrayRemoval
that.expandADTArguments = this.expandADTArguments
that.princess = this.princess
that.staticAccelerate = this.staticAccelerate
that.dynamicAccelerate = this.dynamicAccelerate
Expand Down
9 changes: 6 additions & 3 deletions src/lazabs/horn/preprocessor/DefaultPreprocessor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ class DefaultPreprocessor extends HornPreprocessor {
new ClauseInliner)

def extendingStages : List[HornPreprocessor] =
List(new HeapSizeArgumentExtender,
new SizeArgumentExtender,
new CtorTypeExtender)
if (GlobalParameters.get.expandADTArguments)
List(new HeapSizeArgumentExtender,
new SizeArgumentExtender,
new CtorTypeExtender)
else
List()

def postStages : List[HornPreprocessor] =
List(new ClauseShortener) ++
Expand Down

0 comments on commit 0f2557b

Please sign in to comment.