Skip to content

Commit 00779fe

Browse files
committed
fix bug of exception
1 parent ad4da89 commit 00779fe

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

core/KaSa_rep/frontend/preprocess.ml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,8 +2349,11 @@ let translate_c_compil parameters error handler compil =
23492349
match enriched_rule.Cckappa_sig.e_rule_label with
23502350
| None -> error, rule_label_map
23512351
| Some (label, _) ->
2352-
Ckappa_sig.Rule_label_map_and_set.Map.add parameters error label
2353-
rule_id rule_label_map)
2352+
let error, map =
2353+
Ckappa_sig.Rule_label_map_and_set.Map.add_or_overwrite parameters
2354+
error label rule_id rule_label_map
2355+
in
2356+
error, map)
23542357
c_rules Ckappa_sig.Rule_label_map_and_set.Map.empty
23552358
in
23562359

core/KaSa_rep/reachability_analysis/analyzer_headers.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,20 +413,19 @@ module AbstractWSMap (MapT : Map_wrapper.S_with_logs) = struct
413413
Ckappa_sig.Views_bdu.build_variables_list parameters bdu_handler error
414414
working_set_guards
415415
in
416-
let current_working_set = MapT.Map.empty in
417416
let result, bdu_handler, error =
418417
MapT.Map.fold
419418
(fun rule_id mvbdu (current_working_set, bdu_handler, error) ->
420419
let error, bdu_handler, mvbdu =
421420
abstract_away_working_set_vars parameters error bdu_handler mvbdu
422421
working_set_mvbdu working_set_guards_hcons
423422
in
424-
let error, current_working_set =
423+
let error', current_working_set =
425424
MapT.Map.add parameters error rule_id mvbdu current_working_set
426425
in
427426
current_working_set, bdu_handler, error)
428427
dynamic_local
429-
(current_working_set, bdu_handler, error)
428+
(MapT.Map.empty, bdu_handler, error)
430429
in
431430
error, bdu_handler, result
432431
end

core/KaSa_rep/reachability_analysis/views_domain.ml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3264,10 +3264,9 @@ module Domain = struct
32643264

32653265
let print_bdu_update_map_cartesian_abstraction parameters bdu_handler error
32663266
handler_kappa with_threshold =
3267-
print_bdu_update_map_gen_decomposition ~sort:true
3268-
~smash:true ~show_dep_with_dimmension_higher_than:1
3269-
mvbdu_cartesian_abstraction parameters bdu_handler error handler_kappa
3270-
with_threshold
3267+
print_bdu_update_map_gen_decomposition ~sort:true ~smash:true
3268+
~show_dep_with_dimmension_higher_than:1 mvbdu_cartesian_abstraction
3269+
parameters bdu_handler error handler_kappa with_threshold
32713270

32723271
(*****************************************************************)
32733272
(*Print for relational properties*)

0 commit comments

Comments
 (0)