; LLVM IR from recrsn/tinydb :: database (temp_table_inner_join)

; 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.table_info = type { [32 x i8], i32, [32 x %struct.field], i64 }
%struct.field = type { [32 x i8], i64, i32 }
%struct.table = type { %struct.table_info, i8, ptr, ptr }

; 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 willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @row_size(ptr noundef byval(%struct.table_info) align 8) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @temp_table_inner_join(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.table, ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %struct.table_info, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.table, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds %struct.table_info, ptr %26, i32 0, i32 1
  %28 = load i32, ptr %27, align 8, !tbaa !11
  %29 = add nsw i32 %24, %28
  store i32 %29, ptr %11, align 4, !tbaa !9
  %30 = load i32, ptr %11, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = call ptr @llvm.stacksave.p0()
  store ptr %32, ptr %12, align 8
  %33 = alloca %struct.field, i64 %31, align 16
  store i64 %31, ptr %13, align 8
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.table, ptr %34, i32 0, i32 0
  %36 = getelementptr inbounds %struct.table_info, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds [32 x %struct.field], ptr %36, i64 0, i64 0
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.table, ptr %38, i32 0, i32 0
  %40 = getelementptr inbounds %struct.table_info, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = mul i64 %42, 48
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 8 %37, i64 %43, i1 false)
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.table, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %struct.table_info, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 8, !tbaa !11
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds %struct.field, ptr %33, i64 %48
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.table, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds %struct.table_info, ptr %51, i32 0, i32 2
  %53 = getelementptr inbounds [32 x %struct.field], ptr %52, i64 0, i64 0
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.table, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %struct.table_info, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 8, !tbaa !11
  %58 = sext i32 %57 to i64
  %59 = mul i64 %58, 48
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %49, ptr align 8 %53, i64 %59, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.table, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %struct.table_info, ptr %62, i32 0, i32 3
  %64 = load i64, ptr %63, align 8, !tbaa !16
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.table, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds %struct.table_info, ptr %66, i32 0, i32 3
  %68 = load i64, ptr %67, align 8, !tbaa !16
  %69 = mul i64 %64, %68
  %70 = call ptr @create_temp_table(i32 noundef %60, ptr noundef %33, i64 noundef %69)
  store ptr %70, ptr %14, align 8, !tbaa !5
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.table, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds %struct.table_info, ptr %72, i32 0, i32 3
  store i64 0, ptr %73, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !17
  br label %74

74:                                               ; preds = %161, %4
  %75 = load i64, ptr %15, align 8, !tbaa !17
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.table, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds %struct.table_info, ptr %77, i32 0, i32 3
  %79 = load i64, ptr %78, align 8, !tbaa !16
  %80 = icmp ult i64 %75, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %74
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %164

82:                                               ; preds = %74
  %83 = getelementptr inbounds [2048 x i8], ptr %9, i64 0, i64 0
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load i64, ptr %15, align 8, !tbaa !17
  %86 = load i32, ptr %6, align 4, !tbaa !9
  call void @decode_temp_table_field(ptr noundef %83, ptr noundef %84, i64 noundef %85, i32 noundef %86)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.table, ptr %87, i32 0, i32 0
  %89 = call i64 @row_size(ptr noundef byval(%struct.table_info) align 8 %88)
  %90 = load i64, ptr %15, align 8, !tbaa !17
  %91 = mul i64 %89, %90
  store i64 %91, ptr %17, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store i64 0, ptr %18, align 8, !tbaa !17
  br label %92

92:                                               ; preds = %157, %82
  %93 = load i64, ptr %18, align 8, !tbaa !17
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.table, ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds %struct.table_info, ptr %95, i32 0, i32 3
  %97 = load i64, ptr %96, align 8, !tbaa !16
  %98 = icmp ult i64 %93, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %92
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %160

100:                                              ; preds = %92
  %101 = getelementptr inbounds [2048 x i8], ptr %10, i64 0, i64 0
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load i64, ptr %18, align 8, !tbaa !17
  %104 = load i32, ptr %8, align 4, !tbaa !9
  call void @decode_temp_table_field(ptr noundef %101, ptr noundef %102, i64 noundef %103, i32 noundef %104)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.table, ptr %105, i32 0, i32 0
  %107 = call i64 @row_size(ptr noundef byval(%struct.table_info) align 8 %106)
  %108 = load i64, ptr %18, align 8, !tbaa !17
  %109 = mul i64 %107, %108
  store i64 %109, ptr %19, align 8, !tbaa !17
  %110 = getelementptr inbounds [2048 x i8], ptr %9, i64 0, i64 0
  %111 = getelementptr inbounds [2048 x i8], ptr %10, i64 0, i64 0
  %112 = call i32 @strcmp(ptr noundef %110, ptr noundef %111) #6
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %156

114:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.table, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.table_info, ptr %117, i32 0, i32 3
  %119 = load i64, ptr %118, align 8, !tbaa !16
  %120 = call i64 @mem_offset(i32 noundef %115, ptr noundef %33, i64 noundef %119, i32 noundef 0)
  store i64 %120, ptr %20, align 8, !tbaa !17
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.table, ptr %121, i32 0, i32 3
  %123 = load ptr, ptr %122, align 8, !tbaa !18
  %124 = load i64, ptr %20, align 8, !tbaa !17
  %125 = getelementptr inbounds i8, ptr %123, i64 %124
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.table, ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !18
  %129 = load i64, ptr %17, align 8, !tbaa !17
  %130 = getelementptr inbounds i8, ptr %128, i64 %129
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.table, ptr %131, i32 0, i32 0
  %133 = call i64 @row_size(ptr noundef byval(%struct.table_info) align 8 %132)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %125, ptr align 1 %130, i64 %133, i1 false)
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.table, ptr %134, i32 0, i32 3
  %136 = load ptr, ptr %135, align 8, !tbaa !18
  %137 = load i64, ptr %20, align 8, !tbaa !17
  %138 = getelementptr inbounds i8, ptr %136, i64 %137
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.table, ptr %139, i32 0, i32 0
  %141 = call i64 @row_size(ptr noundef byval(%struct.table_info) align 8 %140)
  %142 = getelementptr inbounds i8, ptr %138, i64 %141
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.table, ptr %143, i32 0, i32 3
  %145 = load ptr, ptr %144, align 8, !tbaa !18
  %146 = load i64, ptr %19, align 8, !tbaa !17
  %147 = getelementptr inbounds i8, ptr %145, i64 %146
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.table, ptr %148, i32 0, i32 0
  %150 = call i64 @row_size(ptr noundef byval(%struct.table_info) align 8 %149)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %142, ptr align 1 %147, i64 %150, i1 false)
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.table, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds %struct.table_info, ptr %152, i32 0, i32 3
  %154 = load i64, ptr %153, align 8, !tbaa !16
  %155 = add i64 %154, 1
  store i64 %155, ptr %153, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %156

156:                                              ; preds = %114, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %157

157:                                              ; preds = %156
  %158 = load i64, ptr %18, align 8, !tbaa !17
  %159 = add i64 %158, 1
  store i64 %159, ptr %18, align 8, !tbaa !17
  br label %92, !llvm.loop !19

160:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %161

161:                                              ; preds = %160
  %162 = load i64, ptr %15, align 8, !tbaa !17
  %163 = add i64 %162, 1
  store i64 %163, ptr %15, align 8, !tbaa !17
  br label %74, !llvm.loop !21

164:                                              ; preds = %81
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %166 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %166)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %9) #5
  ret ptr %165
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind willreturn memory(read) "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 32}
!12 = !{!"", !13, i64 0, !15, i64 1584, !6, i64 1592, !6, i64 1600}
!13 = !{!"", !7, i64 0, !10, i64 32, !7, i64 40, !14, i64 1576}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!12, !14, i64 1576}
!17 = !{!14, !14, i64 0}
!18 = !{!12, !6, i64 1600}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !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.table_info = type { [32 x i8], i32, [32 x %struct.field], i64 }
%struct.field = type { [32 x i8], i64, i32 }

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @row_size(ptr noundef byval(%struct.table_info) align 8) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @temp_table_inner_join(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca [2048 x i8], align 16
  %6 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %2, i64 32
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = add nsw i32 %10, %8
  %12 = zext i32 %11 to i64
  %13 = tail call ptr @llvm.stacksave.p0()
  %14 = alloca %struct.field, i64 %12, align 16
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = load i32, ptr %7, align 8, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = mul nsw i64 %17, 48
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %14, ptr nonnull align 8 %15, i64 %18, i1 false)
  %19 = getelementptr inbounds %struct.field, ptr %14, i64 %17
  %20 = getelementptr inbounds i8, ptr %2, i64 40
  %21 = load i32, ptr %9, align 8, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = mul nsw i64 %22, 48
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %19, ptr nonnull align 8 %20, i64 %23, i1 false)
  %24 = getelementptr inbounds i8, ptr %0, i64 1576
  %25 = load i64, ptr %24, align 8, !tbaa !14
  %26 = getelementptr inbounds i8, ptr %2, i64 1576
  %27 = load i64, ptr %26, align 8, !tbaa !14
  %28 = mul i64 %27, %25
  %29 = call ptr @create_temp_table(i32 noundef %11, ptr noundef nonnull %14, i64 noundef %28)
  %30 = getelementptr inbounds i8, ptr %29, i64 1576
  store i64 0, ptr %30, align 8, !tbaa !14
  %31 = load i64, ptr %24, align 8, !tbaa !14
  %.not = icmp eq i64 %31, 0
  br i1 %.not, label %._crit_edge48, label %.lr.ph47

.lr.ph47:                                         ; preds = %4
  %32 = getelementptr inbounds i8, ptr %29, i64 1600
  %33 = getelementptr inbounds i8, ptr %0, i64 1600
  %34 = getelementptr inbounds i8, ptr %2, i64 1600
  br label %35

._crit_edge48:                                    ; preds = %._crit_edge, %4
  call void @llvm.stackrestore.p0(ptr %13)
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #5
  ret ptr %29

35:                                               ; preds = %.lr.ph47, %._crit_edge
  %.045 = phi i64 [ 0, %.lr.ph47 ], [ %39, %._crit_edge ]
  call void @decode_temp_table_field(ptr noundef nonnull %5, ptr noundef nonnull %0, i64 noundef %.045, i32 noundef %1)
  %36 = call i64 @row_size(ptr noundef nonnull byval(%struct.table_info) align 8 %0)
  %37 = mul i64 %36, %.045
  %38 = load i64, ptr %26, align 8, !tbaa !14
  %.not49 = icmp eq i64 %38, 0
  br i1 %.not49, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %63, %35
  %39 = add nuw i64 %.045, 1
  %40 = load i64, ptr %24, align 8, !tbaa !14
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %35, label %._crit_edge48, !llvm.loop !15

.lr.ph:                                           ; preds = %35, %63
  %.04344 = phi i64 [ %64, %63 ], [ 0, %35 ]
  call void @decode_temp_table_field(ptr noundef nonnull %6, ptr noundef nonnull %2, i64 noundef %.04344, i32 noundef %3)
  %42 = call i64 @row_size(ptr noundef nonnull byval(%struct.table_info) align 8 %2)
  %43 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) %6) #6
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %63

45:                                               ; preds = %.lr.ph
  %46 = mul i64 %42, %.04344
  %47 = load i64, ptr %30, align 8, !tbaa !14
  %48 = call i64 @mem_offset(i32 noundef %11, ptr noundef nonnull %14, i64 noundef %47, i32 noundef 0)
  %49 = load ptr, ptr %32, align 8, !tbaa !17
  %50 = getelementptr inbounds i8, ptr %49, i64 %48
  %51 = load ptr, ptr %33, align 8, !tbaa !17
  %52 = getelementptr inbounds i8, ptr %51, i64 %37
  %53 = call i64 @row_size(ptr noundef byval(%struct.table_info) align 8 %0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %50, ptr align 1 %52, i64 %53, i1 false)
  %54 = load ptr, ptr %32, align 8, !tbaa !17
  %55 = getelementptr inbounds i8, ptr %54, i64 %48
  %56 = call i64 @row_size(ptr noundef byval(%struct.table_info) align 8 %0)
  %57 = getelementptr inbounds i8, ptr %55, i64 %56
  %58 = load ptr, ptr %34, align 8, !tbaa !17
  %59 = getelementptr inbounds i8, ptr %58, i64 %46
  %60 = call i64 @row_size(ptr noundef nonnull byval(%struct.table_info) align 8 %2)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %57, ptr align 1 %59, i64 %60, i1 false)
  %61 = load i64, ptr %30, align 8, !tbaa !14
  %62 = add i64 %61, 1
  store i64 %62, ptr %30, align 8, !tbaa !14
  br label %63

63:                                               ; preds = %45, %.lr.ph
  %64 = add nuw i64 %.04344, 1
  %65 = load i64, ptr %26, align 8, !tbaa !14
  %66 = icmp ult i64 %64, %65
  br i1 %66, label %.lr.ph, label %._crit_edge, !llvm.loop !18
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 32}
!6 = !{!"", !7, i64 0, !12, i64 1584, !13, i64 1592, !13, i64 1600}
!7 = !{!"", !8, i64 0, !10, i64 32, !8, i64 40, !11, i64 1576}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_Bool", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !11, i64 1576}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !13, i64 1600}
!18 = distinct !{!18, !16}


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