Skip to content
Snippets Groups Projects
Commit 03ad796b authored by Patrick Baudin's avatar Patrick Baudin
Browse files

adds src/plugins/variadic/tests (init)

parent 38db166a
No related branches found
No related tags found
No related merge requests found
Showing
with 64 additions and 90 deletions
[variadic] tests/defined/forward.c:3: Declaration of variadic function sum. [variadic] forward.c:3: Declaration of variadic function sum.
[variadic] tests/defined/forward.c:8: [variadic] forward.c:8: Generic translation of call to variadic function.
Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
......
[variadic] tests/defined/max.c:3: Declaration of variadic function max. [variadic] max.c:3: Declaration of variadic function max.
[variadic] tests/defined/max.c:20: [variadic] max.c:20: Generic translation of call to variadic function.
Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
......
[variadic] tests/defined/multiple-va_start.c:9: [variadic] multiple-va_start.c:9: Declaration of variadic function pack.
Declaration of variadic function pack. [variadic] multiple-va_start.c:32:
[variadic] tests/defined/multiple-va_start.c:32:
Generic translation of call to variadic function. Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
[eva] tests/defined/multiple-va_start.c:20: [eva] multiple-va_start.c:20: allocating variable __malloc_pack_l20
allocating variable __malloc_pack_l20
[eva] done for function main [eva] done for function main
[eva] ====== VALUES COMPUTED ====== [eva] ====== VALUES COMPUTED ======
[eva:final-states] Values at end of function pack: [eva:final-states] Values at end of function pack:
......
[variadic] tests/defined/pointers-to-va.c:6: Declaration of variadic function f. [variadic] pointers-to-va.c:6: Declaration of variadic function f.
[variadic] tests/defined/pointers-to-va.c:17: [variadic] pointers-to-va.c:17: Declaration of variadic function g.
Declaration of variadic function g. [variadic] pointers-to-va.c:31:
[variadic] tests/defined/pointers-to-va.c:31:
Generic translation of call to variadic function. Generic translation of call to variadic function.
[variadic] tests/defined/pointers-to-va.c:32: [variadic] pointers-to-va.c:32:
Generic translation of call to variadic function. Generic translation of call to variadic function.
[variadic] tests/defined/pointers-to-va.c:33: [variadic] pointers-to-va.c:33:
Generic translation of call to variadic function. Generic translation of call to variadic function.
[variadic] tests/defined/pointers-to-va.c:34: [variadic] pointers-to-va.c:34:
Generic translation of call to variadic function. Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
......
[variadic] tests/defined/recursive.i:4: Declaration of variadic function f. [variadic] recursive.i:4: Declaration of variadic function f.
[variadic] tests/defined/recursive.i:8: [variadic] recursive.i:8: Generic translation of call to variadic function.
Generic translation of call to variadic function. [variadic] recursive.i:12: Generic translation of call to variadic function.
[variadic] tests/defined/recursive.i:12:
Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
[eva] tests/defined/recursive.i:8: Warning: [eva] recursive.i:8: Warning:
recursive call during value analysis recursive call during value analysis of f (f <- f :: recursive.i:12 <- main).
of f (f <- f :: tests/defined/recursive.i:12 <- main). Assuming the call has Assuming the call has no effect. The analysis will be unsound.
no effect. The analysis will be unsound.
[eva] using specification for function f [eva] using specification for function f
[eva] done for function main [eva] done for function main
[eva] ====== VALUES COMPUTED ====== [eva] ====== VALUES COMPUTED ======
......
[variadic] tests/defined/sentinel.c:3: Declaration of variadic function sum. [variadic] sentinel.c:3: Declaration of variadic function sum.
[variadic] tests/defined/sentinel.c:21: [variadic] sentinel.c:21: Generic translation of call to variadic function.
Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
......
[variadic] tests/defined/simple.c:4: Declaration of variadic function sum. [variadic] simple.c:4: Declaration of variadic function sum.
[variadic] tests/defined/simple.c:19: [variadic] simple.c:19: Generic translation of call to variadic function.
Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
......
[variadic] tests/defined/struct.c:18: Declaration of variadic function inter. [variadic] struct.c:18: Declaration of variadic function inter.
[variadic] tests/defined/struct.c:41: [variadic] struct.c:41: Generic translation of call to variadic function.
Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
......
[variadic] tests/defined/va_copy.c:9: Declaration of variadic function pack. [variadic] va_copy.c:9: Declaration of variadic function pack.
[variadic] tests/defined/va_copy.c:32: [variadic] va_copy.c:32: Generic translation of call to variadic function.
Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
[eva] tests/defined/va_copy.c:21: allocating variable __malloc_pack_l21 [eva] va_copy.c:21: allocating variable __malloc_pack_l21
[eva] done for function main [eva] done for function main
[eva] ====== VALUES COMPUTED ====== [eva] ====== VALUES COMPUTED ======
[eva:final-states] Values at end of function pack: [eva:final-states] Values at end of function pack:
......
[variadic] tests/defined/va_list-as-arg.c:15: [variadic] va_list-as-arg.c:15: Declaration of variadic function sum.
Declaration of variadic function sum. [variadic] va_list-as-arg.c:25:
[variadic] tests/defined/va_list-as-arg.c:25:
Generic translation of call to variadic function. Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
......
...@@ -4,19 +4,14 @@ ...@@ -4,19 +4,14 @@
Declaration of variadic function execle. Declaration of variadic function execle.
[variadic] FRAMAC_SHARE/libc/unistd.h:823: [variadic] FRAMAC_SHARE/libc/unistd.h:823:
Declaration of variadic function execlp. Declaration of variadic function execlp.
[variadic] tests/erroneous/exec.c:5: Warning: [variadic] exec.c:5: Warning:
Incorrect type for argument 3. The argument will be cast from int to char *. Incorrect type for argument 3. The argument will be cast from int to char *.
[variadic] tests/erroneous/exec.c:5: [variadic] exec.c:5: Translating call to execl to a call to execv.
Translating call to execl to a call to execv. [variadic] exec.c:7: Warning:
[variadic] tests/erroneous/exec.c:7: Warning:
Failed to find a sentinel (NULL pointer) in the argument list. Failed to find a sentinel (NULL pointer) in the argument list.
[variadic] tests/erroneous/exec.c:7: [variadic] exec.c:7: Generic translation of call to variadic function.
Generic translation of call to variadic function. [variadic] exec.c:9: Warning: Not enough arguments: expected 5, given 4.
[variadic] tests/erroneous/exec.c:9: Warning: [variadic] exec.c:9: Generic translation of call to variadic function.
Not enough arguments: expected 5, given 4. [variadic] exec.c:11: Warning:
[variadic] tests/erroneous/exec.c:9:
Generic translation of call to variadic function.
[variadic] tests/erroneous/exec.c:11: Warning:
Incorrect type for argument 5. The argument will be cast from int to char * const *. Incorrect type for argument 5. The argument will be cast from int to char * const *.
[variadic] tests/erroneous/exec.c:11: [variadic] exec.c:11: Translating call to execle to a call to execve.
Translating call to execle to a call to execve.
[variadic] tests/erroneous/invalid_libc.i:2: [variadic] invalid_libc.i:2: Declaration of variadic function fprintf.
Declaration of variadic function fprintf. [variadic] invalid_libc.i:2: Warning:
[variadic] tests/erroneous/invalid_libc.i:2: Warning:
The standard function fprintf was expected to have at least 2 fixed parameters but only has 1. The standard function fprintf was expected to have at least 2 fixed parameters but only has 1.
No variadic translation will be performed. No variadic translation will be performed.
[variadic] tests/erroneous/invalid_libc.i:6: [variadic] invalid_libc.i:6: Generic translation of call to variadic function.
Generic translation of call to variadic function.
[variadic] tests/erroneous/no-libc.i:1: Declaration of variadic function printf. [variadic] no-libc.i:1: Declaration of variadic function printf.
[variadic] Warning: Unable to locate ACSL predicate valid_read_string which should be in the Frama-C LibC. Correct specifications can't be generated. [variadic] Warning: Unable to locate ACSL predicate valid_read_string which should be in the Frama-C LibC. Correct specifications can't be generated.
[variadic] Warning: Unable to locate global __fc_stdout which should be in the Frama-C LibC. Correct specifications can't be generated. [variadic] Warning: Unable to locate global __fc_stdout which should be in the Frama-C LibC. Correct specifications can't be generated.
[variadic] tests/erroneous/no-libc.i:5: [variadic] no-libc.i:5:
Translating call to printf to a call to the specialized version printf_va_1. Translating call to printf to a call to the specialized version printf_va_1.
[kernel] tests/erroneous/not-enough-par.i:4: User Error: [kernel] not-enough-par.i:4: User Error: Too few arguments in call to f.
Too few arguments in call to f. [kernel] User Error: stopping on file "not-enough-par.i" that has errors.
[kernel] User Error: stopping on file "tests/erroneous/not-enough-par.i" that has errors.
[kernel] Frama-C aborted: invalid user input. [kernel] Frama-C aborted: invalid user input.
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
Declaration of variadic function sscanf. Declaration of variadic function sscanf.
[variadic] FRAMAC_SHARE/libc/stdio.h:538: [variadic] FRAMAC_SHARE/libc/stdio.h:538:
Declaration of variadic function dprintf. Declaration of variadic function dprintf.
[variadic] tests/erroneous/printf.c:8: Warning: Multiple usage of flag '-'. [variadic] printf.c:8: Warning: Multiple usage of flag '-'.
[variadic] tests/erroneous/printf.c:8: Warning: [variadic] printf.c:8: Warning:
Flag ' ' and conversion specififer e are not compatibles. Flag ' ' and conversion specififer e are not compatibles.
[variadic] tests/erroneous/printf.c:8: [variadic] printf.c:8: Generic translation of call to variadic function.
Generic translation of call to variadic function.
[variadic] tests/erroneous/va_arg-wrongtype.c:3: [variadic] va_arg-wrongtype.c:3: Declaration of variadic function sum.
Declaration of variadic function sum. [variadic] va_arg-wrongtype.c:9: Warning:
[variadic] tests/erroneous/va_arg-wrongtype.c:9: Warning:
Wrong type argument in va_start: short is promoted to int when used in the variadic part of the arguments. (You should pass int to va_start) Wrong type argument in va_start: short is promoted to int when used in the variadic part of the arguments. (You should pass int to va_start)
[variadic] tests/erroneous/va_arg-wrongtype.c:18: [variadic] va_arg-wrongtype.c:18:
Generic translation of call to variadic function. Generic translation of call to variadic function.
[variadic] tests/erroneous/variadic-builtin.i:1: [variadic] variadic-builtin.i:1:
Variadic builtin Frama_C_show_each_warning left untransformed. Variadic builtin Frama_C_show_each_warning left untransformed.
[kernel] Plug-in variadic aborted: unimplemented feature. [kernel] Plug-in variadic aborted: unimplemented feature.
You may send a feature request at https://git.frama-c.com/pub/frama-c/issues with: You may send a feature request at https://git.frama-c.com/pub/frama-c/issues with:
......
OPT: -no-autoload-plugins -load-module variadic -check -kernel-verbose 0 -variadic-verbose 2 OPT: -check -kernel-verbose 0 -variadic-verbose 2
...@@ -4,22 +4,19 @@ ...@@ -4,22 +4,19 @@
Declaration of variadic function execle. Declaration of variadic function execle.
[variadic] FRAMAC_SHARE/libc/unistd.h:823: [variadic] FRAMAC_SHARE/libc/unistd.h:823:
Declaration of variadic function execlp. Declaration of variadic function execlp.
[variadic] tests/known/exec.c:9: Translating call to execle to a call to execve. [variadic] exec.c:9: Translating call to execle to a call to execve.
[variadic] tests/known/exec.c:11: Warning: [variadic] exec.c:11: Warning:
Too many arguments: expected 5, given 6. Superfluous arguments will be removed. Too many arguments: expected 5, given 6. Superfluous arguments will be removed.
[variadic] tests/known/exec.c:11: Translating call to execl to a call to execv. [variadic] exec.c:11: Translating call to execl to a call to execv.
[variadic] tests/known/exec.c:12: Warning: [variadic] exec.c:12: Warning:
Too many arguments: expected 4, given 5. Superfluous arguments will be removed. Too many arguments: expected 4, given 5. Superfluous arguments will be removed.
[variadic] tests/known/exec.c:12: [variadic] exec.c:12: Translating call to execlp to a call to execvp.
Translating call to execlp to a call to execvp. [variadic] exec.c:13: Warning:
[variadic] tests/known/exec.c:13: Warning:
Too many arguments: expected 4, given 6. Superfluous arguments will be removed. Too many arguments: expected 4, given 6. Superfluous arguments will be removed.
[variadic] tests/known/exec.c:13: [variadic] exec.c:13: Translating call to execle to a call to execve.
Translating call to execle to a call to execve. [variadic] exec.c:15: Warning:
[variadic] tests/known/exec.c:15: Warning:
Failed to find a sentinel (NULL pointer) in the argument list. Failed to find a sentinel (NULL pointer) in the argument list.
[variadic] tests/known/exec.c:15: [variadic] exec.c:15: Generic translation of call to variadic function.
Generic translation of call to variadic function.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
Declaration of variadic function execle. Declaration of variadic function execle.
[variadic] FRAMAC_SHARE/libc/unistd.h:823: [variadic] FRAMAC_SHARE/libc/unistd.h:823:
Declaration of variadic function execlp. Declaration of variadic function execlp.
[variadic] tests/known/exec_failed_requirement.c:7: [variadic] exec_failed_requirement.c:7:
Translating call to execl to a call to execv. Translating call to execl to a call to execv.
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
[eva] using specification for function execv [eva] using specification for function execv
[eva:alarm] tests/known/exec_failed_requirement.c:7: Warning: [eva:alarm] exec_failed_requirement.c:7: Warning:
function execv: precondition 'valid_string_argv0' got status invalid. function execv: precondition 'valid_string_argv0' got status invalid.
[eva] done for function main [eva] done for function main
[eva] ====== VALUES COMPUTED ====== [eva] ====== VALUES COMPUTED ======
......
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