Skip to content

:check for float types never produces subnormal numbers #1052

@brianhuffman

Description

@brianhuffman

Even with a very large number of tests (like a million) we never come across any examples where the exponent is all 0 bits, except for 0.0.

Cryptol> :m Float
Loading module Cryptol
Loading module Float
Float> :set tests=1000000
Float> :check \x -> take`{6} (drop`{1} (fpToBits`{6,10} x)) != 0 \/ x == 0
Using random testing.
Passed 1000000 tests.

Note that this can't be tested with :exhaust, due to #1051.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions