; LLVM IR from ryanlayer/giggle :: test/unit (test_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.__kstring_t = type { i64, i64, ptr }
%struct.offset_index = type { ptr, ptr, i32, ptr, i32 }
%struct.input_file = type { ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, ptr, ptr, ptr }
%struct.file_id_offset_pairs = type { i64, i64, ptr }
%struct.file_id_offset_pair = type { i32, i64 }
%struct.offset_data_append_data_test_struct_larger = type { i32, float, [20 x i8] }

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@offset_data_size = external dso_local global i32, align 4
@offset_data_append_data = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@__const.test_offset_index_store_load_data.A_offsets = external hidden unnamed_addr constant [1000 x i32], align 16
@__const.test_offset_index_store_load_data.A_data = external hidden unnamed_addr constant [1000 x i32], align 16
@__const.test_offset_index_store_load_data.A_flt = external hidden unnamed_addr constant [1000 x float], align 16

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare ptr @input_file_init(ptr noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

declare ptr @offset_index_init(i32 noundef, ptr noundef) #2

declare void @UnityAssertEqualNumber(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) #2

declare i64 @offset_index_add(ptr noundef, i64 noundef, ptr noundef, i32 noundef) #2

declare void @offset_index_store(ptr noundef) #2

declare void @offset_index_destroy(ptr noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

declare void @input_file_destroy(ptr noundef) #2

declare ptr @offset_index_load(ptr 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 uwtable
declare dso_local void @offset_data_append_data_test_func_larger(ptr noundef, ptr noundef) #6

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #7

; Function Attrs: nounwind uwtable
define dso_local void @test_offset_index_store_load_data() #6 {
  %1 = alloca [1000 x i32], align 16
  %2 = alloca [1000 x i32], align 16
  %3 = alloca [1000 x float], align 16
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca %struct.__kstring_t, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [20 x i8], align 16
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4000, ptr %1) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_offset_index_store_load_data.A_offsets, i64 4000, i1 false)
  call void @llvm.lifetime.start.p0(i64 4000, ptr %2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_offset_index_store_load_data.A_data, i64 4000, i1 false)
  call void @llvm.lifetime.start.p0(i64 4000, ptr %3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_offset_index_store_load_data.A_flt, i64 4000, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store ptr @.str, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call ptr @input_file_init(ptr noundef %20)
  store ptr %21, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 10, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = mul i64 %23, 1
  %25 = call noalias ptr @malloc(i64 noundef %24) #9
  store ptr %25, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 24, i1 false)
  store i32 28, ptr @offset_data_size, align 4, !tbaa !9
  store ptr @offset_data_append_data_test_func_larger, ptr @offset_data_append_data, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %26 = call ptr @offset_index_init(i32 noundef 10, ptr noundef @.str.1)
  store ptr %26, ptr %12, align 8, !tbaa !5
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.offset_index, ptr %27, i32 0, i32 4
  %29 = load i32, ptr %28, align 8, !tbaa !11
  %30 = zext i32 %29 to i64
  call void @UnityAssertEqualNumber(i64 noundef 1, i64 noundef %30, ptr noundef null, i64 noundef 1196, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  br label %31

31:                                               ; preds = %38, %0
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.input_file, ptr %32, i32 0, i32 8
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = call i32 %34(ptr noundef %35, ptr noundef %7, ptr noundef %6, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
  %37 = icmp sge i32 %36, 0
  br i1 %37, label %38, label %43

38:                                               ; preds = %31
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  %40 = load i64, ptr %10, align 8, !tbaa !16
  %41 = call i64 @offset_index_add(ptr noundef %39, i64 noundef %40, ptr noundef %11, i32 noundef 1)
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %13, align 4, !tbaa !9
  br label %31, !llvm.loop !17

43:                                               ; preds = %31
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.offset_index, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !20
  call void @UnityAssertEqualNumber(i64 noundef 1000, i64 noundef %48, ptr noundef null, i64 noundef 1213, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 20, ptr %15) #8
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %134, %43
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = icmp ult i32 %50, 1000
  br i1 %51, label %52, label %137

52:                                               ; preds = %49
  %53 = load i32, ptr %14, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds [1000 x i32], ptr %1, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.offset_index, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  %61 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !22
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.offset_index, ptr %63, i32 0, i32 4
  %65 = load i32, ptr %64, align 8, !tbaa !11
  %66 = icmp eq i32 %65, 0
  %67 = zext i1 %66 to i64
  %68 = select i1 %66, i64 0, i64 12
  %69 = getelementptr inbounds i8, ptr %62, i64 %68
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.offset_index, ptr %72, i32 0, i32 2
  %74 = load i32, ptr %73, align 8, !tbaa !23
  %75 = zext i32 %74 to i64
  %76 = mul i64 %71, %75
  %77 = getelementptr inbounds i8, ptr %69, i64 %76
  %78 = getelementptr inbounds %struct.file_id_offset_pair, ptr %77, i32 0, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !24
  call void @UnityAssertEqualNumber(i64 noundef %57, i64 noundef %79, ptr noundef null, i64 noundef 1219, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.offset_index, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  %83 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %82, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !22
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.offset_index, ptr %85, i32 0, i32 4
  %87 = load i32, ptr %86, align 8, !tbaa !11
  %88 = icmp eq i32 %87, 0
  %89 = zext i1 %88 to i64
  %90 = select i1 %88, i64 0, i64 12
  %91 = getelementptr inbounds i8, ptr %84, i64 %90
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.offset_index, ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 8, !tbaa !23
  %97 = zext i32 %96 to i64
  %98 = mul i64 %93, %97
  %99 = add i64 %98, 16
  %100 = getelementptr inbounds i8, ptr %91, i64 %99
  store ptr %100, ptr %16, align 8, !tbaa !5
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds [1000 x i32], ptr %2, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.offset_data_append_data_test_struct_larger, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 4, !tbaa !26
  %109 = zext i32 %108 to i64
  call void @UnityAssertEqualNumber(i64 noundef %105, i64 noundef %109, ptr noundef null, i64 noundef 1223, i32 noundef 148)
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds [1000 x float], ptr %3, i64 0, i64 %111
  %113 = load float, ptr %112, align 4, !tbaa !29
  %114 = fptosi float %113 to i64
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.offset_data_append_data_test_struct_larger, ptr %115, i32 0, i32 1
  %117 = load float, ptr %116, align 4, !tbaa !30
  %118 = fptosi float %117 to i64
  call void @UnityAssertEqualNumber(i64 noundef %114, i64 noundef %118, ptr noundef null, i64 noundef 1224, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %119 = getelementptr inbounds [20 x i8], ptr %15, i64 0, i64 0
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.offset_data_append_data_test_struct_larger, ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 4, !tbaa !26
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.offset_data_append_data_test_struct_larger, ptr %123, i32 0, i32 1
  %125 = load float, ptr %124, align 4, !tbaa !30
  %126 = fpext float %125 to double
  %127 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %119, ptr noundef @.str.3, i32 noundef %122, double noundef %126) #8
  store i32 %127, ptr %17, align 4, !tbaa !9
  %128 = getelementptr inbounds [20 x i8], ptr %15, i64 0, i64 0
  %129 = load ptr, ptr %16, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.offset_data_append_data_test_struct_larger, ptr %129, i32 0, i32 2
  %131 = getelementptr inbounds [20 x i8], ptr %130, i64 0, i64 0
  %132 = call i32 @strcmp(ptr noundef %128, ptr noundef %131) #10
  %133 = sext i32 %132 to i64
  call void @UnityAssertEqualNumber(i64 noundef 0, i64 noundef %133, ptr noundef null, i64 noundef 1226, i32 noundef 148)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %134

134:                                              ; preds = %52
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = add i32 %135, 1
  store i32 %136, ptr %14, align 4, !tbaa !9
  br label %49, !llvm.loop !31

137:                                              ; preds = %49
  %138 = getelementptr inbounds %struct.__kstring_t, ptr %11, i32 0, i32 2
  %139 = load ptr, ptr %138, align 8, !tbaa !32
  %140 = icmp ne ptr %139, null
  br i1 %140, label %141, label %144

141:                                              ; preds = %137
  %142 = getelementptr inbounds %struct.__kstring_t, ptr %11, i32 0, i32 2
  %143 = load ptr, ptr %142, align 8, !tbaa !32
  call void @free(ptr noundef %143) #8
  br label %144

144:                                              ; preds = %141, %137
  call void @input_file_destroy(ptr noundef %5)
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  call void @offset_index_store(ptr noundef %145)
  call void @offset_index_destroy(ptr noundef %12)
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %146) #8
  %147 = call ptr @offset_index_load(ptr noundef @.str.1)
  store ptr %147, ptr %12, align 8, !tbaa !5
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.offset_index, ptr %148, i32 0, i32 4
  %150 = load i32, ptr %149, align 8, !tbaa !11
  %151 = zext i32 %150 to i64
  call void @UnityAssertEqualNumber(i64 noundef 1, i64 noundef %151, ptr noundef null, i64 noundef 1239, i32 noundef 148)
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %237, %144
  %153 = load i32, ptr %14, align 4, !tbaa !9
  %154 = icmp ult i32 %153, 1000
  br i1 %154, label %155, label %240

155:                                              ; preds = %152
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds [1000 x i32], ptr %1, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.offset_index, ptr %161, i32 0, i32 0
  %163 = load ptr, ptr %162, align 8, !tbaa !19
  %164 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %163, i32 0, i32 2
  %165 = load ptr, ptr %164, align 8, !tbaa !22
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.offset_index, ptr %166, i32 0, i32 4
  %168 = load i32, ptr %167, align 8, !tbaa !11
  %169 = icmp eq i32 %168, 0
  %170 = zext i1 %169 to i64
  %171 = select i1 %169, i64 0, i64 12
  %172 = getelementptr inbounds i8, ptr %165, i64 %171
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.offset_index, ptr %175, i32 0, i32 2
  %177 = load i32, ptr %176, align 8, !tbaa !23
  %178 = zext i32 %177 to i64
  %179 = mul i64 %174, %178
  %180 = getelementptr inbounds i8, ptr %172, i64 %179
  %181 = getelementptr inbounds %struct.file_id_offset_pair, ptr %180, i32 0, i32 1
  %182 = load i64, ptr %181, align 8, !tbaa !24
  call void @UnityAssertEqualNumber(i64 noundef %160, i64 noundef %182, ptr noundef null, i64 noundef 1243, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %183 = load ptr, ptr %12, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.offset_index, ptr %183, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !19
  %186 = getelementptr inbounds %struct.file_id_offset_pairs, ptr %185, i32 0, i32 2
  %187 = load ptr, ptr %186, align 8, !tbaa !22
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.offset_index, ptr %188, i32 0, i32 4
  %190 = load i32, ptr %189, align 8, !tbaa !11
  %191 = icmp eq i32 %190, 0
  %192 = zext i1 %191 to i64
  %193 = select i1 %191, i64 0, i64 12
  %194 = getelementptr inbounds i8, ptr %187, i64 %193
  %195 = load i32, ptr %14, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.offset_index, ptr %197, i32 0, i32 2
  %199 = load i32, ptr %198, align 8, !tbaa !23
  %200 = zext i32 %199 to i64
  %201 = mul i64 %196, %200
  %202 = add i64 %201, 16
  %203 = getelementptr inbounds i8, ptr %194, i64 %202
  store ptr %203, ptr %18, align 8, !tbaa !5
  %204 = load i32, ptr %14, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = getelementptr inbounds [1000 x i32], ptr %2, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = load ptr, ptr %18, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.offset_data_append_data_test_struct_larger, ptr %209, i32 0, i32 0
  %211 = load i32, ptr %210, align 4, !tbaa !26
  %212 = zext i32 %211 to i64
  call void @UnityAssertEqualNumber(i64 noundef %208, i64 noundef %212, ptr noundef null, i64 noundef 1247, i32 noundef 148)
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = getelementptr inbounds [1000 x float], ptr %3, i64 0, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !29
  %217 = fptosi float %216 to i64
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.offset_data_append_data_test_struct_larger, ptr %218, i32 0, i32 1
  %220 = load float, ptr %219, align 4, !tbaa !30
  %221 = fptosi float %220 to i64
  call void @UnityAssertEqualNumber(i64 noundef %217, i64 noundef %221, ptr noundef null, i64 noundef 1248, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %222 = getelementptr inbounds [20 x i8], ptr %15, i64 0, i64 0
  %223 = load ptr, ptr %18, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.offset_data_append_data_test_struct_larger, ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 4, !tbaa !26
  %226 = load ptr, ptr %18, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.offset_data_append_data_test_struct_larger, ptr %226, i32 0, i32 1
  %228 = load float, ptr %227, align 4, !tbaa !30
  %229 = fpext float %228 to double
  %230 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %222, ptr noundef @.str.3, i32 noundef %225, double noundef %229) #8
  store i32 %230, ptr %19, align 4, !tbaa !9
  %231 = getelementptr inbounds [20 x i8], ptr %15, i64 0, i64 0
  %232 = load ptr, ptr %18, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.offset_data_append_data_test_struct_larger, ptr %232, i32 0, i32 2
  %234 = getelementptr inbounds [20 x i8], ptr %233, i64 0, i64 0
  %235 = call i32 @strcmp(ptr noundef %231, ptr noundef %234) #10
  %236 = sext i32 %235 to i64
  call void @UnityAssertEqualNumber(i64 noundef 0, i64 noundef %236, ptr noundef null, i64 noundef 1250, i32 noundef 148)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %237

237:                                              ; preds = %155
  %238 = load i32, ptr %14, align 4, !tbaa !9
  %239 = add i32 %238, 1
  store i32 %239, ptr %14, align 4, !tbaa !9
  br label %152, !llvm.loop !34

240:                                              ; preds = %152
  call void @offset_index_destroy(ptr noundef %12)
  %241 = call i32 @remove(ptr noundef @.str.1) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4000, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4000, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 4000, ptr %1) #8
  ret void
}

; Function Attrs: nounwind
declare i32 @remove(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { 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 = !{!"offset_index", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32}
!13 = !{!14, !6, i64 64}
!14 = !{!"input_file", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !15, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!15 = !{!"long", !7, i64 0}
!16 = !{!15, !15, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!12, !6, i64 0}
!20 = !{!21, !15, i64 0}
!21 = !{!"file_id_offset_pairs", !15, i64 0, !15, i64 8, !6, i64 16}
!22 = !{!21, !6, i64 16}
!23 = !{!12, !10, i64 16}
!24 = !{!25, !15, i64 8}
!25 = !{!"file_id_offset_pair", !10, i64 0, !15, i64 8}
!26 = !{!27, !10, i64 0}
!27 = !{!"offset_data_append_data_test_struct_larger", !10, i64 0, !28, i64 4, !7, i64 8}
!28 = !{!"float", !7, i64 0}
!29 = !{!28, !28, i64 0}
!30 = !{!27, !28, i64 4}
!31 = distinct !{!31, !18}
!32 = !{!33, !6, i64 16}
!33 = !{!"__kstring_t", !15, i64 0, !15, i64 8, !6, i64 16}
!34 = distinct !{!34, !18}


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

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@offset_data_size = external dso_local local_unnamed_addr global i32, align 4
@offset_data_append_data = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@__const.test_offset_index_store_load_data.A_offsets = external hidden unnamed_addr constant [1000 x i32], align 16
@__const.test_offset_index_store_load_data.A_data = external hidden unnamed_addr constant [1000 x i32], align 16
@__const.test_offset_index_store_load_data.A_flt = external hidden unnamed_addr constant [1000 x float], align 16

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

declare ptr @input_file_init(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

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

declare ptr @offset_index_init(i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @UnityAssertEqualNumber(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

declare i64 @offset_index_add(ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @offset_index_store(ptr noundef) local_unnamed_addr #1

declare void @offset_index_destroy(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

declare void @input_file_destroy(ptr noundef) local_unnamed_addr #1

declare ptr @offset_index_load(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #6

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

; Function Attrs: nounwind uwtable
define dso_local void @test_offset_index_store_load_data() local_unnamed_addr #5 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca %struct.__kstring_t, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [20 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %10 = tail call ptr @input_file_init(ptr noundef nonnull @.str) #8
  store ptr %10, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  store i32 10, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %11 = tail call noalias dereferenceable_or_null(10) ptr @malloc(i64 noundef 10) #9
  store ptr %11, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, i8 0, i64 24, i1 false)
  store i32 28, ptr @offset_data_size, align 4, !tbaa !9
  store ptr @offset_data_append_data_test_func_larger, ptr @offset_data_append_data, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %12 = tail call ptr @offset_index_init(i32 noundef 10, ptr noundef nonnull @.str.1) #8
  store ptr %12, ptr %8, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 32
  %14 = load i32, ptr %13, align 8, !tbaa !11
  %15 = zext i32 %14 to i64
  tail call void @UnityAssertEqualNumber(i64 noundef 1, i64 noundef %15, ptr noundef null, i64 noundef 1196, i32 noundef 148) #8
  %16 = getelementptr inbounds i8, ptr %10, i64 64
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = call i32 %17(ptr noundef %10, ptr noundef nonnull %3, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7) #8
  %19 = icmp sgt i32 %18, -1
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %20 = load i64, ptr %6, align 8, !tbaa !16
  %21 = call i64 @offset_index_add(ptr noundef %12, i64 noundef %20, ptr noundef nonnull %7, i32 noundef 1) #8
  %22 = load ptr, ptr %16, align 8, !tbaa !13
  %23 = call i32 %22(ptr noundef nonnull %10, ptr noundef nonnull %3, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7) #8
  %24 = icmp sgt i32 %23, -1
  br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph, %0
  %25 = load ptr, ptr %12, align 8, !tbaa !19
  %26 = load i64, ptr %25, align 8, !tbaa !20
  call void @UnityAssertEqualNumber(i64 noundef 1000, i64 noundef %26, ptr noundef null, i64 noundef 1213, i32 noundef 148) #8
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %9) #8
  %27 = getelementptr inbounds i8, ptr %12, i64 16
  br label %28

28:                                               ; preds = %._crit_edge, %28
  %indvars.iv = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next, %28 ]
  %29 = getelementptr inbounds [1000 x i32], ptr @__const.test_offset_index_store_load_data.A_offsets, i64 0, i64 %indvars.iv
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = load ptr, ptr %12, align 8, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !22
  %35 = load i32, ptr %13, align 8, !tbaa !11
  %36 = icmp eq i32 %35, 0
  %37 = select i1 %36, i64 0, i64 12
  %38 = getelementptr inbounds i8, ptr %34, i64 %37
  %39 = load i32, ptr %27, align 8, !tbaa !23
  %40 = zext i32 %39 to i64
  %41 = mul nuw nsw i64 %indvars.iv, %40
  %42 = getelementptr inbounds i8, ptr %38, i64 %41
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load i64, ptr %43, align 8, !tbaa !24
  call void @UnityAssertEqualNumber(i64 noundef %31, i64 noundef %44, ptr noundef null, i64 noundef 1219, i32 noundef 148) #8
  %45 = load ptr, ptr %12, align 8, !tbaa !19
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  %48 = load i32, ptr %13, align 8, !tbaa !11
  %49 = icmp eq i32 %48, 0
  %50 = select i1 %49, i64 0, i64 12
  %51 = getelementptr inbounds i8, ptr %47, i64 %50
  %52 = load i32, ptr %27, align 8, !tbaa !23
  %53 = zext i32 %52 to i64
  %54 = mul nuw nsw i64 %indvars.iv, %53
  %55 = getelementptr inbounds i8, ptr %51, i64 %54
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %57 = getelementptr inbounds [1000 x i32], ptr @__const.test_offset_index_store_load_data.A_data, i64 0, i64 %indvars.iv
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = load i32, ptr %56, align 4, !tbaa !26
  %61 = zext i32 %60 to i64
  call void @UnityAssertEqualNumber(i64 noundef %59, i64 noundef %61, ptr noundef null, i64 noundef 1223, i32 noundef 148) #8
  %62 = getelementptr inbounds [1000 x float], ptr @__const.test_offset_index_store_load_data.A_flt, i64 0, i64 %indvars.iv
  %63 = load float, ptr %62, align 4, !tbaa !29
  %64 = fptosi float %63 to i64
  %65 = getelementptr inbounds i8, ptr %55, i64 20
  %66 = load float, ptr %65, align 4, !tbaa !30
  %67 = fptosi float %66 to i64
  call void @UnityAssertEqualNumber(i64 noundef %64, i64 noundef %67, ptr noundef null, i64 noundef 1224, i32 noundef 148) #8
  %68 = load i32, ptr %56, align 4, !tbaa !26
  %69 = load float, ptr %65, align 4, !tbaa !30
  %70 = fpext float %69 to double
  %71 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %68, double noundef %70) #8
  %72 = getelementptr inbounds i8, ptr %55, i64 24
  %73 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) %72) #10
  %74 = sext i32 %73 to i64
  call void @UnityAssertEqualNumber(i64 noundef 0, i64 noundef %74, ptr noundef null, i64 noundef 1226, i32 noundef 148) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1000
  br i1 %exitcond.not, label %75, label %28, !llvm.loop !31

75:                                               ; preds = %28
  %76 = getelementptr inbounds i8, ptr %7, i64 16
  %77 = load ptr, ptr %76, align 8, !tbaa !32
  %.not = icmp eq ptr %77, null
  br i1 %.not, label %79, label %78

78:                                               ; preds = %75
  call void @free(ptr noundef nonnull %77) #8
  br label %79

79:                                               ; preds = %78, %75
  call void @input_file_destroy(ptr noundef nonnull %1) #8
  call void @offset_index_store(ptr noundef nonnull %12) #8
  call void @offset_index_destroy(ptr noundef nonnull %8) #8
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %80) #8
  %81 = call ptr @offset_index_load(ptr noundef nonnull @.str.1) #8
  store ptr %81, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 32
  %83 = load i32, ptr %82, align 8, !tbaa !11
  %84 = zext i32 %83 to i64
  call void @UnityAssertEqualNumber(i64 noundef 1, i64 noundef %84, ptr noundef null, i64 noundef 1239, i32 noundef 148) #8
  br label %85

85:                                               ; preds = %79, %85
  %indvars.iv28 = phi i64 [ 0, %79 ], [ %indvars.iv.next29, %85 ]
  %86 = getelementptr inbounds [1000 x i32], ptr @__const.test_offset_index_store_load_data.A_offsets, i64 0, i64 %indvars.iv28
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = getelementptr inbounds i8, ptr %90, i64 16
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  %93 = getelementptr inbounds i8, ptr %89, i64 32
  %94 = load i32, ptr %93, align 8, !tbaa !11
  %95 = icmp eq i32 %94, 0
  %96 = select i1 %95, i64 0, i64 12
  %97 = getelementptr inbounds i8, ptr %92, i64 %96
  %98 = getelementptr inbounds i8, ptr %89, i64 16
  %99 = load i32, ptr %98, align 8, !tbaa !23
  %100 = zext i32 %99 to i64
  %101 = mul nuw nsw i64 %indvars.iv28, %100
  %102 = getelementptr inbounds i8, ptr %97, i64 %101
  %103 = getelementptr inbounds i8, ptr %102, i64 8
  %104 = load i64, ptr %103, align 8, !tbaa !24
  call void @UnityAssertEqualNumber(i64 noundef %88, i64 noundef %104, ptr noundef null, i64 noundef 1243, i32 noundef 148) #8
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = load ptr, ptr %105, align 8, !tbaa !19
  %107 = getelementptr inbounds i8, ptr %106, i64 16
  %108 = load ptr, ptr %107, align 8, !tbaa !22
  %109 = getelementptr inbounds i8, ptr %105, i64 32
  %110 = load i32, ptr %109, align 8, !tbaa !11
  %111 = icmp eq i32 %110, 0
  %112 = select i1 %111, i64 0, i64 12
  %113 = getelementptr inbounds i8, ptr %108, i64 %112
  %114 = getelementptr inbounds i8, ptr %105, i64 16
  %115 = load i32, ptr %114, align 8, !tbaa !23
  %116 = zext i32 %115 to i64
  %117 = mul nuw nsw i64 %indvars.iv28, %116
  %118 = getelementptr inbounds i8, ptr %113, i64 %117
  %119 = getelementptr inbounds i8, ptr %118, i64 16
  %120 = getelementptr inbounds [1000 x i32], ptr @__const.test_offset_index_store_load_data.A_data, i64 0, i64 %indvars.iv28
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = load i32, ptr %119, align 4, !tbaa !26
  %124 = zext i32 %123 to i64
  call void @UnityAssertEqualNumber(i64 noundef %122, i64 noundef %124, ptr noundef null, i64 noundef 1247, i32 noundef 148) #8
  %125 = getelementptr inbounds [1000 x float], ptr @__const.test_offset_index_store_load_data.A_flt, i64 0, i64 %indvars.iv28
  %126 = load float, ptr %125, align 4, !tbaa !29
  %127 = fptosi float %126 to i64
  %128 = getelementptr inbounds i8, ptr %118, i64 20
  %129 = load float, ptr %128, align 4, !tbaa !30
  %130 = fptosi float %129 to i64
  call void @UnityAssertEqualNumber(i64 noundef %127, i64 noundef %130, ptr noundef null, i64 noundef 1248, i32 noundef 148) #8
  %131 = load i32, ptr %119, align 4, !tbaa !26
  %132 = load float, ptr %128, align 4, !tbaa !30
  %133 = fpext float %132 to double
  %134 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %131, double noundef %133) #8
  %135 = getelementptr inbounds i8, ptr %118, i64 24
  %136 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) %135) #10
  %137 = sext i32 %136 to i64
  call void @UnityAssertEqualNumber(i64 noundef 0, i64 noundef %137, ptr noundef null, i64 noundef 1250, i32 noundef 148) #8
  %indvars.iv.next29 = add nuw nsw i64 %indvars.iv28, 1
  %exitcond31.not = icmp eq i64 %indvars.iv.next29, 1000
  br i1 %exitcond31.not, label %138, label %85, !llvm.loop !34

138:                                              ; preds = %85
  call void @offset_index_destroy(ptr noundef nonnull %8) #8
  %139 = call i32 @remove(ptr noundef nonnull @.str.1) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @remove(ptr nocapture noundef readonly) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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: write) }
attributes #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { 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 = !{!"offset_index", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32}
!13 = !{!14, !6, i64 64}
!14 = !{!"input_file", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !15, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!15 = !{!"long", !7, i64 0}
!16 = !{!15, !15, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!12, !6, i64 0}
!20 = !{!21, !15, i64 0}
!21 = !{!"file_id_offset_pairs", !15, i64 0, !15, i64 8, !6, i64 16}
!22 = !{!21, !6, i64 16}
!23 = !{!12, !10, i64 16}
!24 = !{!25, !15, i64 8}
!25 = !{!"file_id_offset_pair", !10, i64 0, !15, i64 8}
!26 = !{!27, !10, i64 0}
!27 = !{!"offset_data_append_data_test_struct_larger", !10, i64 0, !28, i64 4, !7, i64 8}
!28 = !{!"float", !7, i64 0}
!29 = !{!28, !28, i64 0}
!30 = !{!27, !28, i64 4}
!31 = distinct !{!31, !18}
!32 = !{!33, !6, i64 16}
!33 = !{!"__kstring_t", !15, i64 0, !15, i64 8, !6, i64 16}
!34 = distinct !{!34, !18}


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