Skip to content

Commit

Permalink
Remove unused variable and fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jad-hamza committed May 11, 2021
1 parent cb93795 commit 108cfef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/inox/ast/SymbolOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -911,12 +911,11 @@ trait SymbolOps { self: TypeOps =>
if ((params.map(_.tpe) :+ to).forall(tp => hasInstance(tp, seen) contains true)) Some(true) else None
case adt: ADTType =>
val sort = adt.getSort
val cons = sort.constructors.sortBy(_.fields.size).head
if (seen(adt)) None
else if (sort.hasInvariant) None
else if (!sort.definition.isWellFormed) Some(false)
else if (sort.constructors.sortBy(_.fields.size).exists(cons =>
cons.fields.forall(vd => hasInstance(vd.tpe, seen + adt) contains true)))
cons.fields.forall(vd => hasInstance(vd.tpe, seen + adt) contains true)))
Some(true)
else None
case _: RefinementType => None
Expand Down

0 comments on commit 108cfef

Please sign in to comment.