Fixed typos in comments.

Reviewed By: ddino

Differential Revision: D15512983

fbshipit-source-id: aa693cc5a
master
Radu Grigore 6 years ago committed by Facebook Github Bot
parent d4e4ed55bc
commit 3cf774a142

@ -48,7 +48,7 @@ type instr =
[*lexp1:typ = exp2] where [*lexp1:typ = exp2] where
[lexp1] is an expression denoting a heap address [lexp1] is an expression denoting a heap address
[typ] is the root type of [lexp1] [typ] is the root type of [lexp1]
[exp2] is the expression whose value is store. *) [exp2] is the expression whose value is stored. *)
| Prune of Exp.t * Location.t * bool * if_kind | Prune of Exp.t * Location.t * bool * if_kind
(** prune the state based on [exp=1], the boolean indicates whether true branch *) (** prune the state based on [exp=1], the boolean indicates whether true branch *)
| Call of (Ident.t * Typ.t) * Exp.t * (Exp.t * Typ.t) list * Location.t * CallFlags.t | Call of (Ident.t * Typ.t) * Exp.t * (Exp.t * Typ.t) list * Location.t * CallFlags.t

@ -1196,7 +1196,7 @@ module Procname = struct
match p with match p with
| Java pname -> | Java pname ->
(* Strip autogenerated anonymous inner class numbers in order to keep the bug hash (* Strip autogenerated anonymous inner class numbers in order to keep the bug hash
invariant when introducing new annonynous classes *) invariant when introducing new anonymous classes *)
Str.global_replace (Str.regexp "\\$[0-9]+") "$_" Str.global_replace (Str.regexp "\\$[0-9]+") "$_"
(Java.to_string ~withclass:true pname Simple) (Java.to_string ~withclass:true pname Simple)
| ObjC_Cpp m when ObjC_Cpp.is_objc_method m -> | ObjC_Cpp m when ObjC_Cpp.is_objc_method m ->

@ -1274,7 +1274,7 @@ let rec sym_exec exe_env tenv current_pdesc instr_ (prop_ : Prop.normal Prop.t)
let skip_loop = let skip_loop =
match ik with match ik with
| Sil.Ik_while | Sil.Ik_for -> | Sil.Ik_while | Sil.Ik_for ->
not (IntLit.iszero i) (* skip wile(1) and for (;1;) *) not (IntLit.iszero i) (* skip while(1) and for (;1;) *)
| Sil.Ik_dowhile -> | Sil.Ik_dowhile ->
true (* skip do..while *) true (* skip do..while *)
| Sil.Ik_land_lor -> | Sil.Ik_land_lor ->

Loading…
Cancel
Save