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
Deploy
Releases
Container Registry
Model registry
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
pub
frama-c
Commits
313382da
Commit
313382da
authored
8 years ago
by
Julien Signoles
Committed by
Kostyantyn Vorobyov
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[typing] improve 'join' a bit (no visible effect)
parent
9fb2a830
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/typing.ml
+8
-9
8 additions, 9 deletions
src/plugins/e-acsl/typing.ml
with
8 additions
and
9 deletions
src/plugins/e-acsl/typing.ml
+
8
−
9
View file @
313382da
...
...
@@ -73,15 +73,14 @@ include Datatype.Make
(** Basic operations *)
(******************************************************************************)
let
join
ty1
ty2
=
if
Options
.
Gmp_only
.
get
()
then
Gmp
else
match
ty1
,
ty2
with
|
Other
,
Other
->
Other
|
Other
,
(
Gmp
|
C_type
_
)
|
(
Gmp
|
C_type
_
)
,
Other
->
Options
.
fatal
"[typing] join failure: integer and non integer type"
|
Gmp
,
_
|
_
,
Gmp
->
Gmp
|
C_type
i1
,
C_type
i2
->
let
join
ty1
ty2
=
match
ty1
,
ty2
with
|
Other
,
Other
->
Other
|
Other
,
(
Gmp
|
C_type
_
)
|
(
Gmp
|
C_type
_
)
,
Other
->
Options
.
fatal
"[typing] join failure: integer and non integer type"
|
Gmp
,
_
|
_
,
Gmp
->
Gmp
|
C_type
i1
,
C_type
i2
->
if
Options
.
Gmp_only
.
get
()
then
Gmp
else
let
ty
=
Cil
.
arithmeticConversion
(
TInt
(
i1
,
[]
))
(
TInt
(
i2
,
[]
))
in
match
ty
with
|
TInt
(
i
,
_
)
->
C_type
i
...
...
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