[e-acsl] fix internal predicates/terms in assertion strings
Logic normalization transforms predicates and terms from the original code. Currently the assertion string that is shown to the user when the assertion fails shows these transformed forms. This should not be the case, as the user cannot understand where they stem from. Therefore we need to determine the original forms and use them when generating the assertion strings. This commit extends the memoization modules in Logic_normalizer to be bidirectional maps, such that the original form of a term or predicate can be determined.
Showing
- src/plugins/e-acsl/src/code_generator/assert.ml 5 additions, 1 deletionsrc/plugins/e-acsl/src/code_generator/assert.ml
- src/plugins/e-acsl/tests/arith/oracle/gen_extended_quantifiers.c 2 additions, 2 deletions...gins/e-acsl/tests/arith/oracle/gen_extended_quantifiers.c
- src/plugins/e-acsl/tests/arith/oracle/gen_functions.c 5 additions, 8 deletionssrc/plugins/e-acsl/tests/arith/oracle/gen_functions.c
- src/plugins/e-acsl/tests/examples/oracle/gen_functions_contiki.c 1 addition, 2 deletions...gins/e-acsl/tests/examples/oracle/gen_functions_contiki.c
- src/plugins/e-acsl/tests/gmp-only/oracle/gen_extended_quantifiers.c 1 addition, 1 deletion...s/e-acsl/tests/gmp-only/oracle/gen_extended_quantifiers.c
- src/plugins/e-acsl/tests/libc/oracle/gen_mem.c 10 additions, 10 deletionssrc/plugins/e-acsl/tests/libc/oracle/gen_mem.c
- src/plugins/e-acsl/tests/temporal/oracle/gen_t_memcpy.c 6 additions, 6 deletionssrc/plugins/e-acsl/tests/temporal/oracle/gen_t_memcpy.c
Loading
Please register or sign in to comment