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
9dbd1fbf
Commit
9dbd1fbf
authored
5 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[tests] update test for
#840
and set oracle
parent
4b7ec708
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/slicing/function_lvar.i
+1
-1
1 addition, 1 deletion
tests/slicing/function_lvar.i
tests/slicing/oracle/function_lvar.res.oracle
+57
-0
57 additions, 0 deletions
tests/slicing/oracle/function_lvar.res.oracle
with
58 additions
and
1 deletion
tests/slicing/function_lvar.i
+
1
−
1
View file @
9dbd1fbf
/* run.config*
/* run.config*
OPT: -slice-pragma main
OPT: -slice-pragma main
-then-last -print
*/
*/
int
g
(
int
x
)
{ return x; }
int
g
(
int
x
)
{ return x; }
...
...
This diff is collapsed.
Click to expand it.
tests/slicing/oracle/function_lvar.res.oracle
0 → 100644
+
57
−
0
View file @
9dbd1fbf
[kernel] Parsing tests/slicing/function_lvar.i (no preprocessing)
[slicing] slicing requests in progress...
[eva] Analyzing a complete application starting at main
[eva] Computing initial state
[eva] Initial state computed
[eva:initial-state] Values of globals at initialization
[eva] done for function main
[eva:summary] ====== ANALYSIS SUMMARY ======
----------------------------------------------------------------------------
2 functions analyzed (out of 2): 100% coverage.
In these functions, 5 statements reached (out of 5): 100% coverage.
----------------------------------------------------------------------------
No errors or warnings raised during the analysis.
----------------------------------------------------------------------------
0 alarms generated by the analysis.
----------------------------------------------------------------------------
Evaluation of the logical properties reached by the analysis:
Assertions 1 valid 0 unknown 0 invalid 1 total
Preconditions 0 valid 0 unknown 0 invalid 0 total
100% of the logical properties reached have been proven.
----------------------------------------------------------------------------
[slicing] initializing slicing ...
[slicing] interpreting slicing requests from the command line...
[pdg] computing for function main
[from] Computing for function g
[from] Done for function g
[pdg] done for function main
[slicing] applying all slicing requests...
[slicing] applying 0 actions...
[slicing] applying all slicing requests...
[slicing] applying 1 actions...
[slicing] applying actions: 1/1...
[pdg] computing for function g
[pdg] done for function g
[slicing] exporting project to 'Slicing export'...
[slicing] applying all slicing requests...
[slicing] applying 0 actions...
[sparecode] remove unused global declarations from project 'Slicing export tmp'
[sparecode] removed unused global declarations in new project 'Slicing export'
/* Generated by Frama-C */
int g(int x);
void g_slice_1(void)
{
return;
}
void main(void)
{
/*@ assert &g ≡ &g; */ ;
/*@ slice pragma stmt; */
g_slice_1();
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