-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path04AD43619B55E9CD.ll
3802 lines (3258 loc) · 198 KB
/
04AD43619B55E9CD.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 = '/usr/local/google/home/aeubanks/repos/test-suite/MultiSource/Benchmarks/MallocBench/espresso/cvrin.c'
source_filename = "/usr/local/google/home/aeubanks/repos/test-suite/MultiSource/Benchmarks/MallocBench/espresso/cvrin.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.cube_struct = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32 }
%struct.pla_types_struct = type { ptr, i32 }
%struct.PLA_t = type { ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr }
%struct.symbolic_struct = type { ptr, i32, ptr, i32, ptr }
%struct.pair_struct = type { i32, ptr, ptr }
%struct.cost_struct = type { i32, i32, i32, i32, i32, i32 }
%struct.symbolic_list_struct = type { i32, i32, ptr }
%struct.symbolic_label_struct = type { ptr, ptr }
@lineno = internal unnamed_addr global i32 0, align 4
@cube = external global %struct.cube_struct, align 8
@line_length_error = internal unnamed_addr global i1 false, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str = private unnamed_addr constant [20 x i8] c"product term(s) %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"span more than one line (warning only)\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@kiss = external local_unnamed_addr global i32, align 4
@.str.6 = private unnamed_addr constant [70 x i8] c"declared size of variable %d (counting from variable 0) is too small\0A\00", align 1
@.str.7 = private unnamed_addr constant [35 x i8] c"(warning): input line #%d ignored\0A\00", align 1
@stdout = external local_unnamed_addr global ptr, align 8
@echo_comments = external local_unnamed_addr global i32, align 4
@.str.9 = private unnamed_addr constant [18 x i8] c"extra .i ignored\0A\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.11 = private unnamed_addr constant [17 x i8] c"error reading .i\00", align 1
@.str.13 = private unnamed_addr constant [18 x i8] c"extra .o ignored\0A\00", align 1
@.str.14 = private unnamed_addr constant [27 x i8] c".o cannot appear before .i\00", align 1
@.str.15 = private unnamed_addr constant [17 x i8] c"error reading .o\00", align 1
@.str.16 = private unnamed_addr constant [3 x i8] c"mv\00", align 1
@.str.17 = private unnamed_addr constant [19 x i8] c"extra .mv ignored\0A\00", align 1
@.str.18 = private unnamed_addr constant [22 x i8] c"cannot mix .i and .mv\00", align 1
@.str.19 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.20 = private unnamed_addr constant [18 x i8] c"error reading .mv\00", align 1
@.str.21 = private unnamed_addr constant [57 x i8] c"num_binary_vars (second field of .mv) cannot be negative\00", align 1
@.str.22 = private unnamed_addr constant [75 x i8] c"num_vars (1st field of .mv) must exceed num_binary_vars (2nd field of .mv)\00", align 1
@.str.26 = private unnamed_addr constant [5 x i8] c"kiss\00", align 1
@.str.27 = private unnamed_addr constant [5 x i8] c"type\00", align 1
@pla_types = external local_unnamed_addr global [0 x %struct.pla_types_struct], align 8
@.str.28 = private unnamed_addr constant [30 x i8] c"unknown type in .type command\00", align 1
@.str.30 = private unnamed_addr constant [45 x i8] c"PLA size must be declared before .ilb or .ob\00", align 1
@.str.31 = private unnamed_addr constant [7 x i8] c"%s.bar\00", align 1
@.str.32 = private unnamed_addr constant [3 x i8] c"ob\00", align 1
@.str.33 = private unnamed_addr constant [6 x i8] c"label\00", align 1
@.str.34 = private unnamed_addr constant [40 x i8] c"PLA size must be declared before .label\00", align 1
@.str.35 = private unnamed_addr constant [7 x i8] c"var=%d\00", align 1
@.str.36 = private unnamed_addr constant [21 x i8] c"Error reading labels\00", align 1
@.str.37 = private unnamed_addr constant [9 x i8] c"symbolic\00", align 1
@.str.38 = private unnamed_addr constant [24 x i8] c"error reading .symbolic\00", align 1
@.str.39 = private unnamed_addr constant [16 x i8] c"symbolic-output\00", align 1
@.str.40 = private unnamed_addr constant [31 x i8] c"error reading .symbolic-output\00", align 1
@.str.41 = private unnamed_addr constant [6 x i8] c"phase\00", align 1
@.str.42 = private unnamed_addr constant [40 x i8] c"PLA size must be declared before .phase\00", align 1
@.str.43 = private unnamed_addr constant [22 x i8] c"extra .phase ignored\0A\00", align 1
@.str.44 = private unnamed_addr constant [41 x i8] c"only 0 or 1 allowed in phase description\00", align 1
@.str.45 = private unnamed_addr constant [5 x i8] c"pair\00", align 1
@.str.46 = private unnamed_addr constant [21 x i8] c"extra .pair ignored\0A\00", align 1
@.str.47 = private unnamed_addr constant [22 x i8] c"syntax error in .pair\00", align 1
@echo_unknown_commands = external local_unnamed_addr global i32, align 4
@.str.48 = private unnamed_addr constant [6 x i8] c"%c%s \00", align 1
@.str.49 = private unnamed_addr constant [46 x i8] c" with .kiss option, third to last and second\0A\00", align 1
@.str.50 = private unnamed_addr constant [42 x i8] c"to last variables must be the same size.\0A\00", align 1
@trace = external local_unnamed_addr global i32, align 4
@pos = external local_unnamed_addr global i32, align 4
@.str.51 = private unnamed_addr constant [12 x i8] c"MAP-INPUT \00", align 1
@.str.52 = private unnamed_addr constant [12 x i8] c"MAP-OUTPUT \00", align 1
@.str.53 = private unnamed_addr constant [12 x i8] c"# PLA is %s\00", align 1
@.str.54 = private unnamed_addr constant [32 x i8] c" with %d inputs and %d outputs\0A\00", align 1
@.str.55 = private unnamed_addr constant [40 x i8] c" with %d variables (%d binary, mv sizes\00", align 1
@.str.56 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.58 = private unnamed_addr constant [22 x i8] c"# ON-set cost is %s\0A\00", align 1
@.str.59 = private unnamed_addr constant [22 x i8] c"# OFF-set cost is %s\0A\00", align 1
@.str.60 = private unnamed_addr constant [22 x i8] c"# DC-set cost is %s\0A\00", align 1
@.str.61 = private unnamed_addr constant [15 x i8] c"# phase is %s\0A\00", align 1
@.str.62 = private unnamed_addr constant [20 x i8] c"# two-bit decoders:\00", align 1
@.str.63 = private unnamed_addr constant [9 x i8] c" (%d %d)\00", align 1
@.str.65 = private unnamed_addr constant [13 x i8] c"# symbolic: \00", align 1
@.str.66 = private unnamed_addr constant [20 x i8] c"# output symbolic: \00", align 1
@.str.67 = private unnamed_addr constant [2 x i8] c";\00", align 1
@str = private unnamed_addr constant [2 x i8] c")\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local void @skip_line(ptr nocapture noundef %fpin, ptr nocapture noundef %fpout, i32 noundef %echo) local_unnamed_addr #0 {
entry:
%tobool.not = icmp eq i32 %echo, 0
br i1 %tobool.not, label %while.cond.us, label %while.cond
while.cond.us: ; preds = %entry, %while.cond.us
%call.us = tail call i32 @getc(ptr noundef %fpin)
switch i32 %call.us, label %while.cond.us [
i32 -1, label %while.end
i32 10, label %while.end
]
while.cond: ; preds = %entry, %while.body
%call = tail call i32 @getc(ptr noundef %fpin)
switch i32 %call, label %while.body [
i32 -1, label %while.end
i32 10, label %while.end
]
while.body: ; preds = %while.cond
%call2 = tail call i32 @putc(i32 noundef %call, ptr noundef %fpout)
br label %while.cond
while.end: ; preds = %while.cond, %while.cond, %while.cond.us, %while.cond.us
br i1 %tobool.not, label %if.end6, label %if.then4
if.then4: ; preds = %while.end
%call5 = tail call i32 @putc(i32 noundef 10, ptr noundef %fpout)
br label %if.end6
if.end6: ; preds = %if.then4, %while.end
%0 = load i32, ptr @lineno, align 4, !tbaa !5
%inc = add nsw i32 %0, 1
store i32 %inc, ptr @lineno, align 4, !tbaa !5
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @getc(ptr nocapture noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @putc(i32 noundef, ptr nocapture noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind uwtable
define dso_local ptr @get_word(ptr nocapture noundef %fp, ptr noundef returned writeonly %word) local_unnamed_addr #0 {
entry:
br label %while.cond
while.cond: ; preds = %land.rhs, %entry
%call = tail call i32 @getc(ptr noundef %fp)
%cmp.not = icmp eq i32 %call, -1
br i1 %cmp.not, label %while.end, label %land.rhs
land.rhs: ; preds = %while.cond
%call1 = tail call ptr @__ctype_b_loc() #17
%0 = load ptr, ptr %call1, align 8, !tbaa !9
%idxprom = sext i32 %call to i64
%arrayidx = getelementptr inbounds i16, ptr %0, i64 %idxprom
%1 = load i16, ptr %arrayidx, align 2, !tbaa !11
%2 = and i16 %1, 8192
%tobool.not = icmp eq i16 %2, 0
br i1 %tobool.not, label %while.end, label %while.cond
while.end: ; preds = %while.cond, %land.rhs
%conv2 = trunc i32 %call to i8
store i8 %conv2, ptr %word, align 1, !tbaa !13
%call635 = tail call i32 @getc(ptr noundef %fp)
%cmp7.not36 = icmp eq i32 %call635, -1
br i1 %cmp7.not36, label %while.end22, label %land.rhs9.lr.ph
land.rhs9.lr.ph: ; preds = %while.end
%call10 = tail call ptr @__ctype_b_loc() #17
br label %land.rhs9
land.rhs9: ; preds = %land.rhs9.lr.ph, %while.body17
%indvars.iv = phi i64 [ 1, %land.rhs9.lr.ph ], [ %indvars.iv.next, %while.body17 ]
%call638 = phi i32 [ %call635, %land.rhs9.lr.ph ], [ %call6, %while.body17 ]
%3 = load ptr, ptr %call10, align 8, !tbaa !9
%idxprom11 = sext i32 %call638 to i64
%arrayidx12 = getelementptr inbounds i16, ptr %3, i64 %idxprom11
%4 = load i16, ptr %arrayidx12, align 2, !tbaa !11
%5 = and i16 %4, 8192
%tobool15.not = icmp eq i16 %5, 0
br i1 %tobool15.not, label %while.body17, label %while.end22.loopexit
while.body17: ; preds = %land.rhs9
%conv18 = trunc i32 %call638 to i8
%indvars.iv.next = add nuw i64 %indvars.iv, 1
%arrayidx21 = getelementptr inbounds i8, ptr %word, i64 %indvars.iv
store i8 %conv18, ptr %arrayidx21, align 1, !tbaa !13
%call6 = tail call i32 @getc(ptr noundef %fp)
%cmp7.not = icmp eq i32 %call6, -1
br i1 %cmp7.not, label %while.end22.loopexit, label %land.rhs9
while.end22.loopexit: ; preds = %while.body17, %land.rhs9
%i.0.lcssa.ph.in = phi i64 [ %indvars.iv, %land.rhs9 ], [ %indvars.iv.next, %while.body17 ]
%6 = and i64 %i.0.lcssa.ph.in, 4294967295
br label %while.end22
while.end22: ; preds = %while.end22.loopexit, %while.end
%i.0.lcssa = phi i64 [ 1, %while.end ], [ %6, %while.end22.loopexit ]
%arrayidx25 = getelementptr inbounds i8, ptr %word, i64 %i.0.lcssa
store i8 0, ptr %arrayidx25, align 1, !tbaa !13
ret ptr %word
}
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #3
; Function Attrs: nounwind uwtable
define dso_local void @read_cube(ptr noundef %fp, ptr nocapture noundef %PLA) local_unnamed_addr #4 {
entry:
%token = alloca [256 x i8], align 16
%0 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 11), align 8, !tbaa !14
%1 = load ptr, ptr %0, align 8, !tbaa !9
%arrayidx1 = getelementptr inbounds ptr, ptr %0, i64 1
%2 = load ptr, ptr %arrayidx1, align 8, !tbaa !9
%arrayidx2 = getelementptr inbounds ptr, ptr %0, i64 2
%3 = load ptr, ptr %arrayidx2, align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %token) #18
%4 = load i32, ptr @cube, align 8, !tbaa !16
%call = tail call ptr (ptr, i32, ...) @set_clear(ptr noundef %1, i32 noundef %4) #18
%5 = load i32, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 2), align 8, !tbaa !17
%cmp387 = icmp sgt i32 %5, 0
br i1 %cmp387, label %for.body, label %for.cond36.preheader
for.cond36.preheader: ; preds = %for.inc, %entry
%.lcssa385 = phi i32 [ %5, %entry ], [ %13, %for.inc ]
%6 = load i32, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 1), align 4, !tbaa !18
%sub395 = add nsw i32 %6, -1
%cmp37396 = icmp slt i32 %.lcssa385, %sub395
br i1 %cmp37396, label %for.body38.lr.ph, label %for.end172
for.body38.lr.ph: ; preds = %for.cond36.preheader
%label = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 7
%7 = sext i32 %.lcssa385 to i64
br label %for.body38
for.body: ; preds = %entry, %for.inc
%var.0388 = phi i32 [ %inc35, %for.inc ], [ 0, %entry ]
%call3 = tail call i32 @getc(ptr noundef %fp)
switch i32 %call3, label %bad_char [
i32 63, label %for.inc
i32 10, label %sw.bb4
i32 32, label %sw.bb6
i32 124, label %sw.bb6
i32 9, label %sw.bb6
i32 50, label %sw.bb8
i32 45, label %sw.bb8
i32 48, label %for.body.sw.bb13_crit_edge
i32 49, label %sw.bb23
]
for.body.sw.bb13_crit_edge: ; preds = %for.body
%.pre = shl nsw i32 %var.0388, 1
%.pre425 = and i32 %.pre, 30
%.pre426 = ashr i32 %var.0388, 4
%.pre427 = add nsw i32 %.pre426, 1
%.pre428 = sext i32 %.pre427 to i64
br label %sw.bb13
sw.bb4: ; preds = %for.body
%.b363 = load i1, ptr @line_length_error, align 4
br i1 %.b363, label %if.end, label %if.then
if.then: ; preds = %sw.bb4
%8 = load ptr, ptr @stderr, align 8, !tbaa !9
%call5 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #19
br label %if.end
if.end: ; preds = %if.then, %sw.bb4
store i1 true, ptr @line_length_error, align 4
%9 = load i32, ptr @lineno, align 4, !tbaa !5
%inc = add nsw i32 %9, 1
store i32 %inc, ptr @lineno, align 4, !tbaa !5
%dec = add nsw i32 %var.0388, -1
br label %for.inc
sw.bb6: ; preds = %for.body, %for.body, %for.body
%dec7 = add nsw i32 %var.0388, -1
br label %for.inc
sw.bb8: ; preds = %for.body, %for.body
%mul = shl nsw i32 %var.0388, 1
%add = and i32 %mul, 30
%and = or i32 %add, 1
%shl = shl nuw i32 1, %and
%shr = ashr i32 %var.0388, 4
%add11 = add nsw i32 %shr, 1
%idxprom = sext i32 %add11 to i64
%arrayidx12 = getelementptr inbounds i32, ptr %1, i64 %idxprom
%10 = load i32, ptr %arrayidx12, align 4, !tbaa !5
%or = or i32 %10, %shl
store i32 %or, ptr %arrayidx12, align 4, !tbaa !5
br label %sw.bb13
sw.bb13: ; preds = %for.body.sw.bb13_crit_edge, %sw.bb8
%idxprom20.pre-phi = phi i64 [ %.pre428, %for.body.sw.bb13_crit_edge ], [ %idxprom, %sw.bb8 ]
%and15.pre-phi = phi i32 [ %.pre425, %for.body.sw.bb13_crit_edge ], [ %add, %sw.bb8 ]
%shl16 = shl nuw nsw i32 1, %and15.pre-phi
%arrayidx21 = getelementptr inbounds i32, ptr %1, i64 %idxprom20.pre-phi
%11 = load i32, ptr %arrayidx21, align 4, !tbaa !5
%or22 = or i32 %11, %shl16
store i32 %or22, ptr %arrayidx21, align 4, !tbaa !5
br label %for.inc
sw.bb23: ; preds = %for.body
%mul24 = shl nsw i32 %var.0388, 1
%add25 = and i32 %mul24, 30
%and26 = or i32 %add25, 1
%shl27 = shl nuw i32 1, %and26
%shr30 = ashr i32 %var.0388, 4
%add31 = add nsw i32 %shr30, 1
%idxprom32 = sext i32 %add31 to i64
%arrayidx33 = getelementptr inbounds i32, ptr %1, i64 %idxprom32
%12 = load i32, ptr %arrayidx33, align 4, !tbaa !5
%or34 = or i32 %12, %shl27
store i32 %or34, ptr %arrayidx33, align 4, !tbaa !5
br label %for.inc
for.inc: ; preds = %for.body, %if.end, %sw.bb6, %sw.bb13, %sw.bb23
%var.1 = phi i32 [ %var.0388, %sw.bb23 ], [ %var.0388, %sw.bb13 ], [ %dec7, %sw.bb6 ], [ %dec, %if.end ], [ %var.0388, %for.body ]
%inc35 = add nsw i32 %var.1, 1
%13 = load i32, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 2), align 8, !tbaa !17
%cmp = icmp slt i32 %inc35, %13
br i1 %cmp, label %for.body, label %for.cond36.preheader
for.body38: ; preds = %for.body38.lr.ph, %for.inc170
%indvars.iv421 = phi i64 [ %7, %for.body38.lr.ph ], [ %indvars.iv.next422, %for.inc170 ]
%indvars424 = trunc i64 %indvars.iv421 to i32
%14 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 5), align 8, !tbaa !19
%arrayidx40 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv421
%15 = load i32, ptr %arrayidx40, align 4, !tbaa !5
%cmp41 = icmp slt i32 %15, 0
br i1 %cmp41, label %if.then42, label %if.else137
if.then42: ; preds = %for.body38
%call43 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %fp, ptr noundef nonnull @.str.2, ptr noundef nonnull %token) #18
%lhsv = load i16, ptr %token, align 16
%.not = icmp eq i16 %lhsv, 45
%lhsv365 = load i32, ptr %token, align 16
%.not367 = icmp eq i32 %lhsv365, 5852737
%or.cond = select i1 %.not, i1 true, i1 %.not367
br i1 %or.cond, label %if.then50, label %if.else59
if.then50: ; preds = %if.then42
%16 = load i32, ptr @kiss, align 4, !tbaa !5
%tobool51.not = icmp eq i32 %16, 0
br i1 %tobool51.not, label %if.else, label %land.lhs.true
land.lhs.true: ; preds = %if.then50
%17 = load i32, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 1), align 4, !tbaa !18
%sub52 = add nsw i32 %17, -2
%cmp53 = icmp eq i32 %sub52, %indvars424
br i1 %cmp53, label %for.inc170, label %if.else
if.else: ; preds = %land.lhs.true, %if.then50
%18 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 10), align 8, !tbaa !20
%arrayidx56 = getelementptr inbounds ptr, ptr %18, i64 %indvars.iv421
%19 = load ptr, ptr %arrayidx56, align 8, !tbaa !9
%call57 = call ptr (ptr, ptr, ptr, ...) @set_or(ptr noundef %1, ptr noundef %1, ptr noundef %19) #18
br label %for.inc170
if.else59: ; preds = %if.then42
%20 = and i32 %lhsv365, 65535
%.not370 = icmp eq i32 %20, 126
br i1 %.not370, label %for.inc170, label %if.else64
if.else64: ; preds = %if.else59
%21 = load i32, ptr @kiss, align 4, !tbaa !5
%tobool65.not = icmp eq i32 %21, 0
br i1 %tobool65.not, label %if.end83, label %land.lhs.true66
land.lhs.true66: ; preds = %if.else64
%22 = load i32, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 1), align 4, !tbaa !18
%sub67 = add nsw i32 %22, -2
%cmp68 = icmp eq i32 %sub67, %indvars424
br i1 %cmp68, label %if.then69, label %if.end83
if.then69: ; preds = %land.lhs.true66
%23 = add nsw i64 %indvars.iv421, -1
%sub70 = add i64 %indvars.iv421, -1
%24 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 5), align 8, !tbaa !19
%arrayidx73 = getelementptr inbounds i32, ptr %24, i64 %23
%25 = load i32, ptr %arrayidx73, align 4, !tbaa !5
%cond = call i32 @llvm.abs.i32(i32 %25, i1 true)
br label %if.end83
if.end83: ; preds = %if.else64, %land.lhs.true66, %if.then69
%varx.0 = phi i64 [ %sub70, %if.then69 ], [ %indvars.iv421, %land.lhs.true66 ], [ %indvars.iv421, %if.else64 ]
%offset.0 = phi i32 [ %cond, %if.then69 ], [ 0, %land.lhs.true66 ], [ 0, %if.else64 ]
%26 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 3), align 8, !tbaa !21
%sext = shl i64 %varx.0, 32
%idxprom84 = ashr exact i64 %sext, 32
%arrayidx85 = getelementptr inbounds i32, ptr %26, i64 %idxprom84
%27 = load i32, ptr %arrayidx85, align 4, !tbaa !5
%28 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 4), align 8, !tbaa !22
%arrayidx87 = getelementptr inbounds i32, ptr %28, i64 %idxprom84
%29 = load i32, ptr %arrayidx87, align 4, !tbaa !5
%cmp89.not392 = icmp slt i32 %29, %27
br i1 %cmp89.not392, label %for.end130, label %for.body90.lr.ph
for.body90.lr.ph: ; preds = %if.end83
%30 = load ptr, ptr %label, align 8, !tbaa !23
%31 = sext i32 %27 to i64
%32 = add i32 %29, 1
%33 = add i32 %29, 1
br label %for.body90
for.body90: ; preds = %for.body90.lr.ph, %for.inc128
%indvars.iv = phi i64 [ %31, %for.body90.lr.ph ], [ %indvars.iv.next, %for.inc128 ]
%arrayidx92 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv
%34 = load ptr, ptr %arrayidx92, align 8, !tbaa !9
%cmp93 = icmp eq ptr %34, null
br i1 %cmp93, label %if.then94, label %if.else109
if.then94: ; preds = %for.body90
%call96 = call ptr @util_strsav(ptr noundef nonnull %token) #18
%35 = load ptr, ptr %label, align 8, !tbaa !23
%arrayidx99 = getelementptr inbounds ptr, ptr %35, i64 %indvars.iv
store ptr %call96, ptr %arrayidx99, align 8, !tbaa !9
br label %for.end130.sink.split
if.else109: ; preds = %for.body90
%call114 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) %token) #20
%cmp115 = icmp eq i32 %call114, 0
br i1 %cmp115, label %for.end130.sink.split, label %for.inc128
for.inc128: ; preds = %if.else109
%indvars.iv.next = add nsw i64 %indvars.iv, 1
%lftr.wideiv = trunc i64 %indvars.iv.next to i32
%exitcond.not = icmp eq i32 %33, %lftr.wideiv
br i1 %exitcond.not, label %for.end130, label %for.body90
for.end130.sink.split: ; preds = %if.else109, %if.then94
%.sink = trunc i64 %indvars.iv to i32
%add100 = add nsw i32 %offset.0, %.sink
%and101 = and i32 %add100, 31
%shl102 = shl nuw i32 1, %and101
%shr104 = ashr i32 %add100, 5
%add105 = add nsw i32 %shr104, 1
%idxprom106 = sext i32 %add105 to i64
%arrayidx107 = getelementptr inbounds i32, ptr %1, i64 %idxprom106
%36 = load i32, ptr %arrayidx107, align 4, !tbaa !5
%or125 = or i32 %36, %shl102
store i32 %or125, ptr %arrayidx107, align 4, !tbaa !5
br label %for.end130
for.end130: ; preds = %for.inc128, %for.end130.sink.split, %if.end83
%i.0378 = phi i32 [ %27, %if.end83 ], [ %.sink, %for.end130.sink.split ], [ %32, %for.inc128 ]
%cmp131 = icmp sgt i32 %i.0378, %29
br i1 %cmp131, label %if.then132, label %for.inc170
if.then132: ; preds = %for.end130
%37 = load ptr, ptr @stderr, align 8, !tbaa !9
%call133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.6, i32 noundef %indvars424) #19
call void @exit(i32 noundef -1) #21
unreachable
if.else137: ; preds = %for.body38
%38 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 3), align 8, !tbaa !21
%arrayidx139 = getelementptr inbounds i32, ptr %38, i64 %indvars.iv421
%39 = load i32, ptr %arrayidx139, align 4, !tbaa !5
%40 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 4), align 8, !tbaa !22
%arrayidx142389 = getelementptr inbounds i32, ptr %40, i64 %indvars.iv421
%41 = load i32, ptr %arrayidx142389, align 4, !tbaa !5
%cmp143.not390 = icmp sgt i32 %39, %41
br i1 %cmp143.not390, label %for.inc170, label %for.body144
for.body144: ; preds = %if.else137, %for.inc166
%i.1391 = phi i32 [ %inc167, %for.inc166 ], [ %39, %if.else137 ]
%call145 = call i32 @getc(ptr noundef %fp)
switch i32 %call145, label %bad_char [
i32 48, label %for.inc166
i32 10, label %sw.bb147
i32 32, label %sw.bb154
i32 124, label %sw.bb154
i32 9, label %sw.bb154
i32 49, label %sw.bb156
]
sw.bb147: ; preds = %for.body144
%.b362 = load i1, ptr @line_length_error, align 4
br i1 %.b362, label %if.end151, label %if.then149
if.then149: ; preds = %sw.bb147
%42 = load ptr, ptr @stderr, align 8, !tbaa !9
%call150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #19
br label %if.end151
if.end151: ; preds = %if.then149, %sw.bb147
store i1 true, ptr @line_length_error, align 4
%43 = load i32, ptr @lineno, align 4, !tbaa !5
%inc152 = add nsw i32 %43, 1
store i32 %inc152, ptr @lineno, align 4, !tbaa !5
%dec153 = add nsw i32 %i.1391, -1
br label %for.inc166
sw.bb154: ; preds = %for.body144, %for.body144, %for.body144
%dec155 = add nsw i32 %i.1391, -1
br label %for.inc166
sw.bb156: ; preds = %for.body144
%and157 = and i32 %i.1391, 31
%shl158 = shl nuw i32 1, %and157
%shr159 = ashr i32 %i.1391, 5
%add160 = add nsw i32 %shr159, 1
%idxprom161 = sext i32 %add160 to i64
%arrayidx162 = getelementptr inbounds i32, ptr %1, i64 %idxprom161
%44 = load i32, ptr %arrayidx162, align 4, !tbaa !5
%or163 = or i32 %44, %shl158
store i32 %or163, ptr %arrayidx162, align 4, !tbaa !5
br label %for.inc166
for.inc166: ; preds = %for.body144, %if.end151, %sw.bb154, %sw.bb156
%i.2 = phi i32 [ %i.1391, %sw.bb156 ], [ %dec155, %sw.bb154 ], [ %dec153, %if.end151 ], [ %i.1391, %for.body144 ]
%inc167 = add nsw i32 %i.2, 1
%45 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 4), align 8, !tbaa !22
%arrayidx142 = getelementptr inbounds i32, ptr %45, i64 %indvars.iv421
%46 = load i32, ptr %arrayidx142, align 4, !tbaa !5
%cmp143.not.not = icmp slt i32 %i.2, %46
br i1 %cmp143.not.not, label %for.body144, label %for.inc170
for.inc170: ; preds = %for.inc166, %if.else137, %if.else59, %for.end130, %if.else, %land.lhs.true
%indvars.iv.next422 = add nsw i64 %indvars.iv421, 1
%47 = load i32, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 1), align 4, !tbaa !18
%sub = add nsw i32 %47, -1
%48 = sext i32 %sub to i64
%cmp37 = icmp slt i64 %indvars.iv.next422, %48
br i1 %cmp37, label %for.body38, label %for.end172.loopexit
for.end172.loopexit: ; preds = %for.inc170
%49 = trunc i64 %indvars.iv.next422 to i32
br label %for.end172
for.end172: ; preds = %for.end172.loopexit, %for.cond36.preheader
%var.2.lcssa = phi i32 [ %.lcssa385, %for.cond36.preheader ], [ %49, %for.end172.loopexit ]
%.lcssa = phi i32 [ %6, %for.cond36.preheader ], [ %47, %for.end172.loopexit ]
%50 = load i32, ptr @kiss, align 4, !tbaa !5
%tobool173.not = icmp eq i32 %50, 0
br i1 %tobool173.not, label %if.else179, label %if.then174
if.then174: ; preds = %for.end172
%51 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 10), align 8, !tbaa !20
%sub175 = add nsw i32 %.lcssa, -2
%idxprom176 = sext i32 %sub175 to i64
%arrayidx177 = getelementptr inbounds ptr, ptr %51, i64 %idxprom176
%52 = load ptr, ptr %arrayidx177, align 8, !tbaa !9
%call178 = call ptr (ptr, ptr, ptr, ...) @set_xor(ptr noundef %2, ptr noundef %1, ptr noundef %52) #18
br label %if.end181
if.else179: ; preds = %for.end172
%call180 = call ptr (ptr, ptr, ...) @set_copy(ptr noundef %2, ptr noundef %1) #18
br label %if.end181
if.end181: ; preds = %if.else179, %if.then174
%saver.0 = phi i32 [ 1, %if.then174 ], [ 0, %if.else179 ]
%call182 = call ptr (ptr, ptr, ...) @set_copy(ptr noundef %3, ptr noundef %1) #18
%53 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 3), align 8, !tbaa !21
%idxprom183 = sext i32 %var.2.lcssa to i64
%arrayidx184 = getelementptr inbounds i32, ptr %53, i64 %idxprom183
%54 = load i32, ptr %arrayidx184, align 4, !tbaa !5
%55 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 4), align 8, !tbaa !22
%arrayidx187401 = getelementptr inbounds i32, ptr %55, i64 %idxprom183
%56 = load i32, ptr %arrayidx187401, align 4, !tbaa !5
%cmp188.not402 = icmp sgt i32 %54, %56
br i1 %cmp188.not402, label %for.end243, label %for.body189.lr.ph
for.body189.lr.ph: ; preds = %if.end181
%pla_type227 = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 4
br label %for.body189
for.body189: ; preds = %for.body189.lr.ph, %for.inc241
%i.3406 = phi i32 [ %54, %for.body189.lr.ph ], [ %inc242, %for.inc241 ]
%saver.1405 = phi i32 [ %saver.0, %for.body189.lr.ph ], [ %saver.2, %for.inc241 ]
%saved.0404 = phi i32 [ 0, %for.body189.lr.ph ], [ %saved.1, %for.inc241 ]
%savef.1403 = phi i32 [ %saver.0, %for.body189.lr.ph ], [ %savef.2, %for.inc241 ]
%call190 = call i32 @getc(ptr noundef %fp)
switch i32 %call190, label %bad_char [
i32 126, label %for.inc241
i32 10, label %sw.bb192
i32 32, label %sw.bb199
i32 124, label %sw.bb199
i32 9, label %sw.bb199
i32 52, label %sw.bb201
i32 49, label %sw.bb201
i32 51, label %sw.bb213
i32 48, label %sw.bb213
i32 50, label %sw.bb226
i32 45, label %sw.bb226
]
sw.bb192: ; preds = %for.body189
%.b = load i1, ptr @line_length_error, align 4
br i1 %.b, label %if.end196, label %if.then194
if.then194: ; preds = %sw.bb192
%57 = load ptr, ptr @stderr, align 8, !tbaa !9
%call195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #19
br label %if.end196
if.end196: ; preds = %if.then194, %sw.bb192
store i1 true, ptr @line_length_error, align 4
%58 = load i32, ptr @lineno, align 4, !tbaa !5
%inc197 = add nsw i32 %58, 1
store i32 %inc197, ptr @lineno, align 4, !tbaa !5
%dec198 = add nsw i32 %i.3406, -1
br label %for.inc241
sw.bb199: ; preds = %for.body189, %for.body189, %for.body189
%dec200 = add nsw i32 %i.3406, -1
br label %for.inc241
sw.bb201: ; preds = %for.body189, %for.body189
%59 = load i32, ptr %pla_type227, align 8, !tbaa !25
%and202 = and i32 %59, 1
%tobool203.not = icmp eq i32 %and202, 0
br i1 %tobool203.not, label %for.inc241, label %if.then204
if.then204: ; preds = %sw.bb201
%and205 = and i32 %i.3406, 31
%shl206 = shl nuw i32 1, %and205
%shr207 = ashr i32 %i.3406, 5
%add208 = add nsw i32 %shr207, 1
%idxprom209 = sext i32 %add208 to i64
%arrayidx210 = getelementptr inbounds i32, ptr %1, i64 %idxprom209
%60 = load i32, ptr %arrayidx210, align 4, !tbaa !5
%or211 = or i32 %60, %shl206
store i32 %or211, ptr %arrayidx210, align 4, !tbaa !5
br label %for.inc241
sw.bb213: ; preds = %for.body189, %for.body189
%61 = load i32, ptr %pla_type227, align 8, !tbaa !25
%and215 = and i32 %61, 4
%tobool216.not = icmp eq i32 %and215, 0
br i1 %tobool216.not, label %for.inc241, label %if.then217
if.then217: ; preds = %sw.bb213
%and218 = and i32 %i.3406, 31
%shl219 = shl nuw i32 1, %and218
%shr220 = ashr i32 %i.3406, 5
%add221 = add nsw i32 %shr220, 1
%idxprom222 = sext i32 %add221 to i64
%arrayidx223 = getelementptr inbounds i32, ptr %2, i64 %idxprom222
%62 = load i32, ptr %arrayidx223, align 4, !tbaa !5
%or224 = or i32 %62, %shl219
store i32 %or224, ptr %arrayidx223, align 4, !tbaa !5
br label %for.inc241
sw.bb226: ; preds = %for.body189, %for.body189
%63 = load i32, ptr %pla_type227, align 8, !tbaa !25
%and228 = and i32 %63, 2
%tobool229.not = icmp eq i32 %and228, 0
br i1 %tobool229.not, label %for.inc241, label %if.then230
if.then230: ; preds = %sw.bb226
%and231 = and i32 %i.3406, 31
%shl232 = shl nuw i32 1, %and231
%shr233 = ashr i32 %i.3406, 5
%add234 = add nsw i32 %shr233, 1
%idxprom235 = sext i32 %add234 to i64
%arrayidx236 = getelementptr inbounds i32, ptr %3, i64 %idxprom235
%64 = load i32, ptr %arrayidx236, align 4, !tbaa !5
%or237 = or i32 %64, %shl232
store i32 %or237, ptr %arrayidx236, align 4, !tbaa !5
br label %for.inc241
for.inc241: ; preds = %for.body189, %if.end196, %sw.bb199, %if.then204, %sw.bb201, %if.then217, %sw.bb213, %if.then230, %sw.bb226
%savef.2 = phi i32 [ %savef.1403, %if.then230 ], [ %savef.1403, %sw.bb226 ], [ %savef.1403, %if.then217 ], [ %savef.1403, %sw.bb213 ], [ 1, %if.then204 ], [ %savef.1403, %sw.bb201 ], [ %savef.1403, %sw.bb199 ], [ %savef.1403, %if.end196 ], [ %savef.1403, %for.body189 ]
%saved.1 = phi i32 [ 1, %if.then230 ], [ %saved.0404, %sw.bb226 ], [ %saved.0404, %if.then217 ], [ %saved.0404, %sw.bb213 ], [ %saved.0404, %if.then204 ], [ %saved.0404, %sw.bb201 ], [ %saved.0404, %sw.bb199 ], [ %saved.0404, %if.end196 ], [ %saved.0404, %for.body189 ]
%saver.2 = phi i32 [ %saver.1405, %if.then230 ], [ %saver.1405, %sw.bb226 ], [ 1, %if.then217 ], [ %saver.1405, %sw.bb213 ], [ %saver.1405, %if.then204 ], [ %saver.1405, %sw.bb201 ], [ %saver.1405, %sw.bb199 ], [ %saver.1405, %if.end196 ], [ %saver.1405, %for.body189 ]
%i.4 = phi i32 [ %i.3406, %if.then230 ], [ %i.3406, %sw.bb226 ], [ %i.3406, %if.then217 ], [ %i.3406, %sw.bb213 ], [ %i.3406, %if.then204 ], [ %i.3406, %sw.bb201 ], [ %dec200, %sw.bb199 ], [ %dec198, %if.end196 ], [ %i.3406, %for.body189 ]
%inc242 = add nsw i32 %i.4, 1
%65 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 4), align 8, !tbaa !22
%arrayidx187 = getelementptr inbounds i32, ptr %65, i64 %idxprom183
%66 = load i32, ptr %arrayidx187, align 4, !tbaa !5
%cmp188.not.not = icmp slt i32 %i.4, %66
br i1 %cmp188.not.not, label %for.body189, label %for.end243
for.end243: ; preds = %for.inc241, %if.end181
%savef.1.lcssa = phi i32 [ %saver.0, %if.end181 ], [ %savef.2, %for.inc241 ]
%saved.0.lcssa = phi i32 [ 0, %if.end181 ], [ %saved.1, %for.inc241 ]
%saver.1.lcssa = phi i32 [ %saver.0, %if.end181 ], [ %saver.2, %for.inc241 ]
%tobool244.not = icmp eq i32 %savef.1.lcssa, 0
br i1 %tobool244.not, label %if.end248, label %if.then245
if.then245: ; preds = %for.end243
%67 = load ptr, ptr %PLA, align 8, !tbaa !26
%call246 = call ptr (ptr, ptr, ...) @sf_addset(ptr noundef %67, ptr noundef %1) #18
store ptr %call246, ptr %PLA, align 8, !tbaa !26
br label %if.end248
if.end248: ; preds = %if.then245, %for.end243
%tobool249.not = icmp eq i32 %saved.0.lcssa, 0
br i1 %tobool249.not, label %if.end253, label %if.then250
if.then250: ; preds = %if.end248
%D = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 1
%68 = load ptr, ptr %D, align 8, !tbaa !27
%call251 = call ptr (ptr, ptr, ...) @sf_addset(ptr noundef %68, ptr noundef %3) #18
store ptr %call251, ptr %D, align 8, !tbaa !27
br label %if.end253
if.end253: ; preds = %if.then250, %if.end248
%tobool254.not = icmp eq i32 %saver.1.lcssa, 0
br i1 %tobool254.not, label %cleanup, label %if.then255
if.then255: ; preds = %if.end253
%R = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 2
%69 = load ptr, ptr %R, align 8, !tbaa !28
%call256 = call ptr (ptr, ptr, ...) @sf_addset(ptr noundef %69, ptr noundef %2) #18
store ptr %call256, ptr %R, align 8, !tbaa !28
br label %cleanup
bad_char: ; preds = %for.body, %for.body144, %for.body189
%70 = load ptr, ptr @stderr, align 8, !tbaa !9
%71 = load i32, ptr @lineno, align 4, !tbaa !5
%call259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.7, i32 noundef %71) #19
%72 = load ptr, ptr @stdout, align 8, !tbaa !9
br label %while.cond.i
while.cond.i: ; preds = %while.body.i, %bad_char
%call.i = call i32 @getc(ptr noundef %fp)
switch i32 %call.i, label %while.body.i [
i32 -1, label %skip_line.exit
i32 10, label %skip_line.exit
]
while.body.i: ; preds = %while.cond.i
%call2.i = call i32 @putc(i32 noundef %call.i, ptr noundef %72)
br label %while.cond.i
skip_line.exit: ; preds = %while.cond.i, %while.cond.i
%call5.i = call i32 @putc(i32 noundef 10, ptr noundef %72)
%73 = load i32, ptr @lineno, align 4, !tbaa !5
%inc.i = add nsw i32 %73, 1
store i32 %inc.i, ptr @lineno, align 4, !tbaa !5
br label %cleanup
cleanup: ; preds = %if.end253, %if.then255, %skip_line.exit
call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %token) #18
ret void
}
declare ptr @set_clear(...) local_unnamed_addr #5
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2
declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #5
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #6
declare ptr @set_or(...) local_unnamed_addr #5
declare ptr @util_strsav(ptr noundef) local_unnamed_addr #5
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #7
declare ptr @set_xor(...) local_unnamed_addr #5
declare ptr @set_copy(...) local_unnamed_addr #5
declare ptr @sf_addset(...) local_unnamed_addr #5
; Function Attrs: nounwind uwtable
define dso_local void @parse_pla(ptr noundef %fp, ptr nocapture noundef %PLA) local_unnamed_addr #4 {
entry:
%var = alloca i32, align 4
%np = alloca i32, align 4
%word = alloca [256 x i8], align 16
%newlist = alloca ptr, align 8
%newlist290 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %var) #18
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %np) #18
call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %word) #18
store i32 1, ptr @lineno, align 4, !tbaa !5
store i1 false, ptr @line_length_error, align 4
%pair = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 6
%add.ptr422 = getelementptr inbounds i8, ptr %word, i64 1
%label.i846 = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 7
%phase = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 5
%symbolic_output = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 9
%symbolic = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 8
%pla_type = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 4
%D = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 1
%R = getelementptr inbounds %struct.PLA_t, ptr %PLA, i64 0, i32 2
br label %loop
loop.loopexit.unr-lcssa: ; preds = %for.body.i645, %for.body.preheader.i640
%indvars.iv.i641.unr = phi i64 [ 0, %for.body.preheader.i640 ], [ %indvars.iv.next.i643.3, %for.body.i645 ]
%lcmp.mod1093.not = icmp eq i64 %xtraiter1091, 0
br i1 %lcmp.mod1093.not, label %loop.backedge, label %for.body.i645.epil
for.body.i645.epil: ; preds = %loop.loopexit.unr-lcssa, %for.body.i645.epil
%indvars.iv.i641.epil = phi i64 [ %indvars.iv.next.i643.epil, %for.body.i645.epil ], [ %indvars.iv.i641.unr, %loop.loopexit.unr-lcssa ]
%epil.iter1092 = phi i64 [ %epil.iter1092.next, %for.body.i645.epil ], [ 0, %loop.loopexit.unr-lcssa ]
%0 = load ptr, ptr %label.i846, align 8, !tbaa !23
%arrayidx.i642.epil = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv.i641.epil
store ptr null, ptr %arrayidx.i642.epil, align 8, !tbaa !9
%indvars.iv.next.i643.epil = add nuw nsw i64 %indvars.iv.i641.epil, 1
%epil.iter1092.next = add i64 %epil.iter1092, 1
%epil.iter1092.cmp.not = icmp eq i64 %epil.iter1092.next, %xtraiter1091
br i1 %epil.iter1092.cmp.not, label %loop.backedge, label %for.body.i645.epil, !llvm.loop !29
loop.loopexit1072.unr-lcssa: ; preds = %for.body.i, %for.body.preheader.i
%indvars.iv.i626.unr = phi i64 [ 0, %for.body.preheader.i ], [ %indvars.iv.next.i628.3, %for.body.i ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %loop.backedge, label %for.body.i.epil
for.body.i.epil: ; preds = %loop.loopexit1072.unr-lcssa, %for.body.i.epil
%indvars.iv.i626.epil = phi i64 [ %indvars.iv.next.i628.epil, %for.body.i.epil ], [ %indvars.iv.i626.unr, %loop.loopexit1072.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body.i.epil ], [ 0, %loop.loopexit1072.unr-lcssa ]
%1 = load ptr, ptr %label.i846, align 8, !tbaa !23
%arrayidx.i627.epil = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv.i626.epil
store ptr null, ptr %arrayidx.i627.epil, align 8, !tbaa !9
%indvars.iv.next.i628.epil = add nuw nsw i64 %indvars.iv.i626.epil, 1
%epil.iter.next = add i64 %epil.iter, 1
%epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
br i1 %epil.iter.cmp.not, label %loop.backedge, label %for.body.i.epil, !llvm.loop !31
loop: ; preds = %loop.backedge, %entry
%call = call i32 @getc(ptr noundef %fp)
switch i32 %call, label %sw.default [
i32 -1, label %cleanup
i32 10, label %sw.bb1
i32 32, label %loop.backedge
i32 9, label %loop.backedge
i32 12, label %loop.backedge
i32 13, label %loop.backedge
i32 35, label %sw.bb3
i32 46, label %while.cond.i612
]
sw.bb1: ; preds = %loop
%2 = load i32, ptr @lineno, align 4, !tbaa !5
%inc = add nsw i32 %2, 1
store i32 %inc, ptr @lineno, align 4, !tbaa !5
br label %loop.backedge
sw.bb3: ; preds = %loop
%call4 = call i32 @ungetc(i32 noundef 35, ptr noundef %fp)
%3 = load ptr, ptr @stdout, align 8, !tbaa !9
%4 = load i32, ptr @echo_comments, align 4, !tbaa !5
%tobool.not.i = icmp eq i32 %4, 0
br i1 %tobool.not.i, label %while.cond.us.i, label %while.cond.i
while.cond.us.i: ; preds = %sw.bb3, %while.cond.us.i
%call.us.i = call i32 @getc(ptr noundef %fp)
switch i32 %call.us.i, label %while.cond.us.i [
i32 -1, label %while.end.i
i32 10, label %while.end.i
]
while.cond.i: ; preds = %sw.bb3, %while.body.i
%call.i = call i32 @getc(ptr noundef %fp)
switch i32 %call.i, label %while.body.i [
i32 -1, label %while.end.i
i32 10, label %while.end.i
]
while.body.i: ; preds = %while.cond.i
%call2.i = call i32 @putc(i32 noundef %call.i, ptr noundef %3)
br label %while.cond.i
while.end.i: ; preds = %while.cond.i, %while.cond.i, %while.cond.us.i, %while.cond.us.i
br i1 %tobool.not.i, label %skip_line.exit, label %if.then4.i
if.then4.i: ; preds = %while.end.i
%call5.i = call i32 @putc(i32 noundef 10, ptr noundef %3)
br label %skip_line.exit
skip_line.exit: ; preds = %while.end.i, %if.then4.i
%5 = load i32, ptr @lineno, align 4, !tbaa !5
%inc.i = add nsw i32 %5, 1
store i32 %inc.i, ptr @lineno, align 4, !tbaa !5
br label %loop.backedge
while.cond.i612: ; preds = %loop, %land.rhs.i
%call.i611 = call i32 @getc(ptr noundef %fp)
%cmp.not.i = icmp eq i32 %call.i611, -1
br i1 %cmp.not.i, label %while.end.i614, label %land.rhs.i
land.rhs.i: ; preds = %while.cond.i612
%call1.i = tail call ptr @__ctype_b_loc() #17
%6 = load ptr, ptr %call1.i, align 8, !tbaa !9
%idxprom.i = sext i32 %call.i611 to i64
%arrayidx.i = getelementptr inbounds i16, ptr %6, i64 %idxprom.i
%7 = load i16, ptr %arrayidx.i, align 2, !tbaa !11
%8 = and i16 %7, 8192
%tobool.not.i613 = icmp eq i16 %8, 0
br i1 %tobool.not.i613, label %while.end.i614, label %while.cond.i612
while.end.i614: ; preds = %land.rhs.i, %while.cond.i612
%conv2.i = trunc i32 %call.i611 to i8
store i8 %conv2.i, ptr %word, align 16, !tbaa !13
%call635.i = call i32 @getc(ptr noundef %fp)
%cmp7.not36.i = icmp eq i32 %call635.i, -1
br i1 %cmp7.not36.i, label %get_word.exit, label %land.rhs9.lr.ph.i
land.rhs9.lr.ph.i: ; preds = %while.end.i614
%call10.i = tail call ptr @__ctype_b_loc() #17
br label %land.rhs9.i
land.rhs9.i: ; preds = %while.body17.i, %land.rhs9.lr.ph.i
%indvars.iv.i = phi i64 [ 1, %land.rhs9.lr.ph.i ], [ %indvars.iv.next.i, %while.body17.i ]
%call638.i = phi i32 [ %call635.i, %land.rhs9.lr.ph.i ], [ %call6.i, %while.body17.i ]
%9 = load ptr, ptr %call10.i, align 8, !tbaa !9
%idxprom11.i = sext i32 %call638.i to i64
%arrayidx12.i = getelementptr inbounds i16, ptr %9, i64 %idxprom11.i
%10 = load i16, ptr %arrayidx12.i, align 2, !tbaa !11
%11 = and i16 %10, 8192
%tobool15.not.i = icmp eq i16 %11, 0
br i1 %tobool15.not.i, label %while.body17.i, label %while.end22.loopexit.i
while.body17.i: ; preds = %land.rhs9.i
%conv18.i = trunc i32 %call638.i to i8
%indvars.iv.next.i = add nuw i64 %indvars.iv.i, 1
%arrayidx21.i = getelementptr inbounds i8, ptr %word, i64 %indvars.iv.i
store i8 %conv18.i, ptr %arrayidx21.i, align 1, !tbaa !13
%call6.i = call i32 @getc(ptr noundef %fp)
%cmp7.not.i = icmp eq i32 %call6.i, -1
br i1 %cmp7.not.i, label %while.end22.loopexit.i, label %land.rhs9.i
while.end22.loopexit.i: ; preds = %while.body17.i, %land.rhs9.i
%i.0.lcssa.ph.in.i = phi i64 [ %indvars.iv.i, %land.rhs9.i ], [ %indvars.iv.next.i, %while.body17.i ]
%12 = and i64 %i.0.lcssa.ph.in.i, 4294967295
br label %get_word.exit
get_word.exit: ; preds = %while.end.i614, %while.end22.loopexit.i
%i.0.lcssa.i = phi i64 [ 1, %while.end.i614 ], [ %12, %while.end22.loopexit.i ]
%arrayidx25.i = getelementptr inbounds i8, ptr %word, i64 %i.0.lcssa.i
store i8 0, ptr %arrayidx25.i, align 1, !tbaa !13
%lhsv = load i16, ptr %word, align 16
switch i16 %lhsv, label %if.else38 [
i16 105, label %if.then
i16 111, label %if.then21
]
if.then: ; preds = %get_word.exit
%13 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 12), align 8, !tbaa !32
%cmp8.not = icmp eq ptr %13, null
br i1 %cmp8.not, label %if.else, label %if.then9
if.then9: ; preds = %if.then
%14 = load ptr, ptr @stderr, align 8, !tbaa !9
%15 = call i64 @fwrite(ptr nonnull @.str.9, i64 17, i64 1, ptr %14) #19
br label %while.cond.us.i616
while.cond.us.i616: ; preds = %while.cond.us.i616, %if.then9
%call.us.i615 = call i32 @getc(ptr noundef %fp)
switch i32 %call.us.i615, label %while.cond.us.i616 [
i32 -1, label %skip_line.exit619
i32 10, label %skip_line.exit619
]
skip_line.exit619: ; preds = %while.cond.us.i616, %while.cond.us.i616
%16 = load i32, ptr @lineno, align 4, !tbaa !5
%inc.i618 = add nsw i32 %16, 1
store i32 %inc.i618, ptr @lineno, align 4, !tbaa !5
br label %loop.backedge
if.else: ; preds = %if.then
%call11 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %fp, ptr noundef nonnull @.str.10, ptr noundef nonnull getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 2)) #18
%cmp12.not = icmp eq i32 %call11, 1
br i1 %cmp12.not, label %if.end, label %if.then13
if.then13: ; preds = %if.else
call void (ptr, ...) @fatal(ptr noundef nonnull @.str.11) #18
br label %if.end
if.end: ; preds = %if.then13, %if.else
%17 = load i32, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 2), align 8, !tbaa !17
%add = add nsw i32 %17, 1
store i32 %add, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 1), align 4, !tbaa !18
%conv = sext i32 %add to i64
%mul = shl nsw i64 %conv, 2
%call14 = call noalias ptr @malloc(i64 noundef %mul) #22
store ptr %call14, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 5), align 8, !tbaa !19
br label %loop.backedge
if.then21: ; preds = %get_word.exit
%18 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 12), align 8, !tbaa !32
%cmp22.not = icmp eq ptr %18, null
br i1 %cmp22.not, label %if.else26, label %if.then24
if.then24: ; preds = %if.then21
%19 = load ptr, ptr @stderr, align 8, !tbaa !9
%20 = call i64 @fwrite(ptr nonnull @.str.13, i64 17, i64 1, ptr %19) #19
br label %while.cond.us.i621
while.cond.us.i621: ; preds = %while.cond.us.i621, %if.then24
%call.us.i620 = call i32 @getc(ptr noundef %fp)
switch i32 %call.us.i620, label %while.cond.us.i621 [
i32 -1, label %skip_line.exit624
i32 10, label %skip_line.exit624
]
skip_line.exit624: ; preds = %while.cond.us.i621, %while.cond.us.i621
%21 = load i32, ptr @lineno, align 4, !tbaa !5
%inc.i623 = add nsw i32 %21, 1
store i32 %inc.i623, ptr @lineno, align 4, !tbaa !5
br label %loop.backedge
if.else26: ; preds = %if.then21
%22 = load ptr, ptr getelementptr inbounds (%struct.cube_struct, ptr @cube, i64 0, i32 5), align 8, !tbaa !19
%cmp27 = icmp eq ptr %22, null