Mod 3

Submission Date: 2024/9/17 5:15:13
Status: Accepted
Author: xsd
Lines: 34

VSM

imm i"16" $lr8
imm i"0x00090009" $lr0
imm i"0x00030003" $lr4
imm ui"0x0000FFFF" $lr16v
ilsl $lm8v $lr8 $nowrite # lr8v = lm8v << 16
lor $lm0v $aluf $ls0v # ls0v = lm0v | (lm8v << 16)
sadd $aluf $aluf $ls32v # ls32v = 2 * (lm0v | (lm8v << 16))
llsl $aluf $lr4 $nowrite # aluf = 16 * (lm0v | (lm8v << 16))
usadd $aluf $ls32v $nowrite # aluf = 18 * (lm0v | (lm8v << 16))
usadd $aluf $ls0v $ls32v # ls32v = 19 * (lm0v | (lm8v << 16))
slsl $aluf $lr4 $nowrite # aluf = 152 * (lm0v | (lm8v << 16))
usadd $aluf $ls32v $nowrite # aluf = 171 * (lm0v | (lm8v << 16))
uslsr $aluf $lr0 $ls32v # ls32v = 1/3 * (lm0v | (lm8v << 16))
sadd $aluf $aluf $nowrite # aluf = 2/3 * (lm0v | (lm8v << 16))
sadd $aluf $ls32v $nowrite # aluf = 3/3 * (lm0v | (lm8v << 16))
ssub $ls0v $aluf $ls32v # ls0v = mod3 (lm0v | (lm8v << 16))
land $aluf $lr16v $ln0v # ln0v = ans
ilsr $ls32v $lr8 $nowrite
land $aluf $lr16v $ln8v
ilsl $lm24v $lr8 $nowrite
lor $lm16v $aluf $ls0v
sadd $aluf $aluf $ls32v
llsl $aluf $lr4 $nowrite
usadd $aluf $ls32v $nowrite
usadd $aluf $ls0v $ls32v
slsl $aluf $lr4 $nowrite
usadd $aluf $ls32v $nowrite
uslsr $aluf $lr0 $ls32v
sadd $aluf $aluf $nowrite
sadd $aluf $ls32v $nowrite
ssub $ls0v $aluf $ls32v
land $aluf $lr16v $ln16v
ilsr $ls32v $lr8 $nowrite
land $aluf $lr16v $ln24v
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Standard Output

ACCEPTED!! score=34 j=34 m=0 bytes=1075
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Standard Error

------------------- vsm --------------------
# ======= In(0): ((16_MAB:1, 4_PE:1, 16:1, 2_W:1))@LM0 / UInt =======
d set $lm0m0p0 1 000000680000007F # values=[104, 127] / UInt @[0],[1]
d set $lm2m0p0 1 00000061000000C7 # values=[97, 199] / UInt @[2],[3]
d set $lm4m0p0 1 0000005F000000F8 # values=[95, 248] / UInt @[4],[5]
d set $lm6m0p0 1 0000002700000007 # values=[39, 7] / UInt @[6],[7]
d set $lm8m0p0 1 0000001200000096 # values=[18, 150] / UInt @[8],[9]
d set $lm10m0p0 1 000000500000003C # values=[80, 60] / UInt @[10],[11]
d set $lm12m0p0 1 0000006700000098 # values=[103, 152] / UInt @[12],[13]
d set $lm14m0p0 1 0000007C000000D9 # values=[124, 217] / UInt @[14],[15]
d set $lm16m0p0 1 0000005B000000CA # values=[91, 202] / UInt @[16],[17]
d set $lm18m0p0 1 000000BC0000009C # values=[188, 156] / UInt @[18],[19]
d set $lm20m0p0 1 0000008300000010 # values=[131, 16] / UInt @[20],[21]
d set $lm22m0p0 1 00000027000000DB # values=[39, 219] / UInt @[22],[23]
d set $lm24m0p0 1 000000DB000000DA # values=[219, 218] / UInt @[24],[25]
d set $lm26m0p0 1 000000EB000000C1 # values=[235, 193] / UInt @[26],[27]
d set $lm28m0p0 1 000000D600000092 # values=[214, 146] / UInt @[28],[29]
d set $lm30m0p0 1 00000011000000AA # values=[17, 170] / UInt @[30],[31]
d set $lm0m0p1 1 0000001F00000005 # values=[31, 5] / UInt @[32],[33]
d set $lm2m0p1 1 000000E000000083 # values=[224, 131] / UInt @[34],[35]
d set $lm4m0p1 1 000000B2000000AC # values=[178, 172] / UInt @[36],[37]
d set $lm6m0p1 1 0000009400000084 # values=[148, 132] / UInt @[38],[39]
d set $lm8m0p1 1 0000004900000070 # values=[73, 112] / UInt @[40],[41]
d set $lm10m0p1 1 000000B1000000C1 # values=[177, 193] / UInt @[42],[43]
d set $lm12m0p1 1 000000350000003E # values=[53, 62] / UInt @[44],[45]
d set $lm14m0p1 1 0000004400000086 # values=[68, 134] / UInt @[46],[47]
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX