Skip to content

Commit 8d0a526

Browse files
Move parameter to the left
1 parent aeddbb6 commit 8d0a526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

theories/Imperative.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ Definition xorBits {u v} (a b : Action u v Z) : Action u v Z := bind a (fun a =>
225225
Definition notBits {u v} (a : Action u v Z) : Action u v Z := bind a (fun a => Done _ _ _ (Z.lnot a)).
226226

227227
(* Shift operations for specified bit width *)
228-
Definition shiftLeft {arrayType} (a amount : Action (WithLocalVariables arrayType) withLocalVariablesReturnValue Z) (bitWidth : Z) : Action (WithLocalVariables arrayType) withLocalVariablesReturnValue Z :=
228+
Definition shiftLeft {arrayType} (bitWidth : Z) (a amount : Action (WithLocalVariables arrayType) withLocalVariablesReturnValue Z) : Action (WithLocalVariables arrayType) withLocalVariablesReturnValue Z :=
229229
bind a (fun a => bind amount (fun amount =>
230230
if decide (amount >= bitWidth) then trap _ Z else Done _ _ _ (Z.land (Z.shiftl a amount) (Z.ones bitWidth))
231231
)).
232232

233-
Definition shiftRight {arrayType} (a amount : Action (WithLocalVariables arrayType) withLocalVariablesReturnValue Z) (bitWidth : Z) : Action (WithLocalVariables arrayType) withLocalVariablesReturnValue Z :=
233+
Definition shiftRight {arrayType} (bitWidth : Z) (a amount : Action (WithLocalVariables arrayType) withLocalVariablesReturnValue Z) : Action (WithLocalVariables arrayType) withLocalVariablesReturnValue Z :=
234234
bind a (fun a => bind amount (fun amount =>
235235
if decide (amount >= bitWidth) then trap _ Z else Done _ _ _ (Z.land (Z.shiftr a amount) (Z.ones bitWidth))
236236
)).

0 commit comments

Comments
 (0)