-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03F10A0715DA6541.ll
2978 lines (2620 loc) · 155 KB
/
03F10A0715DA6541.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/MiBench/consumer-typeset/z29.c'
source_filename = "/usr/local/google/home/aeubanks/repos/test-suite/MultiSource/Benchmarks/MiBench/consumer-typeset/z29.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.anon = type { ptr, ptr }
%struct.word_type = type { [2 x %struct.LIST], %union.FIRST_UNION, %union.SECOND_UNION, %union.THIRD_UNION, [4 x i8] }
%struct.LIST = type { ptr, ptr }
%union.FIRST_UNION = type { %struct.FILE_POS }
%struct.FILE_POS = type { i8, i8, i16, i32 }
%union.SECOND_UNION = type { %struct.anon.2 }
%struct.anon.2 = type { i32 }
%union.THIRD_UNION = type { ptr, [8 x i8] }
%struct.symbol_type = type { [2 x %struct.LIST], %union.FIRST_UNION, %union.SECOND_UNION, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i16, i8, i8, i8 }
%struct.closure_type = type { [2 x %struct.LIST], %union.FIRST_UNION, %union.SECOND_UNION, %union.THIRD_UNION, %union.FOURTH_UNION, ptr, %union.anon.13 }
%union.FOURTH_UNION = type { %struct.STYLE }
%struct.STYLE = type { %union.anon, %union.anon.11, i16, i16, i32 }
%union.anon = type { %struct.GAP }
%struct.GAP = type { i16, i16 }
%union.anon.11 = type { %struct.GAP }
%union.anon.13 = type { ptr }
@scope_top = internal unnamed_addr global i32 0, align 4
@suppress_scope = internal unnamed_addr global i1 false, align 4
@suppress_visible = internal unnamed_addr global i32 0, align 4
@symtab = internal global [1783 x %struct.anon] zeroinitializer, align 16
@.str = private unnamed_addr constant [20 x i8] c"assert failed in %s\00", align 1
@no_fpos = external local_unnamed_addr global ptr, align 8
@.str.1 = private unnamed_addr constant [27 x i8] c"PushScope: suppress_scope!\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"scope depth limit exceeded\00", align 1
@scope = internal unnamed_addr global [300 x ptr] zeroinitializer, align 16
@npars_only = internal unnamed_addr global [300 x i32] zeroinitializer, align 16
@vis_only = internal unnamed_addr global [300 x i32] zeroinitializer, align 16
@body_ok = internal unnamed_addr global [300 x i32] zeroinitializer, align 16
@.str.3 = private unnamed_addr constant [41 x i8] c"PopScope: tried to pop empty scope stack\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"PopScope: suppress_scope!\00", align 1
@StartSym = external local_unnamed_addr global ptr, align 8
@zz_lengths = external local_unnamed_addr global [0 x i8], align 1
@zz_size = external local_unnamed_addr global i32, align 4
@.str.5 = private unnamed_addr constant [17 x i8] c"word is too long\00", align 1
@zz_free = external local_unnamed_addr global [0 x ptr], align 8
@zz_hold = external local_unnamed_addr global ptr, align 8
@xx_link = external local_unnamed_addr global ptr, align 8
@zz_res = external local_unnamed_addr global ptr, align 8
@zz_tmp = external local_unnamed_addr global ptr, align 8
@.str.6 = private unnamed_addr constant [29 x i8] c"LoadScopeSnapshot: type(ss)!\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"LoadScopeSnapshot: type(x)!\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"invalid symbol name %s\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"@Target\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"@Tag\00", align 1
@.str.11 = private unnamed_addr constant [10 x i8] c"@Optimize\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"@Key\00", align 1
@.str.13 = private unnamed_addr constant [7 x i8] c"@Merge\00", align 1
@.str.14 = private unnamed_addr constant [9 x i8] c"@Enclose\00", align 1
@.str.15 = private unnamed_addr constant [8 x i8] c"@Filter\00", align 1
@.str.16 = private unnamed_addr constant [30 x i8] c"%s must be a local definition\00", align 1
@.str.17 = private unnamed_addr constant [51 x i8] c"%s must lie within a symbol with a right parameter\00", align 1
@.str.18 = private unnamed_addr constant [37 x i8] c"a body parameter may not be named %s\00", align 1
@.str.19 = private unnamed_addr constant [53 x i8] c"the right parameter of a galley may not be called %s\00", align 1
@.str.20 = private unnamed_addr constant [34 x i8] c"symbol %s previously defined at%s\00", align 1
@AltErrorFormat = external local_unnamed_addr global i32, align 4
@.str.21 = private unnamed_addr constant [34 x i8] c"symbol %s previously defined here\00", align 1
@.str.22 = private unnamed_addr constant [39 x i8] c"symbol name %s previously defined at%s\00", align 1
@.str.23 = private unnamed_addr constant [9 x i8] c"@Include\00", align 1
@.str.24 = private unnamed_addr constant [12 x i8] c"@SysInclude\00", align 1
@.str.25 = private unnamed_addr constant [9 x i8] c"<nilobj>\00", align 1
@.str.26 = private unnamed_addr constant [28 x i8] c"SymName: !is_word(type(p))!\00", align 1
@FullSymName.buff = internal global [512 x i8] zeroinitializer, align 16
@FullSymName.sname = internal unnamed_addr global ptr null, align 8
@.str.27 = private unnamed_addr constant [37 x i8] c"FullSymName: enclosing(x) == nilobj!\00", align 1
@.str.29 = private unnamed_addr constant [32 x i8] c"full name of symbol is too long\00", align 1
@.str.30 = private unnamed_addr constant [25 x i8] c"symbol %s has missing %s\00", align 1
@.str.31 = private unnamed_addr constant [56 x i8] c"symbol %s has erroneous code %c (database out of date?)\00", align 1
; Function Attrs: nofree norecurse nosync nounwind memory(write, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @InitSym() local_unnamed_addr #0 {
entry:
store i32 0, ptr @scope_top, align 4, !tbaa !5
store i1 false, ptr @suppress_scope, align 4
store i32 0, ptr @suppress_visible, align 4, !tbaa !5
br label %for.body
for.body: ; preds = %for.body.1, %entry
%indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next.1, %for.body.1 ]
%arrayidx = getelementptr inbounds [1783 x %struct.anon], ptr @symtab, i64 0, i64 %indvars.iv
%f2 = getelementptr inbounds [1783 x %struct.anon], ptr @symtab, i64 0, i64 %indvars.iv, i32 1
store ptr %arrayidx, ptr %f2, align 8, !tbaa !9
store ptr %arrayidx, ptr %arrayidx, align 16, !tbaa !12
%indvars.iv.next = or i64 %indvars.iv, 1
%exitcond.not = icmp eq i64 %indvars.iv.next, 1783
br i1 %exitcond.not, label %for.end, label %for.body.1, !llvm.loop !13
for.body.1: ; preds = %for.body
%arrayidx.1 = getelementptr inbounds [1783 x %struct.anon], ptr @symtab, i64 0, i64 %indvars.iv.next
%f2.1 = getelementptr inbounds [1783 x %struct.anon], ptr @symtab, i64 0, i64 %indvars.iv.next, i32 1
store ptr %arrayidx.1, ptr %f2.1, align 8, !tbaa !9
store ptr %arrayidx.1, ptr %arrayidx.1, align 16, !tbaa !12
%indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
br label %for.body
for.end: ; preds = %for.body
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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nounwind uwtable
define dso_local void @PushScope(ptr noundef %x, i32 noundef %npars, i32 noundef %vis) local_unnamed_addr #2 {
entry:
%.b = load i1, ptr @suppress_scope, align 4
br i1 %.b, label %if.then, label %if.end
if.then: ; preds = %entry
%0 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %0, ptr noundef nonnull @.str.1) #13
br label %if.end
if.end: ; preds = %if.then, %entry
%1 = load i32, ptr @scope_top, align 4, !tbaa !5
%cmp1 = icmp sgt i32 %1, 299
br i1 %cmp1, label %if.then2, label %if.end4
if.then2: ; preds = %if.end
%ou1 = getelementptr inbounds %struct.word_type, ptr %x, i64 0, i32 1
%call3 = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 29, i32 noundef 2, ptr noundef nonnull @.str.2, i32 noundef 0, ptr noundef nonnull %ou1) #13
%.pre = load i32, ptr @scope_top, align 4, !tbaa !5
br label %if.end4
if.end4: ; preds = %if.then2, %if.end
%2 = phi i32 [ %.pre, %if.then2 ], [ %1, %if.end ]
%idxprom = sext i32 %2 to i64
%arrayidx = getelementptr inbounds [300 x ptr], ptr @scope, i64 0, i64 %idxprom
store ptr %x, ptr %arrayidx, align 8, !tbaa !15
%arrayidx6 = getelementptr inbounds [300 x i32], ptr @npars_only, i64 0, i64 %idxprom
store i32 %npars, ptr %arrayidx6, align 4, !tbaa !5
%arrayidx8 = getelementptr inbounds [300 x i32], ptr @vis_only, i64 0, i64 %idxprom
store i32 %vis, ptr %arrayidx8, align 4, !tbaa !5
%arrayidx10 = getelementptr inbounds [300 x i32], ptr @body_ok, i64 0, i64 %idxprom
store i32 0, ptr %arrayidx10, align 4, !tbaa !5
%inc = add nsw i32 %2, 1
store i32 %inc, ptr @scope_top, align 4, !tbaa !5
ret void
}
declare ptr @Error(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #3
; Function Attrs: nounwind uwtable
define dso_local void @PopScope() local_unnamed_addr #2 {
entry:
%0 = load i32, ptr @scope_top, align 4, !tbaa !5
%cmp = icmp sgt i32 %0, 0
br i1 %cmp, label %if.end, label %if.then
if.then: ; preds = %entry
%1 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %1, ptr noundef nonnull @.str.3) #13
br label %if.end
if.end: ; preds = %if.then, %entry
%.b = load i1, ptr @suppress_scope, align 4
br i1 %.b, label %if.then2, label %if.end4
if.then2: ; preds = %if.end
%2 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call3 = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %2, ptr noundef nonnull @.str.4) #13
br label %if.end4
if.end4: ; preds = %if.then2, %if.end
%3 = load i32, ptr @scope_top, align 4, !tbaa !5
%dec = add nsw i32 %3, -1
store i32 %dec, ptr @scope_top, align 4, !tbaa !5
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @SuppressVisible() local_unnamed_addr #4 {
entry:
store i32 1, ptr @suppress_visible, align 4, !tbaa !5
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @UnSuppressVisible() local_unnamed_addr #4 {
entry:
store i32 0, ptr @suppress_visible, align 4, !tbaa !5
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @SuppressScope() local_unnamed_addr #4 {
entry:
store i1 true, ptr @suppress_scope, align 4
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @UnSuppressScope() local_unnamed_addr #4 {
entry:
store i1 false, ptr @suppress_scope, align 4
ret void
}
; Function Attrs: nounwind uwtable
define dso_local void @SwitchScope(ptr noundef readonly %sym) local_unnamed_addr #2 {
entry:
%new_scopes = alloca [300 x ptr], align 16
call void @llvm.lifetime.start.p0(i64 2400, ptr nonnull %new_scopes) #13
%cmp = icmp eq ptr %sym, null
%0 = load ptr, ptr @StartSym, align 8, !tbaa !15
br i1 %cmp, label %if.then, label %while.cond.preheader
while.cond.preheader: ; preds = %entry
%cmp1.not30 = icmp eq ptr %0, %sym
br i1 %cmp1.not30, label %if.end, label %while.body
if.then: ; preds = %entry
%.b.i = load i1, ptr @suppress_scope, align 4
br i1 %.b.i, label %if.then.i, label %if.end.i
if.then.i: ; preds = %if.then
%1 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call.i = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %1, ptr noundef nonnull @.str.1) #13
br label %if.end.i
if.end.i: ; preds = %if.then.i, %if.then
%2 = load i32, ptr @scope_top, align 4, !tbaa !5
%cmp1.i = icmp sgt i32 %2, 299
br i1 %cmp1.i, label %if.then2.i, label %PushScope.exit
if.then2.i: ; preds = %if.end.i
%ou1.i = getelementptr inbounds %struct.word_type, ptr %0, i64 0, i32 1
%call3.i = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 29, i32 noundef 2, ptr noundef nonnull @.str.2, i32 noundef 0, ptr noundef nonnull %ou1.i) #13
%.pre.i = load i32, ptr @scope_top, align 4, !tbaa !5
br label %PushScope.exit
PushScope.exit: ; preds = %if.end.i, %if.then2.i
%3 = phi i32 [ %.pre.i, %if.then2.i ], [ %2, %if.end.i ]
%idxprom.i = sext i32 %3 to i64
%arrayidx.i = getelementptr inbounds [300 x ptr], ptr @scope, i64 0, i64 %idxprom.i
store ptr %0, ptr %arrayidx.i, align 8, !tbaa !15
%arrayidx6.i = getelementptr inbounds [300 x i32], ptr @npars_only, i64 0, i64 %idxprom.i
store i32 0, ptr %arrayidx6.i, align 4, !tbaa !5
%arrayidx8.i = getelementptr inbounds [300 x i32], ptr @vis_only, i64 0, i64 %idxprom.i
store i32 0, ptr %arrayidx8.i, align 4, !tbaa !5
%arrayidx10.i = getelementptr inbounds [300 x i32], ptr @body_ok, i64 0, i64 %idxprom.i
store i32 0, ptr %arrayidx10.i, align 4, !tbaa !5
%inc.i = add nsw i32 %3, 1
store i32 %inc.i, ptr @scope_top, align 4, !tbaa !5
br label %if.end
while.cond3.preheader: ; preds = %while.body
%4 = trunc i64 %indvars.iv.next to i32
%cmp433 = icmp sgt i32 %4, 0
br i1 %cmp433, label %while.body5.preheader, label %if.end
while.body5.preheader: ; preds = %while.cond3.preheader
%5 = and i64 %indvars.iv.next, 4294967295
br label %while.body5
while.body: ; preds = %while.cond.preheader, %while.body
%indvars.iv = phi i64 [ %indvars.iv.next, %while.body ], [ 0, %while.cond.preheader ]
%sym.addr.031 = phi ptr [ %6, %while.body ], [ %sym, %while.cond.preheader ]
%oenclosing = getelementptr inbounds %struct.symbol_type, ptr %sym.addr.031, i64 0, i32 3
%6 = load ptr, ptr %oenclosing, align 8, !tbaa !16
%indvars.iv.next = add nuw i64 %indvars.iv, 1
%arrayidx = getelementptr inbounds [300 x ptr], ptr %new_scopes, i64 0, i64 %indvars.iv
store ptr %6, ptr %arrayidx, align 8, !tbaa !15
%cmp1.not = icmp eq ptr %6, %0
br i1 %cmp1.not, label %while.cond3.preheader, label %while.body, !llvm.loop !17
while.body5: ; preds = %while.body5.preheader, %PushScope.exit29
%indvars.iv36 = phi i64 [ %5, %while.body5.preheader ], [ %indvars.iv.next37, %PushScope.exit29 ]
%indvars.iv.next37 = add nsw i64 %indvars.iv36, -1
%idxprom6 = and i64 %indvars.iv.next37, 4294967295
%arrayidx7 = getelementptr inbounds [300 x ptr], ptr %new_scopes, i64 0, i64 %idxprom6
%7 = load ptr, ptr %arrayidx7, align 8, !tbaa !15
%.b.i14 = load i1, ptr @suppress_scope, align 4
br i1 %.b.i14, label %if.then.i16, label %if.end.i18
if.then.i16: ; preds = %while.body5
%8 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call.i15 = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %8, ptr noundef nonnull @.str.1) #13
br label %if.end.i18
if.end.i18: ; preds = %if.then.i16, %while.body5
%9 = load i32, ptr @scope_top, align 4, !tbaa !5
%cmp1.i17 = icmp sgt i32 %9, 299
br i1 %cmp1.i17, label %if.then2.i22, label %PushScope.exit29
if.then2.i22: ; preds = %if.end.i18
%ou1.i19 = getelementptr inbounds %struct.word_type, ptr %7, i64 0, i32 1
%call3.i20 = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 29, i32 noundef 2, ptr noundef nonnull @.str.2, i32 noundef 0, ptr noundef nonnull %ou1.i19) #13
%.pre.i21 = load i32, ptr @scope_top, align 4, !tbaa !5
br label %PushScope.exit29
PushScope.exit29: ; preds = %if.end.i18, %if.then2.i22
%10 = phi i32 [ %.pre.i21, %if.then2.i22 ], [ %9, %if.end.i18 ]
%idxprom.i23 = sext i32 %10 to i64
%arrayidx.i24 = getelementptr inbounds [300 x ptr], ptr @scope, i64 0, i64 %idxprom.i23
store ptr %7, ptr %arrayidx.i24, align 8, !tbaa !15
%arrayidx6.i25 = getelementptr inbounds [300 x i32], ptr @npars_only, i64 0, i64 %idxprom.i23
store i32 0, ptr %arrayidx6.i25, align 4, !tbaa !5
%arrayidx8.i26 = getelementptr inbounds [300 x i32], ptr @vis_only, i64 0, i64 %idxprom.i23
store i32 0, ptr %arrayidx8.i26, align 4, !tbaa !5
%arrayidx10.i27 = getelementptr inbounds [300 x i32], ptr @body_ok, i64 0, i64 %idxprom.i23
store i32 0, ptr %arrayidx10.i27, align 4, !tbaa !5
%inc.i28 = add nsw i32 %10, 1
store i32 %inc.i28, ptr @scope_top, align 4, !tbaa !5
%cmp4 = icmp ugt i64 %indvars.iv36, 1
br i1 %cmp4, label %while.body5, label %if.end, !llvm.loop !18
if.end: ; preds = %PushScope.exit29, %while.cond.preheader, %while.cond3.preheader, %PushScope.exit
call void @llvm.lifetime.end.p0(i64 2400, ptr nonnull %new_scopes) #13
ret void
}
; Function Attrs: nounwind uwtable
define dso_local void @UnSwitchScope(ptr noundef readonly %sym) local_unnamed_addr #2 {
entry:
%cmp = icmp eq ptr %sym, null
br i1 %cmp, label %if.then, label %while.cond.preheader
while.cond.preheader: ; preds = %entry
%0 = load ptr, ptr @StartSym, align 8, !tbaa !15
%cmp1.not13 = icmp eq ptr %0, %sym
br i1 %cmp1.not13, label %if.end, label %while.body.preheader
while.body.preheader: ; preds = %while.cond.preheader
%.pre = load i32, ptr @scope_top, align 4, !tbaa !5
br label %while.body
if.then: ; preds = %entry
%1 = load i32, ptr @scope_top, align 4, !tbaa !5
%cmp.i = icmp sgt i32 %1, 0
br i1 %cmp.i, label %if.end.i, label %if.then.i
if.then.i: ; preds = %if.then
%2 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call.i = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %2, ptr noundef nonnull @.str.3) #13
br label %if.end.i
if.end.i: ; preds = %if.then.i, %if.then
%.b.i = load i1, ptr @suppress_scope, align 4
br i1 %.b.i, label %if.then2.i, label %PopScope.exit
if.then2.i: ; preds = %if.end.i
%3 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call3.i = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %3, ptr noundef nonnull @.str.4) #13
br label %PopScope.exit
PopScope.exit: ; preds = %if.end.i, %if.then2.i
%4 = load i32, ptr @scope_top, align 4, !tbaa !5
%dec.i = add nsw i32 %4, -1
store i32 %dec.i, ptr @scope_top, align 4, !tbaa !5
br label %if.end
while.body: ; preds = %while.body.preheader, %PopScope.exit12
%5 = phi i32 [ %dec.i11, %PopScope.exit12 ], [ %.pre, %while.body.preheader ]
%sym.addr.014 = phi ptr [ %9, %PopScope.exit12 ], [ %sym, %while.body.preheader ]
%cmp.i4 = icmp sgt i32 %5, 0
br i1 %cmp.i4, label %if.end.i8, label %if.then.i6
if.then.i6: ; preds = %while.body
%6 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call.i5 = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %6, ptr noundef nonnull @.str.3) #13
br label %if.end.i8
if.end.i8: ; preds = %if.then.i6, %while.body
%.b.i7 = load i1, ptr @suppress_scope, align 4
br i1 %.b.i7, label %if.then2.i10, label %PopScope.exit12
if.then2.i10: ; preds = %if.end.i8
%7 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call3.i9 = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %7, ptr noundef nonnull @.str.4) #13
br label %PopScope.exit12
PopScope.exit12: ; preds = %if.end.i8, %if.then2.i10
%8 = load i32, ptr @scope_top, align 4, !tbaa !5
%dec.i11 = add nsw i32 %8, -1
store i32 %dec.i11, ptr @scope_top, align 4, !tbaa !5
%oenclosing = getelementptr inbounds %struct.symbol_type, ptr %sym.addr.014, i64 0, i32 3
%9 = load ptr, ptr %oenclosing, align 8, !tbaa !16
%10 = load ptr, ptr @StartSym, align 8, !tbaa !15
%cmp1.not = icmp eq ptr %9, %10
br i1 %cmp1.not, label %if.end, label %while.body, !llvm.loop !19
if.end: ; preds = %PopScope.exit12, %while.cond.preheader, %PopScope.exit
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @BodyParAllowed() local_unnamed_addr #5 {
entry:
%0 = load i32, ptr @scope_top, align 4, !tbaa !5
%sub = add nsw i32 %0, -1
%idxprom = sext i32 %sub to i64
%arrayidx = getelementptr inbounds [300 x i32], ptr @body_ok, i64 0, i64 %idxprom
store i32 1, ptr %arrayidx, align 4, !tbaa !5
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @BodyParNotAllowed() local_unnamed_addr #5 {
entry:
%0 = load i32, ptr @scope_top, align 4, !tbaa !5
%sub = add nsw i32 %0, -1
%idxprom = sext i32 %sub to i64
%arrayidx = getelementptr inbounds [300 x i32], ptr @body_ok, i64 0, i64 %idxprom
store i32 0, ptr %arrayidx, align 4, !tbaa !5
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local void @DebugScope() local_unnamed_addr #6 {
entry:
ret void
}
; Function Attrs: nounwind uwtable
define dso_local ptr @GetScopeSnapshot() local_unnamed_addr #2 {
entry:
%0 = load i8, ptr getelementptr inbounds ([0 x i8], ptr @zz_lengths, i64 0, i64 17), align 1, !tbaa !16
%conv = zext i8 %0 to i32
store i32 %conv, ptr @zz_size, align 4, !tbaa !5
%conv1 = zext i8 %0 to i64
%arrayidx = getelementptr inbounds [0 x ptr], ptr @zz_free, i64 0, i64 %conv1
%1 = load ptr, ptr %arrayidx, align 8, !tbaa !15
%cmp3 = icmp eq ptr %1, null
br i1 %cmp3, label %if.then5, label %if.else7
if.then5: ; preds = %entry
%2 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call6 = tail call ptr @GetMemory(i32 noundef %conv, ptr noundef %2) #13
store ptr %call6, ptr @zz_hold, align 8, !tbaa !15
br label %if.end13
if.else7: ; preds = %entry
store ptr %1, ptr @zz_hold, align 8, !tbaa !15
%3 = load ptr, ptr %1, align 8, !tbaa !16
store ptr %3, ptr %arrayidx, align 8, !tbaa !15
br label %if.end13
if.end13: ; preds = %if.then5, %if.else7
%4 = phi ptr [ %call6, %if.then5 ], [ %1, %if.else7 ]
%ou1 = getelementptr inbounds %struct.word_type, ptr %4, i64 0, i32 1
store i8 17, ptr %ou1, align 8, !tbaa !16
%arrayidx15 = getelementptr inbounds [2 x %struct.LIST], ptr %4, i64 0, i64 1
%osucc = getelementptr inbounds [2 x %struct.LIST], ptr %4, i64 0, i64 1, i32 1
store ptr %4, ptr %osucc, align 8, !tbaa !16
store ptr %4, ptr %arrayidx15, align 8, !tbaa !16
%osucc21 = getelementptr inbounds %struct.LIST, ptr %4, i64 0, i32 1
store ptr %4, ptr %osucc21, align 8, !tbaa !16
store ptr %4, ptr %4, align 8, !tbaa !16
%5 = load i32, ptr @scope_top, align 4, !tbaa !5
%i.0310 = add nsw i32 %5, -1
%idxprom25311 = sext i32 %i.0310 to i64
%arrayidx26312 = getelementptr inbounds [300 x ptr], ptr @scope, i64 0, i64 %idxprom25311
%6 = load ptr, ptr %arrayidx26312, align 8, !tbaa !15
%7 = load ptr, ptr @StartSym, align 8, !tbaa !15
%cmp27.not313 = icmp eq ptr %6, %7
br i1 %cmp27.not313, label %for.end, label %for.body
for.body: ; preds = %if.end13, %cond.end268
%indvars.iv = phi i64 [ %indvars.iv.next, %cond.end268 ], [ %idxprom25311, %if.end13 ]
%arrayidx26316 = phi ptr [ %arrayidx26, %cond.end268 ], [ %arrayidx26312, %if.end13 ]
%8 = load i8, ptr getelementptr inbounds ([0 x i8], ptr @zz_lengths, i64 0, i64 149), align 1, !tbaa !16
%conv29 = zext i8 %8 to i32
store i32 %conv29, ptr @zz_size, align 4, !tbaa !5
%conv30 = zext i8 %8 to i64
%arrayidx37 = getelementptr inbounds [0 x ptr], ptr @zz_free, i64 0, i64 %conv30
%9 = load ptr, ptr %arrayidx37, align 8, !tbaa !15
%cmp38 = icmp eq ptr %9, null
br i1 %cmp38, label %if.then40, label %if.else42
if.then40: ; preds = %for.body
%10 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call41 = tail call ptr @GetMemory(i32 noundef %conv29, ptr noundef %10) #13
store ptr %call41, ptr @zz_hold, align 8, !tbaa !15
br label %if.end51
if.else42: ; preds = %for.body
store ptr %9, ptr @zz_hold, align 8, !tbaa !15
%11 = load ptr, ptr %9, align 8, !tbaa !16
store ptr %11, ptr %arrayidx37, align 8, !tbaa !15
br label %if.end51
if.end51: ; preds = %if.then40, %if.else42
%12 = phi ptr [ %call41, %if.then40 ], [ %9, %if.else42 ]
%ou152 = getelementptr inbounds %struct.word_type, ptr %12, i64 0, i32 1
store i8 -107, ptr %ou152, align 8, !tbaa !16
%arrayidx55 = getelementptr inbounds [2 x %struct.LIST], ptr %12, i64 0, i64 1
%osucc56 = getelementptr inbounds [2 x %struct.LIST], ptr %12, i64 0, i64 1, i32 1
store ptr %12, ptr %osucc56, align 8, !tbaa !16
store ptr %12, ptr %arrayidx55, align 8, !tbaa !16
%osucc62 = getelementptr inbounds %struct.LIST, ptr %12, i64 0, i32 1
store ptr %12, ptr %osucc62, align 8, !tbaa !16
store ptr %12, ptr %12, align 8, !tbaa !16
%13 = load i8, ptr @zz_lengths, align 1, !tbaa !16
%conv66 = zext i8 %13 to i32
store i32 %conv66, ptr @zz_size, align 4, !tbaa !5
%conv67 = zext i8 %13 to i64
%arrayidx74 = getelementptr inbounds [0 x ptr], ptr @zz_free, i64 0, i64 %conv67
%14 = load ptr, ptr %arrayidx74, align 8, !tbaa !15
%cmp75 = icmp eq ptr %14, null
br i1 %cmp75, label %if.then77, label %if.else79
if.then77: ; preds = %if.end51
%15 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call78 = tail call ptr @GetMemory(i32 noundef %conv66, ptr noundef %15) #13
br label %if.end88
if.else79: ; preds = %if.end51
store ptr %14, ptr @zz_hold, align 8, !tbaa !15
%16 = load ptr, ptr %14, align 8, !tbaa !16
store ptr %16, ptr %arrayidx74, align 8, !tbaa !15
br label %if.end88
if.end88: ; preds = %if.then77, %if.else79
%17 = phi ptr [ %call78, %if.then77 ], [ %14, %if.else79 ]
%ou189 = getelementptr inbounds %struct.word_type, ptr %17, i64 0, i32 1
store i8 0, ptr %ou189, align 8, !tbaa !16
%arrayidx92 = getelementptr inbounds [2 x %struct.LIST], ptr %17, i64 0, i64 1
%osucc93 = getelementptr inbounds [2 x %struct.LIST], ptr %17, i64 0, i64 1, i32 1
store ptr %17, ptr %osucc93, align 8, !tbaa !16
store ptr %17, ptr %arrayidx92, align 8, !tbaa !16
%osucc99 = getelementptr inbounds %struct.LIST, ptr %17, i64 0, i32 1
store ptr %17, ptr %osucc99, align 8, !tbaa !16
store ptr %17, ptr %17, align 8, !tbaa !16
store ptr %17, ptr @xx_link, align 8, !tbaa !15
store ptr %17, ptr @zz_res, align 8, !tbaa !15
store ptr %4, ptr @zz_hold, align 8, !tbaa !15
%18 = load ptr, ptr %4, align 8, !tbaa !16
store ptr %18, ptr @zz_tmp, align 8, !tbaa !15
%19 = load ptr, ptr %17, align 8, !tbaa !16
store ptr %19, ptr %4, align 8, !tbaa !16
%20 = load ptr, ptr @zz_hold, align 8, !tbaa !15
%21 = load ptr, ptr @zz_res, align 8, !tbaa !15
%22 = load ptr, ptr %21, align 8, !tbaa !16
%osucc123 = getelementptr inbounds %struct.LIST, ptr %22, i64 0, i32 1
store ptr %20, ptr %osucc123, align 8, !tbaa !16
%23 = load ptr, ptr @zz_tmp, align 8, !tbaa !15
store ptr %23, ptr %21, align 8, !tbaa !16
%24 = load ptr, ptr @zz_res, align 8, !tbaa !15
%25 = load ptr, ptr @zz_tmp, align 8, !tbaa !15
%osucc129 = getelementptr inbounds %struct.LIST, ptr %25, i64 0, i32 1
store ptr %24, ptr %osucc129, align 8, !tbaa !16
%26 = load ptr, ptr @xx_link, align 8, !tbaa !15
store ptr %26, ptr @zz_res, align 8, !tbaa !15
store ptr %12, ptr @zz_hold, align 8, !tbaa !15
%cmp136 = icmp eq ptr %26, null
br i1 %cmp136, label %cond.end163, label %cond.false139
cond.false139: ; preds = %if.end88
%27 = load ptr, ptr %arrayidx55, align 8, !tbaa !16
store ptr %27, ptr @zz_tmp, align 8, !tbaa !15
%arrayidx144 = getelementptr inbounds [2 x %struct.LIST], ptr %26, i64 0, i64 1
%28 = load ptr, ptr %arrayidx144, align 8, !tbaa !16
store ptr %28, ptr %arrayidx55, align 8, !tbaa !16
%29 = load ptr, ptr %arrayidx144, align 8, !tbaa !16
%osucc154 = getelementptr inbounds [2 x %struct.LIST], ptr %29, i64 0, i64 1, i32 1
store ptr %12, ptr %osucc154, align 8, !tbaa !16
store ptr %27, ptr %arrayidx144, align 8, !tbaa !16
%osucc160 = getelementptr inbounds [2 x %struct.LIST], ptr %27, i64 0, i64 1, i32 1
store ptr %26, ptr %osucc160, align 8, !tbaa !16
br label %cond.end163
cond.end163: ; preds = %if.end88, %cond.false139
%30 = load i8, ptr @zz_lengths, align 1, !tbaa !16
%conv165 = zext i8 %30 to i32
store i32 %conv165, ptr @zz_size, align 4, !tbaa !5
%conv166 = zext i8 %30 to i64
%arrayidx173 = getelementptr inbounds [0 x ptr], ptr @zz_free, i64 0, i64 %conv166
%31 = load ptr, ptr %arrayidx173, align 8, !tbaa !15
%cmp174 = icmp eq ptr %31, null
br i1 %cmp174, label %if.then176, label %if.else178
if.then176: ; preds = %cond.end163
%32 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call177 = tail call ptr @GetMemory(i32 noundef %conv165, ptr noundef %32) #13
br label %if.end187
if.else178: ; preds = %cond.end163
store ptr %31, ptr @zz_hold, align 8, !tbaa !15
%33 = load ptr, ptr %31, align 8, !tbaa !16
store ptr %33, ptr %arrayidx173, align 8, !tbaa !15
br label %if.end187
if.end187: ; preds = %if.then176, %if.else178
%34 = phi ptr [ %call177, %if.then176 ], [ %31, %if.else178 ]
%ou1188 = getelementptr inbounds %struct.word_type, ptr %34, i64 0, i32 1
store i8 0, ptr %ou1188, align 8, !tbaa !16
%arrayidx191 = getelementptr inbounds [2 x %struct.LIST], ptr %34, i64 0, i64 1
%osucc192 = getelementptr inbounds [2 x %struct.LIST], ptr %34, i64 0, i64 1, i32 1
store ptr %34, ptr %osucc192, align 8, !tbaa !16
store ptr %34, ptr %arrayidx191, align 8, !tbaa !16
%osucc198 = getelementptr inbounds %struct.LIST, ptr %34, i64 0, i32 1
store ptr %34, ptr %osucc198, align 8, !tbaa !16
store ptr %34, ptr %34, align 8, !tbaa !16
store ptr %34, ptr @xx_link, align 8, !tbaa !15
store ptr %34, ptr @zz_res, align 8, !tbaa !15
store ptr %12, ptr @zz_hold, align 8, !tbaa !15
%35 = load ptr, ptr %12, align 8, !tbaa !16
store ptr %35, ptr @zz_tmp, align 8, !tbaa !15
%36 = load ptr, ptr %34, align 8, !tbaa !16
store ptr %36, ptr %12, align 8, !tbaa !16
%37 = load ptr, ptr @zz_hold, align 8, !tbaa !15
%38 = load ptr, ptr @zz_res, align 8, !tbaa !15
%39 = load ptr, ptr %38, align 8, !tbaa !16
%osucc224 = getelementptr inbounds %struct.LIST, ptr %39, i64 0, i32 1
store ptr %37, ptr %osucc224, align 8, !tbaa !16
%40 = load ptr, ptr @zz_tmp, align 8, !tbaa !15
store ptr %40, ptr %38, align 8, !tbaa !16
%41 = load ptr, ptr @zz_res, align 8, !tbaa !15
%42 = load ptr, ptr @zz_tmp, align 8, !tbaa !15
%osucc230 = getelementptr inbounds %struct.LIST, ptr %42, i64 0, i32 1
store ptr %41, ptr %osucc230, align 8, !tbaa !16
%43 = load ptr, ptr @xx_link, align 8, !tbaa !15
store ptr %43, ptr @zz_res, align 8, !tbaa !15
%44 = load ptr, ptr %arrayidx26316, align 8, !tbaa !15
store ptr %44, ptr @zz_hold, align 8, !tbaa !15
%cmp237 = icmp eq ptr %44, null
%cmp241 = icmp eq ptr %43, null
%or.cond = select i1 %cmp237, i1 true, i1 %cmp241
br i1 %or.cond, label %cond.end268, label %cond.false244
cond.false244: ; preds = %if.end187
%arrayidx246 = getelementptr inbounds [2 x %struct.LIST], ptr %44, i64 0, i64 1
%45 = load ptr, ptr %arrayidx246, align 8, !tbaa !16
store ptr %45, ptr @zz_tmp, align 8, !tbaa !15
%arrayidx249 = getelementptr inbounds [2 x %struct.LIST], ptr %43, i64 0, i64 1
%46 = load ptr, ptr %arrayidx249, align 8, !tbaa !16
store ptr %46, ptr %arrayidx246, align 8, !tbaa !16
%47 = load ptr, ptr %arrayidx249, align 8, !tbaa !16
%osucc259 = getelementptr inbounds [2 x %struct.LIST], ptr %47, i64 0, i64 1, i32 1
store ptr %44, ptr %osucc259, align 8, !tbaa !16
store ptr %45, ptr %arrayidx249, align 8, !tbaa !16
%osucc265 = getelementptr inbounds [2 x %struct.LIST], ptr %45, i64 0, i64 1, i32 1
store ptr %43, ptr %osucc265, align 8, !tbaa !16
br label %cond.end268
cond.end268: ; preds = %if.end187, %cond.false244
%arrayidx271 = getelementptr inbounds [300 x i32], ptr @npars_only, i64 0, i64 %indvars.iv
%48 = load i32, ptr %arrayidx271, align 4, !tbaa !5
%ou2 = getelementptr inbounds %struct.word_type, ptr %12, i64 0, i32 2
%bf.load = load i32, ptr %ou2, align 8
%bf.value = and i32 %48, 4095
%bf.clear = and i32 %bf.load, -8388608
%bf.set = or i32 %bf.clear, %bf.value
%arrayidx273 = getelementptr inbounds [300 x i32], ptr @vis_only, i64 0, i64 %indvars.iv
%49 = load i32, ptr %arrayidx273, align 4, !tbaa !5
%bf.value276 = shl i32 %49, 12
%bf.shl = and i32 %bf.value276, 4190208
%bf.set278 = or i32 %bf.shl, %bf.set
%arrayidx280 = getelementptr inbounds [300 x i32], ptr @body_ok, i64 0, i64 %indvars.iv
%50 = load i32, ptr %arrayidx280, align 4, !tbaa !5
%bf.value283 = shl i32 %50, 22
%bf.shl284 = and i32 %bf.value283, 4194304
%bf.set286 = or i32 %bf.set278, %bf.shl284
store i32 %bf.set286, ptr %ou2, align 8
%indvars.iv.next = add i64 %indvars.iv, -1
%arrayidx26 = getelementptr inbounds [300 x ptr], ptr @scope, i64 0, i64 %indvars.iv.next
%51 = load ptr, ptr %arrayidx26, align 8, !tbaa !15
%52 = load ptr, ptr @StartSym, align 8, !tbaa !15
%cmp27.not = icmp eq ptr %51, %52
br i1 %cmp27.not, label %for.end, label %for.body, !llvm.loop !20
for.end: ; preds = %cond.end268, %if.end13
%53 = load i32, ptr @suppress_visible, align 4, !tbaa !5
%ou2287 = getelementptr inbounds %struct.word_type, ptr %4, i64 0, i32 2
%bf.load288 = load i32, ptr %ou2287, align 8
%bf.value289 = shl i32 %53, 23
%bf.shl290 = and i32 %bf.value289, 528482304
%bf.clear291 = and i32 %bf.load288, -528482305
%bf.set292 = or i32 %bf.clear291, %bf.shl290
store i32 %bf.set292, ptr %ou2287, align 8
ret ptr %4
}
declare ptr @GetMemory(i32 noundef, ptr noundef) local_unnamed_addr #3
; Function Attrs: nounwind uwtable
define dso_local void @LoadScopeSnapshot(ptr noundef %ss) local_unnamed_addr #2 {
entry:
%ou1 = getelementptr inbounds %struct.word_type, ptr %ss, i64 0, i32 1
%0 = load i8, ptr %ou1, align 8, !tbaa !16
%cmp = icmp eq i8 %0, 17
br i1 %cmp, label %if.end, label %if.then
if.then: ; preds = %entry
%1 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %1, ptr noundef nonnull @.str.6) #13
br label %if.end
if.end: ; preds = %if.then, %entry
%2 = load ptr, ptr @StartSym, align 8, !tbaa !15
%.b.i = load i1, ptr @suppress_scope, align 4
br i1 %.b.i, label %if.then.i, label %if.end.i
if.then.i: ; preds = %if.end
%3 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call.i = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %3, ptr noundef nonnull @.str.1) #13
br label %if.end.i
if.end.i: ; preds = %if.then.i, %if.end
%4 = load i32, ptr @scope_top, align 4, !tbaa !5
%cmp1.i = icmp sgt i32 %4, 299
br i1 %cmp1.i, label %if.then2.i, label %PushScope.exit
if.then2.i: ; preds = %if.end.i
%ou1.i = getelementptr inbounds %struct.word_type, ptr %2, i64 0, i32 1
%call3.i = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 29, i32 noundef 2, ptr noundef nonnull @.str.2, i32 noundef 0, ptr noundef nonnull %ou1.i) #13
%.pre.i = load i32, ptr @scope_top, align 4, !tbaa !5
br label %PushScope.exit
PushScope.exit: ; preds = %if.end.i, %if.then2.i
%5 = phi i32 [ %.pre.i, %if.then2.i ], [ %4, %if.end.i ]
%idxprom.i = sext i32 %5 to i64
%arrayidx.i = getelementptr inbounds [300 x ptr], ptr @scope, i64 0, i64 %idxprom.i
store ptr %2, ptr %arrayidx.i, align 8, !tbaa !15
%arrayidx6.i = getelementptr inbounds [300 x i32], ptr @npars_only, i64 0, i64 %idxprom.i
store i32 0, ptr %arrayidx6.i, align 4, !tbaa !5
%arrayidx8.i = getelementptr inbounds [300 x i32], ptr @vis_only, i64 0, i64 %idxprom.i
store i32 0, ptr %arrayidx8.i, align 4, !tbaa !5
%arrayidx10.i = getelementptr inbounds [300 x i32], ptr @body_ok, i64 0, i64 %idxprom.i
store i32 0, ptr %arrayidx10.i, align 4, !tbaa !5
%inc.i = add nsw i32 %5, 1
store i32 %inc.i, ptr @scope_top, align 4, !tbaa !5
%link.094 = load ptr, ptr %ss, align 8, !tbaa !16
%cmp2.not95 = icmp eq ptr %link.094, %ss
br i1 %cmp2.not95, label %for.end54, label %for.cond7.preheader
for.cond7.preheader: ; preds = %PushScope.exit, %PushScope.exit91
%link.096 = phi ptr [ %link.0, %PushScope.exit91 ], [ %link.094, %PushScope.exit ]
br label %for.cond7
for.cond7: ; preds = %for.cond7.preheader, %for.cond7
%link.0.pn = phi ptr [ %x.0, %for.cond7 ], [ %link.096, %for.cond7.preheader ]
%x.0.in = getelementptr inbounds [2 x %struct.LIST], ptr %link.0.pn, i64 0, i64 1
%x.0 = load ptr, ptr %x.0.in, align 8, !tbaa !16
%ou18 = getelementptr inbounds %struct.word_type, ptr %x.0, i64 0, i32 1
%6 = load i8, ptr %ou18, align 8, !tbaa !16
switch i8 %6, label %if.then22 [
i8 0, label %for.cond7
i8 -107, label %if.end24
]
if.then22: ; preds = %for.cond7
%7 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call23 = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %7, ptr noundef nonnull @.str.7) #13
br label %if.end24
if.end24: ; preds = %for.cond7, %if.then22
%osucc = getelementptr inbounds %struct.LIST, ptr %x.0, i64 0, i32 1
%8 = load ptr, ptr %osucc, align 8, !tbaa !16
br label %for.cond30
for.cond30: ; preds = %for.cond30, %if.end24
%.pn = phi ptr [ %8, %if.end24 ], [ %sym.0, %for.cond30 ]
%sym.0.in = getelementptr inbounds [2 x %struct.LIST], ptr %.pn, i64 0, i64 1
%sym.0 = load ptr, ptr %sym.0.in, align 8, !tbaa !16
%ou131 = getelementptr inbounds %struct.word_type, ptr %sym.0, i64 0, i32 1
%9 = load i8, ptr %ou131, align 8, !tbaa !16
%cmp34 = icmp eq i8 %9, 0
br i1 %cmp34, label %for.cond30, label %for.end41, !llvm.loop !21
for.end41: ; preds = %for.cond30
%ou131.le = getelementptr inbounds %struct.word_type, ptr %sym.0, i64 0, i32 1
%ou2 = getelementptr inbounds %struct.word_type, ptr %x.0, i64 0, i32 2
%bf.load = load i32, ptr %ou2, align 8
%bf.clear = and i32 %bf.load, 4095
%bf.lshr = lshr i32 %bf.load, 12
%bf.clear44 = and i32 %bf.lshr, 1023
%.b.i76 = load i1, ptr @suppress_scope, align 4
br i1 %.b.i76, label %if.then.i78, label %if.end.i80
if.then.i78: ; preds = %for.end41
%10 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call.i77 = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 1, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef %10, ptr noundef nonnull @.str.1) #13
br label %if.end.i80
if.end.i80: ; preds = %if.then.i78, %for.end41
%11 = load i32, ptr @scope_top, align 4, !tbaa !5
%cmp1.i79 = icmp sgt i32 %11, 299
br i1 %cmp1.i79, label %if.then2.i84, label %PushScope.exit91
if.then2.i84: ; preds = %if.end.i80
%call3.i82 = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 29, i32 noundef 2, ptr noundef nonnull @.str.2, i32 noundef 0, ptr noundef nonnull %ou131.le) #13
%.pre.i83 = load i32, ptr @scope_top, align 4, !tbaa !5
br label %PushScope.exit91
PushScope.exit91: ; preds = %if.end.i80, %if.then2.i84
%12 = phi i32 [ %.pre.i83, %if.then2.i84 ], [ %11, %if.end.i80 ]
%idxprom.i85 = sext i32 %12 to i64
%arrayidx.i86 = getelementptr inbounds [300 x ptr], ptr @scope, i64 0, i64 %idxprom.i85
store ptr %sym.0, ptr %arrayidx.i86, align 8, !tbaa !15
%arrayidx6.i87 = getelementptr inbounds [300 x i32], ptr @npars_only, i64 0, i64 %idxprom.i85
store i32 %bf.clear, ptr %arrayidx6.i87, align 4, !tbaa !5
%arrayidx8.i88 = getelementptr inbounds [300 x i32], ptr @vis_only, i64 0, i64 %idxprom.i85
store i32 %bf.clear44, ptr %arrayidx8.i88, align 4, !tbaa !5
%arrayidx10.i89 = getelementptr inbounds [300 x i32], ptr @body_ok, i64 0, i64 %idxprom.i85
store i32 0, ptr %arrayidx10.i89, align 4, !tbaa !5
%inc.i90 = add nsw i32 %12, 1
store i32 %inc.i90, ptr @scope_top, align 4, !tbaa !5
%bf.load46 = load i32, ptr %ou2, align 8
%bf.lshr47 = lshr i32 %bf.load46, 22
%bf.clear48 = and i32 %bf.lshr47, 1
store i32 %bf.clear48, ptr %arrayidx10.i89, align 4, !tbaa !5
%link.0 = load ptr, ptr %link.096, align 8, !tbaa !16
%cmp2.not = icmp eq ptr %link.0, %ss
br i1 %cmp2.not, label %for.end54, label %for.cond7.preheader, !llvm.loop !22
for.end54: ; preds = %PushScope.exit91, %PushScope.exit
%13 = load i32, ptr @suppress_visible, align 4, !tbaa !5
%ou255 = getelementptr inbounds %struct.word_type, ptr %ss, i64 0, i32 2
%bf.load56 = load i32, ptr %ou255, align 8
%bf.lshr57 = lshr i32 %bf.load56, 23
%bf.clear58 = and i32 %bf.lshr57, 63
store i32 %bf.clear58, ptr @suppress_visible, align 4, !tbaa !5
%bf.value = shl i32 %13, 23
%bf.shl = and i32 %bf.value, 528482304
%bf.clear61 = and i32 %bf.load56, -528482305
%bf.set = or i32 %bf.clear61, %bf.shl
store i32 %bf.set, ptr %ou255, align 8
ret void
}
; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, argmem: read, inaccessiblemem: none) uwtable
define dso_local void @ClearScopeSnapshot(ptr nocapture noundef readonly %ss) local_unnamed_addr #7 {
entry:
%0 = load ptr, ptr @StartSym, align 8, !tbaa !15
%scope_top.promoted = load i32, ptr @scope_top, align 4, !tbaa !5
%sub3 = add nsw i32 %scope_top.promoted, -1
%idxprom4 = sext i32 %sub3 to i64
%arrayidx5 = getelementptr inbounds [300 x ptr], ptr @scope, i64 0, i64 %idxprom4
%1 = load ptr, ptr %arrayidx5, align 8, !tbaa !15
%cmp.not6 = icmp eq ptr %1, %0
br i1 %cmp.not6, label %while.end, label %while.body.preheader
while.body.preheader: ; preds = %entry
%2 = sext i32 %scope_top.promoted to i64
br label %while.body
while.body: ; preds = %while.body.preheader, %while.body
%indvars.iv = phi i64 [ %2, %while.body.preheader ], [ %indvars.iv.next, %while.body ]
%indvars.iv.next = add i64 %indvars.iv, -1
%3 = add nsw i64 %indvars.iv, -2
%arrayidx = getelementptr inbounds [300 x ptr], ptr @scope, i64 0, i64 %3
%4 = load ptr, ptr %arrayidx, align 8, !tbaa !15
%cmp.not = icmp eq ptr %4, %0
br i1 %cmp.not, label %while.cond.while.end_crit_edge, label %while.body, !llvm.loop !23
while.cond.while.end_crit_edge: ; preds = %while.body
%5 = trunc i64 %indvars.iv.next to i32
%.pre = add nsw i32 %5, -1
br label %while.end
while.end: ; preds = %while.cond.while.end_crit_edge, %entry
%dec1.pre-phi = phi i32 [ %.pre, %while.cond.while.end_crit_edge ], [ %sub3, %entry ]
store i32 %dec1.pre-phi, ptr @scope_top, align 4, !tbaa !5
%ou2 = getelementptr inbounds %struct.word_type, ptr %ss, i64 0, i32 2
%bf.load = load i32, ptr %ou2, align 8
%bf.lshr = lshr i32 %bf.load, 23
%bf.clear = and i32 %bf.lshr, 63
store i32 %bf.clear, ptr @suppress_visible, align 4, !tbaa !5
ret void
}
; Function Attrs: nounwind uwtable
define dso_local ptr @InsertSym(ptr noundef %str, i8 noundef zeroext %xtype, ptr noundef %xfpos, i8 noundef zeroext %xprecedence, i32 noundef %xindefinite, i32 noundef %xrecursive, i32 noundef %xpredefined, ptr noundef %xenclosing, ptr noundef %xbody) local_unnamed_addr #2 {
entry:
%call = tail call i32 @LexLegalName(ptr noundef %str) #13
%tobool.not = icmp eq i32 %call, 0
br i1 %tobool.not, label %if.then, label %if.end
if.then: ; preds = %entry
%call2 = tail call ptr (i32, i32, ptr, i32, ptr, ...) @Error(i32 noundef 29, i32 noundef 3, ptr noundef nonnull @.str.8, i32 noundef 2, ptr noundef %xfpos, ptr noundef %str) #13
br label %if.end
if.end: ; preds = %if.then, %entry
%idxprom = zext i8 %xtype to i64
%arrayidx = getelementptr inbounds [0 x i8], ptr @zz_lengths, i64 0, i64 %idxprom
%0 = load i8, ptr %arrayidx, align 1, !tbaa !16
%conv = zext i8 %0 to i32
store i32 %conv, ptr @zz_size, align 4, !tbaa !5
%conv3 = zext i8 %0 to i64
%arrayidx8 = getelementptr inbounds [0 x ptr], ptr @zz_free, i64 0, i64 %conv3
%1 = load ptr, ptr %arrayidx8, align 8, !tbaa !15
%cmp9 = icmp eq ptr %1, null
br i1 %cmp9, label %if.then11, label %if.else13
if.then11: ; preds = %if.end
%2 = load ptr, ptr @no_fpos, align 8, !tbaa !15
%call12 = tail call ptr @GetMemory(i32 noundef %conv, ptr noundef %2) #13
store ptr %call12, ptr @zz_hold, align 8, !tbaa !15
br label %if.end20
if.else13: ; preds = %if.end
store ptr %1, ptr @zz_hold, align 8, !tbaa !15
%3 = load ptr, ptr %1, align 8, !tbaa !16
store ptr %3, ptr %arrayidx8, align 8, !tbaa !15
br label %if.end20
if.end20: ; preds = %if.then11, %if.else13
%4 = phi ptr [ %call12, %if.then11 ], [ %1, %if.else13 ]
%ou1 = getelementptr inbounds %struct.word_type, ptr %4, i64 0, i32 1
store i8 %xtype, ptr %ou1, align 8, !tbaa !16
%arrayidx22 = getelementptr inbounds [2 x %struct.LIST], ptr %4, i64 0, i64 1
%osucc = getelementptr inbounds [2 x %struct.LIST], ptr %4, i64 0, i64 1, i32 1
store ptr %4, ptr %osucc, align 8, !tbaa !16
store ptr %4, ptr %arrayidx22, align 8, !tbaa !16
%osucc28 = getelementptr inbounds %struct.LIST, ptr %4, i64 0, i32 1
store ptr %4, ptr %osucc28, align 8, !tbaa !16
store ptr %4, ptr %4, align 8, !tbaa !16
%ofile_num = getelementptr inbounds %struct.FILE_POS, ptr %xfpos, i64 0, i32 2
%5 = load i16, ptr %ofile_num, align 2, !tbaa !24
%ofile_num33 = getelementptr inbounds %struct.word_type, ptr %4, i64 0, i32 1, i32 0, i32 2
store i16 %5, ptr %ofile_num33, align 2, !tbaa !16
%oline_num = getelementptr inbounds %struct.FILE_POS, ptr %xfpos, i64 0, i32 3
%bf.load = load i32, ptr %oline_num, align 4
%bf.clear = and i32 %bf.load, 1048575
%oline_num35 = getelementptr inbounds %struct.word_type, ptr %4, i64 0, i32 1, i32 0, i32 3
%bf.load36 = load i32, ptr %oline_num35, align 4
%bf.clear37 = and i32 %bf.load36, -1048576
%bf.set = or i32 %bf.clear37, %bf.clear
store i32 %bf.set, ptr %oline_num35, align 4
%bf.load38 = load i32, ptr %oline_num, align 4
%bf.lshr = and i32 %bf.load38, -1048576
%bf.set44 = or i32 %bf.lshr, %bf.clear
store i32 %bf.set44, ptr %oline_num35, align 4
%ou2 = getelementptr inbounds %struct.word_type, ptr %4, i64 0, i32 2
%ohas_body = getelementptr inbounds i8, ptr %4, i64 41
%bf.load45 = load i24, ptr %ohas_body, align 1
%oimports = getelementptr inbounds %struct.symbol_type, ptr %4, i64 0, i32 9
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %oimports, i8 0, i64 24, i1 false)
store i8 %xprecedence, ptr %ou2, align 8, !tbaa !16
%6 = trunc i32 %xindefinite to i24
%bf.value59 = shl i24 %6, 9
%bf.shl60 = and i24 %bf.value59, 512
%bf.set55 = and i24 %bf.load45, -7446289
%7 = trunc i32 %xrecursive to i24
%bf.value65 = shl i24 %7, 10
%bf.shl66 = and i24 %bf.value65, 1024
%conv70 = trunc i32 %xpredefined to i16
%opredefined = getelementptr inbounds %struct.symbol_type, ptr %4, i64 0, i32 12
store i16 %conv70, ptr %opredefined, align 8, !tbaa !16
%oenclosing = getelementptr inbounds %struct.symbol_type, ptr %4, i64 0, i32 3
store ptr %xenclosing, ptr %oenclosing, align 8, !tbaa !16
%osym_body = getelementptr inbounds %struct.symbol_type, ptr %4, i64 0, i32 4
store ptr %xbody, ptr %osym_body, align 8, !tbaa !16
%obase_uses = getelementptr inbounds %struct.symbol_type, ptr %4, i64 0, i32 5
%op.rdx1390 = or i24 %bf.shl60, %bf.shl66
%op.rdx = or i24 %bf.set55, %op.rdx1390
%op.rdx1391 = or i24 %op.rdx, 2097168
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %obase_uses, i8 0, i64 32, i1 false)
%ohas_compulsory = getelementptr inbounds %struct.symbol_type, ptr %4, i64 0, i32 13
store i16 0, ptr %ohas_compulsory, align 2, !tbaa !16
%ois_compulsory = getelementptr inbounds %struct.symbol_type, ptr %4, i64 0, i32 16
%bf.load91 = load i8, ptr %ois_compulsory, align 2
%bf.clear92 = and i8 %bf.load91, -65
store i8 %bf.clear92, ptr %ois_compulsory, align 2
%ouses_count = getelementptr inbounds %struct.symbol_type, ptr %4, i64 0, i32 14
store i8 0, ptr %ouses_count, align 4, !tbaa !16
store i24 %op.rdx1391, ptr %ohas_body, align 1
%cmp99.not = icmp eq ptr %xenclosing, null
br i1 %cmp99.not, label %if.end119, label %land.lhs.true
land.lhs.true: ; preds = %if.end20
%ou1102 = getelementptr inbounds %struct.word_type, ptr %xenclosing, i64 0, i32 1
%8 = load i8, ptr %ou1102, align 8, !tbaa !16
%cmp105 = icmp eq i8 %8, -111
br i1 %cmp105, label %if.then107, label %if.end119
if.then107: ; preds = %land.lhs.true
%odirty110 = getelementptr inbounds i8, ptr %xenclosing, i64 41
%bf.load111 = load i24, ptr %odirty110, align 1
%bf.set113 = or i24 %bf.load111, 32768
store i24 %bf.set113, ptr %odirty110, align 1
%bf.load116 = load i24, ptr %ohas_body, align 1
%bf.set118 = or i24 %bf.load116, 32768
%.pre = load i8, ptr %ou1, align 8, !tbaa !16
br label %if.end119
if.end119: ; preds = %if.then107, %land.lhs.true, %if.end20
%9 = phi i8 [ %.pre, %if.then107 ], [ %xtype, %land.lhs.true ], [ %xtype, %if.end20 ]
%bf.load121 = phi i24 [ %bf.set118, %if.then107 ], [ %op.rdx1391, %land.lhs.true ], [ %op.rdx1391, %if.end20 ]
%bf.clear130 = and i24 %bf.load121, -524301
store i24 %bf.clear130, ptr %ohas_body, align 1
%10 = add i8 %9, 112
%or.cond1329 = icmp ult i8 %10, 3
br i1 %or.cond1329, label %if.end150, label %if.end233
if.end150: ; preds = %if.end119
%11 = load ptr, ptr %oenclosing, align 8, !tbaa !16
%ohas_par146 = getelementptr inbounds i8, ptr %11, i64 41
%bf.load147 = load i24, ptr %ohas_par146, align 1
%bf.set149 = or i24 %bf.load147, 524288