Skip to content
Snippets Groups Projects
Commit 247b693d authored by Andre Maroneze's avatar Andre Maroneze
Browse files

Merge branch 'feature/virgile/warn-key-unique-opt' into 'master'

synchronisation with frama-c!2038

See merge request frama-c/e-acsl!253
parents 8df096d9 c9c47b7b
No related branches found
No related tags found
No related merge requests found
Showing
with 30 additions and 25 deletions
/* run.config /* run.config
COMMENT: recursive function COMMENT: recursive function
STDOPT: +"-eva-ignore-recursive-calls"
*/ */
/*@ requires n > 0; */ /*@ requires n > 0; */
......
[e-acsl] beginning translation. [e-acsl] beginning translation.
[e-acsl] translation done in project "e-acsl". [e-acsl] translation done in project "e-acsl".
[eva] tests/bts/bts1395.i:8: Warning: [eva] tests/bts/bts1395.i:9: Warning:
detected recursive call recursive call during value analysis
(__gen_e_acsl_fact <- fact :: tests/bts/bts1395.i:6 <- of __gen_e_acsl_fact (__gen_e_acsl_fact <- fact :: tests/bts/bts1395.i:7 <-
__gen_e_acsl_fact :: tests/bts/bts1395.i:12 <- __gen_e_acsl_fact :: tests/bts/bts1395.i:13 <-
main) main).
Use -eva-ignore-recursive-calls to ignore (beware this will make the analysis Assuming the call has no effect. The analysis will be unsound.
unsound) [eva:alarm] tests/bts/bts1395.i:9: Warning:
[eva] User Error: Degeneration occurred: signed overflow. assert -2147483648 ≤ n * tmp;
results are not correct for lines of code that can be reached from the degeneration point. (tmp from fact(n - 1))
[eva:alarm] tests/bts/bts1395.i:9: Warning:
signed overflow. assert n * tmp ≤ 2147483647;
(tmp from fact(n - 1))
[eva:alarm] tests/bts/bts1395.i:14: Warning: assertion got status unknown.
LOG: gen_@PTEST_NAME@.c LOG: gen_@PTEST_NAME@.c
OPT: -variadic-no-translation -machdep gcc_x86_64 -check -e-acsl -then-last -load-script tests/print.cmxs -print -ocode tests/bts/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -val -value-verbose 0 OPT: -variadic-no-translation -machdep gcc_x86_64 -check -e-acsl -then-last -load-script tests/print.cmxs -print -ocode tests/bts/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -eva -eva-verbose 0
EXEC: ./scripts/testrun.sh @PTEST_NAME@ bts "" "--frama-c=@frama-c@" EXEC: ./scripts/testrun.sh @PTEST_NAME@ bts "" "--frama-c=@frama-c@"
LOG: gen_@PTEST_NAME@.c LOG: gen_@PTEST_NAME@.c
OPT: -variadic-no-translation -machdep gcc_x86_64 -check -e-acsl -e-acsl-full-mmodel -e-acsl-replace-libc-functions -then-last -load-script tests/print.cmxs -print -ocode tests/builtin/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -val -no-val-print -no-val-show-progress -no-results OPT: -variadic-no-translation -machdep gcc_x86_64 -check -e-acsl -e-acsl-full-mmodel -e-acsl-replace-libc-functions -then-last -load-script tests/print.cmxs -print -ocode tests/builtin/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -eva -eva-no-print -eva-no-show-progress -no-results
EXEC: ./scripts/testrun.sh @PTEST_NAME@ builtin "1" "--frama-c=@frama-c@ --full-mmodel --libc-replacements" EXEC: ./scripts/testrun.sh @PTEST_NAME@ builtin "1" "--frama-c=@frama-c@ --full-mmodel --libc-replacements"
LOG: gen_@PTEST_NAME@.c LOG: gen_@PTEST_NAME@.c
OPT: -variadic-no-translation -machdep gcc_x86_64 -check -e-acsl -e-acsl-full-mmodel -e-acsl-validate-format-strings -kernel-warn-key=-annot:missing-spec -then-last -load-script tests/print.cmxs -print -ocode tests/format/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -val -no-val-print -no-val-show-progress -no-results OPT: -variadic-no-translation -machdep gcc_x86_64 -check -e-acsl -e-acsl-full-mmodel -e-acsl-validate-format-strings -kernel-warn-key=annot:missing-spec=inactive -then-last -load-script tests/print.cmxs -print -ocode tests/format/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -eva -eva-no-print -eva-no-show-progress -no-results
EXEC: ./scripts/testrun.sh @PTEST_NAME@ format "1" "--frama-c=@frama-c@ --full-mmodel --validate-format-strings" EXEC: ./scripts/testrun.sh @PTEST_NAME@ format "1" "--frama-c=@frama-c@ --full-mmodel --validate-format-strings"
EXEC: ./scripts/testrun.sh @PTEST_NAME@ full-mmodel-only "1" "--frama-c=@frama-c@ --full-mmodel" EXEC: ./scripts/testrun.sh @PTEST_NAME@ full-mmodel-only "1" "--frama-c=@frama-c@ --full-mmodel"
LOG: gen_@PTEST_NAME@.c LOG: gen_@PTEST_NAME@.c
OPT: -machdep gcc_x86_64 -check -e-acsl -e-acsl-full-mmodel -then-last -load-script tests/print.cmxs -print -ocode tests/full-mmodel-only/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -val -no-val-print -no-val-show-progress -no-results OPT: -machdep gcc_x86_64 -check -e-acsl -e-acsl-full-mmodel -then-last -load-script tests/print.cmxs -print -ocode tests/full-mmodel-only/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -eva -eva-no-print -eva-no-show-progress -no-results
\ No newline at end of file
LOG: gen_@PTEST_NAME@.c LOG: gen_@PTEST_NAME@.c
OPT: -machdep gcc_x86_64 -check -e-acsl -then-last -load-script tests/print.cmxs -print -ocode tests/full-mmodel/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -val -no-val-print -no-val-show-progress -no-results OPT: -machdep gcc_x86_64 -check -e-acsl -then-last -load-script tests/print.cmxs -print -ocode tests/full-mmodel/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -eva -eva-no-print -eva-no-show-progress -no-results
EXEC: ./scripts/testrun.sh @PTEST_NAME@ full-mmodel "1" "--frama-c=@frama-c@ --full-mmodel" EXEC: ./scripts/testrun.sh @PTEST_NAME@ full-mmodel "1" "--frama-c=@frama-c@ --full-mmodel"
LOG: gen_@PTEST_NAME@2.c LOG: gen_@PTEST_NAME@2.c
OPT: -machdep gcc_x86_64 -check -e-acsl -e-acsl-full-mmodel -then-last -load-script tests/print.cmxs -print -ocode tests/full-mmodel/result/gen_@PTEST_NAME@2.c -kernel-verbose 0 -val -no-val-print -no-val-show-progress -no-results OPT: -machdep gcc_x86_64 -check -e-acsl -e-acsl-full-mmodel -then-last -load-script tests/print.cmxs -print -ocode tests/full-mmodel/result/gen_@PTEST_NAME@2.c -kernel-verbose 0 -eva -eva-no-print -eva-no-show-progress -no-results
/* run.config /* run.config
COMMENT: upgrading longlong to GMP COMMENT: upgrading longlong to GMP
STDOPT: +"-val-ignore-recursive-calls" STDOPT: +"-eva-ignore-recursive-calls"
*/ */
unsigned long long my_pow(unsigned int x, unsigned int n) { unsigned long long my_pow(unsigned int x, unsigned int n) {
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
__e_acsl_math_HUGE_VALF ∈ [-3.40282346639e+38 .. 3.40282346639e+38] __e_acsl_math_HUGE_VALF ∈ [-3.40282346639e+38 .. 3.40282346639e+38]
__e_acsl_math_INFINITY ∈ [-1.79769313486e+308 .. 1.79769313486e+308] __e_acsl_math_INFINITY ∈ [-1.79769313486e+308 .. 1.79769313486e+308]
[eva] using specification for function __e_acsl_memory_init [eva] using specification for function __e_acsl_memory_init
[eva] tests/gmp/longlong.i:9: User Error: [eva] tests/gmp/longlong.i:9: Warning:
recursive call during value analysis recursive call during value analysis
of my_pow (my_pow <- my_pow :: tests/gmp/longlong.i:16 <- main). Assuming of my_pow (my_pow <- my_pow :: tests/gmp/longlong.i:16 <- main). Assuming
the call has no effect. The analysis will be unsound.] the call has no effect. The analysis will be unsound.
[eva] using specification for function my_pow [eva] using specification for function my_pow
[eva:alarm] tests/gmp/longlong.i:10: Warning: [eva:alarm] tests/gmp/longlong.i:10: Warning:
signed overflow. assert -2147483648 ≤ tmp * tmp; signed overflow. assert -2147483648 ≤ tmp * tmp;
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
__e_acsl_math_HUGE_VALF ∈ [-3.40282346639e+38 .. 3.40282346639e+38] __e_acsl_math_HUGE_VALF ∈ [-3.40282346639e+38 .. 3.40282346639e+38]
__e_acsl_math_INFINITY ∈ [-1.79769313486e+308 .. 1.79769313486e+308] __e_acsl_math_INFINITY ∈ [-1.79769313486e+308 .. 1.79769313486e+308]
[eva] using specification for function __e_acsl_memory_init [eva] using specification for function __e_acsl_memory_init
[eva] tests/gmp/longlong.i:9: User Error: [eva] tests/gmp/longlong.i:9: Warning:
recursive call during value analysis recursive call during value analysis
of my_pow (my_pow <- my_pow :: tests/gmp/longlong.i:16 <- main). Assuming of my_pow (my_pow <- my_pow :: tests/gmp/longlong.i:16 <- main). Assuming
the call has no effect. The analysis will be unsound.] the call has no effect. The analysis will be unsound.
[eva] using specification for function my_pow [eva] using specification for function my_pow
[eva:alarm] tests/gmp/longlong.i:10: Warning: [eva:alarm] tests/gmp/longlong.i:10: Warning:
signed overflow. assert -2147483648 ≤ tmp * tmp; signed overflow. assert -2147483648 ≤ tmp * tmp;
......
LOG: gen_@PTEST_NAME@.c LOG: gen_@PTEST_NAME@.c
OPT: -machdep gcc_x86_64 -check -e-acsl -then-last -load-script tests/print.cmxs -print -ocode tests/gmp/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -val -no-val-print -no-val-show-progress -no-results -eva-no-alloc-returns-null OPT: -machdep gcc_x86_64 -check -e-acsl -then-last -load-script tests/print.cmxs -print -ocode tests/gmp/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -eva -eva-no-print -eva-no-show-progress -no-results -eva-no-alloc-returns-null
EXEC: ./scripts/testrun.sh @PTEST_NAME@ gmp "1" "--frama-c=@frama-c@" EXEC: ./scripts/testrun.sh @PTEST_NAME@ gmp "1" "--frama-c=@frama-c@"
LOG: gen_@PTEST_NAME@2.c LOG: gen_@PTEST_NAME@2.c
OPT: -machdep gcc_x86_64 -check -e-acsl -e-acsl-gmp-only -then-last -load-script tests/print.cmxs -print -ocode tests/gmp/result/gen_@PTEST_NAME@2.c -kernel-verbose 0 -val -no-val-print -no-val-show-progress -no-results -eva-no-alloc-returns-null OPT: -machdep gcc_x86_64 -check -e-acsl -e-acsl-gmp-only -then-last -load-script tests/print.cmxs -print -ocode tests/gmp/result/gen_@PTEST_NAME@2.c -kernel-verbose 0 -eva -eva-no-print -eva-no-show-progress -no-results -eva-no-alloc-returns-null
LOG: gen_@PTEST_NAME@.c LOG: gen_@PTEST_NAME@.c
OPT: -machdep gcc_x86_64 -check -e-acsl -then-last -load-script tests/print.cmxs -print -ocode tests/runtime/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -val -value-verbose 0 OPT: -machdep gcc_x86_64 -check -e-acsl -then-last -load-script tests/print.cmxs -print -ocode tests/runtime/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -eva -eva-verbose 0
EXEC: ./scripts/testrun.sh @PTEST_NAME@ runtime "" "--frama-c=@frama-c@" EXEC: ./scripts/testrun.sh @PTEST_NAME@ runtime "" "--frama-c=@frama-c@"
/* run.config /* run.config
COMMENT: Check temporal validity of environment string (via getenv function) COMMENT: Check temporal validity of environment string (via getenv function)
STDOPT: #"-eva-warn-key=-libc:unsupported-spec" STDOPT: #"-eva-warn-key=libc:unsupported-spec=inactive"
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
......
LOG: gen_@PTEST_NAME@.c LOG: gen_@PTEST_NAME@.c
OPT: -machdep gcc_x86_64 -check -e-acsl -e-acsl-temporal-validity -then-last -load-script tests/print.cmxs -print -ocode tests/temporal/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -val -value-verbose 0 -value-warn-key="-alarm" OPT: -machdep gcc_x86_64 -check -e-acsl -e-acsl-temporal-validity -then-last -load-script tests/print.cmxs -print -ocode tests/temporal/result/gen_@PTEST_NAME@.c -kernel-verbose 0 -val -value-verbose 0 -eva-warn-key="alarm=inactive"
EXEC: ./scripts/testrun.sh @PTEST_NAME@ temporal "" "--frama-c=@frama-c@ --full-mmodel --temporal" EXEC: ./scripts/testrun.sh @PTEST_NAME@ temporal "" "--frama-c=@frama-c@ --full-mmodel --temporal"
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