Skip to content
Snippets Groups Projects
Commit a15a35e1 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[kernel] fixes Property.cmp_kind

parent 1afd019d
No related branches found
No related tags found
No related merge requests found
......@@ -758,11 +758,11 @@ module Ordered_by_function = Datatype.Make_with_collections(
| IPAllocation _ -> 16
| IPPredicate { ip_kind = PKTerminates } -> 17
| IPDecrease _ -> 18
| IPReachable _ -> 18
| IPComplete _ -> 19
| IPDisjoint _ -> 20
| IPExtended _ -> 21
| IPOther _ -> 22
| IPReachable _ -> 19
| IPComplete _ -> 20
| IPDisjoint _ -> 21
| IPExtended _ -> 22
| IPOther _ -> 23
| IPCodeAnnot ca ->
Kernel.fatal "Unexpected code annot %a in identified property"
Cil_printer.pp_code_annotation ca.ica_ca
......@@ -820,9 +820,11 @@ module Ordered_by_function = Datatype.Make_with_collections(
let res = other_loc_compare l1 l2 in
if res <> 0 then res
else String.compare n1 n2
| _ ->
| (p1,p2) ->
Kernel.fatal
"Property.cmp_same_kind called with 2 arguments of different kind"
"Property.cmp_same_kind called with 2 arguments of different kind:\
@\n@[<2>Property 1 is: %a@]@\n@[<2>Property 2 is: %a@]"
pretty p1 pretty p2
let compare p1 p2 =
let kf1 = get_kf p1 and kf2 = get_kf p2 in
......
[kernel] Parsing tests/sarif/std_string.c (with 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] done for function main
[eva] ====== VALUES COMPUTED ======
[eva:final-states] Values at end of function main:
__retres ∈ {0}
[eva:summary] ====== ANALYSIS SUMMARY ======
----------------------------------------------------------------------------
1 function analyzed (out of 1): 100% coverage.
In this function, 2 statements reached (out of 2): 100% coverage.
----------------------------------------------------------------------------
No errors or warnings raised during the analysis.
----------------------------------------------------------------------------
0 alarms generated by the analysis.
----------------------------------------------------------------------------
No logical properties have been reached by the analysis.
----------------------------------------------------------------------------
[mdr] Report tests/sarif/result/std_string.sarif generated
This diff is collapsed.
/* run.config*
LOG: @PTEST_NAME@.sarif
OPT: -eva -then -mdr-sarif-deterministic -mdr-gen sarif -mdr-out @PTEST_DIR@/result/@PTEST_NAME@.sarif
*/
#include "string.c"
int main() { }
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