Skip to content
Snippets Groups Projects
Commit 09bdef38 authored by Julien Signoles's avatar Julien Signoles
Browse files

[E-ACSL] compatibility with recent AST's change about LReal

parent 5773603a
No related branches found
No related tags found
No related merge requests found
......@@ -76,9 +76,10 @@ let constant_to_exp ?(loc=Location.unknown) = function
| LStr s -> Cil.new_exp ?loc (Const (CStr s)), false
| LWStr s -> Cil.new_exp ?loc (Const (CWStr s)), false
| LChr c -> Cil.new_exp ?loc (Const (CChr c)), false
| LReal(f, s) ->
Options.feedback ~current:true ~once:true
"approximating a real number by a float";
| LReal((f, l, u), s) ->
if l <> u then
Options.feedback ~current:true ~once:true
"approximating a real number by a float";
Cil.new_exp ?loc (Const (CReal (f, FLongDouble, Some s))), false
| LEnum e -> Cil.new_exp ?loc (Const (CEnum e)), false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment