File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -225,12 +225,12 @@ Definition xorBits {u v} (a b : Action u v Z) : Action u v Z := bind a (fun a =>
225
225
Definition notBits {u v} (a : Action u v Z) : Action u v Z := bind a (fun a => Done _ _ _ (Z.lnot a)).
226
226
227
227
(* 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 :=
229
229
bind a (fun a => bind amount (fun amount =>
230
230
if decide (amount >= bitWidth) then trap _ Z else Done _ _ _ (Z.land (Z.shiftl a amount) (Z.ones bitWidth))
231
231
)).
232
232
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 :=
234
234
bind a (fun a => bind amount (fun amount =>
235
235
if decide (amount >= bitWidth) then trap _ Z else Done _ _ _ (Z.land (Z.shiftr a amount) (Z.ones bitWidth))
236
236
)).
You can’t perform that action at this time.
0 commit comments