forall comprehension over bounded newtype
#5897
Labels
area: performance
Performance issues
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
part: code-generation
Support for transpiling Dafny to another language. If relevant, add a `lang:` tag
Dafny version
4.8.0
Code to produce this issue
Command to run and resulting output
What happened?
The translated Java looks like this
As you can see this creates a huge range. This code can't even run its so big.
Additionally, if you are trying to use bounded numbers for performance,
that is to avoid
BigInteger
, even theIntegerRange
for this type is sub-optimal.What type of operating system are you experiencing the problem on?
Linux, Mac
The text was updated successfully, but these errors were encountered: