Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lustrec - public version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LustreC
Lustrec - public version
Commits
d6864a5d
Commit
d6864a5d
authored
3 years ago
by
BRUN Lelio
Browse files
Options
Downloads
Patches
Plain Diff
fix casts when using doubles
parent
07edb064
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/backends/C/c_backend_spec.ml
+2
-4
2 additions, 4 deletions
src/backends/C/c_backend_spec.ml
with
2 additions
and
4 deletions
src/backends/C/c_backend_spec.ml
+
2
−
4
View file @
d6864a5d
...
@@ -391,10 +391,8 @@ module PrintSpec = struct
...
@@ -391,10 +391,8 @@ module PrintSpec = struct
let
pp
=
pp_c_val
~
indirect
:
false
m
mem
(
pp_c_var_read
~
test_output
m
)
in
let
pp
=
pp_c_val
~
indirect
:
false
m
mem
(
pp_c_var_read
~
test_output
m
)
in
(
if
not_var
v
then
(
if
not_var
v
then
if
Types
.
is_bool_type
v
.
value_type
then
pp_bool_cast
pp
if
Types
.
is_bool_type
v
.
value_type
then
pp_bool_cast
pp
else
if
is_const
v
then
else
if
Types
.
is_real_type
v
.
value_type
then
pp_double_cast
pp
if
Types
.
is_real_type
v
.
value_type
then
pp_double_cast
pp
else
if
is_const
v
&&
Types
.
is_int_type
v
.
value_type
then
pp_int_cast
pp
else
if
Types
.
is_int_type
v
.
value_type
then
pp_int_cast
pp
else
pp
else
pp
else
pp
else
pp
)
else
pp
)
fmt
fmt
...
...
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