Skip to content

Commit 8910c6d

Browse files
Fix typos in variable names and comments
Co-authored-by: michael-schwarz <13812333+michael-schwarz@users.noreply.github.com>
1 parent 751ce87 commit 8910c6d

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/analyses/base.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ struct
602602
| JmpBuf _ -> empty (* Jump buffers are abstract and nothing known can be reached from them *)
603603
| Mutex -> empty (* mutexes are abstract and nothing known can be reached from them *)
604604

605-
(* Get the list of addresses accessable immediately from a given address, thus
605+
(* Get the list of addresses accessible immediately from a given address, thus
606606
* all pointers within a structure should be considered, but we don't follow
607607
* pointers. We return a flattend representation, thus simply an address (set). *)
608608
let reachable_from_address ~man st (adr: address): address =

src/autoTune0.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class collectComplexityFactorsVisitor(factors) = object
5050
| Set _ ->
5151
factors.instructions <- factors.instructions + 1; DoChildren
5252
| Call (Some _, _,_,_,_) ->
53-
factors.instructions <- factors.instructions + 2; (*Count function call and assignment of the result seperately *)
53+
factors.instructions <- factors.instructions + 2; (*Count function call and assignment of the result separately *)
5454
factors.functionCalls <- factors.functionCalls + 1; DoChildren
5555
| Call _ ->
5656
factors.instructions <- factors.instructions + 1;

src/cdomains/affineEquality/arrayImplementation/arrayMatrix.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ module ArrayMatrix: ArrayMatrixFunctor =
181181

182182
let del_cols m cols = timing_wrap "del_cols" (del_cols m) cols
183183

184-
(* This does NOT have the same semantics as map2i_with. While map2i_with can deal with m and v having different lenghts, map2i will raise Invalid_argument in that case*)
184+
(* This does NOT have the same semantics as map2i_with. While map2i_with can deal with m and v having different lengths, map2i will raise Invalid_argument in that case*)
185185
let map2i f m v =
186186
let f' x (i,y) = V.to_array @@ f i (V.of_array x) y in
187187
let range_array = Array.init (V.length v) Fun.id in

src/common/framework/analysisState.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ let unsound_both_branches_dead: bool option ref = ref None
4242
[Some false] if it doesn't occur.
4343
[None] if [ana.dead-code.branches] option is disabled and this isn't checked. *)
4444

45-
(* Comparison mode where blobs with bot content that are not zero-initalized are considered equivalent to top-level bot *)
45+
(* Comparison mode where blobs with bot content that are not zero-initialized are considered equivalent to top-level bot *)
4646
let bot_in_blob_leq_bot = ref false

src/solver/td_simplified_ref.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ module Base : GenericEqSolver =
123123

124124
and iterate x = (* ~(inner) solve in td3*)
125125

126-
(* begining of iterate*)
126+
(* beginning of iterate*)
127127
let x_ref = init x in
128128
if tracing then trace "iter" "iterate %a, called: %b, stable: %b, wpoint: %b" S.Var.pretty_trace x (!x_ref.called) (!x_ref.stable) (!x_ref.wpoint);
129129
assert (S.system x <> None);

tests/regression/68-longjmp/31-mixedjmpbufs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ int blub(int x,int y) {
2828
int main(void) {
2929

3030
if(setjmp(error0)) {
31-
printf("error0 occured");
31+
printf("error0 occurred");
3232
return -1;
3333
}
3434

3535
if(setjmp(error1)) {
36-
printf("error1 occured");
36+
printf("error1 occurred");
3737
return -2;
3838
}
3939

tests/regression/77-lin2vareq/33-dimarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//SKIP PARAM: --set ana.activated[+] lin2vareq --set sem.int.signed_overflow assume_none
22
// special input triggering add_dimarray of [0,0] at line 10; visible via --trace modify_dims
3-
// both occurances of variables need to be bumped/shifted by 2 indices
3+
// both occurrences of variables need to be bumped/shifted by 2 indices
44
// in our case, d = c still needs to hold
55
#include <goblint.h>
66
int a;

0 commit comments

Comments
 (0)