Skip to content
Snippets Groups Projects
Commit f094d58c authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[kernel] simplify is_main / is_entry_point

parent a0ef62ee
No related branches found
No related tags found
No related merge requests found
...@@ -578,12 +578,10 @@ let is_return_stmt kf stmt = ...@@ -578,12 +578,10 @@ let is_return_stmt kf stmt =
false false
let is_entry_point kf = let is_entry_point kf =
let main, _ = Globals.entry_point () in get_name kf = Kernel.MainFunction.get ()
equal kf main
let is_main kf = let is_main kf =
let name = get_name kf in get_name kf = "main"
Datatype.String.equal name "main"
let returns_void kf = let returns_void kf =
let result_type,_,_,_ = Cil.splitFunctionType (get_type kf) in let result_type,_,_,_ = Cil.splitFunctionType (get_type kf) in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment