[kernel] Parsing func_ptr.c (with preprocessing) [kernel:typing:implicit-function-declaration] func_ptr.c:29: Warning: Calling undeclared function exit. Old style K&R code? [metrics] Defined functions (4) ===================== baz (address taken) (0 call); foo (address taken) (0 call); foobar (0 call); main (0 call); Specified-only functions (0) ============================ Undefined and unspecified functions (1) ======================================= exit (1 call); 'Extern' global variables (1) ============================= bar_extern Potential entry points (2) ========================== foobar; main; Global metrics ============== Sloc = 20 Decision point = 2 Global variables = 2 If = 2 Loop = 0 Goto = 2 Assignment = 7 Exit point = 4 Function = 5 Function call = 3 Pointer dereferencing = 2 Cyclomatic complexity = 6 [metrics] Functions syntactically reachable from main: 3 ---------------------------------------------- : exit; foo; main; Functions syntactically unreachable from main: 2 ------------------------------------------------ : baz; foobar; [eva] Analyzing a complete application starting at main [eva] Computing initial state [eva] Initial state computed [eva:initial-state] Values of globals at initialization bar ∈ {0} bar_extern ∈ {0} [eva] done for function main [eva:summary] ====== ANALYSIS SUMMARY ====== ---------------------------------------------------------------------------- 1 function analyzed (out of 4): 25% coverage. In this function, 6 statements reached (out of 13): 46% coverage. ---------------------------------------------------------------------------- Some errors and warnings have been raised during the analysis: by the Eva analyzer: 0 errors 0 warnings by the Frama-C kernel: 0 errors 1 warning ---------------------------------------------------------------------------- 0 alarms generated by the analysis. ---------------------------------------------------------------------------- No logical properties have been reached by the analysis. ---------------------------------------------------------------------------- [metrics] Eva coverage statistics ======================= Syntactically reachable functions = 3 (out of 5) Semantically reached functions = 1 Coverage estimation = 33.3% Unreached functions (2) = : exit; foo; [metrics] References to non-analyzed functions ------------------------------------ Function main calls exit (at func_ptr.c:29) Function main references foo (at func_ptr.c:30) [metrics] Statements analyzed by Eva -------------------------- 13 stmts in analyzed functions, 6 stmts analyzed (46.2%) main: 6 stmts out of 13 (46.2%)