; LLVM IR from ryanlayer/giggle :: src (offset_index)

; 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.offset_index = type { ptr, ptr, i32, ptr, i32 }
%struct.file_id_offset_pairs = type { i64, i64, ptr }
%struct.file_id_offset_pair = type { i32, i64 }

@offset_data_append_data = external dso_local global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [38 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: noreturn
declare void @err(i32 noundef, ptr noundef, ...) #1

; Function Attrs: nounwind
declare i32 @ftruncate(i32 noundef, i64 noundef) #2

; Function Attrs: nounwind
declare i32 @fileno(ptr noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @offset_index_add(ptr noundef %0, i64 noundef %1, ptr noundef %2, i32 noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.offset_index, ptr %11, i32 0, i32 0
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  %14 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %13, i32 0, i32 0
  %15 = load i64, ptr %14, align 8, !tbaa !15
  store i64 %15, ptr %9, align 8, !tbaa !9
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.offset_index, ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  %19 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !15
  %21 = add i64 %20, 1
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.offset_index, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %24, i32 0, i32 0
  store i64 %21, ptr %25, align 8, !tbaa !15
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.offset_index, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %28, i32 0, i32 0
  %30 = load i64, ptr %29, align 8, !tbaa !15
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.offset_index, ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %33, i32 0, i32 1
  %35 = load i64, ptr %34, align 8, !tbaa !17
  %36 = icmp eq i64 %30, %35
  br i1 %36, label %37, label %123

37:                                               ; preds = %4
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.offset_index, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !13
  %41 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %40, i32 0, i32 1
  %42 = load i64, ptr %41, align 8, !tbaa !17
  %43 = mul i64 %42, 2
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.offset_index, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %46, i32 0, i32 1
  store i64 %43, ptr %47, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.offset_index, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !13
  %51 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %50, i32 0, i32 2
  %52 = load ptr, ptr %51, align 8, !tbaa !18
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.offset_index, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %55, i32 0, i32 0
  %57 = load i64, ptr %56, align 8, !tbaa !15
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.offset_index, ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 8, !tbaa !19
  %61 = zext i32 %60 to i64
  %62 = mul i64 %57, %61
  %63 = add i64 12, %62
  %64 = call i32 @munmap(ptr noundef %52, i64 noundef %63) #4
  store i32 %64, ptr %10, align 4, !tbaa !11
  %65 = load i32, ptr %10, align 4, !tbaa !11
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %71

67:                                               ; preds = %37
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.offset_index, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.6, ptr noundef %70) #5
  unreachable

71:                                               ; preds = %37
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.offset_index, ptr %72, i32 0, i32 3
  %74 = load ptr, ptr %73, align 8, !tbaa !21
  %75 = call i32 @fileno(ptr noundef %74) #4
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.offset_index, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  %79 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %78, i32 0, i32 1
  %80 = load i64, ptr %79, align 8, !tbaa !17
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.offset_index, ptr %81, i32 0, i32 2
  %83 = load i32, ptr %82, align 8, !tbaa !19
  %84 = zext i32 %83 to i64
  %85 = mul i64 %80, %84
  %86 = add i64 12, %85
  %87 = call i32 @ftruncate(i32 noundef %75, i64 noundef %86) #4
  store i32 %87, ptr %10, align 4, !tbaa !11
  %88 = load i32, ptr %10, align 4, !tbaa !11
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %94

90:                                               ; preds = %71
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.offset_index, ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !20
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.7, ptr noundef %93) #5
  unreachable

94:                                               ; preds = %71
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.offset_index, ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !13
  %98 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %97, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !17
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.offset_index, ptr %100, i32 0, i32 2
  %102 = load i32, ptr %101, align 8, !tbaa !19
  %103 = zext i32 %102 to i64
  %104 = mul i64 %99, %103
  %105 = add i64 12, %104
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.offset_index, ptr %106, i32 0, i32 3
  %108 = load ptr, ptr %107, align 8, !tbaa !21
  %109 = call i32 @fileno(ptr noundef %108) #4
  %110 = call ptr @mmap(ptr noundef null, i64 noundef %105, i32 noundef 3, i32 noundef 1, i32 noundef %109, i64 noundef 0) #4
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.offset_index, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !13
  %114 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %113, i32 0, i32 2
  store ptr %110, ptr %114, align 8, !tbaa !18
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.offset_index, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !13
  %118 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %117, i32 0, i32 2
  %119 = load ptr, ptr %118, align 8, !tbaa !18
  %120 = icmp eq ptr %119, inttoptr (i64 -1 to ptr)
  br i1 %120, label %121, label %122

121:                                              ; preds = %94
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.5) #5
  unreachable

122:                                              ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %123

123:                                              ; preds = %122, %4
  %124 = load i64, ptr %6, align 8, !tbaa !9
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.offset_index, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !13
  %128 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %127, i32 0, i32 2
  %129 = load ptr, ptr %128, align 8, !tbaa !18
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.offset_index, ptr %130, i32 0, i32 4
  %132 = load i32, ptr %131, align 8, !tbaa !22
  %133 = icmp eq i32 %132, 0
  %134 = zext i1 %133 to i64
  %135 = select i1 %133, i64 0, i64 12
  %136 = getelementptr inbounds i8, ptr %129, i64 %135
  %137 = load i64, ptr %9, align 8, !tbaa !9
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.offset_index, ptr %138, i32 0, i32 2
  %140 = load i32, ptr %139, align 8, !tbaa !19
  %141 = zext i32 %140 to i64
  %142 = mul i64 %137, %141
  %143 = getelementptr inbounds i8, ptr %136, i64 %142
  %144 = getelementptr inbounds %struct.file_id_offset_pair, ptr %143, i32 0, i32 1
  store i64 %124, ptr %144, align 8, !tbaa !23
  %145 = load i32, ptr %8, align 4, !tbaa !11
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.offset_index, ptr %146, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8, !tbaa !13
  %149 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %148, i32 0, i32 2
  %150 = load ptr, ptr %149, align 8, !tbaa !18
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.offset_index, ptr %151, i32 0, i32 4
  %153 = load i32, ptr %152, align 8, !tbaa !22
  %154 = icmp eq i32 %153, 0
  %155 = zext i1 %154 to i64
  %156 = select i1 %154, i64 0, i64 12
  %157 = getelementptr inbounds i8, ptr %150, i64 %156
  %158 = load i64, ptr %9, align 8, !tbaa !9
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.offset_index, ptr %159, i32 0, i32 2
  %161 = load i32, ptr %160, align 8, !tbaa !19
  %162 = zext i32 %161 to i64
  %163 = mul i64 %158, %162
  %164 = getelementptr inbounds i8, ptr %157, i64 %163
  %165 = getelementptr inbounds %struct.file_id_offset_pair, ptr %164, i32 0, i32 0
  store i32 %145, ptr %165, align 8, !tbaa !25
  %166 = load ptr, ptr @offset_data_append_data, align 8, !tbaa !5
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %191

168:                                              ; preds = %123
  %169 = load ptr, ptr @offset_data_append_data, align 8, !tbaa !5
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.offset_index, ptr %170, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !13
  %173 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %172, i32 0, i32 2
  %174 = load ptr, ptr %173, align 8, !tbaa !18
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.offset_index, ptr %175, i32 0, i32 4
  %177 = load i32, ptr %176, align 8, !tbaa !22
  %178 = icmp eq i32 %177, 0
  %179 = zext i1 %178 to i64
  %180 = select i1 %178, i64 0, i64 12
  %181 = getelementptr inbounds i8, ptr %174, i64 %180
  %182 = load i64, ptr %9, align 8, !tbaa !9
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.offset_index, ptr %183, i32 0, i32 2
  %185 = load i32, ptr %184, align 8, !tbaa !19
  %186 = zext i32 %185 to i64
  %187 = mul i64 %182, %186
  %188 = add i64 %187, 16
  %189 = getelementptr inbounds i8, ptr %181, i64 %188
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  call void %169(ptr noundef %189, ptr noundef %190)
  br label %191

191:                                              ; preds = %168, %123
  %192 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret i64 %192
}

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

!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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"offset_index", !6, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !12, i64 32}
!15 = !{!16, !10, i64 0}
!16 = !{!"file_id_offset_pairs", !10, i64 0, !10, i64 8, !6, i64 16}
!17 = !{!16, !10, i64 8}
!18 = !{!16, !6, i64 16}
!19 = !{!14, !12, i64 16}
!20 = !{!14, !6, i64 8}
!21 = !{!14, !6, i64 24}
!22 = !{!14, !12, i64 32}
!23 = !{!24, !10, i64 8}
!24 = !{!"file_id_offset_pair", !12, i64 0, !10, i64 8}
!25 = !{!24, !12, i64 0}


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

@offset_data_append_data = external dso_local local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [38 x i8], align 1

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

; Function Attrs: nounwind
declare i32 @ftruncate(i32 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fileno(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @munmap(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i64 @offset_index_add(ptr nocapture noundef readonly %0, i64 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = load i64, ptr %5, align 8, !tbaa !11
  %7 = add i64 %6, 1
  store i64 %7, ptr %5, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %5, i64 8
  %9 = load i64, ptr %8, align 8, !tbaa !14
  %10 = icmp eq i64 %7, %9
  br i1 %10, label %11, label %._crit_edge

._crit_edge:                                      ; preds = %4
  %.phi.trans.insert = getelementptr inbounds i8, ptr %5, i64 16
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  br label %54

11:                                               ; preds = %4
  %12 = shl i64 %7, 1
  store i64 %12, ptr %8, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %5, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = load i32, ptr %15, align 8, !tbaa !16
  %17 = zext i32 %16 to i64
  %18 = mul i64 %7, %17
  %19 = add i64 %18, 12
  %20 = tail call i32 @munmap(ptr noundef %14, i64 noundef %19) #4
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %24, label %21

21:                                               ; preds = %11
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !17
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.6, ptr noundef %23) #5
  unreachable

24:                                               ; preds = %11
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %27 = tail call i32 @fileno(ptr noundef %26) #4
  %28 = load ptr, ptr %0, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !14
  %31 = load i32, ptr %15, align 8, !tbaa !16
  %32 = zext i32 %31 to i64
  %33 = mul i64 %30, %32
  %34 = add i64 %33, 12
  %35 = tail call i32 @ftruncate(i32 noundef %27, i64 noundef %34) #4
  %.not38 = icmp eq i32 %35, 0
  br i1 %.not38, label %39, label %36

36:                                               ; preds = %24
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.7, ptr noundef %38) #5
  unreachable

39:                                               ; preds = %24
  %40 = load ptr, ptr %0, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load i64, ptr %41, align 8, !tbaa !14
  %43 = load i32, ptr %15, align 8, !tbaa !16
  %44 = zext i32 %43 to i64
  %45 = mul i64 %42, %44
  %46 = add i64 %45, 12
  %47 = load ptr, ptr %25, align 8, !tbaa !18
  %48 = tail call i32 @fileno(ptr noundef %47) #4
  %49 = tail call ptr @mmap(ptr noundef null, i64 noundef %46, i32 noundef 3, i32 noundef 1, i32 noundef %48, i64 noundef 0) #4
  %50 = load ptr, ptr %0, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  store ptr %49, ptr %51, align 8, !tbaa !15
  %52 = icmp eq ptr %49, inttoptr (i64 -1 to ptr)
  br i1 %52, label %53, label %54

53:                                               ; preds = %39
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.5) #5
  unreachable

54:                                               ; preds = %._crit_edge, %39
  %55 = phi ptr [ %49, %39 ], [ %.pre, %._crit_edge ]
  %56 = getelementptr inbounds i8, ptr %0, i64 32
  %57 = load i32, ptr %56, align 8, !tbaa !19
  %58 = icmp eq i32 %57, 0
  %59 = select i1 %58, i64 0, i64 12
  %60 = getelementptr inbounds i8, ptr %55, i64 %59
  %61 = getelementptr inbounds i8, ptr %0, i64 16
  %62 = load i32, ptr %61, align 8, !tbaa !16
  %63 = zext i32 %62 to i64
  %64 = mul i64 %6, %63
  %65 = getelementptr inbounds i8, ptr %60, i64 %64
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  store i64 %1, ptr %66, align 8, !tbaa !20
  store i32 %3, ptr %65, align 8, !tbaa !22
  %67 = load ptr, ptr @offset_data_append_data, align 8, !tbaa !23
  %.not39 = icmp eq ptr %67, null
  br i1 %.not39, label %70, label %68

68:                                               ; preds = %54
  %69 = getelementptr i8, ptr %65, i64 16
  tail call void %67(ptr noundef %69, ptr noundef %2) #4
  br label %70

70:                                               ; preds = %68, %54
  ret i64 %6
}

attributes #0 = { noreturn "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 "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 = { 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"offset_index", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"file_id_offset_pairs", !13, i64 0, !13, i64 8, !7, i64 16}
!13 = !{!"long", !8, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !7, i64 16}
!16 = !{!6, !10, i64 16}
!17 = !{!6, !7, i64 8}
!18 = !{!6, !7, i64 24}
!19 = !{!6, !10, i64 32}
!20 = !{!21, !13, i64 8}
!21 = !{!"file_id_offset_pair", !10, i64 0, !13, i64 8}
!22 = !{!21, !10, i64 0}
!23 = !{!7, !7, i64 0}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass