@@ -25,7 +25,7 @@ trait FunctionRecorder extends Mergeable[FunctionRecorder] {
2525 def fappToSnap : Map [ast.FuncApp , Term ]
2626 def freshFvfsAndDomains : InsertionOrderedSet [SnapshotMapDefinition ]
2727 def freshFieldInvs : InsertionOrderedSet [InverseFunctions ]
28- def freshArps : InsertionOrderedSet [(Var , Term )]
28+ def freshConstrainedVars : InsertionOrderedSet [(Var , Term )]
2929 def freshConstraints : InsertionOrderedSet [Term ]
3030 def freshSnapshots : InsertionOrderedSet [Function ]
3131 def freshPathSymbols : InsertionOrderedSet [Function ]
@@ -34,7 +34,7 @@ trait FunctionRecorder extends Mergeable[FunctionRecorder] {
3434 def recordSnapshot (fapp : ast.FuncApp , guards : Stack [Term ], snap : Term ): FunctionRecorder
3535 def recordFvfAndDomain (fvfDef : SnapshotMapDefinition ): FunctionRecorder
3636 def recordFieldInv (inv : InverseFunctions ): FunctionRecorder
37- def recordArp ( arp : Var , constraint : Term ): FunctionRecorder
37+ def recordConstrainedVar ( v : Var , constraint : Term ): FunctionRecorder
3838 def recordConstraint (constraint : Term ): FunctionRecorder
3939 def recordFreshSnapshot (snap : Function ): FunctionRecorder
4040 def recordPathSymbol (symbol : Function ): FunctionRecorder
@@ -48,7 +48,7 @@ case class ActualFunctionRecorder(private val _data: FunctionData,
4848 private [functions] val fappToSnaps : Map [ast.FuncApp , InsertionOrderedSet [(Stack [Term ], Term )]] = Map (),
4949 freshFvfsAndDomains : InsertionOrderedSet [SnapshotMapDefinition ] = InsertionOrderedSet (),
5050 freshFieldInvs : InsertionOrderedSet [InverseFunctions ] = InsertionOrderedSet (),
51- freshArps : InsertionOrderedSet [(Var , Term )] = InsertionOrderedSet (),
51+ freshConstrainedVars : InsertionOrderedSet [(Var , Term )] = InsertionOrderedSet (),
5252 freshConstraints : InsertionOrderedSet [Term ] = InsertionOrderedSet (),
5353 freshSnapshots : InsertionOrderedSet [Function ] = InsertionOrderedSet (),
5454 freshPathSymbols : InsertionOrderedSet [Function ] = InsertionOrderedSet (),
@@ -189,8 +189,8 @@ case class ActualFunctionRecorder(private val _data: FunctionData,
189189 if (depth <= 2 ) copy(freshFieldInvs = freshFieldInvs + inv)
190190 else this
191191
192- def recordArp (arp : Var , constraint : Term ): ActualFunctionRecorder =
193- if (depth <= 2 ) copy(freshArps = freshArps + ((arp, constraint)))
192+ def recordConstrainedVar (arp : Var , constraint : Term ): ActualFunctionRecorder =
193+ if (depth <= 2 ) copy(freshConstrainedVars = freshConstrainedVars + ((arp, constraint)))
194194 else this
195195
196196 def recordConstraint (constraint : Term ): ActualFunctionRecorder =
@@ -237,7 +237,7 @@ case class ActualFunctionRecorder(private val _data: FunctionData,
237237
238238 val fvfs = freshFvfsAndDomains ++ other.freshFvfsAndDomains
239239 val fieldInvs = freshFieldInvs ++ other.freshFieldInvs
240- val arps = freshArps ++ other.freshArps
240+ val arps = freshConstrainedVars ++ other.freshConstrainedVars
241241 val constraints = freshConstraints ++ other.freshConstraints
242242 val snaps = freshSnapshots ++ other.freshSnapshots
243243 val symbols = freshPathSymbols ++ other.freshPathSymbols
@@ -247,7 +247,7 @@ case class ActualFunctionRecorder(private val _data: FunctionData,
247247 fappToSnaps = fts,
248248 freshFvfsAndDomains = fvfs,
249249 freshFieldInvs = fieldInvs,
250- freshArps = arps,
250+ freshConstrainedVars = arps,
251251 freshConstraints = constraints,
252252 freshSnapshots = snaps,
253253 freshPathSymbols = symbols,
@@ -277,7 +277,7 @@ case object NoopFunctionRecorder extends FunctionRecorder {
277277 val locToSnap : Map [ast.LocationAccess , Term ] = Map .empty
278278 val freshFvfsAndDomains : InsertionOrderedSet [SnapshotMapDefinition ] = InsertionOrderedSet .empty
279279 val freshFieldInvs : InsertionOrderedSet [InverseFunctions ] = InsertionOrderedSet .empty
280- val freshArps : InsertionOrderedSet [(Var , Term )] = InsertionOrderedSet .empty
280+ val freshConstrainedVars : InsertionOrderedSet [(Var , Term )] = InsertionOrderedSet .empty
281281 val freshConstraints : InsertionOrderedSet [Term ] = InsertionOrderedSet .empty
282282 val freshSnapshots : InsertionOrderedSet [Function ] = InsertionOrderedSet .empty
283283 val freshPathSymbols : InsertionOrderedSet [Function ] = InsertionOrderedSet .empty
@@ -294,7 +294,7 @@ case object NoopFunctionRecorder extends FunctionRecorder {
294294 def recordFvfAndDomain (fvfDef : SnapshotMapDefinition ): NoopFunctionRecorder .type = this
295295 def recordFieldInv (inv : InverseFunctions ): NoopFunctionRecorder .type = this
296296 def recordSnapshot (fapp : ast.FuncApp , guards : Stack [Term ], snap : Term ): NoopFunctionRecorder .type = this
297- def recordArp (arp : Var , constraint : Term ): NoopFunctionRecorder .type = this
297+ def recordConstrainedVar (arp : Var , constraint : Term ): NoopFunctionRecorder .type = this
298298 def recordConstraint (constraint : Term ): NoopFunctionRecorder .type = this
299299 def recordFreshSnapshot (snap : Function ): NoopFunctionRecorder .type = this
300300 def recordPathSymbol (symbol : Function ): NoopFunctionRecorder .type = this
0 commit comments