; LLVM IR from musetronstar/tagd :: tagl/src (lemon)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.config = type { ptr, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr }
%struct.rule = type { ptr, ptr, i32, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr, ptr }
%struct.symbol = type { ptr, i32, i32, ptr, ptr, i32, i32, ptr, i32, i32, ptr, i32, ptr, i32, i32, i32, ptr }
%struct.lemon = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr }

@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@current = external hidden global ptr, align 8
@currentend = external hidden global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__.Configlist_closure = external hidden unnamed_addr constant [40 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @SetAdd(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @SetUnion(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @ErrorMsg(ptr noundef, i32 noundef, ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
define dso_local void @Configlist_closure(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %12 = load ptr, ptr @currentend, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %1
  br label %16

15:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 1408, ptr noundef @__PRETTY_FUNCTION__.Configlist_closure) #4
  unreachable

16:                                               ; preds = %14
  %17 = load ptr, ptr @current, align 8, !tbaa !5
  store ptr %17, ptr %3, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %175, %16
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %179

21:                                               ; preds = %18
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.config, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  store ptr %24, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.config, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 8, !tbaa !12
  store i32 %27, ptr %10, align 4, !tbaa !13
  %28 = load i32, ptr %10, align 4, !tbaa !13
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.rule, ptr %29, i32 0, i32 4
  %31 = load i32, ptr %30, align 8, !tbaa !14
  %32 = icmp sge i32 %28, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %21
  br label %175

34:                                               ; preds = %21
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.rule, ptr %35, i32 0, i32 5
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = load i32, ptr %10, align 4, !tbaa !13
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds ptr, ptr %37, i64 %39
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  store ptr %41, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.symbol, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 4, !tbaa !17
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %174

46:                                               ; preds = %34
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.symbol, ptr %47, i32 0, i32 3
  %49 = load ptr, ptr %48, align 8, !tbaa !19
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %71

51:                                               ; preds = %46
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.lemon, ptr %53, i32 0, i32 17
  %55 = load ptr, ptr %54, align 8, !tbaa !20
  %56 = icmp ne ptr %52, %55
  br i1 %56, label %57, label %71

57:                                               ; preds = %51
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.lemon, ptr %58, i32 0, i32 34
  %60 = load ptr, ptr %59, align 8, !tbaa !22
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.rule, ptr %61, i32 0, i32 7
  %63 = load i32, ptr %62, align 8, !tbaa !23
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.symbol, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !24
  call void (ptr, i32, ptr, ...) @ErrorMsg(ptr noundef %60, i32 noundef %63, ptr noundef @.str.11, ptr noundef %66)
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.lemon, ptr %67, i32 0, i32 16
  %69 = load i32, ptr %68, align 8, !tbaa !25
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %68, align 8, !tbaa !25
  br label %71

71:                                               ; preds = %57, %51, %46
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.symbol, ptr %72, i32 0, i32 3
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  store ptr %74, ptr %6, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %169, %71
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %173

78:                                               ; preds = %75
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = call ptr @Configlist_add(ptr noundef %79, i32 noundef 0)
  store ptr %80, ptr %4, align 8, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !13
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %9, align 4, !tbaa !13
  br label %83

83:                                               ; preds = %155, %78
  %84 = load i32, ptr %9, align 4, !tbaa !13
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.rule, ptr %85, i32 0, i32 4
  %87 = load i32, ptr %86, align 8, !tbaa !14
  %88 = icmp slt i32 %84, %87
  br i1 %88, label %89, label %158

89:                                               ; preds = %83
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.rule, ptr %90, i32 0, i32 5
  %92 = load ptr, ptr %91, align 8, !tbaa !16
  %93 = load i32, ptr %9, align 4, !tbaa !13
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds ptr, ptr %92, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  store ptr %96, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.symbol, ptr %97, i32 0, i32 2
  %99 = load i32, ptr %98, align 4, !tbaa !17
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %109

101:                                              ; preds = %89
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.config, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !26
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.symbol, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 8, !tbaa !27
  %108 = call i32 @SetAdd(ptr noundef %104, i32 noundef %107)
  br label %158

109:                                              ; preds = %89
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.symbol, ptr %110, i32 0, i32 2
  %112 = load i32, ptr %111, align 4, !tbaa !17
  %113 = icmp eq i32 %112, 2
  br i1 %113, label %114, label %139

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !13
  br label %115

115:                                              ; preds = %135, %114
  %116 = load i32, ptr %11, align 4, !tbaa !13
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.symbol, ptr %117, i32 0, i32 15
  %119 = load i32, ptr %118, align 8, !tbaa !28
  %120 = icmp slt i32 %116, %119
  br i1 %120, label %121, label %138

121:                                              ; preds = %115
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.config, ptr %122, i32 0, i32 2
  %124 = load ptr, ptr %123, align 8, !tbaa !26
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.symbol, ptr %125, i32 0, i32 16
  %127 = load ptr, ptr %126, align 8, !tbaa !29
  %128 = load i32, ptr %11, align 4, !tbaa !13
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds ptr, ptr %127, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.symbol, ptr %131, i32 0, i32 1
  %133 = load i32, ptr %132, align 8, !tbaa !27
  %134 = call i32 @SetAdd(ptr noundef %124, i32 noundef %133)
  br label %135

135:                                              ; preds = %121
  %136 = load i32, ptr %11, align 4, !tbaa !13
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %11, align 4, !tbaa !13
  br label %115, !llvm.loop !30

138:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %158

139:                                              ; preds = %109
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.config, ptr %140, i32 0, i32 2
  %142 = load ptr, ptr %141, align 8, !tbaa !26
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.symbol, ptr %143, i32 0, i32 7
  %145 = load ptr, ptr %144, align 8, !tbaa !32
  %146 = call i32 @SetUnion(ptr noundef %142, ptr noundef %145)
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.symbol, ptr %147, i32 0, i32 8
  %149 = load i32, ptr %148, align 8, !tbaa !33
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %152

151:                                              ; preds = %139
  br label %158

152:                                              ; preds = %139
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %9, align 4, !tbaa !13
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %9, align 4, !tbaa !13
  br label %83, !llvm.loop !34

158:                                              ; preds = %151, %138, %101, %83
  %159 = load i32, ptr %9, align 4, !tbaa !13
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.rule, ptr %160, i32 0, i32 4
  %162 = load i32, ptr %161, align 8, !tbaa !14
  %163 = icmp eq i32 %159, %162
  br i1 %163, label %164, label %168

164:                                              ; preds = %158
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.config, ptr %165, i32 0, i32 3
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  call void @Plink_add(ptr noundef %166, ptr noundef %167)
  br label %168

168:                                              ; preds = %164, %158
  br label %169

169:                                              ; preds = %168
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.rule, ptr %170, i32 0, i32 19
  %172 = load ptr, ptr %171, align 8, !tbaa !35
  store ptr %172, ptr %6, align 8, !tbaa !5
  br label %75, !llvm.loop !36

173:                                              ; preds = %75
  br label %174

174:                                              ; preds = %173, %34
  br label %175

175:                                              ; preds = %174, %33
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.config, ptr %176, i32 0, i32 7
  %178 = load ptr, ptr %177, align 8, !tbaa !37
  store ptr %178, ptr %3, align 8, !tbaa !5
  br label %18, !llvm.loop !38

179:                                              ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @Plink_add(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @Configlist_add(ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"config", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !6, i64 56, !6, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 24}
!15 = !{!"rule", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !6, i64 120, !6, i64 128}
!16 = !{!15, !6, i64 32}
!17 = !{!18, !11, i64 12}
!18 = !{!"symbol", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !6, i64 40, !11, i64 48, !11, i64 52, !6, i64 56, !11, i64 64, !6, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96}
!19 = !{!18, !6, i64 16}
!20 = !{!21, !6, i64 88}
!21 = !{!"lemon", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !6, i64 72, !11, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !6, i64 280}
!22 = !{!21, !6, i64 224}
!23 = !{!15, !11, i64 48}
!24 = !{!18, !6, i64 0}
!25 = !{!21, !11, i64 80}
!26 = !{!10, !6, i64 16}
!27 = !{!18, !11, i64 8}
!28 = !{!18, !11, i64 88}
!29 = !{!18, !6, i64 96}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!18, !6, i64 40}
!33 = !{!18, !11, i64 48}
!34 = distinct !{!34, !31}
!35 = !{!15, !6, i64 120}
!36 = distinct !{!36, !31}
!37 = !{!10, !6, i64 56}
!38 = distinct !{!38, !31}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@current = external hidden local_unnamed_addr global ptr, align 8
@currentend = external hidden local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__.Configlist_closure = external hidden unnamed_addr constant [40 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SetAdd(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @SetUnion(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @ErrorMsg(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @Configlist_closure(ptr nocapture noundef %0) local_unnamed_addr #1 {
  %2 = load ptr, ptr @currentend, align 8, !tbaa !5
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %6, label %.preheader54

.preheader54:                                     ; preds = %1
  %.04264 = load ptr, ptr @current, align 8, !tbaa !5
  %.not4865 = icmp eq ptr %.04264, null
  br i1 %.not4865, label %._crit_edge, label %.lr.ph67

.lr.ph67:                                         ; preds = %.preheader54
  %3 = getelementptr inbounds i8, ptr %0, i64 88
  %4 = getelementptr inbounds i8, ptr %0, i64 224
  %5 = getelementptr inbounds i8, ptr %0, i64 80
  br label %7

6:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 1408, ptr noundef nonnull @__PRETTY_FUNCTION__.Configlist_closure) #2
  unreachable

7:                                                ; preds = %.lr.ph67, %.loopexit53
  %.04266 = phi ptr [ %.04264, %.lr.ph67 ], [ %.042, %.loopexit53 ]
  %8 = load ptr, ptr %.04266, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %.04266, i64 8
  %10 = load i32, ptr %9, align 8, !tbaa !12
  %11 = getelementptr inbounds i8, ptr %8, i64 24
  %12 = load i32, ptr %11, align 8, !tbaa !13
  %.not49 = icmp slt i32 %10, %12
  br i1 %.not49, label %13, label %.loopexit53

13:                                               ; preds = %7
  %14 = getelementptr inbounds i8, ptr %8, i64 32
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = sext i32 %10 to i64
  %17 = getelementptr inbounds ptr, ptr %15, i64 %16
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !16
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %.loopexit53

22:                                               ; preds = %13
  %23 = getelementptr inbounds i8, ptr %18, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %.lr.ph63

26:                                               ; preds = %22
  %27 = load ptr, ptr %3, align 8, !tbaa !18
  %.not50 = icmp eq ptr %18, %27
  br i1 %.not50, label %.loopexit53, label %28

28:                                               ; preds = %26
  %29 = load ptr, ptr %4, align 8, !tbaa !20
  %30 = getelementptr inbounds i8, ptr %8, i64 48
  %31 = load i32, ptr %30, align 8, !tbaa !21
  %32 = load ptr, ptr %18, align 8, !tbaa !22
  tail call void (ptr, i32, ptr, ...) @ErrorMsg(ptr noundef %29, i32 noundef %31, ptr noundef nonnull @.str.11, ptr noundef %32)
  %33 = load i32, ptr %5, align 8, !tbaa !23
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %5, align 8, !tbaa !23
  %.04460.pre = load ptr, ptr %23, align 8, !tbaa !5
  %.not5161 = icmp eq ptr %.04460.pre, null
  br i1 %.not5161, label %.loopexit53, label %.lr.ph63

.lr.ph63:                                         ; preds = %22, %28
  %.0446083 = phi ptr [ %.04460.pre, %28 ], [ %24, %22 ]
  %35 = getelementptr inbounds i8, ptr %.04266, i64 24
  br label %36

36:                                               ; preds = %.lr.ph63, %81
  %.04462 = phi ptr [ %.0446083, %.lr.ph63 ], [ %.044, %81 ]
  %37 = tail call ptr @Configlist_add(ptr noundef nonnull %.04462, i32 noundef 0)
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  br label %39

39:                                               ; preds = %69, %36
  %indvars.iv = phi i64 [ %indvars.iv.next, %69 ], [ %16, %36 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %40 = load i32, ptr %11, align 8, !tbaa !13
  %41 = sext i32 %40 to i64
  %42 = icmp slt i64 %indvars.iv.next, %41
  br i1 %42, label %43, label %.loopexit

43:                                               ; preds = %39
  %44 = load ptr, ptr %14, align 8, !tbaa !15
  %45 = getelementptr inbounds ptr, ptr %44, i64 %indvars.iv.next
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 12
  %48 = load i32, ptr %47, align 4, !tbaa !16
  switch i32 %48, label %69 [
    i32 0, label %53
    i32 2, label %.preheader
  ]

.preheader:                                       ; preds = %43
  %49 = getelementptr inbounds i8, ptr %46, i64 88
  %50 = load i32, ptr %49, align 8, !tbaa !24
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader
  %52 = getelementptr inbounds i8, ptr %46, i64 96
  br label %58

53:                                               ; preds = %43
  %54 = load ptr, ptr %38, align 8, !tbaa !25
  %55 = getelementptr inbounds i8, ptr %46, i64 8
  %56 = load i32, ptr %55, align 8, !tbaa !26
  %57 = tail call i32 @SetAdd(ptr noundef %54, i32 noundef %56)
  br label %.loopexit

58:                                               ; preds = %.lr.ph, %58
  %indvars.iv74 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next75, %58 ]
  %59 = load ptr, ptr %38, align 8, !tbaa !25
  %60 = load ptr, ptr %52, align 8, !tbaa !27
  %61 = getelementptr inbounds ptr, ptr %60, i64 %indvars.iv74
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = load i32, ptr %63, align 8, !tbaa !26
  %65 = tail call i32 @SetAdd(ptr noundef %59, i32 noundef %64)
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %66 = load i32, ptr %49, align 8, !tbaa !24
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %indvars.iv.next75, %67
  br i1 %68, label %58, label %.loopexit, !llvm.loop !28

69:                                               ; preds = %43
  %70 = load ptr, ptr %38, align 8, !tbaa !25
  %71 = getelementptr inbounds i8, ptr %46, i64 40
  %72 = load ptr, ptr %71, align 8, !tbaa !30
  %73 = tail call i32 @SetUnion(ptr noundef %70, ptr noundef %72)
  %74 = getelementptr inbounds i8, ptr %46, i64 48
  %75 = load i32, ptr %74, align 8, !tbaa !31
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %.loopexit, label %39, !llvm.loop !32

.loopexit:                                        ; preds = %69, %39, %58, %.preheader, %53
  %77 = trunc i64 %indvars.iv.next to i32
  %78 = load i32, ptr %11, align 8, !tbaa !13
  %79 = icmp eq i32 %78, %77
  br i1 %79, label %80, label %81

80:                                               ; preds = %.loopexit
  tail call void @Plink_add(ptr noundef nonnull %35, ptr noundef %37)
  br label %81

81:                                               ; preds = %.loopexit, %80
  %82 = getelementptr inbounds i8, ptr %.04462, i64 120
  %.044 = load ptr, ptr %82, align 8, !tbaa !5
  %.not51 = icmp eq ptr %.044, null
  br i1 %.not51, label %.loopexit53, label %36, !llvm.loop !33

.loopexit53:                                      ; preds = %81, %26, %28, %13, %7
  %83 = getelementptr inbounds i8, ptr %.04266, i64 56
  %.042 = load ptr, ptr %83, align 8, !tbaa !5
  %.not48 = icmp eq ptr %.042, null
  br i1 %.not48, label %._crit_edge, label %7, !llvm.loop !34

._crit_edge:                                      ; preds = %.loopexit53, %.preheader54
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @Plink_add(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @Configlist_add(ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"config", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !6, i64 56, !6, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !11, i64 24}
!14 = !{!"rule", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !6, i64 120, !6, i64 128}
!15 = !{!14, !6, i64 32}
!16 = !{!17, !11, i64 12}
!17 = !{!"symbol", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !6, i64 40, !11, i64 48, !11, i64 52, !6, i64 56, !11, i64 64, !6, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96}
!18 = !{!19, !6, i64 88}
!19 = !{!"lemon", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !6, i64 72, !11, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !6, i64 280}
!20 = !{!19, !6, i64 224}
!21 = !{!14, !11, i64 48}
!22 = !{!17, !6, i64 0}
!23 = !{!19, !11, i64 80}
!24 = !{!17, !11, i64 88}
!25 = !{!10, !6, i64 16}
!26 = !{!17, !11, i64 8}
!27 = !{!17, !6, i64 96}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!17, !6, i64 40}
!31 = !{!17, !11, i64 48}
!32 = distinct !{!32, !29}
!33 = distinct !{!33, !29}
!34 = distinct !{!34, !29}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass