Skip to content

Commit bc2cad0

Browse files
committed
Remove references in comments to missing not-zero-preserving functions
1 parent 52a100c commit bc2cad0

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/cdomains/affineEquality/sparseImplementation/sparseVector.ml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module SparseVector: AbstractVector =
7474

7575
(**
7676
[is_const_vec v] returns true if the v can be interpreted as an expression with one variable and possibly a constant, i.e. x_i + c
77-
*)
77+
*)
7878
let is_const_vec v =
7979
match v.entries with
8080
| [] -> false
@@ -201,8 +201,6 @@ module SparseVector: AbstractVector =
201201
[find2i_f_false_at_zero f v v'] returns the {b index} of the first pair of entries [e, e'] from [v, v'] where [f e e' = true ].
202202
203203
Note that [f] {b must} be such that [f 0 0 = false]!
204-
205-
{i One should use this function over its general counterpart whenever possible, as it is considerably faster!}
206204
*)
207205
let find2i_f_false_at_zero f v v' = (*Very welcome to change the name*)
208206
let rec aux v1 v2 =
@@ -259,7 +257,6 @@ module SparseVector: AbstractVector =
259257
260258
Note that [f] {b must} be such that [f 0 = 0]!
261259
262-
{i One should use this function over its general counterpart whenever possible, as it is considerably faster!}
263260
*)
264261
let map_f_preserves_zero f v = (* map for functions f such that f 0 = 0 since f won't be applied to zero values. See also map *)
265262
let entries' = List.filter_map (
@@ -274,7 +271,6 @@ module SparseVector: AbstractVector =
274271
275272
Note that [f] {b must} be such that [f i 0 = 0] for any index [i]!
276273
277-
{i One should use this function over its general counterpart whenever possible, as it is considerably faster!}
278274
*)
279275
let mapi_f_preserves_zero f v =
280276
let entries' = List.filter_map (
@@ -287,8 +283,6 @@ module SparseVector: AbstractVector =
287283
288284
Note that [f] {b must} be such that [f 0 0 = 0]!
289285
290-
{i One should use this function over its general counterpart whenever possible, as it is considerably faster!}
291-
292286
@raise Invalid_argument if [v] and [v'] have unequal lengths
293287
*)
294288
let map2_f_preserves_zero f v v' =
@@ -342,8 +336,6 @@ module SparseVector: AbstractVector =
342336
[fold_left_f_preserves_zero f acc v] returns the fold of [v] on [acc] specified by [f].
343337
344338
Note that [f] {b must} be such that [f acc 0 = acc]!
345-
346-
{i One should use this function over its general counterpart whenever possible, as it is considerably faster!}
347339
*)
348340
let fold_left_f_preserves_zero f acc v =
349341
List.fold_left (fun acc (_, value) -> f acc value) acc v.entries
@@ -353,8 +345,6 @@ module SparseVector: AbstractVector =
353345
354346
Note that [f] {b must} be such that [f acc 0 0 = acc]!
355347
356-
{i One should use this function over its general counterpart whenever possible, as it is considerably faster!}
357-
358348
@raise Invalid_argument if [v] and [v'] have unequal lengths
359349
*)
360350
let fold_left2_f_preserves_zero f acc v v' =
@@ -376,8 +366,6 @@ module SparseVector: AbstractVector =
376366
[apply_with_c_f_preserves_zero f c v] returns the mapping of [v] and [c] specified by [f].
377367
378368
Note that [f] {b must} be such that [f 0 c = 0]!
379-
380-
{i One should use this function over its general counterpart whenever possible, as it is considerably faster!}
381369
*)
382370
let apply_with_c_f_preserves_zero f c v =
383371
let entries' = List.filter_map (fun (idx, value) -> let new_val = f value c in if new_val =: A.zero then None else Some (idx, new_val)) v.entries in

0 commit comments

Comments
 (0)