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
f094d58c
Commit
f094d58c
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[kernel] simplify is_main / is_entry_point
parent
a0ef62ee
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/kernel_services/ast_data/kernel_function.ml
+2
-4
2 additions, 4 deletions
src/kernel_services/ast_data/kernel_function.ml
with
2 additions
and
4 deletions
src/kernel_services/ast_data/kernel_function.ml
+
2
−
4
View file @
f094d58c
...
...
@@ -578,12 +578,10 @@ let is_return_stmt kf stmt =
false
let
is_entry_point
kf
=
let
main
,
_
=
Globals
.
entry_point
()
in
equal
kf
main
get_name
kf
=
Kernel
.
MainFunction
.
get
()
let
is_main
kf
=
let
name
=
get_name
kf
in
Datatype
.
String
.
equal
name
"main"
get_name
kf
=
"main"
let
returns_void
kf
=
let
result_type
,_,_,_
=
Cil
.
splitFunctionType
(
get_type
kf
)
in
...
...
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