code wiki / _hdl_build / _pe_codec_grade_test.nx

_pe_codec_grade_test.nx source

↩ module page · 11 lines · 396 B

1// AUTHORED BY THE NISHI BUILDER (PERMIL_VERDICT test) -- KATs computed from the table at emit time 2import "_pe_codec_grade.nx" 3import "nx_syscalls.nx" 4func main() -> i64 { 5 if _pe_codec_grade_verdict(1000) == 1 { 6 if _pe_codec_grade_verdict(0) == 5 { 7 if _pe_codec_grade_verdict(500) == 4 { 8 if _pe_codec_grade_verdict(1000) == 1 { sys_exit(0) } } } } 9 sys_exit(1) 10 return 1 11}