Skip to content
Snippets Groups Projects
Commit 67470c7b authored by David Bühler's avatar David Bühler
Browse files

[Eva] Fixes a possible crash when reporting red statuses.

parent ab0d080e
No related branches found
No related tags found
No related merge requests found
...@@ -147,7 +147,8 @@ let compute_information (kinstr, alarm_or_prop, contexts) = ...@@ -147,7 +147,8 @@ let compute_information (kinstr, alarm_or_prop, contexts) =
match alarm_or_prop with match alarm_or_prop with
| Alarm alarm -> | Alarm alarm ->
let kf, stmt = kinstr_to_stmt kinstr in let kf, stmt = kinstr_to_stmt kinstr in
let code_annot, _ = Alarms.to_annot kinstr alarm in let loc = Cil_datatype.Stmt.loc stmt in
let code_annot, _ = Alarms.to_annot kinstr ~loc alarm in
let property = Property.ip_of_code_annot_single kf stmt code_annot in let property = Property.ip_of_code_annot_single kf stmt code_annot in
kf, property, true kf, property, true
| Prop ip -> kf_of_property ip, ip, false | Prop ip -> kf_of_property ip, ip, false
......
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