; LLVM IR from mbheinen/bpa-ipf-tsp :: libgui (dmgr)

; 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.DBID = type { ptr, i64, i64, i64, i64, i64, i64, ptr, i64 }
%struct.schem = type { i8, i8, i64, i64, i64, ptr }

@.str.32 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [20 x i8], align 1

declare i32 @printf(ptr noundef, ...) #0

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @print_string(ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @db_show_node(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  store i64 %4, ptr %11, align 8, !tbaa !9
  store i64 %5, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %24 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %24, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %25 = load i64, ptr %9, align 8, !tbaa !9
  %26 = load i64, ptr %10, align 8, !tbaa !9
  %27 = add nsw i64 %25, %26
  store i64 %27, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.DBID, ptr %28, i32 0, i32 5
  %30 = load i64, ptr %29, align 8, !tbaa !11
  store i64 %30, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %31 = load i64, ptr %19, align 8, !tbaa !9
  %32 = add i64 %31, 8
  store i64 %32, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  store ptr %34, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %35 = load ptr, ptr %21, align 8, !tbaa !5
  %36 = load i64, ptr %19, align 8, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %35, i64 %36
  %38 = load i64, ptr %37, align 8, !tbaa !9
  store i64 %38, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %39 = load i64, ptr %22, align 8, !tbaa !9
  %40 = mul i64 %39, 8
  store i64 %40, ptr %23, align 8, !tbaa !9
  %41 = load i64, ptr %22, align 8, !tbaa !9
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.DBID, ptr %42, i32 0, i32 6
  %44 = load i64, ptr %43, align 8, !tbaa !13
  %45 = icmp sgt i64 %41, %44
  br i1 %45, label %46, label %50

46:                                               ; preds = %6
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.DBID, ptr %47, i32 0, i32 6
  %49 = load i64, ptr %48, align 8, !tbaa !13
  store i64 %49, ptr %22, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %46, %6
  %51 = load i64, ptr %14, align 8, !tbaa !9
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.DBID, ptr %52, i32 0, i32 4
  %54 = load i64, ptr %53, align 8, !tbaa !14
  %55 = icmp sgt i64 %51, %54
  br i1 %55, label %56, label %61

56:                                               ; preds = %50
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.DBID, ptr %57, i32 0, i32 4
  %59 = load i64, ptr %58, align 8, !tbaa !14
  %60 = add nsw i64 %59, 1
  store i64 %60, ptr %14, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %56, %50
  %62 = load ptr, ptr %21, align 8, !tbaa !5
  %63 = ptrtoint ptr %62 to i64
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i64 noundef %63)
  br label %65

65:                                               ; preds = %216, %61
  %66 = load i64, ptr %13, align 8, !tbaa !9
  %67 = load i64, ptr %14, align 8, !tbaa !9
  %68 = icmp slt i64 %66, %67
  br i1 %68, label %69, label %219

69:                                               ; preds = %65
  %70 = load i64, ptr %13, align 8, !tbaa !9
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, i64 noundef %70)
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.DBID, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  %75 = load i64, ptr %13, align 8, !tbaa !9
  %76 = getelementptr inbounds [0 x %struct.schem], ptr %74, i64 0, i64 %75
  %77 = getelementptr inbounds %struct.schem, ptr %76, i32 0, i32 0
  %78 = load i8, ptr %77, align 8, !tbaa !16
  %79 = sext i8 %78 to i32
  %80 = icmp ne i32 %79, 110
  br i1 %80, label %81, label %115

81:                                               ; preds = %69
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.DBID, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = load i64, ptr %13, align 8, !tbaa !9
  %86 = getelementptr inbounds [0 x %struct.schem], ptr %84, i64 0, i64 %85
  %87 = getelementptr inbounds %struct.schem, ptr %86, i32 0, i32 4
  %88 = load i64, ptr %87, align 8, !tbaa !18
  store i64 %88, ptr %18, align 8, !tbaa !9
  %89 = load ptr, ptr %21, align 8, !tbaa !5
  %90 = load i64, ptr %20, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %89, i64 %90
  %92 = load i64, ptr %18, align 8, !tbaa !9
  %93 = load i64, ptr %23, align 8, !tbaa !9
  %94 = mul nsw i64 %92, %93
  %95 = getelementptr inbounds i8, ptr %91, i64 %94
  store ptr %95, ptr %17, align 8, !tbaa !5
  %96 = load i64, ptr %18, align 8, !tbaa !9
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, i64 noundef %96)
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %110, %81
  %99 = load i64, ptr %15, align 8, !tbaa !9
  %100 = load i64, ptr %22, align 8, !tbaa !9
  %101 = icmp sle i64 %99, %100
  br i1 %101, label %102, label %113

102:                                              ; preds = %98
  %103 = load i64, ptr %15, align 8, !tbaa !9
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = ptrtoint ptr %105 to i64
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, i64 noundef %103, i64 noundef %106)
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = getelementptr inbounds ptr, ptr %108, i32 1
  store ptr %109, ptr %17, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %102
  %111 = load i64, ptr %15, align 8, !tbaa !9
  %112 = add nsw i64 %111, 1
  store i64 %112, ptr %15, align 8, !tbaa !9
  br label %98, !llvm.loop !19

113:                                              ; preds = %98
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
  br label %115

115:                                              ; preds = %113, %69
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.DBID, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !15
  %119 = load i64, ptr %13, align 8, !tbaa !9
  %120 = getelementptr inbounds [0 x %struct.schem], ptr %118, i64 0, i64 %119
  %121 = getelementptr inbounds %struct.schem, ptr %120, i32 0, i32 3
  %122 = load i64, ptr %121, align 8, !tbaa !21
  store i64 %122, ptr %18, align 8, !tbaa !9
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.DBID, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !15
  %126 = load i64, ptr %13, align 8, !tbaa !9
  %127 = getelementptr inbounds [0 x %struct.schem], ptr %125, i64 0, i64 %126
  %128 = getelementptr inbounds %struct.schem, ptr %127, i32 0, i32 1
  %129 = load i8, ptr %128, align 1, !tbaa !22
  %130 = sext i8 %129 to i32
  switch i32 %130, label %197 [
    i32 105, label %131
    i32 108, label %137
    i32 102, label %184
    i32 100, label %191
  ]

131:                                              ; preds = %115
  %132 = load ptr, ptr %21, align 8, !tbaa !5
  %133 = load i64, ptr %18, align 8, !tbaa !9
  %134 = getelementptr inbounds i8, ptr %132, i64 %133
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.37, i64 noundef %135)
  br label %215

137:                                              ; preds = %115
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.DBID, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !15
  %141 = load i64, ptr %13, align 8, !tbaa !9
  %142 = getelementptr inbounds [0 x %struct.schem], ptr %140, i64 0, i64 %141
  %143 = getelementptr inbounds %struct.schem, ptr %142, i32 0, i32 2
  %144 = load i64, ptr %143, align 8, !tbaa !23
  store i64 %144, ptr %15, align 8, !tbaa !9
  %145 = load i64, ptr %15, align 8, !tbaa !9
  %146 = load i64, ptr %12, align 8, !tbaa !9
  %147 = icmp sgt i64 %145, %146
  br i1 %147, label %148, label %150

148:                                              ; preds = %137
  %149 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %149, ptr %15, align 8, !tbaa !9
  br label %150

150:                                              ; preds = %148, %137
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = load i64, ptr %18, align 8, !tbaa !9
  %153 = mul nsw i64 %152, 3
  %154 = sub i64 0, %153
  %155 = getelementptr inbounds ptr, ptr %151, i64 %154
  store ptr %155, ptr %16, align 8, !tbaa !5
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = getelementptr inbounds ptr, ptr %156, i64 -1
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  store ptr %158, ptr %17, align 8, !tbaa !5
  %159 = load i64, ptr %18, align 8, !tbaa !9
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = ptrtoint ptr %160 to i64
  %162 = load ptr, ptr %17, align 8, !tbaa !5
  %163 = ptrtoint ptr %162 to i64
  %164 = load ptr, ptr %16, align 8, !tbaa !5
  %165 = getelementptr inbounds ptr, ptr %164, i64 -2
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = ptrtoint ptr %166 to i64
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  %169 = getelementptr inbounds ptr, ptr %168, i64 -3
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  %171 = ptrtoint ptr %170 to i64
  %172 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, i64 noundef %159, i64 noundef %161, i64 noundef %163, i64 noundef %167, i64 noundef %171)
  br label %173

173:                                              ; preds = %177, %150
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = load ptr, ptr %16, align 8, !tbaa !5
  %176 = icmp ne ptr %174, %175
  br i1 %176, label %177, label %183

177:                                              ; preds = %173
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.39)
  %179 = load i64, ptr %15, align 8, !tbaa !9
  call void @ll_show_link(ptr noundef %17, i64 noundef 0, i64 noundef %179)
  %180 = load ptr, ptr %17, align 8, !tbaa !5
  %181 = getelementptr inbounds ptr, ptr %180, i64 -1
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  store ptr %182, ptr %17, align 8, !tbaa !5
  br label %173, !llvm.loop !24

183:                                              ; preds = %173
  br label %215

184:                                              ; preds = %115
  %185 = load ptr, ptr %21, align 8, !tbaa !5
  %186 = load i64, ptr %18, align 8, !tbaa !9
  %187 = getelementptr inbounds i8, ptr %185, i64 %186
  %188 = load float, ptr %187, align 4, !tbaa !25
  %189 = fpext float %188 to double
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, double noundef %189)
  br label %215

191:                                              ; preds = %115
  %192 = load ptr, ptr %21, align 8, !tbaa !5
  %193 = load i64, ptr %18, align 8, !tbaa !9
  %194 = getelementptr inbounds i8, ptr %192, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !27
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str.41, double noundef %195)
  br label %215

197:                                              ; preds = %115
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.DBID, ptr %198, i32 0, i32 0
  %200 = load ptr, ptr %199, align 8, !tbaa !15
  %201 = load i64, ptr %13, align 8, !tbaa !9
  %202 = getelementptr inbounds [0 x %struct.schem], ptr %200, i64 0, i64 %201
  %203 = getelementptr inbounds %struct.schem, ptr %202, i32 0, i32 2
  %204 = load i64, ptr %203, align 8, !tbaa !23
  store i64 %204, ptr %15, align 8, !tbaa !9
  %205 = load i64, ptr %15, align 8, !tbaa !9
  %206 = load i64, ptr %11, align 8, !tbaa !9
  %207 = icmp sgt i64 %205, %206
  br i1 %207, label %208, label %210

208:                                              ; preds = %197
  %209 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %209, ptr %15, align 8, !tbaa !9
  br label %210

210:                                              ; preds = %208, %197
  %211 = load ptr, ptr %21, align 8, !tbaa !5
  %212 = load i64, ptr %18, align 8, !tbaa !9
  %213 = getelementptr inbounds i8, ptr %211, i64 %212
  %214 = load i64, ptr %15, align 8, !tbaa !9
  call void @print_string(ptr noundef %213, i64 noundef %214)
  br label %215

215:                                              ; preds = %210, %191, %184, %183, %131
  br label %216

216:                                              ; preds = %215
  %217 = load i64, ptr %13, align 8, !tbaa !9
  %218 = add nsw i64 %217, 1
  store i64 %218, ptr %13, align 8, !tbaa !9
  br label %65, !llvm.loop !29

219:                                              ; preds = %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void
}

attributes #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 40}
!12 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !6, i64 56, !10, i64 64}
!13 = !{!12, !10, i64 48}
!14 = !{!12, !10, i64 32}
!15 = !{!12, !6, i64 0}
!16 = !{!17, !7, i64 0}
!17 = !{!"schem", !7, i64 0, !7, i64 1, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32}
!18 = !{!17, !10, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!17, !10, i64 16}
!22 = !{!17, !7, i64 1}
!23 = !{!17, !10, i64 8}
!24 = distinct !{!24, !20}
!25 = !{!26, !26, i64 0}
!26 = !{!"float", !7, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !7, i64 0}
!29 = distinct !{!29, !20}


; 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.schem = type { i8, i8, i64, i64, i64, ptr }

@.str.32 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [20 x i8], align 1

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

; 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
declare dso_local void @ll_show_link(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @print_string(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @db_show_node(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5) local_unnamed_addr #2 {
  %7 = alloca ptr, align 8
  %8 = add nsw i64 %3, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = load ptr, ptr %1, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %11, i64 %10
  %13 = load i64, ptr %12, align 8, !tbaa !12
  %14 = shl i64 %13, 3
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  %16 = load i64, ptr %15, align 8, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = load i64, ptr %17, align 8, !tbaa !14
  %19 = icmp sgt i64 %8, %18
  %20 = add nsw i64 %18, 1
  %.065 = select i1 %19, i64 %20, i64 %8
  %21 = ptrtoint ptr %11 to i64
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, i64 noundef %21)
  %23 = icmp sgt i64 %.065, %2
  br i1 %23, label %.lr.ph86, label %._crit_edge87

.lr.ph86:                                         ; preds = %6
  %spec.select = tail call i64 @llvm.smin.i64(i64 %13, i64 %16)
  %24 = getelementptr i8, ptr %12, i64 8
  %.not7579 = icmp slt i64 %spec.select, 1
  br label %25

25:                                               ; preds = %.lr.ph86, %.loopexit
  %.084 = phi i64 [ %2, %.lr.ph86 ], [ %88, %.loopexit ]
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, i64 noundef %.084)
  %27 = load ptr, ptr %0, align 8, !tbaa !15
  %28 = getelementptr inbounds [0 x %struct.schem], ptr %27, i64 0, i64 %.084
  %29 = load i8, ptr %28, align 8, !tbaa !16
  %.not = icmp eq i8 %29, 110
  br i1 %.not, label %44, label %30

30:                                               ; preds = %25
  %31 = getelementptr inbounds i8, ptr %28, i64 24
  %32 = load i64, ptr %31, align 8, !tbaa !18
  %33 = mul nsw i64 %14, %32
  %34 = getelementptr inbounds i8, ptr %24, i64 %33
  store ptr %34, ptr %7, align 8, !tbaa !11
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, i64 noundef %32)
  br i1 %.not7579, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %30
  %.pre = load ptr, ptr %7, align 8, !tbaa !11
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %36 = phi ptr [ %41, %.lr.ph ], [ %.pre, %.lr.ph.preheader ]
  %.06680 = phi i64 [ %42, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = ptrtoint ptr %37 to i64
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, i64 noundef %.06680, i64 noundef %38)
  %40 = load ptr, ptr %7, align 8, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  store ptr %41, ptr %7, align 8, !tbaa !11
  %42 = add nuw i64 %.06680, 1
  %exitcond.not = icmp eq i64 %.06680, %spec.select
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph, %30
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36)
  %.pre89 = load ptr, ptr %0, align 8, !tbaa !15
  br label %44

44:                                               ; preds = %._crit_edge, %25
  %45 = phi ptr [ %.pre89, %._crit_edge ], [ %27, %25 ]
  %46 = getelementptr inbounds [0 x %struct.schem], ptr %45, i64 0, i64 %.084
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %48 = load i64, ptr %47, align 8, !tbaa !21
  %49 = getelementptr inbounds i8, ptr %46, i64 1
  %50 = load i8, ptr %49, align 1, !tbaa !22
  switch i8 %50, label %84 [
    i8 105, label %51
    i8 108, label %55
    i8 102, label %75
    i8 100, label %80
  ]

51:                                               ; preds = %44
  %52 = getelementptr inbounds i8, ptr %11, i64 %48
  %53 = load i64, ptr %52, align 8, !tbaa !12
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, i64 noundef %53)
  br label %.loopexit

55:                                               ; preds = %44
  %56 = getelementptr inbounds i8, ptr %46, i64 8
  %57 = load i64, ptr %56, align 8, !tbaa !23
  %spec.select77 = call i64 @llvm.smin.i64(i64 %57, i64 %5)
  %.idx = mul i64 %48, -24
  %58 = getelementptr inbounds i8, ptr %11, i64 %.idx
  %59 = getelementptr inbounds i8, ptr %58, i64 -8
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  store ptr %60, ptr %7, align 8, !tbaa !11
  %61 = ptrtoint ptr %58 to i64
  %62 = ptrtoint ptr %60 to i64
  %63 = getelementptr inbounds i8, ptr %58, i64 -16
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = ptrtoint ptr %64 to i64
  %66 = getelementptr inbounds i8, ptr %58, i64 -24
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = ptrtoint ptr %67 to i64
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, i64 noundef %48, i64 noundef %61, i64 noundef %62, i64 noundef %65, i64 noundef %68)
  %70 = load ptr, ptr %7, align 8, !tbaa !11
  %.not7681 = icmp eq ptr %70, %58
  br i1 %.not7681, label %.loopexit, label %.lr.ph83

.lr.ph83:                                         ; preds = %55, %.lr.ph83
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39)
  call void @ll_show_link(ptr noundef nonnull %7, i64 noundef 0, i64 noundef %spec.select77)
  %72 = load ptr, ptr %7, align 8, !tbaa !11
  %73 = getelementptr inbounds i8, ptr %72, i64 -8
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  store ptr %74, ptr %7, align 8, !tbaa !11
  %.not76 = icmp eq ptr %74, %58
  br i1 %.not76, label %.loopexit, label %.lr.ph83, !llvm.loop !24

75:                                               ; preds = %44
  %76 = getelementptr inbounds i8, ptr %11, i64 %48
  %77 = load float, ptr %76, align 4, !tbaa !25
  %78 = fpext float %77 to double
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, double noundef %78)
  br label %.loopexit

80:                                               ; preds = %44
  %81 = getelementptr inbounds i8, ptr %11, i64 %48
  %82 = load double, ptr %81, align 8, !tbaa !27
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, double noundef %82)
  br label %.loopexit

84:                                               ; preds = %44
  %85 = getelementptr inbounds i8, ptr %46, i64 8
  %86 = load i64, ptr %85, align 8, !tbaa !23
  %spec.select78 = call i64 @llvm.smin.i64(i64 %86, i64 %4)
  %87 = getelementptr inbounds i8, ptr %11, i64 %48
  call void @print_string(ptr noundef %87, i64 noundef %spec.select78)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph83, %55, %51, %75, %80, %84
  %88 = add i64 %.084, 1
  %exitcond88.not = icmp eq i64 %88, %.065
  br i1 %exitcond88.not, label %._crit_edge87, label %25, !llvm.loop !29

._crit_edge87:                                    ; preds = %.loopexit, %6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !10, i64 40}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !10, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 48}
!14 = !{!6, !10, i64 32}
!15 = !{!6, !7, i64 0}
!16 = !{!17, !8, i64 0}
!17 = !{!"schem", !8, i64 0, !8, i64 1, !10, i64 8, !10, i64 16, !10, i64 24, !7, i64 32}
!18 = !{!17, !10, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!17, !10, i64 16}
!22 = !{!17, !8, i64 1}
!23 = !{!17, !10, i64 8}
!24 = distinct !{!24, !20}
!25 = !{!26, !26, i64 0}
!26 = !{!"float", !8, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !8, i64 0}
!29 = distinct !{!29, !20}


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