You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

290 lines
7.3 KiB

{
"mainCode": "{\n {\n }\n}\n",
"signalName2Idx": {
"one": 0,
"main.in": 1,
"main.h0.out[0]": 2,
"main.h0.out[1]": 3,
"main.h0.out[2]": 4,
"main.h0.out[3]": 5,
"main.h0.out[4]": 6,
"main.h0.out[5]": 7,
"main.h0.out[6]": 8,
"main.h0.out[7]": 9,
"main.h0.out[8]": 10,
"main.h0.out[9]": 11,
"main.h0.out[10]": 12,
"main.h0.out[11]": 13,
"main.h0.out[12]": 14,
"main.h0.out[13]": 15,
"main.h0.out[14]": 16,
"main.h0.out[15]": 17,
"main.h0.out[16]": 18,
"main.h0.out[17]": 19,
"main.h0.out[18]": 20,
"main.h0.out[19]": 21,
"main.h0.out[20]": 22,
"main.h0.out[21]": 23,
"main.h0.out[22]": 24,
"main.h0.out[23]": 25,
"main.h0.out[24]": 26,
"main.h0.out[25]": 27,
"main.h0.out[26]": 28,
"main.h0.out[27]": 29,
"main.h0.out[28]": 30,
"main.h0.out[29]": 31,
"main.h0.out[30]": 32,
"main.h0.out[31]": 33
},
"components": [
{
"name": "main",
"params": {},
"template": "A",
"inputSignals": 1
},
{
"name": "main.h0",
"params": {
"x": "8"
},
"template": "K",
"inputSignals": 0
}
],
"componentName2Idx": {
"main": 0,
"main.h0": 1
},
"signals": [
{
"names": [
"one"
],
"triggerComponents": []
},
{
"names": [
"main.in"
],
"triggerComponents": [
0
]
},
{
"names": [
"main.h0.out[0]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[1]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[2]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[3]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[4]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[5]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[6]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[7]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[8]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[9]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[10]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[11]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[12]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[13]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[14]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[15]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[16]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[17]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[18]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[19]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[20]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[21]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[22]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[23]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[24]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[25]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[26]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[27]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[28]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[29]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[30]"
],
"triggerComponents": []
},
{
"names": [
"main.h0.out[31]"
],
"triggerComponents": []
}
],
"constrains": [
[
{},
{},
{
"0": "21888242871839275222246405745257275088548364400416034343698204186572184114537",
"1": "1"
}
]
],
"templates": {
"H": "function(ctx) {\n ctx.setVar(\"c\", [], [\"1779033703\",\"3144134277\",\"1013904242\",\"2773480762\",\"1359893119\",\"2600822924\",\"528734635\",\"1541459225\"]);\n for (ctx.setVar(\"i\", [], \"0\");bigInt(ctx.getVar(\"i\",[])).lt(bigInt(\"32\")) ? 1 : 0;(ctx.setVar(\"i\", [], bigInt(ctx.getVar(\"i\",[])).add(bigInt(\"1\")).mod(__P__))).add(__P__).sub(bigInt(1)).mod(__P__))\n {\n ctx.setSignal(\"out\", [ctx.getVar(\"i\",[])], bigInt(bigInt(ctx.getVar(\"i\",[])).greater(bigInt(256)) ? 0 : bigInt(ctx.getVar(\"c\",[ctx.getVar(\"x\",[])])).shr(bigInt(ctx.getVar(\"i\",[]))).and(__MASK__)).and(bigInt(\"1\")).and(__MASK__));\n ctx.assert(ctx.getSignal(\"out\", [ctx.getVar(\"i\",[])]), bigInt(bigInt(ctx.getVar(\"i\",[])).greater(bigInt(256)) ? 0 : bigInt(ctx.getVar(\"c\",[ctx.getVar(\"x\",[])])).shr(bigInt(ctx.getVar(\"i\",[]))).and(__MASK__)).and(bigInt(\"1\")).and(__MASK__));\n }\n}\n",
"K": "function(ctx) {\n ctx.setVar(\"c\", [], [\"1116352408\",\"1899447441\",\"3049323471\",\"3921009573\",\"961987163\",\"1508970993\",\"2453635748\",\"2870763221\",\"3624381080\",\"310598401\",\"607225278\",\"1426881987\",\"1925078388\",\"2162078206\",\"2614888103\",\"3248222580\",\"3835390401\",\"4022224774\",\"264347078\",\"604807628\",\"770255983\",\"1249150122\",\"1555081692\",\"1996064986\",\"2554220882\",\"2821834349\",\"2952996808\",\"3210313671\",\"3336571891\",\"3584528711\",\"113926993\",\"338241895\",\"666307205\",\"773529912\",\"1294757372\",\"1396182291\",\"1695183700\",\"1986661051\",\"2177026350\",\"2456956037\",\"2730485921\",\"2820302411\",\"3259730800\",\"3345764771\",\"3516065817\",\"3600352804\",\"4094571909\",\"275423344\",\"430227734\",\"506948616\",\"659060556\",\"883997877\",\"958139571\",\"1322822218\",\"1537002063\",\"1747873779\",\"1955562222\",\"2024104815\",\"2227730452\",\"2361852424\",\"2428436474\",\"2756734187\",\"3204031479\",\"3329325298\"]);\n for (ctx.setVar(\"i\", [], \"0\");bigInt(ctx.getVar(\"i\",[])).lt(bigInt(\"32\")) ? 1 : 0;(ctx.setVar(\"i\", [], bigInt(ctx.getVar(\"i\",[])).add(bigInt(\"1\")).mod(__P__))).add(__P__).sub(bigInt(1)).mod(__P__))\n {\n ctx.setSignal(\"out\", [ctx.getVar(\"i\",[])], bigInt(bigInt(ctx.getVar(\"i\",[])).greater(bigInt(256)) ? 0 : bigInt(ctx.getVar(\"c\",[ctx.getVar(\"x\",[])])).shr(bigInt(ctx.getVar(\"i\",[]))).and(__MASK__)).and(bigInt(\"1\")).and(__MASK__));\n ctx.assert(ctx.getSignal(\"out\", [ctx.getVar(\"i\",[])]), bigInt(bigInt(ctx.getVar(\"i\",[])).greater(bigInt(256)) ? 0 : bigInt(ctx.getVar(\"c\",[ctx.getVar(\"x\",[])])).shr(bigInt(ctx.getVar(\"i\",[]))).and(__MASK__)).and(bigInt(\"1\")).and(__MASK__));\n }\n}\n",
"A": "function(ctx) {\n ctx.setVar(\"lc\", [], \"0\");\n ctx.setVar(\"e\", [], \"1\");\n for (ctx.setVar(\"i\", [], \"0\");bigInt(ctx.getVar(\"i\",[])).lt(bigInt(\"32\")) ? 1 : 0;(ctx.setVar(\"i\", [], bigInt(ctx.getVar(\"i\",[])).add(bigInt(\"1\")).mod(__P__))).add(__P__).sub(bigInt(1)).mod(__P__))\n {\n ctx.setVar(\"lc\", [], bigInt(ctx.getVar(\"lc\",[])).add(bigInt(bigInt(ctx.getVar(\"e\",[])).mul(bigInt(ctx.getPin(\"h0\", [], \"out\", [ctx.getVar(\"i\",[])]))).mod(__P__))).mod(__P__));\n ctx.setVar(\"e\", [], bigInt(ctx.getVar(\"e\",[])).mul(bigInt(\"2\")).mod(__P__));\n }\n ctx.assert(ctx.getVar(\"lc\",[]), ctx.getSignal(\"in\", []));\n}\n"
},
"functions": {},
"nPrvInputs": 0,
"nPubInputs": 1,
"nInputs": 1,
"nOutputs": 0,
"nVars": 2,
"nConstants": 32,
"nSignals": 34
}