Skip to content

cast from floatbv to fixedbv not implemented #482

Description

@polgreen

The cast from floatbv to fixedbv is not implemented. This example gives the following warning:

void main()
{
__CPROVER_floatbv[32][23] float_a;
__CPROVER_fixedbv[24][12] fixed_b;

float_a = 2.14;
fixed_b = 2.5;
float_a = (__CPROVER_floatbv[32][23])fixed_b;
__CPROVER_assert(0, "");
}

warning: ignoring typecast

  • type: floatbv
    • width: 32
    • f: 23
  • #source_location:
    • file: floatcast.c
    • line: 10

The cast the other way round, from fixedbv to floatbv, does seem to be implemented.

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