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
1fa9dbe4
Commit
1fa9dbe4
authored
11 months ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[tests] simpler test for builtin labels
parent
c107d973
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/syntax/clabels_builtin_labels.c
+19
-24
19 additions, 24 deletions
tests/syntax/clabels_builtin_labels.c
tests/syntax/oracle/clabels_builtin_labels.res.oracle
+36
-172
36 additions, 172 deletions
tests/syntax/oracle/clabels_builtin_labels.res.oracle
with
55 additions
and
196 deletions
tests/syntax/clabels_builtin_labels.c
+
19
−
24
View file @
1fa9dbe4
int
x
;
void
named
(
void
){
void
named
_1
(
void
){
x
=
4
;
Init:
Pre:
Old:
Post:
Here:
LoopCurrent:
LoopEntry:
A:
;
x
=
5
;
...
...
@@ -10,27 +10,22 @@ Z: T: ;
x
=
7
;
}
void
post_over_old_1
(
void
){
Old
:
Post
:
;}
void
post_over_old_2
(
void
){
Post
:
Old
:
;}
void
post_over_loop_1
(
void
){
LoopEntry
:
Post
:
;}
void
post_over_loop_2
(
void
){
Post
:
LoopCurrent
:
;}
void
post_over_other_1
(
void
){
Here
:
Post
:
;}
void
post_over_other_2
(
void
){
Post
:
Pre
:
;}
void
post_over_other_3
(
void
){
Init
:
Post
:
Pre
:
;}
void
old_over_loop_1
(
void
){
LoopEntry
:
Old
:
;}
void
old_over_loop_2
(
void
){
Old
:
LoopCurrent
:
;}
void
old_over_other_1
(
void
){
Here
:
Old
:
;}
void
old_over_other_2
(
void
){
Old
:
Pre
:
;}
void
old_over_other_3
(
void
){
Init
:
Old
:
Pre
:
;}
void
loop_over_other_1
(
void
){
Here
:
LoopEntry
:
;}
void
loop_over_other_2
(
void
){
LoopCurrent
:
Pre
:
;}
void
loop_over_other_3
(
void
){
Init
:
LoopEntry
:
Pre
:
;}
void
named_2
(
void
){
x
=
4
;
A:
Init:
Pre:
Old:
Post:
Here:
LoopCurrent:
LoopEntry:
;
x
=
5
;
X:
Y:
;
x
=
6
;
Z:
T:
;
x
=
7
;
}
void
arbitray_other_1
(
void
){
Here
:
Init
:
;}
void
arbitray_other_2
(
void
){
Init
:
Pre
:
;}
void
arbitray_other_3
(
void
){
Pre
:
Here
:
Init
:
;}
void
named_3
(
void
){
x
=
4
;
Init:
Pre:
Old:
Post:
A:
Here:
LoopCurrent:
LoopEntry:
;
x
=
5
;
X:
Y:
;
x
=
6
;
Z:
T:
;
x
=
7
;
}
This diff is collapsed.
Click to expand it.
tests/syntax/oracle/clabels_builtin_labels.res.oracle
+
36
−
172
View file @
1fa9dbe4
...
...
@@ -13,89 +13,37 @@
LoopCurrent is a builtin ACSL label, this C label is hidden in loop annotations
[kernel] clabels_builtin_labels.c:5: Warning:
LoopEntry is a builtin ACSL label, this C label is hidden in loop annotations
[kernel] clabels_builtin_labels.c:13: Warning:
Old is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:13: Warning:
Post is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:14: Warning:
Post is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:14: Warning:
Old is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:16: Warning:
LoopEntry is a builtin ACSL label, this C label is hidden in loop annotations
[kernel] clabels_builtin_labels.c:16: Warning:
Post is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:17: Warning:
Post is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:17: Warning:
LoopCurrent is a builtin ACSL label, this C label is hidden in loop annotations
[kernel] clabels_builtin_labels.c:19: Warning:
Here is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:19: Warning:
Post is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:20: Warning:
Post is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:20: Warning:
Pre is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:21: Warning:
[kernel] clabels_builtin_labels.c:15: Warning:
Init is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:21: Warning:
Post is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:21: Warning:
[kernel] clabels_builtin_labels.c:15: Warning:
Pre is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:23: Warning:
LoopEntry is a builtin ACSL label, this C label is hidden in loop annotations
[kernel] clabels_builtin_labels.c:23: Warning:
Old is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:24: Warning:
[kernel] clabels_builtin_labels.c:15: Warning:
Old is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:24: Warning:
LoopCurrent is a builtin ACSL label, this C label is hidden in loop annotations
[kernel] clabels_builtin_labels.c:26: Warning:
Here is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:26: Warning:
Old is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:27: Warning:
Old is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:27: Warning:
Pre is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:28: Warning:
Init is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:28: Warning:
Old is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:28: Warning:
Pre is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:30: Warning:
[kernel] clabels_builtin_labels.c:15: Warning:
Post is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:15: Warning:
Here is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:30: Warning:
LoopEntry is a builtin ACSL label, this C label is hidden in loop annotations
[kernel] clabels_builtin_labels.c:31: Warning:
[kernel] clabels_builtin_labels.c:15: Warning:
LoopCurrent is a builtin ACSL label, this C label is hidden in loop annotations
[kernel] clabels_builtin_labels.c:31: Warning:
Pre is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:32: Warning:
Init is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:32: Warning:
[kernel] clabels_builtin_labels.c:15: Warning:
LoopEntry is a builtin ACSL label, this C label is hidden in loop annotations
[kernel] clabels_builtin_labels.c:32: Warning:
Pre is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:34: Warning:
Here is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:34: Warning:
[kernel] clabels_builtin_labels.c:25: Warning:
Init is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:35: Warning:
Init is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:35: Warning:
Pre is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:36: Warning:
[kernel] clabels_builtin_labels.c:25: Warning:
Pre is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:36: Warning:
[kernel] clabels_builtin_labels.c:25: Warning:
Old is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:25: Warning:
Post is a builtin ACSL label, this C label is hidden in contracts
[kernel] clabels_builtin_labels.c:25: Warning:
Here is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:36: Warning:
Init is a builtin ACSL label, this C label is hidden in annotations
[kernel] clabels_builtin_labels.c:25: Warning:
LoopCurrent is a builtin ACSL label, this C label is hidden in loop annotations
[kernel] clabels_builtin_labels.c:25: Warning:
LoopEntry is a builtin ACSL label, this C label is hidden in loop annotations
/* Generated by Frama-C */
int x;
void named(void)
void named
_1
(void)
{
x = 4;
A: ;
...
...
@@ -107,111 +55,27 @@ void named(void)
return;
}
void post_over_old_1(void)
{
__fc_user_label_Old: ;
return;
}
void post_over_old_2(void)
{
__fc_user_label_Post: ;
return;
}
void post_over_loop_1(void)
{
__fc_user_label_LoopEntry: ;
return;
}
void post_over_loop_2(void)
{
__fc_user_label_Post: ;
return;
}
void post_over_other_1(void)
{
__fc_user_label_Here: ;
return;
}
void post_over_other_2(void)
{
__fc_user_label_Post: ;
return;
}
void post_over_other_3(void)
{
__fc_user_label_Init: ;
return;
}
void old_over_loop_1(void)
{
__fc_user_label_LoopEntry: ;
return;
}
void old_over_loop_2(void)
{
__fc_user_label_Old: ;
return;
}
void old_over_other_1(void)
void named_2(void)
{
__fc_user_label_Here: ;
return;
}
void old_over_other_2(void)
{
__fc_user_label_Old: ;
return;
}
void old_over_other_3(void)
{
__fc_user_label_Init: ;
return;
}
void loop_over_other_1(void)
{
__fc_user_label_Here: ;
return;
}
void loop_over_other_2(void)
{
__fc_user_label_LoopCurrent: ;
return;
}
void loop_over_other_3(void)
{
__fc_user_label_Init: ;
return;
}
void arbitray_other_1(void)
{
__fc_user_label_Here: ;
return;
}
void arbitray_other_2(void)
{
__fc_user_label_Init: ;
x = 4;
A: ;
x = 5;
X: ;
x = 6;
Z: ;
x = 7;
return;
}
void
arbitray_other
_3(void)
void
named
_3(void)
{
__fc_user_label_Pre: ;
x = 4;
A: ;
x = 5;
X: ;
x = 6;
Z: ;
x = 7;
return;
}
...
...
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