Skip to content

conversion fixed-point <-> floating-point numbers missing #2158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kroening opened this issue May 7, 2018 · 5 comments
Open

conversion fixed-point <-> floating-point numbers missing #2158

kroening opened this issue May 7, 2018 · 5 comments

Comments

@kroening
Copy link
Member

kroening commented May 7, 2018

Conversions from fixed-point numbers to floating-point numbers and the other direction aren't implemented in any of the solver backends

@polgreen
Copy link
Contributor

This is the same as the issue I filed in January 2017:
#482

@polgreen
Copy link
Contributor

Related: casts between different lengths of fixed point bit vectors are broken in goto-cc.
#2177

@polgreen
Copy link
Contributor

Closed the duplicate issue. The test case for this, in the duplicate issue was:

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

@martin-cs
Copy link
Collaborator

I have the code for this in SymFPU. I can try to schedule some time to get this done but it is unlikely to be this month due to deadlines. Is that a problem?

@polgreen
Copy link
Contributor

polgreen commented Aug 3, 2018

Nope, no hard deadline, I was just tidying my issue list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants