| 1 |
From Coq Require Import String List. |
| 2 |
Import ListNotations. |
| 3 |
Local Open Scope string_scope. |
| 4 |
Local Open Scope list_scope. |
| 5 |
Example example : list string := [ |
| 6 |
"SECTION .text"; |
| 7 |
" GLOBAL fiat_25519_carry_square_optimised"; |
| 8 |
""; |
| 9 |
"fiat_25519_carry_square_optimised:"; |
| 10 |
" sub rsp, 0x38 "; |
| 11 |
" mov [rsp + 0x08 * 0 ], rbx; saving to stack"; |
| 12 |
" mov [rsp + 0x08 * 1 ], rbp; saving to stack"; |
| 13 |
" mov [rsp + 0x08 * 2 ], r12; saving to stack"; |
| 14 |
" mov [rsp + 0x08 * 3 ], r13; saving to stack"; |
| 15 |
" mov [rsp + 0x08 * 4 ], r14; saving to stack"; |
| 16 |
" mov [rsp + 0x08 * 5 ], r15; saving to stack"; |
| 17 |
" ; rdi contains out1"; |
| 18 |
" ; rsi contains arg1"; |
| 19 |
" ;chose >>saved<< arg1[0] from:arg1[0], arg1[0][1] and candidates: arg1[0], arg1[0]"; |
| 20 |
" mov rdx, [rsi + 0x08 * 0 ]; arg1[0] to rdx"; |
| 21 |
" ; fr:rax,r10,r11,rbx,rbp,r12,r13,r14,r15,rcx,r8,r9"; |
| 22 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""arg1[0]:rdx""]"; |
| 23 |
" ;chose >>RANDOMLY<< r12 from candidates :rax, r10, r11, rbx, rbp, r12, r13, r14, r15, rcx, r8, r9[5]."; |
| 24 |
" ; fr:rax,r10,r11,rbx,rbp,r13,r14,r15,rcx,r8,r9"; |
| 25 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""arg1[0]:rdx"",""x38:r12""]"; |
| 26 |
" ;chose >>RANDOMLY<< r13 from candidates :rax, r10, r11, rbx, rbp, r13, r14, r15, rcx, r8, r9[5]."; |
| 27 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""arg1[0]:rdx"",""x38:r12"",""x37:r13""]"; |
| 28 |
" mulx r12, r13, [rsi + 0x08 * 0 ]; x38, x37<- arg1[0] * arg1[0]"; |
| 29 |
" ; fr:rax,r10,r11,rbx,rbp,r14,r15,rcx,r8,r9"; |
| 30 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""arg1[0]:rdx"",""x38:r12"",""x37:r13""]"; |
| 31 |
" ;chose >>RANDOMLY<< rax from candidates :rax, r10, r11, rbx, rbp, r14, r15, rcx, r8, r9[0]."; |
| 32 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""arg1[0]:rdx"",""x38:r12"",""x37:r13"",""x4:rax""]"; |
| 33 |
" imul rax, [rsi + 0x08 * 3 ], 0x13; x4 <- arg1[3] * 0x13"; |
| 34 |
" ;CF: KILLED,OF: KILLED"; |
| 35 |
" ; fr:r10,r11,rbx,rbp,r14,r15,rcx,r8,r9"; |
| 36 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""arg1[0]:rdx"",""x38:r12"",""x37:r13"",""x4:rax""]"; |
| 37 |
" ;chose >>RANDOMLY<< rbp from candidates :r10, r11, rbx, rbp, r14, r15, rcx, r8, r9[3]."; |
| 38 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""arg1[0]:rdx"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp""]"; |
| 39 |
" imul rbp, [rsi + 0x08 * 4 ], 0x13; x1 <- arg1[4] * 0x13"; |
| 40 |
" ;CF: KILLED,OF: KILLED"; |
| 41 |
" ; fr:r10,r11,rbx,r14,r15,rcx,r8,r9"; |
| 42 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""arg1[0]:rdx"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp""]"; |
| 43 |
" ;chose >>RANDOMLY<< r14 from candidates :r10, r11, rbx, r14, r15, rcx, r8, r9[3]."; |
| 44 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""arg1[0]:rdx"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp"",""x2:r14""]"; |
| 45 |
" imul r14, rbp, 0x2; x2 <- x1 * 0x2"; |
| 46 |
" ;CF: KILLED,OF: KILLED"; |
| 47 |
" ;chose >>saved<< arg1[1] from:arg1[1], x2[0] and candidates: arg1[1], x2"; |
| 48 |
" mov rdx, [rsi + 0x08 * 1 ]; arg1[1] to rdx"; |
| 49 |
" ; fr:r10,r11,rbx,r15,rcx,r8,r9"; |
| 50 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp"",""x2:r14"",""arg1[1]:rdx""]"; |
| 51 |
" ;chose >>RANDOMLY<< rbx from candidates :r10, r11, rbx, r15, rcx, r8, r9[2]."; |
| 52 |
" ; fr:r10,r11,r15,rcx,r8,r9"; |
| 53 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp"",""x2:r14"",""arg1[1]:rdx"",""x22:rbx""]"; |
| 54 |
" ;chose >>RANDOMLY<< r10 from candidates :r10, r11, r15, rcx, r8, r9[0]."; |
| 55 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp"",""x2:r14"",""arg1[1]:rdx"",""x22:rbx"",""x21:r10""]"; |
| 56 |
" mulx rbx, r10, r14; x22, x21<- arg1[1] * x2"; |
| 57 |
" ; fr:r11,r15,rcx,r8,r9"; |
| 58 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp"",""x2:r14"",""arg1[1]:rdx"",""x22:rbx"",""x21:r10""]"; |
| 59 |
" ;chose >>RANDOMLY<< r11 from candidates :r11, r15, rcx, r8, r9[0]."; |
| 60 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp"",""x2:r14"",""arg1[1]:rdx"",""x22:rbx"",""x21:r10"",""x5:r11""]"; |
| 61 |
" imul r11, rax, 0x2; x5 <- x4 * 0x2"; |
| 62 |
" ;CF: KILLED,OF: KILLED"; |
| 63 |
" ;chose >>saved<< x5 from:arg1[2], x5[1] and candidates: arg1[2], x5"; |
| 64 |
" mov rdx, r11; x5 to rdx"; |
| 65 |
" ; fr:r11,r15,rcx,r8,r9"; |
| 66 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp"",""x2:r14"",""x22:rbx"",""x21:r10"",""x18:rdx""]"; |
| 67 |
" ;chose >>RANDOMLY<< r9 from candidates :r11, r15, rcx, r8, r9[4]."; |
| 68 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp"",""x2:r14"",""x22:rbx"",""x21:r10"",""x18:rdx"",""x17:r9""]"; |
| 69 |
" mulx rdx, r9, [rsi + 0x08 * 2 ]; x18, x17<- arg1[2] * x5"; |
| 70 |
" "; |
| 71 |
""; |
| 72 |
" ; add:"; |
| 73 |
" ; r:x39,f:x40<-add(0x0,x21,x17)"; |
| 74 |
" ; CF: KILLED,OF: KILLED"; |
| 75 |
" ;chose >>saved<< c_xor_adx from:c_add, c_xor_adx, c_test_adx[1] and candidates: c_add, c_xor_adx, c_test_adx"; |
| 76 |
" ; fr:r11,r15,rcx,r8"; |
| 77 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x38:r12"",""x37:r13"",""x4:rax"",""x1:rbp"",""x2:r14"",""x22:rbx"",""x18:rdx"",""x17:r9"",""x39:r10""]"; |
| 78 |
" ;chose >>RANDOMLY<< r11 from candidates :r11, r15, rcx, r8[0]."; |
| 79 |
" xor r11, r11"; |
| 80 |
" ;chose >>saved<< OF from:CF, OF[1] and candidates: CF, OF"; |
| 81 |
" adox r10, r9"; |
| 82 |
" "; |
| 83 |
""; |
| 84 |
" ; add:"; |
| 85 |
" ; r:x43,f:x44<-add(0x0,x37,x39)"; |
| 86 |
" ; CF: ZERO,OF: ALIVE"; |
| 87 |
" adcx r13, r10"; |
| 88 |
" "; |
| 89 |
""; |
| 90 |
" ; add:"; |
| 91 |
" ; r:x41,f:_<-add(x40,x22,x18)"; |
| 92 |
" ; CF: ALIVE,OF: ALIVE"; |
| 93 |
" adox rbx, rdx"; |
| 94 |
" "; |
| 95 |
""; |
| 96 |
" ; add:"; |
| 97 |
" ; r:x45,f:_<-add(x44,x38,x41)"; |
| 98 |
" ; CF: ALIVE,OF: KILLED"; |
| 99 |
" adcx r12, rbx"; |
| 100 |
" ; fr:r15,rcx,r8"; |
| 101 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""x18:rdx"",""x17:r9"",""x39:r10"",""0x0:r11"",""x40:OF"",""x43:r13"",""x44:CF"",""x41:rbx"",""x45:r12""]"; |
| 102 |
" ;chose >>RANDOMLY<< r15 from candidates :r15, rcx, r8[0]."; |
| 103 |
" mov r15, r13; x47, copying x43 here, cause x43 is needed in a reg for other than x47, namely all: , x47, x48, size: 2"; |
| 104 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""x18:rdx"",""x17:r9"",""x39:r10"",""0x0:r11"",""x40:OF"",""x43:r13"",""x44:CF"",""x41:rbx"",""x45:r12"",""x47:r15""]"; |
| 105 |
" shrd r15, r12, 51; x47 <- x45||x43 >> 51"; |
| 106 |
" ; fr:rcx,r8"; |
| 107 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""x18:rdx"",""x17:r9"",""x39:r10"",""0x0:r11"",""x40:OF"",""x43:r13"",""x44:CF"",""x41:rbx"",""x45:r12"",""x47:r15""]"; |
| 108 |
" ;chose >>RANDOMLY<< rcx from candidates :rcx, r8[0]."; |
| 109 |
" mov rcx, 0x7ffffffffffff ; moving imm to reg"; |
| 110 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""x18:rdx"",""x17:r9"",""x39:r10"",""0x0:r11"",""x40:OF"",""x44:CF"",""x41:rbx"",""x45:r12"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13""]"; |
| 111 |
" and r13, rcx; x48 <- x43& 0x7ffffffffffff"; |
| 112 |
" ; fr:r8"; |
| 113 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""x18:rdx"",""x17:r9"",""x39:r10"",""0x0:r11"",""x40:OF"",""x44:CF"",""x41:rbx"",""x45:r12"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13""]"; |
| 114 |
" ;chose >>RANDOMLY<< r8 from candidates :r8[0]."; |
| 115 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""x18:rdx"",""x17:r9"",""x39:r10"",""0x0:r11"",""x40:OF"",""x44:CF"",""x41:rbx"",""x45:r12"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13"",""x8:r8""]"; |
| 116 |
" imul r8, [rsi + 0x08 * 1 ], 0x2; x8 <- arg1[1] * 0x2"; |
| 117 |
" ;CF: KILLED,OF: KILLED"; |
| 118 |
" ;chose >>saved<< x8 from:arg1[0], x8[1] and candidates: arg1[0], x8"; |
| 119 |
" mov rdx, r8; x8 to rdx"; |
| 120 |
" ; fr:r8"; |
| 121 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""x17:r9"",""x39:r10"",""0x0:r11"",""x40:OF"",""x44:CF"",""x41:rbx"",""x45:r12"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13"",""x36:rdx""]"; |
| 122 |
" ;chose >>RANDOMLY<< r8 from candidates :r8[0]."; |
| 123 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""x17:r9"",""x39:r10"",""0x0:r11"",""x40:OF"",""x44:CF"",""x41:rbx"",""x45:r12"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13"",""x36:rdx"",""x35:r8""]"; |
| 124 |
" mulx rdx, r8, [rsi + 0x08 * 0 ]; x36, x35<- arg1[0] * x8"; |
| 125 |
" ;chose >>saved<< arg1[2] from:arg1[2], x2[0] and candidates: arg1[2], x2"; |
| 126 |
" ; fr:"; |
| 127 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""x17:r9"",""x39:r10"",""0x0:r11"",""x40:OF"",""x44:CF"",""x41:rbx"",""x45:r12"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13"",""x36:rdx"",""x35:r8"",""arg1[2]:rdx""]"; |
| 128 |
" ; freeing x17 (r9) no dependants anymore"; |
| 129 |
" mov r9, rdx; preserving value of x36 into a new reg"; |
| 130 |
" mov rdx, [rsi + 0x08 * 2 ]; saving arg1[2] in rdx."; |
| 131 |
" ; fr:"; |
| 132 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""x39:r10"",""0x0:r11"",""x40:OF"",""x44:CF"",""x41:rbx"",""x45:r12"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13"",""x36:r9"",""x35:r8"",""arg1[2]:rdx""]"; |
| 133 |
" ; freeing x39 (r10) no dependants anymore"; |
| 134 |
" ; fr:"; |
| 135 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""0x0:r11"",""x40:OF"",""x44:CF"",""x41:rbx"",""x45:r12"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13"",""x36:r9"",""x35:r8"",""arg1[2]:rdx"",""x16:r10""]"; |
| 136 |
" ; freeing x41 (rbx) no dependants anymore"; |
| 137 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x4:rax"",""x1:rbp"",""x2:r14"",""0x0:r11"",""x40:OF"",""x44:CF"",""x45:r12"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13"",""x36:r9"",""x35:r8"",""arg1[2]:rdx"",""x16:r10"",""x15:rbx""]"; |
| 138 |
" mulx r10, rbx, r14; x16, x15<- arg1[2] * x2"; |
| 139 |
" ;chose >>saved<< arg1[3] from:arg1[3], x4[0] and candidates: arg1[3], x4"; |
| 140 |
" mov rdx, [rsi + 0x08 * 3 ]; arg1[3] to rdx"; |
| 141 |
" ; fr:"; |
| 142 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""0x0:r11"",""x40:OF"",""x44:CF"",""x45:r12"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13"",""x36:r9"",""x35:r8"",""x16:r10"",""x15:rbx"",""arg1[3]:rdx"",""x14:rax""]"; |
| 143 |
" ; freeing x45 (r12) no dependants anymore"; |
| 144 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""0x0:r11"",""x40:OF"",""x44:CF"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13"",""x36:r9"",""x35:r8"",""x16:r10"",""x15:rbx"",""arg1[3]:rdx"",""x14:rax"",""x13:r12""]"; |
| 145 |
" mulx rax, r12, rax; x14, x13<- arg1[3] * x4"; |
| 146 |
" "; |
| 147 |
""; |
| 148 |
" ; add:"; |
| 149 |
" ; r:x73,f:x74<-add(0x0,x15,x13)"; |
| 150 |
" ; CF: KILLED,OF: KILLED"; |
| 151 |
" ;chose >>saved<< c_xor_adx from:c_add, c_xor_adx, c_test_adx[1] and candidates: c_add, c_xor_adx, c_test_adx"; |
| 152 |
" ; fr:"; |
| 153 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""0x0:r11"",""x40:OF"",""x44:CF"",""x47:r15"",""0x7ffffffffffff:rcx"",""x48:r13"",""x36:r9"",""x35:r8"",""x16:r10"",""arg1[3]:rdx"",""x14:rax"",""x13:r12"",""x73:rbx""]"; |
| 154 |
" ;chose 0x7ffffffffffff to spill because list of spills:arg1[1]Larg1[1]Larg1[1]Larg1[1]Larg1[1]L0x7ffffffffffffL0x7ffffffffffffL0x7ffffffffffffL0x7ffffffffffffL0x7ffffffffffffLarg1[2]Larg1[2]Larg1[4] and candidates: 0x7ffffffffffff, arg1[3]"; |
| 155 |
" ; freeing, i.e. spilling 0x7ffffffffffff, because I am out of ideas"; |
| 156 |
" ; allocs: out1(rdi),arg1(rsi),x1(rbp),x2(r14),0x0(r11),x47(r15),0x7ffffffffffff(rcx),x48(r13),x36(r9),x35(r8),x16(r10),arg1[3](rdx),x14(rax),x13(r12),x73(rbx); clobs x73,x74,0x0,x15,x13,x15; will spare: 0x7ffffffffffff "; |
| 157 |
" xor rcx, rcx"; |
| 158 |
" ;chose >>saved<< OF from:CF, OF[1] and candidates: CF, OF"; |
| 159 |
" adox rbx, r12"; |
| 160 |
" "; |
| 161 |
""; |
| 162 |
" ; add:"; |
| 163 |
" ; r:x75,f:_<-add(x74,x16,x14)"; |
| 164 |
" ; CF: ZERO,OF: ALIVE"; |
| 165 |
" adox r10, rax"; |
| 166 |
" "; |
| 167 |
""; |
| 168 |
" ; add:"; |
| 169 |
" ; r:x77,f:x78<-add(0x0,x35,x73)"; |
| 170 |
" ; CF: ZERO,OF: KILLED"; |
| 171 |
" adcx r8, rbx"; |
| 172 |
" "; |
| 173 |
""; |
| 174 |
" ; add:"; |
| 175 |
" ; r:x81,f:x82<-add(0x0,x47,x77)"; |
| 176 |
" ; CF: ALIVE,OF: KILLED"; |
| 177 |
" dec rcx; OF<-0x0, preserve CF 3"; |
| 178 |
" adox r15, r8"; |
| 179 |
" "; |
| 180 |
""; |
| 181 |
" ; add:"; |
| 182 |
" ; r:x79,f:_<-add(x78,x36,x75)"; |
| 183 |
" ; CF: ALIVE,OF: ALIVE"; |
| 184 |
" adcx r9, r10"; |
| 185 |
" "; |
| 186 |
""; |
| 187 |
" ; add:"; |
| 188 |
" ; r:x83,f:_<-add(x82,x79)"; |
| 189 |
" ; CF: KILLED,OF: ALIVE"; |
| 190 |
" ; fr:r11"; |
| 191 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""arg1[3]:rdx"",""x14:rax"",""x13:r12"",""x73:rbx"",""x75:r10"",""x77:r8"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9""]"; |
| 192 |
" ;chose >>RANDOMLY<< r11 from candidates :r11[0]."; |
| 193 |
" mov r11, 0x0 ; moving imm to reg"; |
| 194 |
" adox r9, r11"; |
| 195 |
" ; fr:"; |
| 196 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""arg1[3]:rdx"",""x14:rax"",""x13:r12"",""x73:rbx"",""x75:r10"",""x77:r8"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9"",""0x0:r11""]"; |
| 197 |
" ; freeing x14 (rax) no dependants anymore"; |
| 198 |
" mov rax, r15; x84, copying x81 here, cause x81 is needed in a reg for other than x84, namely all: , x84, x85, size: 2"; |
| 199 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""arg1[3]:rdx"",""x13:r12"",""x73:rbx"",""x75:r10"",""x77:r8"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9"",""0x0:r11"",""x84:rax""]"; |
| 200 |
" shrd rax, r9, 51; x84 <- x83||x81 >> 51"; |
| 201 |
" ; fr:"; |
| 202 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""arg1[3]:rdx"",""x13:r12"",""x73:rbx"",""x75:r10"",""x77:r8"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9"",""0x0:r11"",""x84:rax""]"; |
| 203 |
" ; freeing x13 (r12) no dependants anymore"; |
| 204 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""arg1[3]:rdx"",""x73:rbx"",""x75:r10"",""x77:r8"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9"",""0x0:r11"",""x84:rax"",""x7:r12""]"; |
| 205 |
" imul r12, [rsi + 0x08 * 2 ], 0x2; x7 <- arg1[2] * 0x2"; |
| 206 |
" ;CF: KILLED,OF: KILLED"; |
| 207 |
" ;chose >>saved<< x7 from:arg1[0], x7[1] and candidates: arg1[0], x7"; |
| 208 |
" mov rdx, r12; x7 to rdx"; |
| 209 |
" ; fr:r12"; |
| 210 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""x73:rbx"",""x75:r10"",""x77:r8"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9"",""0x0:r11"",""x84:rax"",""x7:rdx""]"; |
| 211 |
" ;chose >>RANDOMLY<< r12 from candidates :r12[0]."; |
| 212 |
" ; fr:"; |
| 213 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""x73:rbx"",""x75:r10"",""x77:r8"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9"",""0x0:r11"",""x84:rax"",""x7:rdx"",""x34:r12""]"; |
| 214 |
" ; freeing x73 (rbx) no dependants anymore"; |
| 215 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""x75:r10"",""x77:r8"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9"",""0x0:r11"",""x84:rax"",""x7:rdx"",""x34:r12"",""x33:rbx""]"; |
| 216 |
" mulx r12, rbx, [rsi + 0x08 * 0 ]; x34, x33<- arg1[0] * x7"; |
| 217 |
" ;chose >>saved<< arg1[1] from:arg1[1], arg1[1][0] and candidates: arg1[1], arg1[1]"; |
| 218 |
" ; fr:"; |
| 219 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""x75:r10"",""x77:r8"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9"",""0x0:r11"",""x84:rax"",""x7:rdx"",""x34:r12"",""x33:rbx"",""arg1[1]:rdx""]"; |
| 220 |
" ; freeing x75 (r10) no dependants anymore"; |
| 221 |
" mov r10, rdx; preserving value of x7 into a new reg"; |
| 222 |
" mov rdx, [rsi + 0x08 * 1 ]; saving arg1[1] in rdx."; |
| 223 |
" ; fr:"; |
| 224 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""x77:r8"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9"",""0x0:r11"",""x84:rax"",""x7:r10"",""x34:r12"",""x33:rbx"",""arg1[1]:rdx""]"; |
| 225 |
" ; freeing x77 (r8) no dependants anymore"; |
| 226 |
" ; fr:"; |
| 227 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""x83:r9"",""0x0:r11"",""x84:rax"",""x7:r10"",""x34:r12"",""x33:rbx"",""arg1[1]:rdx"",""x28:r8""]"; |
| 228 |
" ; freeing x83 (r9) no dependants anymore"; |
| 229 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x2:r14"",""x48:r13"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""0x0:r11"",""x84:rax"",""x7:r10"",""x34:r12"",""x33:rbx"",""arg1[1]:rdx"",""x28:r8"",""x27:r9""]"; |
| 230 |
" mulx r8, r9, [rsi + 0x08 * 1 ]; x28, x27<- arg1[1] * arg1[1]"; |
| 231 |
" ;chose >>saved<< x2 from:arg1[3], x2[1] and candidates: arg1[3], x2"; |
| 232 |
" mov rdx, r14; x2 to rdx"; |
| 233 |
" ; fr:r14"; |
| 234 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x48:r13"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""0x0:r11"",""x84:rax"",""x7:r10"",""x34:r12"",""x33:rbx"",""x28:r8"",""x27:r9"",""x12:rdx""]"; |
| 235 |
" ;chose >>RANDOMLY<< r14 from candidates :r14[0]."; |
| 236 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x48:r13"",""x78:CF"",""x81:r15"",""-0x1:rcx"",""x82:OF"",""0x0:r11"",""x84:rax"",""x7:r10"",""x34:r12"",""x33:rbx"",""x28:r8"",""x27:r9"",""x12:rdx"",""x11:r14""]"; |
| 237 |
" mulx rdx, r14, [rsi + 0x08 * 3 ]; x12, x11<- arg1[3] * x2"; |
| 238 |
" "; |
| 239 |
""; |
| 240 |
" ; add:"; |
| 241 |
" ; r:x65,f:x66<-add(0x0,x27,x11)"; |
| 242 |
" ; CF: KILLED,OF: KILLED"; |
| 243 |
" ;chose >>saved<< c_add from:c_add, c_xor_adx, c_test_adx[0] and candidates: c_add, c_xor_adx, c_test_adx"; |
| 244 |
" add r9, r14; could be done better, if r0 has been u8 as well"; |
| 245 |
" "; |
| 246 |
""; |
| 247 |
" ; add:"; |
| 248 |
" ; r:x69,f:x70<-add(0x0,x33,x65)"; |
| 249 |
" ; CF: ALIVE,OF: KILLED"; |
| 250 |
" inc rcx; OF<-0x0, preserve CF 1"; |
| 251 |
" adox rbx, r9"; |
| 252 |
" "; |
| 253 |
""; |
| 254 |
" ; add:"; |
| 255 |
" ; r:x67,f:_<-add(x66,x28,x12)"; |
| 256 |
" ; CF: ALIVE,OF: ALIVE"; |
| 257 |
" adcx r8, rdx"; |
| 258 |
" "; |
| 259 |
""; |
| 260 |
" ; add:"; |
| 261 |
" ; r:x71,f:_<-add(x70,x34,x67)"; |
| 262 |
" ; CF: KILLED,OF: ALIVE"; |
| 263 |
" adox r12, r8"; |
| 264 |
" "; |
| 265 |
""; |
| 266 |
" ; add:"; |
| 267 |
" ; r:x86,f:x87<-add(0x0,x84,x69)"; |
| 268 |
" ; CF: KILLED,OF: KILLED"; |
| 269 |
" ;chose >>saved<< c_test_adx from:c_add, c_xor_adx, c_test_adx[2] and candidates: c_add, c_xor_adx, c_test_adx"; |
| 270 |
" test al, al"; |
| 271 |
" ;chose >>saved<< CF from:CF, OF[0] and candidates: CF, OF"; |
| 272 |
" adox rax, rbx"; |
| 273 |
" "; |
| 274 |
""; |
| 275 |
" ; add:"; |
| 276 |
" ; r:x88,f:_<-add(x87,x71)"; |
| 277 |
" ; CF: ZERO,OF: ALIVE"; |
| 278 |
" adox r12, rcx"; |
| 279 |
" ; fr:r11"; |
| 280 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x7:r10"",""x12:rdx"",""x11:r14"",""x65:r9"",""x66:CF"",""x69:rbx"",""x67:r8"",""x86:rax"",""x87:OF"",""x88:r12""]"; |
| 281 |
" ;chose >>RANDOMLY<< r11 from candidates :r11[0]."; |
| 282 |
" mov r11, rax; x89, copying x86 here, cause x86 is needed in a reg for other than x89, namely all: , x90, x89, size: 2"; |
| 283 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x7:r10"",""x12:rdx"",""x11:r14"",""x65:r9"",""x66:CF"",""x69:rbx"",""x67:r8"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11""]"; |
| 284 |
" shrd r11, r12, 51; x89 <- x88||x86 >> 51"; |
| 285 |
" ; fr:"; |
| 286 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x7:r10"",""x12:rdx"",""x11:r14"",""x65:r9"",""x66:CF"",""x69:rbx"",""x67:r8"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11""]"; |
| 287 |
" ; freeing x12 (rdx) no dependants anymore"; |
| 288 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x7:r10"",""x11:r14"",""x65:r9"",""x66:CF"",""x69:rbx"",""x67:r8"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11"",""x6:rdx""]"; |
| 289 |
" imul rdx, [rsi + 0x08 * 3 ], 0x2; x6 <- arg1[3] * 0x2"; |
| 290 |
" ;CF: KILLED,OF: KILLED"; |
| 291 |
" ; fr:"; |
| 292 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x7:r10"",""x11:r14"",""x65:r9"",""x66:CF"",""x69:rbx"",""x67:r8"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11"",""x6:rdx""]"; |
| 293 |
" ; freeing x11 (r14) no dependants anymore"; |
| 294 |
" ; fr:"; |
| 295 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x7:r10"",""x65:r9"",""x66:CF"",""x69:rbx"",""x67:r8"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11"",""x6:rdx"",""x32:r14""]"; |
| 296 |
" ; freeing x65 (r9) no dependants anymore"; |
| 297 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x7:r10"",""x66:CF"",""x69:rbx"",""x67:r8"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11"",""x6:rdx"",""x32:r14"",""x31:r9""]"; |
| 298 |
" mulx r14, r9, [rsi + 0x08 * 0 ]; x32, x31<- arg1[0] * x6"; |
| 299 |
" ;chose >>saved<< arg1[4] from:arg1[4], x1[0] and candidates: arg1[4], x1"; |
| 300 |
" ; fr:"; |
| 301 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x1:rbp"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x7:r10"",""x66:CF"",""x69:rbx"",""x67:r8"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11"",""x6:rdx"",""x32:r14"",""x31:r9"",""arg1[4]:rdx""]"; |
| 302 |
" ; freeing x69 (rbx) no dependants anymore"; |
| 303 |
" mov rbx, rdx; preserving value of x6 into a new reg"; |
| 304 |
" mov rdx, [rsi + 0x08 * 4 ]; saving arg1[4] in rdx."; |
| 305 |
" ; fr:"; |
| 306 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x7:r10"",""x66:CF"",""x67:r8"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11"",""x6:rbx"",""x32:r14"",""x31:r9"",""arg1[4]:rdx"",""x10:rbp""]"; |
| 307 |
" ; freeing x67 (r8) no dependants anymore"; |
| 308 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x7:r10"",""x66:CF"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11"",""x6:rbx"",""x32:r14"",""x31:r9"",""arg1[4]:rdx"",""x10:rbp"",""x9:r8""]"; |
| 309 |
" mulx rbp, r8, rbp; x10, x9<- arg1[4] * x1"; |
| 310 |
" ;chose >>saved<< x7 from:arg1[1], x7[1] and candidates: arg1[1], x7"; |
| 311 |
" mov rdx, r10; x7 to rdx"; |
| 312 |
" ; fr:r10"; |
| 313 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x66:CF"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11"",""x6:rbx"",""x32:r14"",""x31:r9"",""x10:rbp"",""x9:r8"",""x26:rdx""]"; |
| 314 |
" ;chose >>RANDOMLY<< r10 from candidates :r10[0]."; |
| 315 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x66:CF"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11"",""x6:rbx"",""x32:r14"",""x31:r9"",""x10:rbp"",""x9:r8"",""x26:rdx"",""x25:r10""]"; |
| 316 |
" mulx rdx, r10, [rsi + 0x08 * 1 ]; x26, x25<- arg1[1] * x7"; |
| 317 |
" "; |
| 318 |
""; |
| 319 |
" ; add:"; |
| 320 |
" ; r:x57,f:x58<-add(0x0,x25,x9)"; |
| 321 |
" ; CF: KILLED,OF: KILLED"; |
| 322 |
" ;chose >>saved<< c_xor_adx from:c_add, c_xor_adx, c_test_adx[1] and candidates: c_add, c_xor_adx, c_test_adx"; |
| 323 |
" ; fr:"; |
| 324 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""0x0:rcx"",""x66:CF"",""x86:rax"",""x87:OF"",""x88:r12"",""x89:r11"",""x6:rbx"",""x32:r14"",""x31:r9"",""x10:rbp"",""x9:r8"",""x26:rdx"",""x57:r10""]"; |
| 325 |
" ; freeing x88 (r12) no dependants anymore"; |
| 326 |
" xor r12, r12"; |
| 327 |
" ;chose >>saved<< CF from:CF, OF[0] and candidates: CF, OF"; |
| 328 |
" adox r10, r8"; |
| 329 |
" "; |
| 330 |
""; |
| 331 |
" ; add:"; |
| 332 |
" ; r:x61,f:x62<-add(0x0,x31,x57)"; |
| 333 |
" ; CF: ZERO,OF: ALIVE"; |
| 334 |
" adcx r9, r10"; |
| 335 |
" "; |
| 336 |
""; |
| 337 |
" ; add:"; |
| 338 |
" ; r:x59,f:_<-add(x58,x26,x10)"; |
| 339 |
" ; CF: ALIVE,OF: ALIVE"; |
| 340 |
" adox rdx, rbp"; |
| 341 |
" "; |
| 342 |
""; |
| 343 |
" ; add:"; |
| 344 |
" ; r:x91,f:x92<-add(0x0,x89,x61)"; |
| 345 |
" ; CF: ALIVE,OF: KILLED"; |
| 346 |
" dec r12; OF<-0x0, preserve CF 3"; |
| 347 |
" adox r11, r9"; |
| 348 |
" "; |
| 349 |
""; |
| 350 |
" ; add:"; |
| 351 |
" ; r:x63,f:_<-add(x62,x32,x59)"; |
| 352 |
" ; CF: ALIVE,OF: ALIVE"; |
| 353 |
" adcx r14, rdx"; |
| 354 |
" "; |
| 355 |
""; |
| 356 |
" ; add:"; |
| 357 |
" ; r:x93,f:_<-add(x92,x63)"; |
| 358 |
" ; CF: KILLED,OF: ALIVE"; |
| 359 |
" ; fr:rcx"; |
| 360 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x6:rbx"",""x10:rbp"",""x9:r8"",""x57:r10"",""x61:r9"",""x62:CF"",""x59:rdx"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14""]"; |
| 361 |
" ;chose >>RANDOMLY<< rcx from candidates :rcx[0]."; |
| 362 |
" mov rcx, 0x0 ; moving imm to reg"; |
| 363 |
" adox r14, rcx"; |
| 364 |
" ; fr:"; |
| 365 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x6:rbx"",""x10:rbp"",""x9:r8"",""x57:r10"",""x61:r9"",""x62:CF"",""x59:rdx"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14"",""0x0:rcx""]"; |
| 366 |
" ; freeing x10 (rbp) no dependants anymore"; |
| 367 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x6:rbx"",""x9:r8"",""x57:r10"",""x61:r9"",""x62:CF"",""x59:rdx"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14"",""0x0:rcx"",""x3:rbp""]"; |
| 368 |
" imul rbp, [rsi + 0x08 * 4 ], 0x2; x3 <- arg1[4] * 0x2"; |
| 369 |
" ;CF: KILLED,OF: KILLED"; |
| 370 |
" ;chose >>saved<< x3 from:arg1[0], x3[1] and candidates: arg1[0], x3"; |
| 371 |
" mov rdx, rbp; x3 to rdx"; |
| 372 |
" ; fr:rbp"; |
| 373 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x6:rbx"",""x9:r8"",""x57:r10"",""x61:r9"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14"",""0x0:rcx"",""x30:rdx""]"; |
| 374 |
" ;chose >>RANDOMLY<< rbp from candidates :rbp[0]."; |
| 375 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x6:rbx"",""x9:r8"",""x57:r10"",""x61:r9"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14"",""0x0:rcx"",""x30:rdx"",""x29:rbp""]"; |
| 376 |
" mulx rdx, rbp, [rsi + 0x08 * 0 ]; x30, x29<- arg1[0] * x3"; |
| 377 |
" ; fr:"; |
| 378 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x6:rbx"",""x9:r8"",""x57:r10"",""x61:r9"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14"",""0x0:rcx"",""x30:rdx"",""x29:rbp""]"; |
| 379 |
" ; freeing x9 (r8) no dependants anymore"; |
| 380 |
" mov r8, r11; x94, copying x91 here, cause x91 is needed in a reg for other than x94, namely all: , x95, x94, size: 2"; |
| 381 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x6:rbx"",""x57:r10"",""x61:r9"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14"",""0x0:rcx"",""x30:rdx"",""x29:rbp"",""x94:r8""]"; |
| 382 |
" shrd r8, r14, 51; x94 <- x93||x91 >> 51"; |
| 383 |
" ;chose >>saved<< arg1[1] from:arg1[1], x6[0] and candidates: arg1[1], x6"; |
| 384 |
" ; fr:"; |
| 385 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x6:rbx"",""x57:r10"",""x61:r9"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14"",""0x0:rcx"",""x30:rdx"",""x29:rbp"",""x94:r8"",""arg1[1]:rdx""]"; |
| 386 |
" ; freeing x57 (r10) no dependants anymore"; |
| 387 |
" mov r10, rdx; preserving value of x30 into a new reg"; |
| 388 |
" mov rdx, [rsi + 0x08 * 1 ]; saving arg1[1] in rdx."; |
| 389 |
" ; fr:"; |
| 390 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x61:r9"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14"",""0x0:rcx"",""x30:r10"",""x29:rbp"",""x94:r8"",""arg1[1]:rdx"",""x24:rbx""]"; |
| 391 |
" ; freeing x61 (r9) no dependants anymore"; |
| 392 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14"",""0x0:rcx"",""x30:r10"",""x29:rbp"",""x94:r8"",""arg1[1]:rdx"",""x24:rbx"",""x23:r9""]"; |
| 393 |
" mulx rbx, r9, rbx; x24, x23<- arg1[1] * x6"; |
| 394 |
" ;chose >>saved<< arg1[2] from:arg1[2], arg1[2][1] and candidates: arg1[2], arg1[2]"; |
| 395 |
" mov rdx, [rsi + 0x08 * 2 ]; arg1[2] to rdx"; |
| 396 |
" ; fr:"; |
| 397 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x93:r14"",""0x0:rcx"",""x30:r10"",""x29:rbp"",""x94:r8"",""x24:rbx"",""x23:r9"",""arg1[2]:rdx""]"; |
| 398 |
" ; freeing x93 (r14) no dependants anymore"; |
| 399 |
" ; fr:"; |
| 400 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""0x0:rcx"",""x30:r10"",""x29:rbp"",""x94:r8"",""x24:rbx"",""x23:r9"",""arg1[2]:rdx"",""x20:r14""]"; |
| 401 |
" ; freeing 0x0 (rcx, since all are neeed, but this one is just an immediate value."; |
| 402 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x30:r10"",""x29:rbp"",""x94:r8"",""x24:rbx"",""x23:r9"",""arg1[2]:rdx"",""x20:r14"",""x19:rcx""]"; |
| 403 |
" mulx r14, rcx, [rsi + 0x08 * 2 ]; x20, x19<- arg1[2] * arg1[2]"; |
| 404 |
" "; |
| 405 |
""; |
| 406 |
" ; add:"; |
| 407 |
" ; r:x49,f:x50<-add(0x0,x23,x19)"; |
| 408 |
" ; CF: KILLED,OF: KILLED"; |
| 409 |
" ;chose >>saved<< c_xor_adx from:c_add, c_xor_adx, c_test_adx[1] and candidates: c_add, c_xor_adx, c_test_adx"; |
| 410 |
" ; fr:"; |
| 411 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x62:CF"",""x91:r11"",""-0x1:r12"",""x92:OF"",""x30:r10"",""x29:rbp"",""x94:r8"",""x24:rbx"",""arg1[2]:rdx"",""x20:r14"",""x19:rcx"",""x49:r9""]"; |
| 412 |
" ;chose arg1[2] to spill because list of spills:arg1[1]Larg1[1]Larg1[1]Larg1[1]Larg1[1]L0x7ffffffffffffL0x7ffffffffffffL0x7ffffffffffffL0x7ffffffffffffL0x7ffffffffffffLarg1[2]Larg1[2]Larg1[4] and candidates: -0x1, arg1[2]"; |
| 413 |
" ; freeing, i.e. spilling arg1[2], because I am out of ideas"; |
| 414 |
" ; allocs: out1(rdi),arg1(rsi),x48(r13),x81(r15),x86(rax),x91(r11),-0x1(r12),x30(r10),x29(rbp),x94(r8),x24(rbx),arg1[2](rdx),x20(r14),x19(rcx),x49(r9); clobs x49,x50,0x0,x23,x19,x23; will spare: arg1[2] "; |
| 415 |
" xor rdx, rdx"; |
| 416 |
" ;chose >>saved<< CF from:CF, OF[0] and candidates: CF, OF"; |
| 417 |
" adox r9, rcx"; |
| 418 |
" "; |
| 419 |
""; |
| 420 |
" ; add:"; |
| 421 |
" ; r:x53,f:x54<-add(0x0,x29,x49)"; |
| 422 |
" ; CF: ZERO,OF: ALIVE"; |
| 423 |
" adcx rbp, r9"; |
| 424 |
" "; |
| 425 |
""; |
| 426 |
" ; add:"; |
| 427 |
" ; r:x51,f:_<-add(x50,x24,x20)"; |
| 428 |
" ; CF: ALIVE,OF: ALIVE"; |
| 429 |
" adox rbx, r14"; |
| 430 |
" "; |
| 431 |
""; |
| 432 |
" ; add:"; |
| 433 |
" ; r:x96,f:x97<-add(0x0,x94,x53)"; |
| 434 |
" ; CF: ALIVE,OF: KILLED"; |
| 435 |
" inc r12; OF<-0x0, preserve CF 1"; |
| 436 |
" adox r8, rbp"; |
| 437 |
" "; |
| 438 |
""; |
| 439 |
" ; add:"; |
| 440 |
" ; r:x55,f:_<-add(x54,x30,x51)"; |
| 441 |
" ; CF: ALIVE,OF: ALIVE"; |
| 442 |
" adcx r10, rbx"; |
| 443 |
" "; |
| 444 |
""; |
| 445 |
" ; add:"; |
| 446 |
" ; r:x98,f:_<-add(x97,x55)"; |
| 447 |
" ; CF: KILLED,OF: ALIVE"; |
| 448 |
" adox r10, r12"; |
| 449 |
" ; fr:rdx"; |
| 450 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x91:r11"",""x20:r14"",""x19:rcx"",""x49:r9"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10""]"; |
| 451 |
" ;chose >>RANDOMLY<< rdx from candidates :rdx[0]."; |
| 452 |
" mov rdx, r8; x99, copying x96 here, cause x96 is needed in a reg for other than x99, namely all: , x99, x100, size: 2"; |
| 453 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x91:r11"",""x20:r14"",""x19:rcx"",""x49:r9"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x99:rdx""]"; |
| 454 |
" shrd rdx, r10, 51; x99 <- x98||x96 >> 51"; |
| 455 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x48:r13"",""x81:r15"",""x86:rax"",""x91:r11"",""x20:r14"",""x19:rcx"",""x49:r9"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx""]"; |
| 456 |
" imul rdx, rdx, 0x13; x101 <- x99 * 0x13"; |
| 457 |
" ;CF: KILLED,OF: KILLED"; |
| 458 |
" "; |
| 459 |
""; |
| 460 |
" ; add:"; |
| 461 |
" ; r:x102,f:_<-add(x48,x101)"; |
| 462 |
" ; CF: KILLED,OF: KILLED"; |
| 463 |
" lea r13, [r13+rdx]"; |
| 464 |
" ; fr:"; |
| 465 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x81:r15"",""x86:rax"",""x91:r11"",""x20:r14"",""x19:rcx"",""x49:r9"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13""]"; |
| 466 |
" ; freeing x20 (r14) no dependants anymore"; |
| 467 |
" mov r14, r13; x103, copying x102 here, cause x102 is needed in a reg for other than x103, namely all: , x103, x104, size: 2"; |
| 468 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x81:r15"",""x86:rax"",""x91:r11"",""x19:rcx"",""x49:r9"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""x103:r14""]"; |
| 469 |
" shr r14, 51; x103 <- x102>> 51"; |
| 470 |
" ; fr:"; |
| 471 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x81:r15"",""x86:rax"",""x91:r11"",""x19:rcx"",""x49:r9"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""x103:r14""]"; |
| 472 |
" ; freeing x19 (rcx) no dependants anymore"; |
| 473 |
" mov rcx, 0x7ffffffffffff ; moving imm to reg"; |
| 474 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x86:rax"",""x91:r11"",""x49:r9"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""x103:r14"",""0x7ffffffffffff:rcx"",""x85:r15""]"; |
| 475 |
" and r15, rcx; x85 <- x81& 0x7ffffffffffff"; |
| 476 |
" "; |
| 477 |
""; |
| 478 |
" ; add:"; |
| 479 |
" ; r:x105,f:_<-add(x103,x85)"; |
| 480 |
" ; CF: KILLED,OF: KILLED"; |
| 481 |
" lea r14, [r14+r15]"; |
| 482 |
" ; fr:"; |
| 483 |
" ; allocatedR: ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x86:rax"",""x91:r11"",""x49:r9"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""0x7ffffffffffff:rcx"",""x85:r15"",""x105:r14""]"; |
| 484 |
" ; freeing x49 (r9) no dependants anymore"; |
| 485 |
" mov r9, r14; x107, copying x105 here, cause x105 is needed in a reg for other than x107, namely all: , x107, x106, size: 2"; |
| 486 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x86:rax"",""x91:r11"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""0x7ffffffffffff:rcx"",""x85:r15"",""x105:r14"",""x107:r9""]"; |
| 487 |
" and r9, rcx; x107 <- x105& 0x7ffffffffffff"; |
| 488 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x86:rax"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""0x7ffffffffffff:rcx"",""x85:r15"",""x105:r14"",""x107:r9"",""x95:r11""]"; |
| 489 |
" and r11, rcx; x95 <- x91& 0x7ffffffffffff"; |
| 490 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x86:rax"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""0x7ffffffffffff:rcx"",""x85:r15"",""x105:r14"",""x107:r9"",""x95:r11""]"; |
| 491 |
" mov [rdi + 0x08 * 3 ], r11; out1[3] = x95"; |
| 492 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""x86:rax"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""0x7ffffffffffff:rcx"",""x85:r15"",""x107:r9"",""x95:r11"",""x106:r14""]"; |
| 493 |
" shr r14, 51; x106 <- x105>> 51"; |
| 494 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""0x7ffffffffffff:rcx"",""x85:r15"",""x107:r9"",""x95:r11"",""x106:r14"",""x90:rax""]"; |
| 495 |
" and rax, rcx; x90 <- x86& 0x7ffffffffffff"; |
| 496 |
" "; |
| 497 |
""; |
| 498 |
" ; add:"; |
| 499 |
" ; r:x108,f:_<-add(x106,x90)"; |
| 500 |
" ; CF: KILLED,OF: KILLED"; |
| 501 |
" lea r14, [r14+rax]"; |
| 502 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""0x7ffffffffffff:rcx"",""x85:r15"",""x107:r9"",""x95:r11"",""x90:rax"",""x108:r14""]"; |
| 503 |
" mov [rdi + 0x08 * 2 ], r14; out1[2] = x108"; |
| 504 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x96:r8"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""0x7ffffffffffff:rcx"",""x85:r15"",""x95:r11"",""x90:rax"",""x108:r14"",""x107:r9""]"; |
| 505 |
" mov [rdi + 0x08 * 1 ], r9; out1[1] = x107"; |
| 506 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""0x7ffffffffffff:rcx"",""x85:r15"",""x95:r11"",""x90:rax"",""x108:r14"",""x107:r9"",""x100:r8""]"; |
| 507 |
" and r8, rcx; x100 <- x96& 0x7ffffffffffff"; |
| 508 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x97:OF"",""x98:r10"",""x101:rdx"",""x102:r13"",""0x7ffffffffffff:rcx"",""x85:r15"",""x95:r11"",""x90:rax"",""x108:r14"",""x107:r9"",""x100:r8""]"; |
| 509 |
" mov [rdi + 0x08 * 4 ], r8; out1[4] = x100"; |
| 510 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x97:OF"",""x98:r10"",""x101:rdx"",""0x7ffffffffffff:rcx"",""x85:r15"",""x95:r11"",""x90:rax"",""x108:r14"",""x107:r9"",""x100:r8"",""x104:r13""]"; |
| 511 |
" and r13, rcx; x104 <- x102& 0x7ffffffffffff"; |
| 512 |
" ;-- allocation: [""out1:rdi"",""arg1:rsi"",""0x0:r12"",""x53:rbp"",""x54:CF"",""x51:rbx"",""x97:OF"",""x98:r10"",""x101:rdx"",""0x7ffffffffffff:rcx"",""x85:r15"",""x95:r11"",""x90:rax"",""x108:r14"",""x107:r9"",""x100:r8"",""x104:r13""]"; |
| 513 |
" mov [rdi + 0x08 * 0 ], r13; out1[0] = x104"; |
| 514 |
" mov rbx, [rsp + 0x08 * 0 ]; restoring from stack"; |
| 515 |
" mov rbp, [rsp + 0x08 * 1 ]; restoring from stack"; |
| 516 |
" mov r12, [rsp + 0x08 * 2 ]; restoring from stack"; |
| 517 |
" mov r13, [rsp + 0x08 * 3 ]; restoring from stack"; |
| 518 |
" mov r14, [rsp + 0x08 * 4 ]; restoring from stack"; |
| 519 |
" mov r15, [rsp + 0x08 * 5 ]; restoring from stack"; |
| 520 |
" add rsp, 0x38 "; |
| 521 |
" ret"; |
| 522 |
"; cyclecount: 209"; |
| 523 |
"; seed 10 "; |
| 524 |
"; time Needed: 423230 ms/ 10000 runs"; |
| 525 |
"; Time Spent By Invoking Make (measure): 361906 ms"; |
| 526 |
"; Ratio (time for make measure)/elapsed: 0.8551047893580322"; |
| 527 |
"; Reverts a mutation because test was slower: 8966"; |
| 528 |
"; number tried mutation Permutation: 3369"; |
| 529 |
"; number tried mutation Spill: 3333"; |
| 530 |
"; number tried mutation Decision: 3298"; |
| 531 |
"; FailedEvals (cannot swap because of edge to the next node): 2235"; |
| 532 |
""]. |