Skip to content

Commit

Permalink
Merge pull request #138 from jad-hamza/fix-109
Browse files Browse the repository at this point in the history
Attempt fix for #109 (@samarion)
  • Loading branch information
samarion authored Apr 22, 2021
2 parents 18f40f6 + 232997b commit 0157b1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/scala/inox/ast/SymbolOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,10 @@ trait SymbolOps { self: TypeOps =>
// @nv: we make sure NOT to normalize choose ids as we may need to
// report models for unnormalized chooses!
case c: Choose =>
replaceFromSymbols(variablesOf(c).map(v => v -> transformVar(v)).toMap, c)
replaceFromSymbols(variablesOf(c).map(v => v -> {
if (vars(v) || locals(v)) transformVar(v)
else getVariable(v, v.getType)
}).toMap, c)

// Make sure we don't lift applications to applications when they have basic shapes
case Application(liftable(_), args) if args.forall(liftable.unapply(_).isEmpty) =>
Expand Down

0 comments on commit 0157b1b

Please sign in to comment.