Skip to content

Commit

Permalink
Merge pull request kind2-mc#1047 from lorchrob/abst-int-bug-fix
Browse files Browse the repository at this point in the history
Abst int bug fix
  • Loading branch information
daniel-larraz authored Jan 26, 2024
2 parents 027f29c + 3c91d6a commit 102d448
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lustre/lustreAbstractInterpretation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ let extract_bounds_from_type ty =
None, Some r
| LA.IntRange (_, Some Const (_, Num l), None) ->
let l = Numeral.of_string (HString.string_of_hstring l) in
None, Some l
Some l, None
(* If the int range is not constant, we treat it as an int for now *)
| IntRange _ -> None, None
| _ -> None, None)
Expand Down Expand Up @@ -181,7 +181,6 @@ let rec restrict_type_by ty restrict = match ty, restrict with
| None, (Some _ as u) -> u, true
| _ -> None, false
in
(*IntRange (dpos, lower, upper)*)
let is_restricted = is_restricted1 || is_restricted2 in
if (lower = None && upper = None)
then Int dpos, is_restricted
Expand Down

0 comments on commit 102d448

Please sign in to comment.