epfl-lara / stainless

Verification framework and tool for higher-order Scala programs
https://epfl-lara.github.io/stainless/
Apache License 2.0
349 stars 50 forks source link

Applying some type widening in `ReturnElimination` to avoid triggering `AdtSpecialization` #1466

Closed mario-bucev closed 9 months ago

mario-bucev commented 9 months ago

For instance, the provided tests in RefnChecksWithReturn.scala would unexpectedly generate "refinement checks for subtyping" which may result in being invalid due to #1463.