Skip to content

Commit c01ca61

Browse files
pml_arinc.ml: fix indentation
1 parent b441d53 commit c01ca61

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/extract/pml_arinc.ml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,18 @@ let init ?(nproc=99) ?(nsema=99) ?(nevent=99) ?(nbboard=99) () = (* TODO better
8686
_ift (poll `Any (!semas_chan j) id) (recv `Any (!semas_chan j) id)
8787
)
8888
else let* () = nop in
89-
waiting_for := id, e NONE show_waiting_for
89+
waiting_for := id, e NONE show_waiting_for
9090
in
9191

9292
(* preemption *)
9393
let mode,_ = var (Enum (COLD_START, show_partition_mode)) "mode" in
9494
let* () = extract "LockPreemption" @@ A0 (
95-
let* () = incr lock_level in
96-
exclusive := !tid (* TODO is this really changed if lock_level > 0? if yes, it is probably also restored... *)
97-
) in
95+
let* () = incr lock_level in
96+
exclusive := !tid (* TODO is this really changed if lock_level > 0? if yes, it is probably also restored... *)
97+
) in
9898
let* () = extract "UnlockPreemption" @@ A0 (
99-
_ift (!lock_level > i 0) (decr lock_level)
100-
) in
99+
_ift (!lock_level > i 0) (decr lock_level)
100+
) in
101101
let* () = extract "SetPartitionMode" @@ A1 (mode, fun mode ->
102102
partition_mode := !mode
103103
) in
@@ -127,10 +127,10 @@ let init ?(nproc=99) ?(nsema=99) ?(nevent=99) ?(nbboard=99) () = (* TODO better
127127
let* () = extract "Resume" @@ A1 (id, fun id ->
128128
let* () = _assert (!status !id != e NOTCREATED show_status) in
129129
let* () = _ift (!status !id == e SUSPENDED show_status) (
130-
_ifte (!waiting_for !id == e NONE show_waiting_for)
131-
(status := !id, e READY show_status)
132-
(status := !id, e WAITING show_status)
133-
) in
130+
_ifte (!waiting_for !id == e NONE show_waiting_for)
131+
(status := !id, e READY show_status)
132+
(status := !id, e WAITING show_status)
133+
) in
134134
status := !id, e SUSPENDED show_status
135135
) in
136136

@@ -188,4 +188,4 @@ let init ?(nproc=99) ?(nsema=99) ?(nevent=99) ?(nbboard=99) () = (* TODO better
188188
]
189189
)
190190

191-
(* events *)
191+
(* events *)

0 commit comments

Comments
 (0)