; LLVM IR from OpenDiS/OpenDiS :: core/pydis/c/util (Parse)

; 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.ParamList_t = type { i32, ptr }
%struct.VarData_t = type { [256 x i8], i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 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: nounwind uwtable
define dso_local void @WriteParam(ptr noundef %0, i32 noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca [256 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 256, ptr %16) #3
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = icmp sge i32 %17, 0
  br i1 %18, label %19, label %23

19:                                               ; preds = %3
  %20 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %20, ptr %9, align 4, !tbaa !9
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %10, align 4, !tbaa !9
  br label %27

23:                                               ; preds = %3
  store i32 0, ptr %9, align 4, !tbaa !9
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.ParamList_t, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !11
  store i32 %26, ptr %10, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %23, %19
  %28 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %28, ptr %7, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %205, %27
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %33, label %208

33:                                               ; preds = %29
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ParamList_t, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds %struct.VarData_t, ptr %36, i64 %38
  %40 = getelementptr inbounds %struct.VarData_t, ptr %39, i32 0, i32 3
  %41 = load i32, ptr %40, align 8, !tbaa !14
  %42 = and i32 %41, 1
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %48

44:                                               ; preds = %33
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = icmp slt i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %44
  br label %205

48:                                               ; preds = %44, %33
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ParamList_t, ptr %49, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = load i32, ptr %7, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %struct.VarData_t, ptr %51, i64 %53
  %55 = getelementptr inbounds %struct.VarData_t, ptr %54, i32 0, i32 3
  %56 = load i32, ptr %55, align 8, !tbaa !14
  %57 = and i32 %56, 4
  %58 = icmp eq i32 %57, 4
  br i1 %58, label %59, label %71

59:                                               ; preds = %48
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ParamList_t, ptr %60, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %struct.VarData_t, ptr %62, i64 %64
  %66 = getelementptr inbounds %struct.VarData_t, ptr %65, i32 0, i32 3
  %67 = load i32, ptr %66, align 8, !tbaa !14
  %68 = and i32 %67, 8
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %59
  br label %205

71:                                               ; preds = %59, %48
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ParamList_t, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.VarData_t, ptr %74, i64 %76
  %78 = getelementptr inbounds %struct.VarData_t, ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 8, !tbaa !16
  store i32 %79, ptr %11, align 4, !tbaa !9
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ParamList_t, ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  %83 = load i32, ptr %7, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %struct.VarData_t, ptr %82, i64 %84
  %86 = getelementptr inbounds %struct.VarData_t, ptr %85, i32 0, i32 2
  %87 = load i32, ptr %86, align 4, !tbaa !17
  store i32 %87, ptr %12, align 4, !tbaa !9
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = icmp sgt i32 %88, 1
  br i1 %89, label %90, label %91

90:                                               ; preds = %71
  store ptr @.str, ptr %13, align 8, !tbaa !5
  store ptr @.str.1, ptr %14, align 8, !tbaa !5
  store ptr @.str.2, ptr %15, align 8, !tbaa !5
  br label %92

91:                                               ; preds = %71
  store ptr @.str.3, ptr %13, align 8, !tbaa !5
  store ptr @.str.3, ptr %14, align 8, !tbaa !5
  store ptr @.str.3, ptr %15, align 8, !tbaa !5
  br label %92

92:                                               ; preds = %91, %90
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 4
  br i1 %94, label %95, label %108

95:                                               ; preds = %92
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ParamList_t, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !13
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds %struct.VarData_t, ptr %99, i64 %101
  %103 = getelementptr inbounds %struct.VarData_t, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds [256 x i8], ptr %103, i64 0, i64 0
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.4, ptr noundef %104, ptr noundef %105, ptr noundef %106) #3
  br label %108

108:                                              ; preds = %95, %92
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %198, %108
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %113, label %201

113:                                              ; preds = %109
  %114 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %114, label %197 [
    i32 2, label %115
    i32 1, label %131
    i32 3, label %147
    i32 4, label %186
  ]

115:                                              ; preds = %113
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ParamList_t, ptr %117, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !13
  %120 = load i32, ptr %7, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds %struct.VarData_t, ptr %119, i64 %121
  %123 = getelementptr inbounds %struct.VarData_t, ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !18
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %124, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.5, i32 noundef %128, ptr noundef %129) #3
  br label %197

131:                                              ; preds = %113
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.ParamList_t, ptr %133, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8, !tbaa !13
  %136 = load i32, ptr %7, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.VarData_t, ptr %135, i64 %137
  %139 = getelementptr inbounds %struct.VarData_t, ptr %138, i32 0, i32 4
  %140 = load ptr, ptr %139, align 8, !tbaa !18
  %141 = load i32, ptr %8, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds double, ptr %140, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !19
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.6, double noundef %144, ptr noundef %145) #3
  br label %197

147:                                              ; preds = %113
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ParamList_t, ptr %148, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8, !tbaa !13
  %151 = load i32, ptr %7, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds %struct.VarData_t, ptr %150, i64 %152
  %154 = getelementptr inbounds %struct.VarData_t, ptr %153, i32 0, i32 2
  %155 = load i32, ptr %154, align 4, !tbaa !17
  %156 = icmp eq i32 %155, 1
  br i1 %156, label %157, label %169

157:                                              ; preds = %147
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ParamList_t, ptr %159, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !13
  %162 = load i32, ptr %7, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds %struct.VarData_t, ptr %161, i64 %163
  %165 = getelementptr inbounds %struct.VarData_t, ptr %164, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !18
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str.7, ptr noundef %166, ptr noundef %167) #3
  br label %185

169:                                              ; preds = %147
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.ParamList_t, ptr %171, i32 0, i32 1
  %173 = load ptr, ptr %172, align 8, !tbaa !13
  %174 = load i32, ptr %7, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds %struct.VarData_t, ptr %173, i64 %175
  %177 = getelementptr inbounds %struct.VarData_t, ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !18
  %179 = load i32, ptr %8, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds ptr, ptr %178, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.7, ptr noundef %182, ptr noundef %183) #3
  br label %185

185:                                              ; preds = %169, %157
  br label %197

186:                                              ; preds = %113
  %187 = load ptr, ptr %6, align 8, !tbaa !5
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.ParamList_t, ptr %188, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8, !tbaa !13
  %191 = load i32, ptr %7, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds %struct.VarData_t, ptr %190, i64 %192
  %194 = getelementptr inbounds %struct.VarData_t, ptr %193, i32 0, i32 0
  %195 = getelementptr inbounds [256 x i8], ptr %194, i64 0, i64 0
  %196 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.8, ptr noundef %195) #3
  br label %197

197:                                              ; preds = %186, %185, %131, %115, %113
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %8, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %8, align 4, !tbaa !9
  br label %109, !llvm.loop !21

201:                                              ; preds = %109
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load ptr, ptr %15, align 8, !tbaa !5
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %202, ptr noundef @.str.9, ptr noundef %203) #3
  br label %205

205:                                              ; preds = %201, %70, %47
  %206 = load i32, ptr %7, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %7, align 4, !tbaa !9
  br label %29, !llvm.loop !23

208:                                              ; preds = %29
  call void @llvm.lifetime.end.p0(i64 256, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  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 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !10, i64 264}
!15 = !{!"", !7, i64 0, !10, i64 256, !10, i64 260, !10, i64 264, !6, i64 272}
!16 = !{!15, !10, i64 256}
!17 = !{!15, !10, i64 260}
!18 = !{!15, !6, i64 272}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


; 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"

%struct.VarData_t = type { [256 x i8], i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local void @WriteParam(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef %2) local_unnamed_addr #0 {
  %4 = icmp sgt i32 %1, -1
  br i1 %4, label %.thread, label %7

.thread:                                          ; preds = %3
  %5 = add nuw nsw i32 %1, 1
  %6 = zext nneg i32 %1 to i64
  br label %.lr.ph76

7:                                                ; preds = %3
  %8 = load i32, ptr %0, align 8, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph76, label %._crit_edge77

.lr.ph76:                                         ; preds = %.thread, %7
  %.060100 = phi i64 [ %6, %.thread ], [ 0, %7 ]
  %.06199 = phi i32 [ %5, %.thread ], [ %8, %7 ]
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = icmp slt i32 %1, 0
  br label %12

12:                                               ; preds = %.lr.ph76, %59
  %indvars.iv94 = phi i64 [ %.060100, %.lr.ph76 ], [ %indvars.iv.next95, %59 ]
  %13 = load ptr, ptr %10, align 8, !tbaa !11
  %14 = getelementptr inbounds %struct.VarData_t, ptr %13, i64 %indvars.iv94, i32 3
  %15 = load i32, ptr %14, align 8, !tbaa !12
  %16 = and i32 %15, 1
  %17 = icmp ne i32 %16, 0
  %or.cond = and i1 %11, %17
  %18 = and i32 %15, 12
  %or.cond65 = icmp eq i32 %18, 4
  %or.cond66 = or i1 %or.cond65, %or.cond
  br i1 %or.cond66, label %59, label %19

19:                                               ; preds = %12
  %20 = getelementptr inbounds %struct.VarData_t, ptr %13, i64 %indvars.iv94
  %21 = getelementptr inbounds i8, ptr %20, i64 256
  %22 = load i32, ptr %21, align 8, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %20, i64 260
  %24 = load i32, ptr %23, align 4, !tbaa !15
  %25 = icmp sgt i32 %24, 1
  %.str..str.3 = select i1 %25, ptr @.str, ptr @.str.3
  %.str.2..str.3 = select i1 %25, ptr @.str.2, ptr @.str.3
  %.not63 = icmp eq i32 %22, 4
  br i1 %.not63, label %28, label %26

26:                                               ; preds = %19
  %.str.1..str.3 = select i1 %25, ptr @.str.1, ptr @.str.3
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %2, ptr noundef nonnull @.str.4, ptr noundef nonnull %20, ptr noundef nonnull %.str.1..str.3, ptr noundef nonnull %.str..str.3) #2
  br label %28

28:                                               ; preds = %26, %19
  %29 = icmp sgt i32 %24, 0
  br i1 %29, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %28
  switch i32 %22, label %._crit_edge [
    i32 2, label %.lr.ph.split.us.preheader
    i32 1, label %.lr.ph.split.us68.preheader
    i32 3, label %.lr.ph.split.us70.preheader
    i32 4, label %.lr.ph.split.us72
  ]

.lr.ph.split.us70.preheader:                      ; preds = %.lr.ph
  %wide.trip.count = zext nneg i32 %24 to i64
  br label %.lr.ph.split.us70

.lr.ph.split.us68.preheader:                      ; preds = %.lr.ph
  %wide.trip.count87 = zext nneg i32 %24 to i64
  br label %.lr.ph.split.us68

.lr.ph.split.us.preheader:                        ; preds = %.lr.ph
  %wide.trip.count92 = zext nneg i32 %24 to i64
  br label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.lr.ph.split.us.preheader, %.lr.ph.split.us
  %indvars.iv89 = phi i64 [ 0, %.lr.ph.split.us.preheader ], [ %indvars.iv.next90, %.lr.ph.split.us ]
  %30 = load ptr, ptr %10, align 8, !tbaa !11
  %31 = getelementptr inbounds %struct.VarData_t, ptr %30, i64 %indvars.iv94, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %33 = getelementptr inbounds i32, ptr %32, i64 %indvars.iv89
  %34 = load i32, ptr %33, align 4, !tbaa !17
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %2, ptr noundef nonnull @.str.5, i32 noundef %34, ptr noundef nonnull %.str..str.3) #2
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next90, %wide.trip.count92
  br i1 %exitcond93.not, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !18

.lr.ph.split.us68:                                ; preds = %.lr.ph.split.us68.preheader, %.lr.ph.split.us68
  %indvars.iv84 = phi i64 [ 0, %.lr.ph.split.us68.preheader ], [ %indvars.iv.next85, %.lr.ph.split.us68 ]
  %36 = load ptr, ptr %10, align 8, !tbaa !11
  %37 = getelementptr inbounds %struct.VarData_t, ptr %36, i64 %indvars.iv94, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  %39 = getelementptr inbounds double, ptr %38, i64 %indvars.iv84
  %40 = load double, ptr %39, align 8, !tbaa !20
  %41 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %2, ptr noundef nonnull @.str.6, double noundef %40, ptr noundef nonnull %.str..str.3) #2
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %exitcond88.not = icmp eq i64 %indvars.iv.next85, %wide.trip.count87
  br i1 %exitcond88.not, label %._crit_edge, label %.lr.ph.split.us68, !llvm.loop !18

.lr.ph.split.us70:                                ; preds = %.lr.ph.split.us70.preheader, %52
  %indvars.iv = phi i64 [ 0, %.lr.ph.split.us70.preheader ], [ %indvars.iv.next, %52 ]
  %42 = load ptr, ptr %10, align 8, !tbaa !11
  %43 = getelementptr inbounds %struct.VarData_t, ptr %42, i64 %indvars.iv94
  %44 = getelementptr inbounds i8, ptr %43, i64 260
  %45 = load i32, ptr %44, align 4, !tbaa !15
  %46 = icmp eq i32 %45, 1
  %47 = getelementptr inbounds i8, ptr %43, i64 272
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  br i1 %46, label %52, label %49

49:                                               ; preds = %.lr.ph.split.us70
  %50 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv
  %51 = load ptr, ptr %50, align 8, !tbaa !22
  br label %52

52:                                               ; preds = %.lr.ph.split.us70, %49
  %.sink = phi ptr [ %51, %49 ], [ %48, %.lr.ph.split.us70 ]
  %53 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %2, ptr noundef nonnull @.str.7, ptr noundef %.sink, ptr noundef nonnull %.str..str.3) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond83.not, label %._crit_edge, label %.lr.ph.split.us70, !llvm.loop !18

.lr.ph.split.us72:                                ; preds = %.lr.ph, %.lr.ph.split.us72
  %.05967.us73 = phi i32 [ %57, %.lr.ph.split.us72 ], [ 0, %.lr.ph ]
  %54 = load ptr, ptr %10, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct.VarData_t, ptr %54, i64 %indvars.iv94
  %56 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %2, ptr noundef nonnull @.str.8, ptr noundef %55) #2
  %57 = add nuw nsw i32 %.05967.us73, 1
  %exitcond.not = icmp eq i32 %57, %24
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split.us72, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph.split.us72, %52, %.lr.ph.split.us68, %.lr.ph.split.us, %.lr.ph, %28
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %2, ptr noundef nonnull @.str.9, ptr noundef nonnull %.str.2..str.3) #2
  br label %59

59:                                               ; preds = %12, %._crit_edge
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %60 = trunc nuw i64 %indvars.iv.next95 to i32
  %61 = icmp sgt i32 %.06199, %60
  br i1 %61, label %12, label %._crit_edge77, !llvm.loop !23

._crit_edge77:                                    ; preds = %59, %7
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

attributes #0 = { nofree 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 #1 = { nofree 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 }

!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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !7, i64 264}
!13 = !{!"", !8, i64 0, !7, i64 256, !7, i64 260, !7, i64 264, !10, i64 272}
!14 = !{!13, !7, i64 256}
!15 = !{!13, !7, i64 260}
!16 = !{!13, !10, i64 272}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !8, i64 0}
!22 = !{!10, !10, i64 0}
!23 = distinct !{!23, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass