-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwlcAbc.ll
1258 lines (1078 loc) · 61 KB
/
wlcAbc.ll
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
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
; ModuleID = 'bench/abc/original/wlcAbc.ll'
source_filename = "bench/abc/original/wlcAbc.ll"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Wlc_Obj_t_ = type { i16, i32, i32, i32, %union.anon }
%union.anon = type { [1 x ptr] }
@.str = private unnamed_addr constant [21 x i8] c"abc_blast_input.info\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"%s[%d] : %c \0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"%s[%d] : o \0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"%s[%d:%d] : \00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c" [%d] -> %d\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"inv\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"pi%d\00", align 1
@.str.10 = private unnamed_addr constant [7 x i8] c"%s[%d]\00", align 1
@.str.13 = private unnamed_addr constant [42 x i8] c"Cannot read input name \22%s\22 of fanin %d.\0A\00", align 1
@.str.14 = private unnamed_addr constant [51 x i8] c"Cannot read names for %d inputs of the invariant.\0A\00", align 1
@str = private unnamed_addr constant [79 x i8] c"Mismatch between number of inputs and the number of literals in the invariant.\00", align 1
@str.1 = private unnamed_addr constant [46 x i8] c"The number of internal nodes is other than 1.\00", align 1
@str.2 = private unnamed_addr constant [39 x i8] c"The number of outputs is other than 1.\00", align 1
; Function Attrs: nounwind uwtable
define void @Wlc_NtkPrintInputInfo(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
%3 = getelementptr i8, ptr %0, i64 52
%.val79 = load i32, ptr %3, align 4, !tbaa !3
%4 = icmp sgt i32 %.val79, 0
br i1 %4, label %.lr.ph, label %.critedge.preheader
.lr.ph: ; preds = %1
%5 = getelementptr i8, ptr %0, i64 56
%6 = getelementptr i8, ptr %0, i64 640
%7 = getelementptr inbounds nuw i8, ptr %0, i64 128
br label %12
.critedge.preheader: ; preds = %43, %1
%8 = getelementptr i8, ptr %0, i64 36
%.val7383 = load i32, ptr %8, align 4, !tbaa !3
%9 = icmp sgt i32 %.val7383, 0
br i1 %9, label %.lr.ph85, label %.critedge2
.lr.ph85: ; preds = %.critedge.preheader
%10 = getelementptr i8, ptr %0, i64 40
%11 = getelementptr i8, ptr %0, i64 640
br label %51
12: ; preds = %.lr.ph, %43
%indvars.iv87 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next88, %43 ]
%.05680 = phi i32 [ 0, %.lr.ph ], [ %spec.select, %43 ]
%.val65 = load ptr, ptr %5, align 8, !tbaa !10
%.val66 = load ptr, ptr %6, align 8, !tbaa !11
%13 = getelementptr inbounds nuw i32, ptr %.val65, i64 %indvars.iv87
%14 = load i32, ptr %13, align 4, !tbaa !20
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds %struct.Wlc_Obj_t_, ptr %.val66, i64 %15
%17 = getelementptr i8, ptr %16, i64 8
%.val67 = load i32, ptr %17, align 8, !tbaa !21
%18 = getelementptr i8, ptr %16, i64 12
%.val68 = load i32, ptr %18, align 4, !tbaa !23
%19 = sub nsw i32 %.val67, %.val68
%20 = tail call i32 @llvm.abs.i32(i32 %19, i1 true)
%. = tail call i32 @llvm.smin.i32(i32 %.val67, i32 %.val68)
%21 = ptrtoint ptr %16 to i64
%22 = zext nneg i32 %.05680 to i64
%smax = zext nneg i32 %20 to i64
br label %24
24: ; preds = %12, %33
%indvars.iv = phi i64 [ 0, %12 ], [ %indvars.iv.next, %33 ]
%25 = load i16, ptr %16, align 8
%26 = and i16 %25, 63
%.not = icmp eq i16 %26, 3
br i1 %.not, label %27, label %33
27: ; preds = %24
%28 = load ptr, ptr %7, align 8, !tbaa !24
%29 = getelementptr inbounds nuw i8, ptr %28, i64 %indvars.iv
%30 = getelementptr inbounds nuw i8, ptr %29, i64 %22
%31 = load i8, ptr %30, align 1, !tbaa !25
%32 = sext i8 %31 to i32
br label %33
33: ; preds = %24, %27
%34 = phi i32 [ %32, %27 ], [ 105, %24 ]
%.val71 = load ptr, ptr %6, align 8, !tbaa !11
%35 = ptrtoint ptr %.val71 to i64
%36 = sub i64 %21, %35
%37 = sdiv exact i64 %36, 24
%38 = trunc i64 %37 to i32
%39 = tail call ptr @Wlc_ObjName(ptr noundef nonnull %0, i32 noundef %38) #11
%40 = trunc i64 %indvars.iv to i32
%41 = add i32 %., %40
%42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef %39, i32 noundef %41, i32 noundef %34) #11
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp samesign ult i64 %indvars.iv, %23
br i1 %exitcond.not, label %24, label %43, !llvm.loop !26
43: ; preds = %33
%44 = add nuw nsw i32 %20, 1
%45 = load i16, ptr %16, align 8
%46 = and i16 %45, 63
%47 = icmp eq i16 %46, 3
%48 = select i1 %47, i32 %44, i32 0
%spec.select = add nuw nsw i32 %48, %.05680
%indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
%.val = load i32, ptr %3, align 4, !tbaa !3
%49 = sext i32 %.val to i64
%50 = icmp slt i64 %indvars.iv.next88, %49
br i1 %50, label %12, label %.critedge.preheader, !llvm.loop !28
51: ; preds = %.lr.ph85, %.critedge
%indvars.iv92 = phi i64 [ 0, %.lr.ph85 ], [ %indvars.iv.next93, %.critedge ]
%.val74 = load ptr, ptr %10, align 8, !tbaa !10
%.val75 = load ptr, ptr %11, align 8, !tbaa !11
%52 = getelementptr inbounds nuw i32, ptr %.val74, i64 %indvars.iv92
%53 = load i32, ptr %52, align 4, !tbaa !20
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds %struct.Wlc_Obj_t_, ptr %.val75, i64 %54
%56 = getelementptr i8, ptr %55, i64 8
%.val69 = load i32, ptr %56, align 8, !tbaa !21
%57 = getelementptr i8, ptr %55, i64 12
%.val70 = load i32, ptr %57, align 4, !tbaa !23
%.64 = tail call i32 @llvm.smin.i32(i32 %.val69, i32 %.val70)
%58 = ptrtoint ptr %55 to i64
%59 = sub i32 %.val70, %.val69
%smax90 = tail call i32 @llvm.abs.i32(i32 %59, i1 false)
br label %60
60: ; preds = %51, %60
%.15582 = phi i32 [ 0, %51 ], [ %68, %60 ]
%61 = add nsw i32 %.15582, %.64
%.val72 = load ptr, ptr %11, align 8, !tbaa !11
%62 = ptrtoint ptr %.val72 to i64
%63 = sub i64 %58, %62
%64 = sdiv exact i64 %63, 24
%65 = trunc i64 %64 to i32
%66 = tail call ptr @Wlc_ObjName(ptr noundef nonnull %0, i32 noundef %65) #11
%67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %2, ptr noundef nonnull @.str.3, ptr noundef %66, i32 noundef %61) #11
%68 = add nuw i32 %.15582, 1
%exitcond91.not = icmp eq i32 %.15582, %smax90
br i1 %exitcond91.not, label %.critedge, label %60, !llvm.loop !29
.critedge: ; preds = %60
%indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
%.val73 = load i32, ptr %8, align 4, !tbaa !3
%69 = sext i32 %.val73 to i64
%70 = icmp slt i64 %indvars.iv.next93, %69
br i1 %70, label %51, label %.critedge2, !llvm.loop !30
.critedge2: ; preds = %.critedge, %.critedge.preheader
%71 = tail call i32 @fclose(ptr noundef %2)
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr captures(none)) #1
; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr noundef readonly captures(none), ptr noundef readonly captures(none)) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr noundef captures(none), ptr noundef readonly captures(none), ...) local_unnamed_addr #2
declare ptr @Wlc_ObjName(ptr noundef, i32 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr captures(none)) #1
; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr noundef captures(none)) local_unnamed_addr #2
; Function Attrs: nounwind uwtable
define void @Wlc_NtkPrintInvStats(ptr noundef %0, ptr noundef readonly captures(none) %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = getelementptr i8, ptr %0, i64 52
%.val51 = load i32, ptr %4, align 4, !tbaa !3
%5 = icmp sgt i32 %.val51, 0
br i1 %5, label %.lr.ph, label %.critedge
.lr.ph: ; preds = %3
%6 = getelementptr i8, ptr %0, i64 56
%7 = getelementptr i8, ptr %0, i64 640
%8 = getelementptr i8, ptr %1, i64 8
br label %9
9: ; preds = %.lr.ph, %47
%.val66 = phi i32 [ %.val51, %.lr.ph ], [ %.val, %47 ]
%indvars.iv62 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next63, %47 ]
%.053 = phi i32 [ 0, %.lr.ph ], [ %.1, %47 ]
%.val42 = load ptr, ptr %6, align 8, !tbaa !10
%.val43 = load ptr, ptr %7, align 8, !tbaa !11
%10 = getelementptr inbounds nuw i32, ptr %.val42, i64 %indvars.iv62
%11 = load i32, ptr %10, align 4, !tbaa !20
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds %struct.Wlc_Obj_t_, ptr %.val43, i64 %12
%14 = load i16, ptr %13, align 8
%15 = and i16 %14, 63
%.not = icmp eq i16 %15, 3
br i1 %.not, label %16, label %47
16: ; preds = %9
%17 = getelementptr i8, ptr %13, i64 8
%.val44 = load i32, ptr %17, align 8, !tbaa !21
%18 = getelementptr i8, ptr %13, i64 12
%.val45 = load i32, ptr %18, align 4, !tbaa !23
%19 = sub nsw i32 %.val44, %.val45
%20 = tail call i32 @llvm.abs.i32(i32 %19, i1 true)
%21 = add nuw nsw i32 %20, 1
%.val40 = load ptr, ptr %8, align 8, !tbaa !10
%22 = zext nneg i32 %.053 to i64
%smax = zext nneg i32 %20 to i64
%invariant.gep = getelementptr inbounds nuw i32, ptr %.val40, i64 %22
br label %24
24: ; preds = %16, %26
%indvars.iv = phi i64 [ 0, %16 ], [ %indvars.iv.next, %26 ]
%gep = getelementptr inbounds nuw i32, ptr %invariant.gep, i64 %indvars.iv
%25 = load i32, ptr %gep, align 4, !tbaa !20
%.not39 = icmp eq i32 %25, 0
br i1 %.not39, label %26, label %27
26: ; preds = %24
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp samesign ult i64 %indvars.iv, %23
br i1 %exitcond.not, label %24, label %27, !llvm.loop !31
27: ; preds = %24, %26
%.034.lcssa.in = phi i64 [ %indvars.iv, %24 ], [ %indvars.iv.next, %26 ]
%.034.lcssa = trunc i64 %.034.lcssa.in to i32
%28 = icmp eq i32 %21, %.034.lcssa
br i1 %28, label %29, label %31
29: ; preds = %27
%30 = add nuw nsw i32 %21, %.053
br label %47
31: ; preds = %27
%32 = tail call ptr @Wlc_ObjName(ptr noundef %0, i32 noundef %11) #11
%33 = load i32, ptr %17, align 8, !tbaa !21
%34 = load i32, ptr %18, align 4, !tbaa !23
%35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %32, i32 noundef %33, i32 noundef %34)
br label %36
36: ; preds = %31, %44
%indvars.iv55 = phi i64 [ 0, %31 ], [ %indvars.iv.next56, %44 ]
%.val41 = load ptr, ptr %8, align 8, !tbaa !10
%37 = getelementptr inbounds nuw i32, ptr %.val41, i64 %indvars.iv55
%38 = getelementptr inbounds nuw i32, ptr %37, i64 %22
%39 = load i32, ptr %38, align 4, !tbaa !20
%40 = icmp eq i32 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %36
%42 = trunc nuw nsw i64 %indvars.iv55 to i32
%43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %42, i32 noundef %39)
br label %44
44: ; preds = %36, %41
%indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
%exitcond61.not = icmp samesign ult i64 %indvars.iv55, %23
br i1 %exitcond61.not, label %36, label %45, !llvm.loop !32
45: ; preds = %44
%putchar = tail call i32 @putchar(i32 10)
%46 = add nuw nsw i32 %21, %.053
%.val.pre = load i32, ptr %4, align 4, !tbaa !3
br label %47
47: ; preds = %9, %45, %29
%.val = phi i32 [ %.val66, %9 ], [ %.val66, %29 ], [ %.val.pre, %45 ]
%.1 = phi i32 [ %.053, %9 ], [ %30, %29 ], [ %46, %45 ]
%indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
%48 = sext i32 %.val to i64
%49 = icmp slt i64 %indvars.iv.next63, %48
br i1 %49, label %9, label %.critedge, !llvm.loop !33
.critedge: ; preds = %47, %3
ret void
}
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr noundef readonly captures(none), ...) local_unnamed_addr #2
; Function Attrs: nounwind uwtable
define ptr @Wlc_NtkGetInv(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2) local_unnamed_addr #0 {
%4 = alloca [5000 x i8], align 16
%5 = tail call ptr @Pdr_InvCounts(ptr noundef %1) #11
%6 = tail call ptr @Pdr_InvPrintStr(ptr noundef %1, ptr noundef %5) #11
call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %4) #11
%7 = tail call ptr @Abc_NtkAlloc(i32 noundef 2, i32 noundef 1, i32 noundef 1) #11
%.not = icmp eq ptr %0, null
br i1 %.not, label %17, label %8
8: ; preds = %3
%9 = load ptr, ptr %0, align 8, !tbaa !34
%10 = tail call ptr @Extra_UtilStrsav(ptr noundef %9) #11
%11 = getelementptr inbounds nuw i8, ptr %7, i64 8
store ptr %10, ptr %11, align 8, !tbaa !35
%12 = getelementptr i8, ptr %0, i64 52
%.val99120 = load i32, ptr %12, align 4, !tbaa !3
%13 = icmp sgt i32 %.val99120, 0
br i1 %13, label %.lr.ph, label %.critedge2
.lr.ph: ; preds = %8
%14 = getelementptr i8, ptr %0, i64 56
%15 = getelementptr i8, ptr %0, i64 640
%16 = getelementptr i8, ptr %5, i64 8
br label %58
17: ; preds = %3
%18 = tail call ptr @Extra_UtilStrsav(ptr noundef nonnull @.str.7) #11
%19 = getelementptr inbounds nuw i8, ptr %7, i64 8
store ptr %18, ptr %19, align 8, !tbaa !35
%20 = getelementptr i8, ptr %6, i64 8
%.val108 = load ptr, ptr %20, align 8, !tbaa !47
%21 = tail call i32 @Abc_SopGetVarNum(ptr noundef %.val108) #11
%22 = getelementptr i8, ptr %5, i64 4
%.val123 = load i32, ptr %22, align 4, !tbaa !3
%23 = icmp sgt i32 %.val123, 0
br i1 %23, label %.lr.ph125, label %.critedge
.lr.ph125: ; preds = %17
%24 = getelementptr i8, ptr %5, i64 8
%.not97 = icmp eq ptr %2, null
%25 = getelementptr i8, ptr %2, i64 4
%26 = getelementptr i8, ptr %2, i64 8
br i1 %.not97, label %.lr.ph125.split.us, label %.lr.ph125.split
.lr.ph125.split.us: ; preds = %.lr.ph125, %35
%.val.us158 = phi i32 [ %.val.us, %35 ], [ %.val123, %.lr.ph125 ]
%indvars.iv148 = phi i64 [ %indvars.iv.next149, %35 ], [ 0, %.lr.ph125 ]
%.val102.us = load ptr, ptr %24, align 8, !tbaa !10
%27 = getelementptr inbounds nuw i32, ptr %.val102.us, i64 %indvars.iv148
%28 = load i32, ptr %27, align 4, !tbaa !20
%29 = icmp eq i32 %28, 0
br i1 %29, label %35, label %30
30: ; preds = %.lr.ph125.split.us
%31 = call ptr @Abc_NtkCreateObj(ptr noundef %7, i32 noundef 2) #11
%32 = trunc nuw nsw i64 %indvars.iv148 to i32
%33 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %32) #11
%34 = call ptr @Abc_ObjAssignName(ptr noundef %31, ptr noundef nonnull %4, ptr noundef null) #11
%.val.us.pre = load i32, ptr %22, align 4, !tbaa !3
br label %35
35: ; preds = %30, %.lr.ph125.split.us
%.val.us = phi i32 [ %.val.us.pre, %30 ], [ %.val.us158, %.lr.ph125.split.us ]
%indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
%36 = sext i32 %.val.us to i64
%37 = icmp slt i64 %indvars.iv.next149, %36
br i1 %37, label %.lr.ph125.split.us, label %.critedge, !llvm.loop !49
.lr.ph125.split: ; preds = %.lr.ph125, %52
%indvars.iv144 = phi i64 [ %indvars.iv.next145, %52 ], [ 0, %.lr.ph125 ]
%.val102 = load ptr, ptr %24, align 8, !tbaa !10
%38 = getelementptr inbounds nuw i32, ptr %.val102, i64 %indvars.iv144
%39 = load i32, ptr %38, align 4, !tbaa !20
%40 = icmp eq i32 %39, 0
br i1 %40, label %52, label %41
41: ; preds = %.lr.ph125.split
%42 = call ptr @Abc_NtkCreateObj(ptr noundef %7, i32 noundef 2) #11
%.val110 = load i32, ptr %25, align 4, !tbaa !50
%43 = sext i32 %.val110 to i64
%44 = icmp slt i64 %indvars.iv144, %43
br i1 %44, label %45, label %48
45: ; preds = %41
%.val111 = load ptr, ptr %26, align 8, !tbaa !52
%46 = getelementptr inbounds nuw ptr, ptr %.val111, i64 %indvars.iv144
%47 = load ptr, ptr %46, align 8, !tbaa !53
br label %.sink.split
48: ; preds = %41
%49 = trunc nuw nsw i64 %indvars.iv144 to i32
%50 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %49) #11
br label %.sink.split
.sink.split: ; preds = %48, %45
%.sink = phi ptr [ %47, %45 ], [ %4, %48 ]
%51 = call ptr @Abc_ObjAssignName(ptr noundef %42, ptr noundef %.sink, ptr noundef null) #11
br label %52
52: ; preds = %.sink.split, %.lr.ph125.split
%indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
%.val = load i32, ptr %22, align 4, !tbaa !3
%53 = sext i32 %.val to i64
%54 = icmp slt i64 %indvars.iv.next145, %53
br i1 %54, label %.lr.ph125.split, label %.critedge, !llvm.loop !49
.critedge: ; preds = %52, %35, %17
%55 = getelementptr i8, ptr %7, i64 40
%.val112 = load ptr, ptr %55, align 8, !tbaa !54
%56 = getelementptr i8, ptr %.val112, i64 4
%.val112.val = load i32, ptr %56, align 4, !tbaa !50
%.not96 = icmp eq i32 %.val112.val, %21
br i1 %.not96, label %.critedge2, label %57
57: ; preds = %.critedge
%puts = call i32 @puts(ptr nonnull dereferenceable(1) @str)
call void @Abc_NtkDelete(ptr noundef nonnull %7) #11
br label %124
58: ; preds = %.lr.ph, %99
%.val99156 = phi i32 [ %.val99120, %.lr.ph ], [ %.val99, %99 ]
%indvars.iv140 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next141, %99 ]
%.085121 = phi i32 [ 0, %.lr.ph ], [ %.186, %99 ]
%.val103 = load ptr, ptr %14, align 8, !tbaa !10
%.val104 = load ptr, ptr %15, align 8, !tbaa !11
%59 = getelementptr inbounds nuw i32, ptr %.val103, i64 %indvars.iv140
%60 = load i32, ptr %59, align 4, !tbaa !20
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds %struct.Wlc_Obj_t_, ptr %.val104, i64 %61
%63 = load i16, ptr %62, align 8
%64 = and i16 %63, 63
%.not94 = icmp eq i16 %64, 3
br i1 %.not94, label %65, label %99
65: ; preds = %58
%66 = getelementptr i8, ptr %62, i64 8
%.val105 = load i32, ptr %66, align 8, !tbaa !21
%67 = getelementptr i8, ptr %62, i64 12
%.val106 = load i32, ptr %67, align 4, !tbaa !23
%68 = sub nsw i32 %.val105, %.val106
%69 = call i32 @llvm.abs.i32(i32 %68, i1 true)
%70 = add nuw nsw i32 %69, 1
%.val101 = load ptr, ptr %16, align 8, !tbaa !10
%71 = zext nneg i32 %.085121 to i64
%smax = zext nneg i32 %69 to i64
%invariant.gep = getelementptr inbounds nuw i32, ptr %.val101, i64 %71
br label %73
73: ; preds = %65, %75
%indvars.iv = phi i64 [ 0, %65 ], [ %indvars.iv.next, %75 ]
%gep = getelementptr inbounds nuw i32, ptr %invariant.gep, i64 %indvars.iv
%74 = load i32, ptr %gep, align 4, !tbaa !20
%.not95 = icmp eq i32 %74, 0
br i1 %.not95, label %75, label %76
75: ; preds = %73
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp samesign ult i64 %indvars.iv, %72
br i1 %exitcond.not, label %73, label %76, !llvm.loop !55
76: ; preds = %73, %75
%.087.lcssa.in = phi i64 [ %indvars.iv, %73 ], [ %indvars.iv.next, %75 ]
%.087.lcssa = trunc i64 %.087.lcssa.in to i32
%77 = icmp eq i32 %70, %.087.lcssa
br i1 %77, label %79, label %.preheader
.preheader: ; preds = %76
%78 = ptrtoint ptr %62 to i64
br label %81
79: ; preds = %76
%80 = add nuw nsw i32 %70, %.085121
br label %99
81: ; preds = %.preheader, %96
%indvars.iv133 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next134, %96 ]
%.val100 = load ptr, ptr %16, align 8, !tbaa !10
%82 = getelementptr inbounds nuw i32, ptr %.val100, i64 %indvars.iv133
%83 = getelementptr inbounds nuw i32, ptr %82, i64 %71
%84 = load i32, ptr %83, align 4, !tbaa !20
%85 = icmp eq i32 %84, 0
br i1 %85, label %96, label %86
86: ; preds = %81
%87 = call ptr @Abc_NtkCreateObj(ptr noundef %7, i32 noundef 2) #11
%.val107 = load ptr, ptr %15, align 8, !tbaa !11
%88 = ptrtoint ptr %.val107 to i64
%89 = sub i64 %78, %88
%90 = sdiv exact i64 %89, 24
%91 = trunc i64 %90 to i32
%92 = call ptr @Wlc_ObjName(ptr noundef nonnull %0, i32 noundef %91) #11
%93 = trunc nuw nsw i64 %indvars.iv133 to i32
%94 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef %92, i32 noundef %93) #11
%95 = call ptr @Abc_ObjAssignName(ptr noundef %87, ptr noundef nonnull %4, ptr noundef null) #11
br label %96
96: ; preds = %81, %86
%indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
%exitcond139.not = icmp samesign ult i64 %indvars.iv133, %72
br i1 %exitcond139.not, label %81, label %97, !llvm.loop !56
97: ; preds = %96
%98 = add nuw nsw i32 %70, %.085121
%.val99.pre = load i32, ptr %12, align 4, !tbaa !3
br label %99
99: ; preds = %58, %97, %79
%.val99 = phi i32 [ %.val99156, %58 ], [ %.val99156, %79 ], [ %.val99.pre, %97 ]
%.186 = phi i32 [ %.085121, %58 ], [ %80, %79 ], [ %98, %97 ]
%indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
%100 = sext i32 %.val99 to i64
%101 = icmp slt i64 %indvars.iv.next141, %100
br i1 %101, label %58, label %.critedge2, !llvm.loop !57
.critedge2: ; preds = %99, %8, %.critedge
%102 = call ptr @Abc_NtkCreateObj(ptr noundef %7, i32 noundef 7) #11
%103 = getelementptr i8, ptr %7, i64 40
%.val113126 = load ptr, ptr %103, align 8, !tbaa !54
%104 = getelementptr i8, ptr %.val113126, i64 4
%.val113.val127 = load i32, ptr %104, align 4, !tbaa !50
%105 = icmp sgt i32 %.val113.val127, 0
br i1 %105, label %.lr.ph130, label %.critedge4
.lr.ph130: ; preds = %.critedge2, %.lr.ph130
%indvars.iv152 = phi i64 [ %indvars.iv.next153, %.lr.ph130 ], [ 0, %.critedge2 ]
%.val113129 = phi ptr [ %.val113, %.lr.ph130 ], [ %.val113126, %.critedge2 ]
%106 = getelementptr i8, ptr %.val113129, i64 8
%.val114.val = load ptr, ptr %106, align 8, !tbaa !52
%107 = getelementptr inbounds nuw ptr, ptr %.val114.val, i64 %indvars.iv152
%108 = load ptr, ptr %107, align 8, !tbaa !53
call void @Abc_ObjAddFanin(ptr noundef %102, ptr noundef %108) #11
%indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
%.val113 = load ptr, ptr %103, align 8, !tbaa !54
%109 = getelementptr i8, ptr %.val113, i64 4
%.val113.val = load i32, ptr %109, align 4, !tbaa !50
%110 = sext i32 %.val113.val to i64
%111 = icmp slt i64 %indvars.iv.next153, %110
br i1 %111, label %.lr.ph130, label %.critedge4, !llvm.loop !58
.critedge4: ; preds = %.lr.ph130, %.critedge2
%112 = getelementptr inbounds nuw i8, ptr %7, i64 256
%113 = load ptr, ptr %112, align 8, !tbaa !59
%114 = getelementptr i8, ptr %6, i64 8
%.val109 = load ptr, ptr %114, align 8, !tbaa !47
%115 = call ptr @Abc_SopRegister(ptr noundef %113, ptr noundef %.val109) #11
%116 = getelementptr inbounds nuw i8, ptr %102, i64 56
store ptr %115, ptr %116, align 8, !tbaa !25
%117 = getelementptr inbounds nuw i8, ptr %5, i64 8
%118 = load ptr, ptr %117, align 8, !tbaa !10
%.not.i = icmp eq ptr %118, null
br i1 %.not.i, label %Vec_IntFree.exit, label %119
119: ; preds = %.critedge4
call void @free(ptr noundef nonnull %118) #11
br label %Vec_IntFree.exit
Vec_IntFree.exit: ; preds = %.critedge4, %119
call void @free(ptr noundef nonnull %5) #11
%120 = load ptr, ptr %114, align 8, !tbaa !47
%.not.i115 = icmp eq ptr %120, null
br i1 %.not.i115, label %Vec_StrFree.exit, label %121
121: ; preds = %Vec_IntFree.exit
call void @free(ptr noundef nonnull %120) #11
br label %Vec_StrFree.exit
Vec_StrFree.exit: ; preds = %Vec_IntFree.exit, %121
call void @free(ptr noundef nonnull %6) #11
%122 = call ptr @Abc_NtkCreateObj(ptr noundef nonnull %7, i32 noundef 3) #11
call void @Abc_ObjAddFanin(ptr noundef %122, ptr noundef nonnull %102) #11
%123 = call ptr @Abc_ObjAssignName(ptr noundef %122, ptr noundef nonnull @.str.7, ptr noundef null) #11
br label %124
124: ; preds = %57, %Vec_StrFree.exit
%.1 = phi ptr [ %7, %Vec_StrFree.exit ], [ null, %57 ]
call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %4) #11
ret ptr %.1
}
declare ptr @Pdr_InvCounts(ptr noundef) local_unnamed_addr #3
declare ptr @Pdr_InvPrintStr(ptr noundef, ptr noundef) local_unnamed_addr #3
declare ptr @Abc_NtkAlloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3
declare ptr @Extra_UtilStrsav(ptr noundef) local_unnamed_addr #3
declare i32 @Abc_SopGetVarNum(ptr noundef) local_unnamed_addr #3
declare ptr @Abc_ObjAssignName(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias noundef writeonly captures(none), ptr noundef readonly captures(none), ...) local_unnamed_addr #2
declare void @Abc_NtkDelete(ptr noundef) local_unnamed_addr #3
declare void @Abc_ObjAddFanin(ptr noundef, ptr noundef) local_unnamed_addr #3
declare ptr @Abc_SopRegister(ptr noundef, ptr noundef) local_unnamed_addr #3
; Function Attrs: nounwind uwtable
define noalias noundef ptr @Wlc_NtkGetPut(ptr noundef readonly captures(none) %0, ptr noundef readonly captures(none) %1) local_unnamed_addr #0 {
%3 = getelementptr i8, ptr %1, i64 16
%.val113 = load i32, ptr %3, align 8, !tbaa !60
%4 = getelementptr i8, ptr %0, i64 48
%.val114 = load ptr, ptr %4, align 8, !tbaa !73
%5 = getelementptr i8, ptr %.val114, i64 4
%.val114.val = load i32, ptr %5, align 4, !tbaa !50
%.not = icmp eq i32 %.val114.val, 1
br i1 %.not, label %7, label %6
6: ; preds = %2
%puts110 = tail call i32 @puts(ptr nonnull dereferenceable(1) @str.2)
br label %219
7: ; preds = %2
%8 = getelementptr i8, ptr %0, i64 124
%.val115 = load i32, ptr %8, align 4, !tbaa !20
%.not98 = icmp eq i32 %.val115, 1
br i1 %.not98, label %10, label %9
9: ; preds = %7
%puts = tail call i32 @puts(ptr nonnull dereferenceable(1) @str.1)
br label %219
10: ; preds = %7
%11 = getelementptr i8, ptr %0, i64 64
%.val116 = load ptr, ptr %11, align 8, !tbaa !74
%12 = getelementptr i8, ptr %.val116, i64 8
%.val116.val = load ptr, ptr %12, align 8, !tbaa !52
%.val116.val.val = load ptr, ptr %.val116.val, align 8, !tbaa !53
%.val117 = load ptr, ptr %.val116.val.val, align 8, !tbaa !75
%13 = getelementptr i8, ptr %.val116.val.val, i64 32
%.val118 = load ptr, ptr %13, align 8, !tbaa !78
%14 = getelementptr i8, ptr %.val117, i64 32
%.val117.val = load ptr, ptr %14, align 8, !tbaa !79
%.val118.val = load i32, ptr %.val118, align 4, !tbaa !20
%15 = getelementptr i8, ptr %.val117.val, i64 8
%.val117.val.val = load ptr, ptr %15, align 8, !tbaa !52
%16 = sext i32 %.val118.val to i64
%17 = getelementptr inbounds ptr, ptr %.val117.val.val, i64 %16
%18 = load ptr, ptr %17, align 8, !tbaa !53
%19 = getelementptr inbounds nuw i8, ptr %18, i64 56
%20 = load ptr, ptr %19, align 8, !tbaa !25
%21 = getelementptr i8, ptr %18, i64 28
%.val119 = load i32, ptr %21, align 4, !tbaa !80
%22 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #12
%23 = add i32 %.val119, -1
%or.cond.i = icmp ult i32 %23, 15
%spec.store.select.i = select i1 %or.cond.i, i32 16, i32 %.val119
%24 = getelementptr inbounds nuw i8, ptr %22, i64 4
store i32 0, ptr %24, align 4, !tbaa !3
store i32 %spec.store.select.i, ptr %22, align 8, !tbaa !81
%.not.i = icmp eq i32 %spec.store.select.i, 0
br i1 %.not.i, label %Vec_IntAlloc.exit, label %25
25: ; preds = %10
%26 = sext i32 %spec.store.select.i to i64
%27 = shl nsw i64 %26, 2
%28 = tail call noalias ptr @malloc(i64 noundef %27) #12
br label %Vec_IntAlloc.exit
Vec_IntAlloc.exit: ; preds = %10, %25
%29 = phi ptr [ %28, %25 ], [ null, %10 ]
%30 = getelementptr inbounds nuw i8, ptr %22, i64 8
store ptr %29, ptr %30, align 8, !tbaa !10
%31 = getelementptr inbounds nuw i8, ptr %1, i64 632
%32 = load ptr, ptr %31, align 8, !tbaa !82
%.not99 = icmp eq ptr %32, null
br i1 %.not99, label %.critedge, label %33
33: ; preds = %Vec_IntAlloc.exit
%34 = tail call ptr @Abc_NamStart(i32 noundef 100, i32 noundef 16) #11
%35 = load ptr, ptr %31, align 8, !tbaa !82
%36 = getelementptr i8, ptr %35, i64 4
%.val111155 = load i32, ptr %36, align 4, !tbaa !50
%37 = icmp sgt i32 %.val111155, 0
br i1 %37, label %.lr.ph, label %.critedge
.lr.ph: ; preds = %33, %.lr.ph
%indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %33 ]
%38 = phi ptr [ %43, %.lr.ph ], [ %35, %33 ]
%39 = getelementptr i8, ptr %38, i64 8
%.val112 = load ptr, ptr %39, align 8, !tbaa !52
%40 = getelementptr inbounds nuw ptr, ptr %.val112, i64 %indvars.iv
%41 = load ptr, ptr %40, align 8, !tbaa !53
%42 = tail call i32 @Abc_NamStrFindOrAdd(ptr noundef %34, ptr noundef %41, ptr noundef null) #11
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%43 = load ptr, ptr %31, align 8, !tbaa !82
%44 = getelementptr i8, ptr %43, i64 4
%.val111 = load i32, ptr %44, align 4, !tbaa !50
%45 = sext i32 %.val111 to i64
%46 = icmp slt i64 %indvars.iv.next, %45
br i1 %46, label %.lr.ph, label %.critedge, !llvm.loop !83
.critedge: ; preds = %.lr.ph, %33, %Vec_IntAlloc.exit
%.092 = phi ptr [ null, %Vec_IntAlloc.exit ], [ %34, %33 ], [ %34, %.lr.ph ]
%.val120157 = load i32, ptr %21, align 4, !tbaa !80
%47 = icmp sgt i32 %.val120157, 0
br i1 %47, label %.lr.ph160, label %.critedge2.thread
.lr.ph160: ; preds = %.critedge
%48 = getelementptr i8, ptr %18, i64 32
%.not109 = icmp eq ptr %.092, null
%49 = getelementptr i8, ptr %1, i64 64
br label %50
50: ; preds = %.lr.ph160, %Vec_IntPush.exit
%51 = phi ptr [ %29, %.lr.ph160 ], [ %.pre.i180, %Vec_IntPush.exit ]
%indvars.iv167 = phi i64 [ 0, %.lr.ph160 ], [ %indvars.iv.next168, %Vec_IntPush.exit ]
%.0159 = phi i32 [ 0, %.lr.ph160 ], [ %.1, %Vec_IntPush.exit ]
%.val122 = load ptr, ptr %18, align 8, !tbaa !75
%.val123 = load ptr, ptr %48, align 8, !tbaa !78
%52 = getelementptr i8, ptr %.val122, i64 32
%.val122.val = load ptr, ptr %52, align 8, !tbaa !79
%53 = getelementptr i8, ptr %.val122.val, i64 8
%.val122.val.val = load ptr, ptr %53, align 8, !tbaa !52
%54 = getelementptr inbounds nuw i32, ptr %.val123, i64 %indvars.iv167
%55 = load i32, ptr %54, align 4, !tbaa !20
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %.val122.val.val, i64 %56
%58 = load ptr, ptr %57, align 8, !tbaa !53
%59 = tail call ptr @Abc_ObjName(ptr noundef %58) #11
%60 = trunc nuw nsw i64 %indvars.iv167 to i32
br i1 %.not109, label %73, label %61
61: ; preds = %50
%62 = tail call i32 @Abc_NamStrFind(ptr noundef nonnull %.092, ptr noundef %59) #11
%.val124 = load i32, ptr %3, align 8, !tbaa !60
%.val125 = load ptr, ptr %49, align 8, !tbaa !84
%63 = getelementptr i8, ptr %.val125, i64 4
%.val125.val = load i32, ptr %63, align 4, !tbaa !3
%64 = xor i32 %.val125.val, -1
%65 = add i32 %.val124, %62
%66 = add i32 %65, %64
%67 = icmp slt i32 %66, 0
br i1 %67, label %68, label %98
68: ; preds = %61
%69 = add nsw i32 %.0159, 1
%70 = icmp eq i32 %.0159, 0
br i1 %70, label %71, label %98
71: ; preds = %68
%72 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef %59, i32 noundef %60)
br label %98
73: ; preds = %50
%74 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %59) #13
%75 = trunc i64 %74 to i32
%76 = and i64 %74, 4294967295
%smin = tail call i32 @llvm.smin.i32(i32 %75, i32 0)
%77 = add i32 %smin, -1
br label %78
78: ; preds = %81, %73
%indvars.iv164 = phi i64 [ %indvars.iv.next165, %81 ], [ %76, %73 ]
%79 = trunc nuw i64 %indvars.iv164 to i32
%80 = icmp sgt i32 %79, 0
br i1 %80, label %81, label %.split.loop.exit195
81: ; preds = %78
%indvars.iv.next165 = add nsw i64 %indvars.iv164, -1
%82 = and i64 %indvars.iv.next165, 4294967295
%83 = getelementptr inbounds nuw i8, ptr %59, i64 %82
%84 = load i8, ptr %83, align 1, !tbaa !25
%85 = add i8 %84, -58
%or.cond = icmp ult i8 %85, -10
br i1 %or.cond, label %.split.loop.exit, label %78, !llvm.loop !85
.split.loop.exit: ; preds = %81
%indvars.le = trunc i64 %indvars.iv.next165 to i32
br label %.split.loop.exit195
.split.loop.exit195: ; preds = %78, %.split.loop.exit
%.087.in.lcssa = phi i32 [ %79, %.split.loop.exit ], [ %smin, %78 ]
%.087.lcssa = phi i32 [ %indvars.le, %.split.loop.exit ], [ %77, %78 ]
%86 = icmp eq i32 %.087.in.lcssa, %75
br i1 %86, label %87, label %92
87: ; preds = %.split.loop.exit195
%88 = add nsw i32 %.0159, 1
%89 = icmp eq i32 %.0159, 0
br i1 %89, label %90, label %98
90: ; preds = %87
%91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef nonnull %59, i32 noundef %60)
br label %98
92: ; preds = %.split.loop.exit195
%93 = sext i32 %.087.lcssa to i64
%94 = getelementptr inbounds i8, ptr %59, i64 %93
%95 = getelementptr inbounds nuw i8, ptr %94, i64 1
%96 = tail call i64 @strtol(ptr noundef nonnull captures(none) %95, ptr noundef null, i32 noundef 10) #11
%97 = trunc i64 %96 to i32
br label %98
98: ; preds = %87, %90, %68, %71, %92, %61
%.086 = phi i32 [ %66, %61 ], [ %97, %92 ], [ %60, %71 ], [ %60, %68 ], [ %60, %90 ], [ %60, %87 ]
%.1 = phi i32 [ %.0159, %61 ], [ %.0159, %92 ], [ 1, %71 ], [ %69, %68 ], [ 1, %90 ], [ %88, %87 ]
%99 = load i32, ptr %24, align 4, !tbaa !3
%100 = load i32, ptr %22, align 8, !tbaa !81
%101 = icmp eq i32 %99, %100
br i1 %101, label %102, label %Vec_IntPush.exit
102: ; preds = %98
%103 = icmp slt i32 %99, 16
br i1 %103, label %104, label %109
104: ; preds = %102
%.not9.i.i = icmp eq ptr %51, null
br i1 %.not9.i.i, label %107, label %105
105: ; preds = %104
%106 = tail call dereferenceable_or_null(64) ptr @realloc(ptr noundef nonnull %51, i64 noundef 64) #14
br label %Vec_IntPush.exit.sink.split
107: ; preds = %104
%108 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #12
br label %Vec_IntPush.exit.sink.split
109: ; preds = %102
%110 = shl nuw nsw i32 %99, 1
%.not9.i9.i = icmp eq ptr %51, null
%111 = zext nneg i32 %110 to i64
%112 = shl nuw nsw i64 %111, 2
br i1 %.not9.i9.i, label %115, label %113
113: ; preds = %109
%114 = tail call ptr @realloc(ptr noundef nonnull %51, i64 noundef %112) #14
br label %Vec_IntPush.exit.sink.split
115: ; preds = %109
%116 = tail call noalias ptr @malloc(i64 noundef %112) #12
br label %Vec_IntPush.exit.sink.split
Vec_IntPush.exit.sink.split: ; preds = %113, %115, %105, %107
%.sink198 = phi ptr [ %106, %105 ], [ %108, %107 ], [ %114, %113 ], [ %116, %115 ]
%.sink = phi i32 [ 16, %105 ], [ 16, %107 ], [ %110, %113 ], [ %110, %115 ]
store ptr %.sink198, ptr %30, align 8, !tbaa !10
store i32 %.sink, ptr %22, align 8, !tbaa !81
br label %Vec_IntPush.exit
Vec_IntPush.exit: ; preds = %Vec_IntPush.exit.sink.split, %98
%.pre.i180 = phi ptr [ %51, %98 ], [ %.sink198, %Vec_IntPush.exit.sink.split ]
%117 = add nsw i32 %99, 1
store i32 %117, ptr %24, align 4, !tbaa !3
%118 = sext i32 %99 to i64
%119 = getelementptr inbounds i32, ptr %.pre.i180, i64 %118
store i32 %.086, ptr %119, align 4, !tbaa !20
%indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
%.val120 = load i32, ptr %21, align 4, !tbaa !80
%120 = sext i32 %.val120 to i64
%121 = icmp slt i64 %indvars.iv.next168, %120
br i1 %121, label %50, label %.critedge2, !llvm.loop !86
.critedge2: ; preds = %Vec_IntPush.exit
%.not100 = icmp eq i32 %.1, 0
br i1 %.not100, label %.critedge2.thread, label %122
122: ; preds = %.critedge2
%123 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %.1)
br label %.critedge2.thread
.critedge2.thread: ; preds = %.critedge, %122, %.critedge2
%.not101 = icmp eq ptr %.092, null
br i1 %.not101, label %Vec_IntPush.exit132, label %124
124: ; preds = %.critedge2.thread
tail call void @Abc_NamStop(ptr noundef nonnull %.092) #11
br label %Vec_IntPush.exit132
Vec_IntPush.exit132: ; preds = %124, %.critedge2.thread
%125 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #12
%126 = getelementptr inbounds nuw i8, ptr %125, i64 4
store i32 1000, ptr %125, align 8, !tbaa !81
%127 = tail call noalias dereferenceable_or_null(4000) ptr @malloc(i64 noundef 4000) #12
%128 = getelementptr inbounds nuw i8, ptr %125, i64 8
store ptr %127, ptr %128, align 8, !tbaa !10
%129 = tail call i32 @Abc_SopGetCubeNum(ptr noundef %20) #11
store i32 1, ptr %126, align 4, !tbaa !3
store i32 %129, ptr %127, align 4, !tbaa !20
%130 = load i8, ptr %20, align 1, !tbaa !25
%.not102161 = icmp eq i8 %130, 0
br i1 %.not102161, label %Vec_IntPush.exit153, label %.preheader
.preheader: ; preds = %Vec_IntPush.exit132, %.critedge6
%.pre.i142186 = phi ptr [ %160, %.critedge6 ], [ %127, %Vec_IntPush.exit132 ]
%131 = phi ptr [ %.pre.i135182, %.critedge6 ], [ %127, %Vec_IntPush.exit132 ]
%132 = phi i8 [ %195, %.critedge6 ], [ %130, %Vec_IntPush.exit132 ]
%.093162 = phi ptr [ %194, %.critedge6 ], [ %20, %Vec_IntPush.exit132 ]
br label %133
133: ; preds = %.preheader, %137
%134 = phi i8 [ %132, %.preheader ], [ %.pre, %137 ]
%indvars.iv171 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next172, %137 ]
%.084 = phi i32 [ 0, %.preheader ], [ %.185, %137 ]
switch i8 %134, label %135 [
i8 32, label %.critedge4
i8 0, label %.critedge4
i8 45, label %137
]
135: ; preds = %133
%136 = add nsw i32 %.084, 1
br label %137
137: ; preds = %133, %135
%.185 = phi i32 [ %136, %135 ], [ %.084, %133 ]
%indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
%.phi.trans.insert = getelementptr inbounds nuw i8, ptr %.093162, i64 %indvars.iv.next172
%.pre = load i8, ptr %.phi.trans.insert, align 1, !tbaa !25
br label %133, !llvm.loop !87
.critedge4: ; preds = %133, %133
%138 = load i32, ptr %126, align 4, !tbaa !3
%139 = load i32, ptr %125, align 8, !tbaa !81
%140 = icmp eq i32 %138, %139
br i1 %140, label %141, label %Vec_IntPush.exit139
141: ; preds = %.critedge4
%142 = icmp slt i32 %138, 16
br i1 %142, label %143, label %148
143: ; preds = %141
%.not9.i.i137 = icmp eq ptr %131, null
br i1 %.not9.i.i137, label %146, label %144
144: ; preds = %143
%145 = tail call dereferenceable_or_null(64) ptr @realloc(ptr noundef nonnull %131, i64 noundef 64) #14
br label %Vec_IntPush.exit139.sink.split
146: ; preds = %143
%147 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #12
br label %Vec_IntPush.exit139.sink.split
148: ; preds = %141
%149 = shl nuw nsw i32 %138, 1
%.not9.i9.i136 = icmp eq ptr %131, null
%150 = zext nneg i32 %149 to i64
%151 = shl nuw nsw i64 %150, 2
br i1 %.not9.i9.i136, label %154, label %152
152: ; preds = %148
%153 = tail call ptr @realloc(ptr noundef nonnull %131, i64 noundef %151) #14
br label %Vec_IntPush.exit139.sink.split
154: ; preds = %148
%155 = tail call noalias ptr @malloc(i64 noundef %151) #12
br label %Vec_IntPush.exit139.sink.split
Vec_IntPush.exit139.sink.split: ; preds = %152, %154, %144, %146
%.sink200 = phi ptr [ %145, %144 ], [ %147, %146 ], [ %153, %152 ], [ %155, %154 ]
%.sink199 = phi i32 [ 16, %144 ], [ 16, %146 ], [ %149, %152 ], [ %149, %154 ]
store ptr %.sink200, ptr %128, align 8, !tbaa !10
store i32 %.sink199, ptr %125, align 8, !tbaa !81
br label %Vec_IntPush.exit139
Vec_IntPush.exit139: ; preds = %Vec_IntPush.exit139.sink.split, %.critedge4
%.pre.i142189 = phi ptr [ %.pre.i142186, %.critedge4 ], [ %.sink200, %Vec_IntPush.exit139.sink.split ]
%.pre.i135183 = phi ptr [ %131, %.critedge4 ], [ %.sink200, %Vec_IntPush.exit139.sink.split ]
%156 = add nsw i32 %138, 1
store i32 %156, ptr %126, align 4, !tbaa !3
%157 = sext i32 %138 to i64
%158 = getelementptr inbounds i32, ptr %.pre.i135183, i64 %157
store i32 %.084, ptr %158, align 4, !tbaa !20
br label %159
159: ; preds = %191, %Vec_IntPush.exit139
%160 = phi ptr [ %.pre.i142185, %191 ], [ %.pre.i142189, %Vec_IntPush.exit139 ]
%.pre.i135182 = phi ptr [ %.pre.i135181, %191 ], [ %.pre.i135183, %Vec_IntPush.exit139 ]
%indvars.iv175 = phi i64 [ %indvars.iv.next176, %191 ], [ 0, %Vec_IntPush.exit139 ]
%161 = getelementptr inbounds nuw i8, ptr %.093162, i64 %indvars.iv175
%162 = load i8, ptr %161, align 1, !tbaa !25
switch i8 %162, label %163 [
i8 32, label %.critedge6
i8 0, label %.critedge6
i8 45, label %191
]
163: ; preds = %159
%.val = load ptr, ptr %30, align 8, !tbaa !10
%164 = getelementptr inbounds nuw i32, ptr %.val, i64 %indvars.iv175
%165 = load i32, ptr %164, align 4, !tbaa !20
%166 = icmp eq i8 %162, 48
%167 = zext i1 %166 to i32
%168 = shl nsw i32 %165, 1
%169 = or disjoint i32 %168, %167
%170 = load i32, ptr %126, align 4, !tbaa !3
%171 = load i32, ptr %125, align 8, !tbaa !81
%172 = icmp eq i32 %170, %171
br i1 %172, label %173, label %Vec_IntPush.exit146
173: ; preds = %163
%174 = icmp slt i32 %170, 16
br i1 %174, label %175, label %180
175: ; preds = %173
%.not9.i.i144 = icmp eq ptr %160, null
br i1 %.not9.i.i144, label %178, label %176
176: ; preds = %175
%177 = tail call dereferenceable_or_null(64) ptr @realloc(ptr noundef nonnull %160, i64 noundef 64) #14
br label %Vec_IntPush.exit146.sink.split
178: ; preds = %175
%179 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #12
br label %Vec_IntPush.exit146.sink.split
180: ; preds = %173
%181 = shl nuw nsw i32 %170, 1
%.not9.i9.i143 = icmp eq ptr %160, null
%182 = zext nneg i32 %181 to i64
%183 = shl nuw nsw i64 %182, 2
br i1 %.not9.i9.i143, label %186, label %184