Skip to content

Commit a3cad06

Browse files
committed
fixed a typo
1 parent b6ce5f7 commit a3cad06

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/analyses/assert.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ struct
3535
match Queries.eval_bool (Analyses.ask_of_man man) e with
3636
| `Lifted false ->
3737
warn (M.error ~category:Assert "%s") ~annot:"FAIL" ("Assertion \"" ^ expr ^ "\" will fail.");
38-
Checks.error Checks.Category.AssersionFaillure "Assertion \"%s\" will fail." expr;
38+
Checks.error Checks.Category.AssertionFailure "Assertion \"%s\" will fail." expr;
3939
if refine then raise Analyses.Deadcode else man.local
4040
| `Lifted true ->
4141
warn (M.success ~category:Assert "%s") ("Assertion \"" ^ expr ^ "\" will succeed");
42-
Checks.safe Checks.Category.AssersionFaillure ~message:("Assertion \"%s\" will succeed");
42+
Checks.safe Checks.Category.AssertionFailure ~message:("Assertion \"%s\" will succeed");
4343
man.local
4444
| `Bot ->
4545
M.error ~category:Assert "%s" ("Assertion \"" ^ expr ^ "\" produces a bottom. What does that mean? (currently uninitialized arrays' content is bottom)");
46-
Checks.error Checks.Category.AssersionFaillure "Assertion \"%s\" produces a bottom. What does that mean? (currently uninitialized arrays' content is bottom)" expr;
46+
Checks.error Checks.Category.AssertionFailure "Assertion \"%s\" produces a bottom. What does that mean? (currently uninitialized arrays' content is bottom)" expr;
4747
man.local
4848
| `Top ->
4949
warn (M.warn ~category:Assert "%s") ~annot:"UNKNOWN" ("Assertion \"" ^ expr ^ "\" is unknown.");
50-
Checks.warn Checks.Category.AssersionFaillure "Assertion \"%s\" is unknown." expr;
50+
Checks.warn Checks.Category.AssertionFailure "Assertion \"%s\" is unknown." expr;
5151
man.local
5252

5353
let special man (lval: lval option) (f:varinfo) (args:exp list) : D.t =

src/common/util/checks.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ end
3131

3232
module Category = struct
3333
type t =
34-
| AssersionFaillure
34+
| AssertionFailure
3535
| InvalidMemoryAccess
3636
| DivisionByZero
3737
| IntegerOverflow
@@ -43,7 +43,7 @@ module Category = struct
4343
[@@deriving hash, eq, show]
4444

4545
let to_yojson x = `String (match x with
46-
| AssersionFaillure -> "Assertion failure"
46+
| AssertionFailure -> "Assertion failure"
4747
| InvalidMemoryAccess -> "Invalid memory access"
4848
| DivisionByZero -> "Division by zero"
4949
| IntegerOverflow -> "Integer overflow"
@@ -54,7 +54,7 @@ module Category = struct
5454
| StubCondition -> "Stub condition")
5555

5656
let of_yojson = function
57-
| `String "Assertion failure" -> Ok AssersionFaillure
57+
| `String "Assertion failure" -> Ok AssertionFailure
5858
| `String "Invalid memory access" -> Ok InvalidMemoryAccess
5959
| `String "Division by zero" -> Ok DivisionByZero
6060
| `String "Integer overflow" -> Ok IntegerOverflow

0 commit comments

Comments
 (0)