Skip to content

-infinity mistakenly listed twice in FloatingPoint theory description #49

Description

@RyanGlScott

The descriptions for fp.to_real, fp.to_ubv, and fp.to_sbv all describe what argument values for which they return unspecified values. However, all of their descriptions mistakenly list -infinity twice:

[[fp.to_real]](x) is the real number represented by x if x is not in
{-infinity, -infinity, not_a_number}. Otherwise, it is unspecified.

[[(_ fp.to_ubv m)]](r, x) is unspecified in all other cases (including when
x is in {-infinity, -infinity, not_a_number}).

[[(_ fp.to_sbv m)]](r, x) is unspecified in all other cases (including when
x is in {-infinity, -infinity, not_a_number}).

I think the intention here is to list both positive and negative infinity (i.e., +infinity, -infinity), like the description for to_fp does:

[[(_ to_fp eb sb)]](r, x) = x if x in {+infinity, -infinity, not_a_number}.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions