[kernel] Parsing horwitz.i (no preprocessing) [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] computing for function A <- main. Called from horwitz.i:27. [eva] computing for function add <- A <- main. Called from horwitz.i:18. [eva] Recording results for add [eva] Done for function add [eva] computing for function incr <- A <- main. Called from horwitz.i:19. [eva] computing for function add <- incr <- A <- main. Called from horwitz.i:15. [eva] Recording results for add [eva] Done for function add [eva] Recording results for incr [eva] Done for function incr [eva] Recording results for A [eva] Done for function A [eva] horwitz.i:26: starting to merge loop iterations [eva] computing for function A <- main. Called from horwitz.i:27. [eva] computing for function add <- A <- main. Called from horwitz.i:18. [eva] Recording results for add [eva] Done for function add [eva] computing for function incr <- A <- main. Called from horwitz.i:19. [eva] computing for function add <- incr <- A <- main. Called from horwitz.i:15. [eva] Recording results for add [eva] Done for function add [eva] Recording results for incr [eva] Done for function incr [eva] Recording results for A [eva] Done for function A [eva] computing for function A <- main. Called from horwitz.i:27. [eva] computing for function add <- A <- main. Called from horwitz.i:18. [eva] Recording results for add [eva] Done for function add [eva] computing for function incr <- A <- main. Called from horwitz.i:19. [eva] computing for function add <- incr <- A <- main. Called from horwitz.i:15. [eva] Recording results for add [eva] Done for function add [eva] Recording results for incr [eva] Done for function incr [eva] Recording results for A [eva] Done for function A [eva] computing for function A <- main. Called from horwitz.i:27. [eva] computing for function add <- A <- main. Called from horwitz.i:18. [eva] Recording results for add [eva] Done for function add [eva] computing for function incr <- A <- main. Called from horwitz.i:19. [eva] computing for function add <- incr <- A <- main. Called from horwitz.i:15. [eva] Recording results for add [eva] Done for function add [eva] Recording results for incr [eva] Done for function incr [eva] Recording results for A [eva] Done for function A [eva] computing for function A <- main. Called from horwitz.i:27. [eva] computing for function add <- A <- main. Called from horwitz.i:18. [eva] Recording results for add [eva] Done for function add [eva] horwitz.i:19: Reusing old results for call to incr [eva] Recording results for A [eva] Done for function A [eva] computing for function A <- main. Called from horwitz.i:27. [eva] computing for function add <- A <- main. Called from horwitz.i:18. [eva:alarm] horwitz.i:12: Warning: signed overflow. assert a + b ≤ 2147483647; [eva] Recording results for add [eva] Done for function add [eva] horwitz.i:19: Reusing old results for call to incr [eva] Recording results for A [eva] Done for function A [eva] Recording results for main [eva] done for function main [from] Computing for function add [from] Done for function add [from] Computing for function incr [from] Done for function incr [from] Computing for function A [from] Done for function A [from] Computing for function main [from] Done for function main [from] ====== DEPENDENCIES COMPUTED ====== These dependencies hold at termination for the executions that terminate: [from] Function add: \result FROM a; b [from] Function incr: i FROM pi; i [from] Function A: i FROM py; i \result FROM x; py; i [from] Function main: \result FROM \nothing [from] ====== END OF DEPENDENCIES ====== [slicing] initializing slicing ... [pdg] computing for function incr [pdg] done for function incr [slicing] applying all slicing requests... [slicing] applying 1 actions... [slicing] applying actions: 1/1... [pdg] computing for function A [pdg] done for function A [pdg] computing for function main [pdg] done for function main Slicing project worklist [default] = [main_slice_1 = change_call for call 23 -> A_slice_1][A_slice_1 = change_call for call 10 -> incr_slice_1] [slicing] exporting project to 'Sliced code'... [slicing] applying all slicing requests... [slicing] applying 2 actions... [slicing] applying actions: 1/2... [slicing] applying actions: 2/2... [sparecode] remove unused global declarations from project 'Sliced code tmp' [sparecode] removed unused global declarations in new project 'Sliced code' /* Generated by Frama-C */ int add(int a, int b) { int __retres; __retres = a + b; return __retres; } void incr_slice_1(char *pi) { int tmp; tmp = add((int)*pi,1); *pi = (char)tmp; return; } void A_slice_1(char *py) { incr_slice_1(py); return; } void main(void) { char i = (char)1; while ((int)i < 11) A_slice_1(& i); return; }