Skip to content
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

"<unrecognized format>" error for "%lf" in the interpreter's emulation of printf #143

Closed
zhendongsu opened this issue Sep 22, 2016 · 2 comments

Comments

@zhendongsu
Copy link

zhendongsu commented Sep 22, 2016

$ ccomp -version
The CompCert C verified compiler, version 2.7.1 (commit ccb110f)
$ 
$ ccomp test.c
$ ./a.out
1.000000
$ 
$ ccomp -interp test.c
<unrecognized format>
Time 14: observable event:
                        extcall printf(& __stringlit_1, 1.) -> 22
Time 19: program terminated (exit code = 0)
$ 
$ cat test.c
int printf (const char *, ...); 

int main ()
{
  double a = 1.0; 
  printf ("%lf\n", a); 
  return 0;
}
$ 
@zhendongsu
Copy link
Author

Or perhaps this behavior was by design, which started with CompCert version 2.2, but not earlier? Thanks.

@bschommer
Copy link
Member

Fixed by commit 60402c5

Lionel-Rieg pushed a commit to Lionel-Rieg/CompCert that referenced this issue Apr 21, 2020
Lionel-Rieg pushed a commit to Lionel-Rieg/CompCert that referenced this issue Apr 21, 2020
Lionel-Rieg pushed a commit to Lionel-Rieg/CompCert that referenced this issue Apr 21, 2020
Lionel-Rieg pushed a commit to Lionel-Rieg/CompCert that referenced this issue Apr 21, 2020
Lionel-Rieg pushed a commit to Lionel-Rieg/CompCert that referenced this issue Apr 21, 2020
Lionel-Rieg pushed a commit to Lionel-Rieg/CompCert that referenced this issue Apr 21, 2020
Lionel-Rieg pushed a commit to Lionel-Rieg/CompCert that referenced this issue Apr 21, 2020
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

2 participants