Skip to content

Typecast from double to __CPROVER_fixedbv not implemented #435

Closed
@polgreen

Description

@polgreen

Small example and accompanying warning message:

smallexample.c:
int main(){
__CPROVER_fixedbv[24][12] A;
A = 0.7;
assert(0);
return 0;
}

warning: ignoring typecast

  • type: fixedbv
    • width: 24
    • integer_bits: 12
      0: constant
    • type: floatbv
      • width: 64
      • f: 52
      • #c_type: double
    • value: 0011111111100110011001100110011001100110011001100110011001100110
    • #source_location:
      • file: smalltest.c
      • line: 4
      • function: main

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