Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charles Southerland
frama-c
Commits
e20c54bf
Commit
e20c54bf
authored
5 years ago
by
Julien Signoles
Browse files
Options
Downloads
Patches
Plain Diff
[translate] compile
parent
60887910
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/e-acsl/translate.ml
+4
-2
4 additions, 2 deletions
src/plugins/e-acsl/translate.ml
with
4 additions
and
2 deletions
src/plugins/e-acsl/translate.ml
+
4
−
2
View file @
e20c54bf
...
...
@@ -112,11 +112,13 @@ let add_cast ~loc ?name env ctx strnum t_opt e =
e
else
if
not
(
Cil
.
isIntegralType
ty
)
&&
strnum
=
C_number
then
Cil
.
mkCast
e
Cil
.
longType
(* \null *)
else
else
begin
(* TODO RATIONAL: this case seems to be possible:
getting a very long rational constants (so a string) to be casted
to an integer *)
assert
(
not
(
Cil
.
isIntegralType
ty
)
&&
sty
=
Str_R
)
assert
(
not
(
Cil
.
isIntegralType
ty
)
&&
strnum
=
Str_R
);
assert
false
end
in
mk_mpz
e
else
if
Real
.
is_t
ctx
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment