-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresulttext.txt
718 lines (542 loc) · 33.3 KB
/
resulttext.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
Progress Update:
Lowest Cost Discovered (175) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
stc testq %rdi, %rdi
cltq je .L_40060f
retq xorl %eax, %eax
.L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (112) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
stc testq %rdi, %rdi
cltd je .L_40060f
retq xorl %eax, %eax
.L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (63) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
stc testq %rdi, %rdi
cltd je .L_40060f
cwtl xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (62) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
cltd testq %rdi, %rdi
shlb $0x1, %ah je .L_40060f
cwtl xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (59) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
cltd testq %rdi, %rdi
subb %ah, %al je .L_40060f
cwtl xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (57) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
cltd testq %rdi, %rdi
andb $0xfa, %ah je .L_40060f
cwtl xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (36) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
andb $0xfa, %ah testq %rdi, %rdi
cltd je .L_40060f
leaq 0x7(,%rdx,4), %rdx xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (33) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
cmpb $0xfa, %ah testq %rdi, %rdi
cltd je .L_40060f
leal 0x7(,%rdx,4), %edx xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (28) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
cltd testq %rdi, %rdi
leal 0x7(,%rdx,4), %r10d je .L_40060f
cmpb $0xfa, %ah xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (27) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
cltd testq %rdi, %rdi
leal 0x7(,%rdx,4), %esi je .L_40060f
movl $0xc0, %eax xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (24) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
cltd testq %rdi, %rdi
leal 0x7(,%rdx,4), %esi je .L_40060f
movl $0x10, %eax xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (22) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
movq $0x20, %rax testq %rdi, %rdi
cltd je .L_40060f
xorl $0x0, %edx xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (19) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
cltd testq %rdi, %rdi
movl $0x2, %edx je .L_40060f
movq $0x20, %rax xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (18) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
movl $0x2, %edx testq %rdi, %rdi
movq $0x20, %rax je .L_40060f
retq xorl %eax, %eax
.L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (17) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
movzbl %dil, %edi testq %rdi, %rdi
movl $0x20, %eax je .L_40060f
retq xorl %eax, %eax
.L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
Progress Update:
Lowest Cost Discovered (9) Lowest Known Correct Cost (8)
._Z6popcntm: ._Z6popcntm:
movzbl %dil, %r9d testq %rdi, %rdi
popcntq %rdi, %r9 je .L_40060f
movq $0x20, %rax xorl %eax, %eax
retq .L_400600:
movl %edi, %edx
andl $0x1, %edx
addl %edx, %eax
shrq $0x1, %rdi
jne .L_400600
cltq
retq
.L_40060f:
xorl %eax, %eax
retq
********************************************************************************
No action on new best correct
Progress Update:
Lowest Cost Discovered (3) Lowest Known Correct Cost (3)
._Z6popcntm: ._Z6popcntm:
movq $0xfffffffffffffffd, %rsi movq $0xfffffffffffffffd, %rsi
movb %ah, %dh movb %ah, %dh
popcntq %rdi, %rax popcntq %rdi, %rax
retq retq
********************************************************************************
No action on new best correct
Progress Update:
Lowest Cost Discovered (2) Lowest Known Correct Cost (2)
._Z6popcntm: ._Z6popcntm:
popcntq %rdi, %rax popcntq %rdi, %rax
setc %dh setc %dh
retq retq
********************************************************************************
Statistics Update:
Iterations: 100000
Elapsed Time: 0.58779s
Iterations/s: 170129
Starting cost: 240
Lowest cost: 2
Lowest correct cost: 2
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.364% 4.038% 1.576%
Opcode 14.407% 8.324% 4.453%
OpcodeWidth 14.198% 7.044% 3.423%
Operand 14.388% 7.924% 5.587%
Local Swap 14.29% 2.527% 1.839%
Global Swap 14.195% 3.912% 2.818%
Rotate 14.158% 4.096% 3.083%
Total 100% 37.865% 22.779%
********************************************************************************
Statistics Update:
Iterations: 200000
Elapsed Time: 1.11726s
Iterations/s: 179009
Starting cost: 240
Lowest cost: 2
Lowest correct cost: 2
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.321% 3.905% 1.5095%
Opcode 14.271% 7.9065% 4.23%
OpcodeWidth 14.2555% 6.806% 3.3195%
Operand 14.345% 7.5385% 5.254%
Local Swap 14.296% 2.211% 1.621%
Global Swap 14.1985% 3.491% 2.553%
Rotate 14.313% 3.7365% 2.8515%
Total 100% 35.5945% 21.3385%
********************************************************************************
Statistics Update:
Iterations: 300000
Elapsed Time: 1.72002s
Iterations/s: 174416
Starting cost: 240
Lowest cost: 2
Lowest correct cost: 2
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.3233% 4.059% 1.623%
Opcode 14.312% 8.18667% 4.41867%
OpcodeWidth 14.301% 7.01767% 3.423%
Operand 14.313% 7.78367% 5.40767%
Local Swap 14.2657% 2.40233% 1.72767%
Global Swap 14.2167% 3.79667% 2.70933%
Rotate 14.2683% 3.99133% 2.995%
Total 100% 37.2373% 22.3043%
********************************************************************************
Statistics Update:
Iterations: 400000
Elapsed Time: 2.31483s
Iterations/s: 172799
Starting cost: 240
Lowest cost: 2
Lowest correct cost: 2
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.2982% 4.1315% 1.66775%
Opcode 14.3315% 8.33075% 4.533%
OpcodeWidth 14.3225% 7.14225% 3.49325%
Operand 14.2677% 7.91875% 5.53875%
Local Swap 14.2523% 2.499% 1.77725%
Global Swap 14.2568% 3.93825% 2.7825%
Rotate 14.271% 4.106% 3.0755%
Total 100% 38.0665% 22.868%
********************************************************************************
Statistics Update:
Iterations: 500000
Elapsed Time: 2.88285s
Iterations/s: 173440
Starting cost: 240
Lowest cost: 2
Lowest correct cost: 2
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.2838% 4.1012% 1.6426%
Opcode 14.3236% 8.2916% 4.5144%
OpcodeWidth 14.3208% 7.1062% 3.462%
Operand 14.2576% 7.8552% 5.481%
Local Swap 14.2478% 2.4622% 1.751%
Global Swap 14.2546% 3.8918% 2.7494%
Rotate 14.3118% 4.0742% 3.042%
Total 100% 37.7824% 22.6424%
********************************************************************************
Statistics Update:
Iterations: 600000
Elapsed Time: 3.39127s
Iterations/s: 176925
Starting cost: 240
Lowest cost: 2
Lowest correct cost: 2
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.2622% 4.00217% 1.546%
Opcode 14.312% 8.063% 4.44783%
OpcodeWidth 14.3197% 6.99367% 3.44233%
Operand 14.2542% 7.633% 5.27217%
Local Swap 14.2758% 2.29167% 1.643%
Global Swap 14.2682% 3.624% 2.5795%
Rotate 14.308% 3.8335% 2.86283%
Total 100% 36.441% 21.7937%
********************************************************************************
No action on new best correct
Progress Update:
Lowest Cost Discovered (1) Lowest Known Correct Cost (1)
._Z6popcntm: ._Z6popcntm:
popcntq %rdi, %rax popcntq %rdi, %rax
retq retq
********************************************************************************
Statistics Update:
Iterations: 700000
Elapsed Time: 3.97154s
Iterations/s: 176254
Starting cost: 240
Lowest cost: 1
Lowest correct cost: 1
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.246% 4.02186% 1.56586%
Opcode 14.3126% 8.09043% 4.48357%
OpcodeWidth 14.3133% 7.04014% 3.45343%
Operand 14.249% 7.68957% 5.30786%
Local Swap 14.2701% 2.30686% 1.653%
Global Swap 14.2909% 3.64486% 2.59043%
Rotate 14.3181% 3.84814% 2.87386%
Total 100% 36.6419% 21.928%
********************************************************************************
Statistics Update:
Iterations: 800000
Elapsed Time: 4.5745s
Iterations/s: 174883
Starting cost: 240
Lowest cost: 1
Lowest correct cost: 1
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.267% 4.05575% 1.59275%
Opcode 14.3343% 8.15875% 4.51975%
OpcodeWidth 14.2997% 7.10088% 3.48825%
Operand 14.2351% 7.7475% 5.369%
Local Swap 14.2703% 2.35588% 1.68287%
Global Swap 14.2784% 3.72388% 2.64275%
Rotate 14.3153% 3.92725% 2.9275%
Total 100% 37.0699% 22.2229%
********************************************************************************
Statistics Update:
Iterations: 900000
Elapsed Time: 5.17777s
Iterations/s: 173820
Starting cost: 240
Lowest cost: 1
Lowest correct cost: 1
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.2654% 4.08478% 1.61433%
Opcode 14.3181% 8.20411% 4.52978%
OpcodeWidth 14.3162% 7.15111% 3.50011%
Operand 14.2529% 7.817% 5.42956%
Local Swap 14.2633% 2.41189% 1.71256%
Global Swap 14.2681% 3.80533% 2.68478%
Rotate 14.3159% 3.99933% 2.96333%
Total 100% 37.4736% 22.4344%
********************************************************************************
Statistics Update:
Iterations: 1000000
Elapsed Time: 5.77816s
Iterations/s: 173065
Starting cost: 240
Lowest cost: 1
Lowest correct cost: 1
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.2565% 4.1173% 1.6375%
Opcode 14.3089% 8.2463% 4.5472%
OpcodeWidth 14.3203% 7.1827% 3.5135%
Operand 14.2557% 7.8704% 5.4808%
Local Swap 14.252% 2.4568% 1.7413%
Global Swap 14.2893% 3.8651% 2.722%
Rotate 14.3173% 4.0514% 2.9953%
Total 100% 37.79% 22.6376%
********************************************************************************
################################################################################
Final update:
Total search iterations: 1000000
Number of attempted searches: 1
Total search time: 5.77849s
Total time: 5.85213s
Statistics of last search
Iterations: 1000000
Elapsed Time: 5.77838s
Iterations/s: 173059
Starting cost: 240
Lowest cost: 1
Lowest correct cost: 1
Move Type Proposed Succeeded Accepted
Add Nops 0% 0% 0%
Delete 0% 0% 0%
Instruction 14.2565% 4.1173% 1.6375%
Opcode 14.3089% 8.2463% 4.5472%
OpcodeWidth 14.3203% 7.1827% 3.5135%
Operand 14.2557% 7.8704% 5.4808%
Local Swap 14.252% 2.4568% 1.7413%
Global Swap 14.2893% 3.8651% 2.722%
Rotate 14.3173% 4.0514% 2.9953%
Total 100% 37.79% 22.6376%
Lowest Cost Discovered (1) Lowest Known Correct Cost (1)
._Z6popcntm: ._Z6popcntm:
popcntq %rdi, %rax popcntq %rdi, %rax
retq retq
################################################################################
Search terminated successfully with a verified rewrite!
Timing Analysis:
1. time ./a.out 1000000
real 0m0.054s
user 0m0.054s
sys 0m0.000s
Standard Time for optimised code for main.cc (binary file): 0.054s
2. on -Og optimisations time decreases by a magnitude,
real 0m0.002s
user 0m0.003s
sys 0m0.000s