Skip to content

Commit

Permalink
DOTDOT means interval
Browse files Browse the repository at this point in the history
  • Loading branch information
riaqn committed Jun 28, 2024
1 parent 164bada commit ad92369
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ let rec fib = function | 0 | 1 -> 1 | n -> (fib (n - 1)) + (fib (n - 2))
<def_rec>
pattern (test_locations.ml[17,534+8]..test_locations.ml[17,534+11])
Tpat_var "fib"
value_mode global,many,nonportable;join(shared,contended)(modevar#1[shared,uncontended ... unique,uncontended])
value_mode global,many,nonportable;join(shared,contended)(modevar#1[shared,uncontended .. unique,uncontended])
expression (test_locations.ml[17,534+14]..test_locations.ml[19,572+34])
Texp_function
region true
alloc_mode global,many,nonportable;id(modevar#7[shared,contended ... unique,uncontended])
alloc_mode global,many,nonportable;id(modevar#7[shared,contended .. unique,uncontended])
[]
Tfunction_cases (test_locations.ml[17,534+14]..test_locations.ml[19,572+34])
alloc_mode global,many,nonportable;shared,uncontended
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ let rec fib = function | 0 | 1 -> 1 | n -> (fib (n - 1)) + (fib (n - 2))
<def_rec>
pattern
Tpat_var "fib"
value_mode global,many,nonportable;join(shared,contended)(modevar#1[shared,uncontended ... unique,uncontended])
value_mode global,many,nonportable;join(shared,contended)(modevar#1[shared,uncontended .. unique,uncontended])
expression
Texp_function
region true
alloc_mode global,many,nonportable;id(modevar#7[shared,contended ... unique,uncontended])
alloc_mode global,many,nonportable;id(modevar#7[shared,contended .. unique,uncontended])
[]
Tfunction_cases
alloc_mode global,many,nonportable;shared,uncontended
Expand Down
6 changes: 3 additions & 3 deletions ocaml/typing/solver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ module Solver_mono (C : Lattices_mono) = struct
| Amodejoin :
'a * ('a, 'l * disallowed) morphvar list
-> ('a, 'l * disallowed) mode
(** [Amodejoin a [mv0, mv1, ...]] represents [a join mv0 join mv1 join ...] *)
(** [Amodejoin a [mv0, mv1, ..]] represents [a join mv0 join mv1 join ..] *)
| Amodemeet :
'a * ('a, disallowed * 'r) morphvar list
-> ('a, disallowed * 'r) mode
(** [Amodemeet a [mv0, mv1, ...]] represents [a meet mv0 meet mv1 meet ...]. *)
(** [Amodemeet a [mv0, mv1, ..]] represents [a meet mv0 meet mv1 meet ..]. *)

(** Prints a mode variable, including the set of variables below it
(recursively). To handle cycles, [traversed] is the set of variables that
Expand All @@ -154,7 +154,7 @@ module Solver_mono (C : Lattices_mono) = struct
let rec print_var : type a. ?traversed:VarSet.t -> a C.obj -> _ -> a var -> _
=
fun ?traversed obj ppf v ->
Format.fprintf ppf "modevar#%x[%a ... %a]" v.id (C.print obj) v.lower
Format.fprintf ppf "modevar#%x[%a .. %a]" v.id (C.print obj) v.lower
(C.print obj) v.upper;
match traversed with
| None -> ()
Expand Down

0 comments on commit ad92369

Please sign in to comment.