You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifnot (ThreadIdDomain.Thread.is_main tid) then ( (* Only non-main return constitutes an implicit pthread_exit according to man page (https://github.com/goblint/analyzer/issues/1767#issuecomment-3642590227). *)
2079
2076
(* Evaluate exp and cast the resulting value to the void-pointer-type.
2080
2077
Casting to the right type here avoids precision loss on joins. *)
Copy file name to clipboardExpand all lines: src/cdomain/value/cdomains/intDomain_intf.ml
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -199,9 +199,9 @@ sig
199
199
200
200
(** {b Cast} *)
201
201
202
-
valcast_to: ?suppress_ovwarn:bool -> kind:castkind-> ?torg:Cil.typ -> Cil.ikind -> t -> t
203
-
(** Cast from original type [torg] to integer type [Cil.ikind]. Currently, [torg] is only present for actual casts. The function is also called to handle overflows/wrap around after operations. In these cases (where the type stays the same) [torg] is None. *)
204
-
202
+
valcast_to: ?suppress_ovwarn:bool -> kind:castkind-> Cil.ikind -> t -> t
203
+
(** Cast to {!Cil.ikind}.
204
+
The function is also called to handle overflow/wraparound after operations. *)
205
205
end
206
206
207
207
(** The signature of integral value domains. They need to support all integer
@@ -241,8 +241,10 @@ sig
241
241
valmul : ?no_ov:bool -> Cil.ikind -> t -> t -> t
242
242
valdiv : ?no_ov:bool -> Cil.ikind -> t -> t -> t
243
243
valneg : ?no_ov:bool -> Cil.ikind -> t -> t
244
-
valcast_to : ?suppress_ovwarn:bool -> kind:castkind-> ?torg:Cil.typ -> ?no_ov:bool -> Cil.ikind -> t -> t
245
-
(** @param no_ov If true, assume no overflow can occur. *)
244
+
valcast_to : ?suppress_ovwarn:bool -> kind:castkind-> ?from_ik:Cil.ikind -> ?no_ov:bool -> Cil.ikind -> t -> t
245
+
(** Cast from [from_ik] (if known) to {!Cil.ikind}.
246
+
The function is also called to handle overflow/wraparound after operations.
247
+
@param no_ov If true, assume no overflow can occur. *)
246
248
247
249
valjoin: Cil.ikind -> t -> t -> t
248
250
valmeet: Cil.ikind -> t -> t -> t
@@ -300,7 +302,10 @@ sig
300
302
301
303
valneg : ?no_ov:bool -> Cil.ikind -> t -> t*overflow_info
0 commit comments