Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frama Clang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Stefan Gränitz
Frama Clang
Commits
c17ebdae
Commit
c17ebdae
authored
3 years ago
by
Stefan Gränitz
Committed by
Virgile Prevosto
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Expect new lambda codegen for existing tests/basic/lambda.cpp
parent
0655b97c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/basic/oracle/lambda.res.oracle
+16
-10
16 additions, 10 deletions
tests/basic/oracle/lambda.res.oracle
with
16 additions
and
10 deletions
tests/basic/oracle/lambda.res.oracle
+
16
−
10
View file @
c17ebdae
...
@@ -2,19 +2,24 @@
...
@@ -2,19 +2,24 @@
Now output intermediate result
Now output intermediate result
/* Generated by Frama-C */
/* Generated by Frama-C */
struct UliEUc1xRiE_ {
struct UliEUc1xRiE_ {
void (*__fc_lambda_
apply
)(struct UliEUc1xRiE_ const *, int ) ;
void (*__fc_lambda_
overload_0
)(struct UliEUc1xRiE_ const *, int ) ;
int *x ;
int *x ;
};
};
void UliEUc1xRiE__cons(struct UliEUc1xRiE_ const *__fc_closure,
void UliEUc1xRiE__init_captures(struct UliEUc1xRiE_ const *__fc_closure,
void (*__fc_func)(struct UliEUc1xRiE_ const *, int ),
int *x)
int *x)
{
{
__fc_closure->__fc_lambda_apply = __fc_func;
__fc_closure->x = x;
__fc_closure->x = x;
return;
return;
}
}
void __fc_lambda_def(struct UliEUc1xRiE_ const *__fc_closure, int y)
void UliEUc1xRiE__init_0(struct UliEUc1xRiE_ const *__fc_closure,
void (*__fc_func)(struct UliEUc1xRiE_ const *, int ))
{
__fc_closure->__fc_lambda_overload_0 = __fc_func;
return;
}
void UliEUc1xRiE__body_0(struct UliEUc1xRiE_ const *__fc_closure, int y)
{
{
*(__fc_closure->x) += y;
*(__fc_closure->x) += y;
return;
return;
...
@@ -23,11 +28,12 @@ void __fc_lambda_def(struct UliEUc1xRiE_ const *__fc_closure, int y)
...
@@ -23,11 +28,12 @@ void __fc_lambda_def(struct UliEUc1xRiE_ const *__fc_closure, int y)
int main(void)
int main(void)
{
{
struct UliEUc1xRiE_ lam;
struct UliEUc1xRiE_ lam;
struct UliEUc1xRiE_ const __fc_lam;
struct UliEUc1xRiE_ const __fc_lam
bda_tmp
;
int x = 3;
int x = 3;
UliEUc1xRiE__cons(& __fc_lam,& __fc_lambda_def,(int *)x);
UliEUc1xRiE__init_captures(& __fc_lambda_tmp,(int *)x);
lam = __fc_lam;
UliEUc1xRiE__init_0(& __fc_lambda_tmp,& UliEUc1xRiE__body_0);
(*(lam.__fc_lambda_apply))((struct UliEUc1xRiE_ const *)(& lam),1);
lam = __fc_lambda_tmp;
(*(lam.__fc_lambda_overload_0))((struct UliEUc1xRiE_ const *)(& lam),1);
return x;
return x;
}
}
...
...
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