Skip to content

Commit 3985f35

Browse files
committed
Fix IntDomain cast_to documentation
from_ik is always provided by IntDomLifter, which is used for IntDomTuple.
1 parent a73fcd8 commit 3985f35

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cdomain/value/cdomains/intDomain_intf.ml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,8 @@ sig
242242
val div : ?no_ov:bool -> Cil.ikind -> t -> t -> t
243243
val neg : ?no_ov:bool -> Cil.ikind -> t -> t
244244
val cast_to : ?suppress_ovwarn:bool -> kind:castkind -> ?from_ik:Cil.ikind -> ?no_ov:bool -> Cil.ikind -> t -> t
245-
(** Cast to {!Cil.ikind}.
245+
(** Cast from [from_ik] (if known) to {!Cil.ikind}.
246246
The function is also called to handle overflow/wraparound after operations.
247-
@param from_ik Only present for actual casts, missing for overflow/wraparound (where the type stays the same).
248247
@param no_ov If true, assume no overflow can occur. *)
249248

250249
val join: Cil.ikind -> t -> t -> t
@@ -304,9 +303,8 @@ sig
304303
val neg : ?no_ov:bool -> Cil.ikind -> t -> t * overflow_info
305304

306305
val cast_to : kind:castkind -> ?from_ik:Cil.ikind -> ?no_ov:bool -> Cil.ikind -> t -> t * overflow_info
307-
(** Cast to {!Cil.ikind}.
306+
(** Cast from [from_ik] (if known) to {!Cil.ikind}.
308307
The function is also called to handle overflow/wraparound after operations.
309-
@param from_ik Only present for actual casts, missing for overflow/wraparound (where the type stays the same).
310308
@param no_ov If true, assume no overflow can occur. *)
311309

312310
val of_int : Cil.ikind -> int_t -> t * overflow_info

0 commit comments

Comments
 (0)