Skip to content

Commit 2ecca82

Browse files
committed
Deduplicate function names
1 parent d9b9838 commit 2ecca82

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/analysis_and_optimization/Pedantic_analysis.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,14 @@ let list_possible_nonlinear (mir : Program.Typed.t) : Location_span.t Set.Poly.t
7272
=
7373
(* These functions are linear if all of their arguments are *)
7474
let linear_fnames =
75-
Operator.([Plus; PPlus; Minus; PMinus] |> List.map ~f:to_string)
75+
Operator.(
76+
[Plus; PPlus; Minus; PMinus; PNot; Transpose] |> List.map ~f:to_string)
7677
@ [ "add"; "append_block"; "append_row"; "append_col"; "block"; "col"; "cols"
7778
; "row"; "rows"; "diagonal"; "head"; "tail"; "minus"; "negative_infinity"
7879
; "not_a_number"; "rep_matrix"; "rep_vector"; "rep_row_vector"
7980
; "positive_infinity"; "segment"; "subtract"; "sum"; "to_vector"
8081
; "to_row_vector"; "to_matrix"; "to_array_1d"; "to_array_2d"; "transpose"
81-
; "Plus__"; "PPlus__"; "PMinus__"; "Minus__"; "PNot__"; "Transpose__" ]
82+
]
8283
|> String.Set.of_list in
8384
(* A simple check of linearity of an expression.
8485
allow_var is used for expressions like a*b, where at most one

0 commit comments

Comments
 (0)