Debian Codegraph @

output-tests/Crypto.Fancy.Barrett256.prod_barrett_red256_correct.expected

raw
1 Barrett256.prod_barrett_red256_correct
2 : forall (cc_start_state : CC.state) (start_context : register -> Z)
3 (x xHigh RegMuLow scratchp1 scratchp2 scratchp3 scratchp4 scratchp5 extra_reg : register),
4 NoDup [x; xHigh; RegMuLow; scratchp1; scratchp2; scratchp3; scratchp4; scratchp5; extra_reg; RegMod; RegZero] ->
5 0 <= start_context x < 2 ^ Barrett256.machine_wordsize ->
6 0 <= start_context xHigh < Barrett256.M ->
7 start_context RegMuLow = Barrett256.muLow ->
8 start_context RegMod = Barrett256.M ->
9 start_context RegZero = 0 ->
10 CC.cc_m cc_start_state = cc_spec CC.M (start_context xHigh) ->
11 let X := start_context x + 2 ^ Barrett256.machine_wordsize * start_context xHigh in
12 interp reg_eqb wordmax cc_spec (MulMod x xHigh RegMuLow scratchp1 scratchp2 scratchp3 scratchp4 scratchp5) cc_start_state start_context =
13 X mod Barrett256.M