; LLVM IR from jspd-group/pegit :: src (commit)

; 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.commit_options = type { %struct.strbuf, %struct.strbuf, i64, i64, i64, i64, i8, i8, i8 }
%struct.strbuf = type { i64, i64, ptr }
%struct.pack_file_cache = type { ptr, %struct.strbuf }
%struct.basic_delta_result = type { i64, i64, i64, ptr, %struct.strbuf_list, %struct.strbuf_list }
%struct.strbuf_list = type { ptr, ptr, i64 }
%struct.SHA_CTX = type { [5 x i32], [80 x i32], i32, i32, i32 }
%struct.cache_object = type { %struct.cache, %struct.cache_index }
%struct.cache = type { i32, %struct.strbuf, ptr, i8 }
%struct.cache_index = type { i64, %struct.author, ptr, i8, ptr, ptr }
%struct.author = type { %struct.strbuf, %struct.strbuf }
%struct.cache_index_entry_list = type { i64, i64, %struct.strbuf, %struct.stat, i32, [20 x i16], ptr }
%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }
%struct.index = type { [256 x i8], %struct.stat, i8, i64, i64, i64 }
%struct.index_list = type { ptr, ptr }

@cm_opts = external dso_local global %struct.commit_options, align 8
@stdout = external global ptr, align 8
@__const.transfer_staged_data.cache = external hidden unnamed_addr constant %struct.pack_file_cache, align 8
@__const.transfer_staged_data.temp = external hidden unnamed_addr constant %struct.strbuf, align 8
@__const.transfer_staged_data.comp = external hidden unnamed_addr constant %struct.strbuf, align 8
@__const.transfer_staged_data.old = external hidden unnamed_addr constant %struct.strbuf, align 8
@.str.32 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [2 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: inlinehint nounwind uwtable
declare hidden void @strbuf_addbuf(ptr noundef, ptr noundef) #2

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

declare void @strbuf_release(ptr noundef) #0

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

; 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) #5

; Function Attrs: nounwind uwtable
declare dso_local ptr @find_file_index_list(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local ptr @get_last_node(ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cache_pack_file(ptr noundef) #2

declare void @strbuf_add(ptr noundef, ptr noundef, i64 noundef) #0

declare ptr @make_new_index(ptr noundef, i64 noundef, i64 noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
define dso_local void @transfer_staged_data(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.pack_file_cache, align 8
  %10 = alloca %struct.strbuf, align 8
  %11 = alloca %struct.strbuf, align 8
  %12 = alloca %struct.strbuf, align 8
  %13 = alloca i64, align 8
  %14 = alloca %struct.basic_delta_result, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %struct.SHA_CTX, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.cache_object, ptr %18, i32 0, i32 1
  %20 = getelementptr inbounds %struct.cache_index, ptr %19, i32 0, i32 4
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  store ptr %21, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 @__const.transfer_staged_data.cache, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 @__const.transfer_staged_data.temp, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 @__const.transfer_staged_data.comp, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 @__const.transfer_staged_data.old, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 352, ptr %17) #6
  call void @SHA1_Init(ptr noundef %17)
  %22 = call i32 @cache_pack_file(ptr noundef %9)
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = call ptr @get_last_node(ptr noundef %24)
  store ptr %25, ptr %15, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.pack_file_cache, ptr %9, i32 0, i32 1
  %27 = getelementptr inbounds %struct.strbuf, ptr %26, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !18
  store i64 %28, ptr %13, align 8, !tbaa !20
  %29 = call i32 @set_timer(i32 noundef 200)
  br label %30

30:                                               ; preds = %232, %155, %127, %3
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %236

33:                                               ; preds = %30
  %34 = load ptr, ptr @stdout, align 8, !tbaa !5
  %35 = call i32 @fflush(ptr noundef %34)
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.cache_index_entry_list, ptr %38, i32 0, i32 2
  %40 = getelementptr inbounds %struct.strbuf, ptr %39, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !21
  %42 = call ptr @find_file_index_list(ptr noundef %37, ptr noundef %41)
  store ptr %42, ptr %8, align 8, !tbaa !5
  %43 = load i8, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 7), align 1, !tbaa !25, !range !27, !noundef !28
  %44 = trunc i8 %43 to i1
  br i1 %44, label %45, label %46

45:                                               ; preds = %33
  call void @basic_delta_result_init(ptr noundef %14, ptr noundef null)
  br label %46

46:                                               ; preds = %45, %33
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %131, label %49

49:                                               ; preds = %46
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.cache_index_entry_list, ptr %50, i32 0, i32 2
  %52 = getelementptr inbounds %struct.strbuf, ptr %51, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = load i64, ptr %13, align 8, !tbaa !20
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.cache_index_entry_list, ptr %55, i32 0, i32 1
  %57 = load i64, ptr %56, align 8, !tbaa !29
  %58 = call ptr @make_new_index(ptr noundef %53, i64 noundef %54, i64 noundef %57, i8 noundef zeroext 0)
  store ptr %58, ptr %8, align 8, !tbaa !5
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.cache_object, ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %struct.cache, ptr %60, i32 0, i32 1
  %62 = getelementptr inbounds %struct.strbuf, ptr %61, i32 0, i32 2
  %63 = load ptr, ptr %62, align 8, !tbaa !30
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.cache_index_entry_list, ptr %64, i32 0, i32 0
  %66 = load i64, ptr %65, align 8, !tbaa !31
  %67 = getelementptr inbounds i8, ptr %63, i64 %66
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.cache_index_entry_list, ptr %68, i32 0, i32 1
  %70 = load i64, ptr %69, align 8, !tbaa !29
  call void @strbuf_add(ptr noundef %10, ptr noundef %67, i64 noundef %70)
  %71 = load i8, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 7), align 1, !tbaa !25, !range !27, !noundef !28
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %79

73:                                               ; preds = %49
  %74 = call i64 @count_lines(ptr noundef %10)
  %75 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 2), align 8, !tbaa !32
  %76 = add i64 %75, %74
  store i64 %76, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 2), align 8, !tbaa !32
  %77 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 5), align 8, !tbaa !33
  %78 = add i64 %77, 1
  store i64 %78, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 5), align 8, !tbaa !33
  br label %79

79:                                               ; preds = %73, %49
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.index, ptr %80, i32 0, i32 3
  store i64 0, ptr %81, align 8, !tbaa !34
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.index, ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.cache_index_entry_list, ptr %84, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %83, ptr align 8 %85, i64 144, i1 false), !tbaa.struct !36
  %86 = getelementptr inbounds %struct.pack_file_cache, ptr %9, i32 0, i32 1
  call void @strbuf_addbuf(ptr noundef %86, ptr noundef %10)
  %87 = getelementptr inbounds %struct.strbuf, ptr %10, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !39
  %89 = getelementptr inbounds %struct.strbuf, ptr %10, i32 0, i32 1
  %90 = load i64, ptr %89, align 8, !tbaa !40
  %91 = trunc i64 %90 to i32
  call void @SHA1_Update(ptr noundef %17, ptr noundef %88, i32 noundef %91)
  call void @strbuf_release(ptr noundef %10)
  %92 = getelementptr inbounds %struct.pack_file_cache, ptr %9, i32 0, i32 1
  %93 = getelementptr inbounds %struct.strbuf, ptr %92, i32 0, i32 1
  %94 = load i64, ptr %93, align 8, !tbaa !18
  store i64 %94, ptr %13, align 8, !tbaa !20
  %95 = call noalias ptr @malloc(i64 noundef 16) #7
  store ptr %95, ptr %16, align 8, !tbaa !5
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.index_list, ptr %97, i32 0, i32 0
  store ptr %96, ptr %98, align 8, !tbaa !41
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.index_list, ptr %99, i32 0, i32 1
  store ptr null, ptr %100, align 8, !tbaa !43
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.index, ptr %101, i32 0, i32 2
  store i8 2, ptr %102, align 8, !tbaa !44
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %107

105:                                              ; preds = %79
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  call void @insert_index_list(ptr noundef %15, ptr noundef %106)
  br label %111

107:                                              ; preds = %79
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %108, ptr %109, align 8, !tbaa !5
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %110, ptr %15, align 8, !tbaa !5
  br label %111

111:                                              ; preds = %107, %105
  %112 = load i8, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 6), align 8, !tbaa !45, !range !27, !noundef !28
  %113 = trunc i8 %112 to i1
  br i1 %113, label %114, label %127

114:                                              ; preds = %111
  %115 = load i8, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 7), align 1, !tbaa !25, !range !27, !noundef !28
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %127

117:                                              ; preds = %114
  %118 = call i32 (...) @got_signal()
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %127

120:                                              ; preds = %117
  %121 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 2), align 8, !tbaa !32
  %122 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 3), align 8, !tbaa !46
  %123 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 4), align 8, !tbaa !47
  %124 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 5), align 8, !tbaa !33
  %125 = add i64 %123, %124
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i64 noundef %121, i64 noundef %122, i64 noundef %125)
  call void (...) @reset_signal()
  br label %127

127:                                              ; preds = %120, %117, %114, %111
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.cache_index_entry_list, ptr %128, i32 0, i32 6
  %130 = load ptr, ptr %129, align 8, !tbaa !48
  store ptr %130, ptr %7, align 8, !tbaa !5
  br label %30, !llvm.loop !49

131:                                              ; preds = %46
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.cache_index_entry_list, ptr %132, i32 0, i32 4
  %134 = load i32, ptr %133, align 8, !tbaa !51
  %135 = icmp eq i32 %134, 2048
  br i1 %135, label %136, label %159

136:                                              ; preds = %131
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.index, ptr %137, i32 0, i32 4
  store i64 0, ptr %138, align 8, !tbaa !52
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.index, ptr %139, i32 0, i32 5
  store i64 0, ptr %140, align 8, !tbaa !53
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.index, ptr %141, i32 0, i32 2
  store i8 8, ptr %142, align 8, !tbaa !44
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.index, ptr %143, i32 0, i32 1
  call void @SHA1_Update(ptr noundef %17, ptr noundef %144, i32 noundef 144)
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = call i32 @get_file_content(ptr noundef %9, ptr noundef %12, ptr noundef %145)
  %147 = load i8, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 7), align 1, !tbaa !25, !range !27, !noundef !28
  %148 = trunc i8 %147 to i1
  br i1 %148, label %149, label %155

149:                                              ; preds = %136
  %150 = call i64 @count_lines(ptr noundef %12)
  %151 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 3), align 8, !tbaa !46
  %152 = add i64 %151, %150
  store i64 %152, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 3), align 8, !tbaa !46
  %153 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 4), align 8, !tbaa !47
  %154 = add i64 %153, 1
  store i64 %154, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 4), align 8, !tbaa !47
  br label %155

155:                                              ; preds = %149, %136
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.cache_index_entry_list, ptr %156, i32 0, i32 6
  %158 = load ptr, ptr %157, align 8, !tbaa !48
  store ptr %158, ptr %7, align 8, !tbaa !5
  call void @strbuf_release(ptr noundef %12)
  br label %30, !llvm.loop !49

159:                                              ; preds = %131
  br label %160

160:                                              ; preds = %159
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = call i32 @get_file_content(ptr noundef %9, ptr noundef %12, ptr noundef %161)
  %163 = load i64, ptr %13, align 8, !tbaa !20
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.index, ptr %164, i32 0, i32 4
  store i64 %163, ptr %165, align 8, !tbaa !52
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.cache_index_entry_list, ptr %166, i32 0, i32 1
  %168 = load i64, ptr %167, align 8, !tbaa !29
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.index, ptr %169, i32 0, i32 5
  store i64 %168, ptr %170, align 8, !tbaa !53
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.index, ptr %171, i32 0, i32 1
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.cache_index_entry_list, ptr %173, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %172, ptr align 8 %174, i64 144, i1 false), !tbaa.struct !36
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.index, ptr %175, i32 0, i32 2
  store i8 1, ptr %176, align 8, !tbaa !44
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.index, ptr %177, i32 0, i32 3
  %179 = load i64, ptr %178, align 8, !tbaa !34
  %180 = add i64 %179, 1
  store i64 %180, ptr %178, align 8, !tbaa !34
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.cache_object, ptr %181, i32 0, i32 0
  %183 = getelementptr inbounds %struct.cache, ptr %182, i32 0, i32 1
  %184 = getelementptr inbounds %struct.strbuf, ptr %183, i32 0, i32 2
  %185 = load ptr, ptr %184, align 8, !tbaa !30
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.cache_index_entry_list, ptr %186, i32 0, i32 0
  %188 = load i64, ptr %187, align 8, !tbaa !31
  %189 = getelementptr inbounds i8, ptr %185, i64 %188
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.cache_index_entry_list, ptr %190, i32 0, i32 1
  %192 = load i64, ptr %191, align 8, !tbaa !29
  call void @strbuf_add(ptr noundef %10, ptr noundef %189, i64 noundef %192)
  %193 = load i8, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 7), align 1, !tbaa !25, !range !27, !noundef !28
  %194 = trunc i8 %193 to i1
  br i1 %194, label %195, label %207

195:                                              ; preds = %160
  %196 = call zeroext i1 @strbuf_delta_minimal(ptr noundef null, ptr noundef %14, ptr noundef %12, ptr noundef %10)
  %197 = getelementptr inbounds %struct.basic_delta_result, ptr %14, i32 0, i32 0
  %198 = load i64, ptr %197, align 8, !tbaa !54
  %199 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 2), align 8, !tbaa !32
  %200 = add i64 %199, %198
  store i64 %200, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 2), align 8, !tbaa !32
  %201 = getelementptr inbounds %struct.basic_delta_result, ptr %14, i32 0, i32 1
  %202 = load i64, ptr %201, align 8, !tbaa !57
  %203 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 3), align 8, !tbaa !46
  %204 = add i64 %203, %202
  store i64 %204, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 3), align 8, !tbaa !46
  %205 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 4), align 8, !tbaa !47
  %206 = add i64 %205, 1
  store i64 %206, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 4), align 8, !tbaa !47
  br label %207

207:                                              ; preds = %195, %160
  %208 = getelementptr inbounds %struct.pack_file_cache, ptr %9, i32 0, i32 1
  call void @strbuf_addbuf(ptr noundef %208, ptr noundef %10)
  %209 = getelementptr inbounds %struct.strbuf, ptr %10, i32 0, i32 2
  %210 = load ptr, ptr %209, align 8, !tbaa !39
  %211 = getelementptr inbounds %struct.strbuf, ptr %10, i32 0, i32 1
  %212 = load i64, ptr %211, align 8, !tbaa !40
  %213 = trunc i64 %212 to i32
  call void @SHA1_Update(ptr noundef %17, ptr noundef %210, i32 noundef %213)
  call void @strbuf_release(ptr noundef %10)
  call void @strbuf_release(ptr noundef %12)
  %214 = getelementptr inbounds %struct.pack_file_cache, ptr %9, i32 0, i32 1
  %215 = getelementptr inbounds %struct.strbuf, ptr %214, i32 0, i32 1
  %216 = load i64, ptr %215, align 8, !tbaa !18
  store i64 %216, ptr %13, align 8, !tbaa !20
  %217 = load i8, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 6), align 8, !tbaa !45, !range !27, !noundef !28
  %218 = trunc i8 %217 to i1
  br i1 %218, label %219, label %232

219:                                              ; preds = %207
  %220 = load i8, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 7), align 1, !tbaa !25, !range !27, !noundef !28
  %221 = trunc i8 %220 to i1
  br i1 %221, label %222, label %232

222:                                              ; preds = %219
  %223 = call i32 (...) @got_signal()
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %232

225:                                              ; preds = %222
  %226 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 2), align 8, !tbaa !32
  %227 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 3), align 8, !tbaa !46
  %228 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 4), align 8, !tbaa !47
  %229 = load i64, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 5), align 8, !tbaa !33
  %230 = add i64 %228, %229
  %231 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i64 noundef %226, i64 noundef %227, i64 noundef %230)
  call void (...) @reset_signal()
  br label %232

232:                                              ; preds = %225, %222, %219, %207
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.cache_index_entry_list, ptr %233, i32 0, i32 6
  %235 = load ptr, ptr %234, align 8, !tbaa !48
  store ptr %235, ptr %7, align 8, !tbaa !5
  br label %30, !llvm.loop !49

236:                                              ; preds = %30
  call void (...) @stop_timer()
  %237 = load i8, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 6), align 8, !tbaa !45, !range !27, !noundef !28
  %238 = trunc i8 %237 to i1
  br i1 %238, label %239, label %244

239:                                              ; preds = %236
  %240 = load i8, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 7), align 1, !tbaa !25, !range !27, !noundef !28
  %241 = trunc i8 %240 to i1
  br i1 %241, label %242, label %244

242:                                              ; preds = %239
  %243 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  br label %244

244:                                              ; preds = %242, %239, %236
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  call void @SHA1_Final(ptr noundef %245, ptr noundef %17)
  %246 = call i32 @flush_pack_cache(ptr noundef %9)
  %247 = getelementptr inbounds %struct.pack_file_cache, ptr %9, i32 0, i32 1
  call void @strbuf_release(ptr noundef %247)
  call void @llvm.lifetime.end.p0(i64 352, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @SHA1_Init(ptr noundef) #4

declare i32 @set_timer(i32 noundef) #0

declare i32 @fflush(ptr noundef) #0

declare void @basic_delta_result_init(ptr noundef, ptr noundef) #0

declare i64 @count_lines(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @SHA1_Update(ptr noundef, ptr noundef, i32 noundef) #4

declare i32 @got_signal(...) #0

declare void @reset_signal(...) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_file_content(ptr noundef, ptr noundef, ptr noundef) #2

declare zeroext i1 @strbuf_delta_minimal(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare void @stop_timer(...) #0

; Function Attrs: nounwind uwtable
declare hidden void @SHA1_Final(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @flush_pack_cache(ptr noundef) #2

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 = { inlinehint 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 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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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, !6, i64 120}
!10 = !{!"cache_object", !11, i64 0, !16, i64 48}
!11 = !{!"cache", !12, i64 0, !13, i64 8, !6, i64 32, !15, i64 40}
!12 = !{!"int", !7, i64 0}
!13 = !{!"strbuf", !14, i64 0, !14, i64 8, !6, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"cache_index", !14, i64 0, !17, i64 8, !6, i64 56, !15, i64 64, !6, i64 72, !6, i64 80}
!17 = !{!"author", !13, i64 0, !13, i64 24}
!18 = !{!19, !14, i64 16}
!19 = !{!"pack_file_cache", !6, i64 0, !13, i64 8}
!20 = !{!14, !14, i64 0}
!21 = !{!22, !6, i64 32}
!22 = !{!"cache_index_entry_list", !14, i64 0, !14, i64 8, !13, i64 16, !23, i64 40, !12, i64 184, !7, i64 188, !6, i64 232}
!23 = !{!"stat", !14, i64 0, !14, i64 8, !14, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !24, i64 72, !24, i64 88, !24, i64 104, !7, i64 120}
!24 = !{!"timespec", !14, i64 0, !14, i64 8}
!25 = !{!26, !15, i64 81}
!26 = !{!"commit_options", !13, i64 0, !13, i64 24, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !15, i64 80, !15, i64 81, !15, i64 82}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!22, !14, i64 8}
!30 = !{!10, !6, i64 24}
!31 = !{!22, !14, i64 0}
!32 = !{!26, !14, i64 48}
!33 = !{!26, !14, i64 72}
!34 = !{!35, !14, i64 408}
!35 = !{!"index", !7, i64 0, !23, i64 256, !7, i64 400, !14, i64 408, !14, i64 416, !14, i64 424}
!36 = !{i64 0, i64 8, !20, i64 8, i64 8, !20, i64 16, i64 8, !20, i64 24, i64 4, !37, i64 28, i64 4, !37, i64 32, i64 4, !37, i64 36, i64 4, !37, i64 40, i64 8, !20, i64 48, i64 8, !20, i64 56, i64 8, !20, i64 64, i64 8, !20, i64 72, i64 8, !20, i64 80, i64 8, !20, i64 88, i64 8, !20, i64 96, i64 8, !20, i64 104, i64 8, !20, i64 112, i64 8, !20, i64 120, i64 24, !38}
!37 = !{!12, !12, i64 0}
!38 = !{!7, !7, i64 0}
!39 = !{!13, !6, i64 16}
!40 = !{!13, !14, i64 8}
!41 = !{!42, !6, i64 0}
!42 = !{!"index_list", !6, i64 0, !6, i64 8}
!43 = !{!42, !6, i64 8}
!44 = !{!35, !7, i64 400}
!45 = !{!26, !15, i64 80}
!46 = !{!26, !14, i64 56}
!47 = !{!26, !14, i64 64}
!48 = !{!22, !6, i64 232}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}
!51 = !{!22, !12, i64 184}
!52 = !{!35, !14, i64 416}
!53 = !{!35, !14, i64 424}
!54 = !{!55, !14, i64 0}
!55 = !{!"basic_delta_result", !14, i64 0, !14, i64 8, !14, i64 16, !6, i64 24, !56, i64 32, !56, i64 56}
!56 = !{!"strbuf_list", !6, i64 0, !6, i64 8, !14, i64 16}
!57 = !{!55, !14, i64 8}


; 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.commit_options = type { %struct.strbuf, %struct.strbuf, i64, i64, i64, i64, i8, i8, i8 }
%struct.strbuf = type { i64, i64, ptr }
%struct.pack_file_cache = type { ptr, %struct.strbuf }
%struct.basic_delta_result = type { i64, i64, i64, ptr, %struct.strbuf_list, %struct.strbuf_list }
%struct.strbuf_list = type { ptr, ptr, i64 }
%struct.SHA_CTX = type { [5 x i32], [80 x i32], i32, i32, i32 }

@cm_opts = external dso_local local_unnamed_addr global %struct.commit_options, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@__const.transfer_staged_data.cache = external hidden unnamed_addr constant %struct.pack_file_cache, align 8
@__const.transfer_staged_data.temp = external hidden unnamed_addr constant %struct.strbuf, align 8
@__const.transfer_staged_data.old = external hidden unnamed_addr constant %struct.strbuf, align 8
@.str.32 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [2 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: inlinehint nounwind uwtable
declare hidden void @strbuf_addbuf(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @strbuf_release(ptr noundef) local_unnamed_addr #4

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

; 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) #6

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @get_last_node(ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cache_pack_file(ptr noundef) local_unnamed_addr #2

declare void @strbuf_add(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare ptr @make_new_index(ptr noundef, i64 noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @transfer_staged_data(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr noundef %2) local_unnamed_addr #5 {
  %4 = alloca %struct.pack_file_cache, align 8
  %5 = alloca %struct.strbuf, align 8
  %6 = alloca %struct.strbuf, align 8
  %7 = alloca %struct.basic_delta_result, align 16
  %8 = alloca ptr, align 8
  %9 = alloca %struct.SHA_CTX, align 4
  %10 = getelementptr inbounds i8, ptr %0, i64 120
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) @__const.transfer_staged_data.cache, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) @__const.transfer_staged_data.temp, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) @__const.transfer_staged_data.old, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 352, ptr nonnull %9) #8
  call void @SHA1_Init(ptr noundef nonnull %9)
  %12 = call i32 @cache_pack_file(ptr noundef nonnull %4)
  %13 = load ptr, ptr %1, align 8, !tbaa !17
  %14 = call ptr @get_last_node(ptr noundef %13)
  store ptr %14, ptr %8, align 8, !tbaa !17
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  %16 = getelementptr inbounds i8, ptr %4, i64 16
  %17 = load i64, ptr %16, align 8, !tbaa !18
  %18 = call i32 @set_timer(i32 noundef 200) #8
  %.not5557 = icmp eq ptr %11, null
  br i1 %.not5557, label %.outer._crit_edge, label %.lr.ph.lr.ph

.lr.ph.lr.ph:                                     ; preds = %3
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = getelementptr inbounds i8, ptr %5, i64 16
  %21 = getelementptr inbounds i8, ptr %5, i64 8
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.lr.ph, %.outer.backedge
  %.0.ph59 = phi ptr [ %11, %.lr.ph.lr.ph ], [ %.0.ph.be, %.outer.backedge ]
  %.044.ph58 = phi i64 [ %17, %.lr.ph.lr.ph ], [ %.044.ph.be, %.outer.backedge ]
  br label %22

22:                                               ; preds = %.lr.ph, %89
  %.056 = phi ptr [ %.0.ph59, %.lr.ph ], [ %91, %89 ]
  %23 = load ptr, ptr @stdout, align 8, !tbaa !17
  %24 = call i32 @fflush(ptr noundef %23)
  %25 = load ptr, ptr %1, align 8, !tbaa !17
  %26 = getelementptr inbounds i8, ptr %.056, i64 32
  %27 = load ptr, ptr %26, align 8, !tbaa !20
  %28 = call ptr @find_file_index_list(ptr noundef %25, ptr noundef %27)
  %29 = load i8, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 81), align 1, !tbaa !24, !range !26, !noundef !27
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %31, label %32

31:                                               ; preds = %22
  call void @basic_delta_result_init(ptr noundef nonnull %7, ptr noundef null) #8
  br label %32

32:                                               ; preds = %31, %22
  %.not46 = icmp eq ptr %28, null
  br i1 %.not46, label %33, label %73

33:                                               ; preds = %32
  %34 = getelementptr inbounds i8, ptr %.056, i64 32
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  %36 = getelementptr inbounds i8, ptr %.056, i64 8
  %37 = load i64, ptr %36, align 8, !tbaa !28
  %38 = call ptr @make_new_index(ptr noundef %35, i64 noundef %.044.ph58, i64 noundef %37, i8 noundef zeroext 0) #8
  %39 = load ptr, ptr %19, align 8, !tbaa !29
  %40 = load i64, ptr %.056, align 8, !tbaa !30
  %41 = getelementptr inbounds i8, ptr %39, i64 %40
  %42 = load i64, ptr %36, align 8, !tbaa !28
  call void @strbuf_add(ptr noundef nonnull %5, ptr noundef %41, i64 noundef %42) #8
  %43 = load i8, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 81), align 1, !tbaa !24, !range !26, !noundef !27
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %45, label %51

45:                                               ; preds = %33
  %46 = call i64 @count_lines(ptr noundef nonnull %5) #8
  %47 = load i64, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 48), align 8, !tbaa !31
  %48 = add i64 %47, %46
  store i64 %48, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 48), align 8, !tbaa !31
  %49 = load i64, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 72), align 8, !tbaa !32
  %50 = add i64 %49, 1
  store i64 %50, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 72), align 8, !tbaa !32
  br label %51

51:                                               ; preds = %45, %33
  %52 = getelementptr inbounds i8, ptr %38, i64 408
  store i64 0, ptr %52, align 8, !tbaa !33
  %53 = getelementptr inbounds i8, ptr %38, i64 256
  %54 = getelementptr inbounds i8, ptr %.056, i64 40
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(144) %53, ptr noundef nonnull align 8 dereferenceable(144) %54, i64 144, i1 false), !tbaa.struct !35
  call void @strbuf_addbuf(ptr noundef nonnull %15, ptr noundef nonnull %5)
  %55 = load ptr, ptr %20, align 8, !tbaa !39
  %56 = load i64, ptr %21, align 8, !tbaa !40
  %57 = trunc i64 %56 to i32
  call void @SHA1_Update(ptr noundef nonnull %9, ptr noundef %55, i32 noundef %57)
  call void @strbuf_release(ptr noundef nonnull %5) #8
  %58 = load i64, ptr %16, align 8, !tbaa !18
  %59 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #9
  store ptr %38, ptr %59, align 8, !tbaa !41
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  store ptr null, ptr %60, align 8, !tbaa !43
  %61 = getelementptr inbounds i8, ptr %38, i64 400
  store i8 2, ptr %61, align 8, !tbaa !44
  %62 = load ptr, ptr %8, align 8, !tbaa !17
  %.not47 = icmp eq ptr %62, null
  br i1 %.not47, label %64, label %63

63:                                               ; preds = %51
  call void @insert_index_list(ptr noundef nonnull %8, ptr noundef nonnull %59)
  br label %65

64:                                               ; preds = %51
  store ptr %59, ptr %1, align 8, !tbaa !17
  store ptr %59, ptr %8, align 8, !tbaa !17
  br label %65

65:                                               ; preds = %64, %63
  %66 = load i8, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 80), align 8, !tbaa !45, !range !26, !noundef !27
  %67 = trunc nuw i8 %66 to i1
  br i1 %67, label %68, label %.outer.backedge

68:                                               ; preds = %65
  %69 = load i8, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 81), align 1, !tbaa !24, !range !26, !noundef !27
  %70 = trunc nuw i8 %69 to i1
  br i1 %70, label %71, label %.outer.backedge

71:                                               ; preds = %68
  %72 = call i32 (...) @got_signal() #8
  %.not48 = icmp eq i32 %72, 0
  br i1 %.not48, label %.outer.backedge, label %.outer.backedge.sink.split

73:                                               ; preds = %32
  %74 = getelementptr inbounds i8, ptr %.056, i64 184
  %75 = load i32, ptr %74, align 8, !tbaa !46
  %76 = icmp eq i32 %75, 2048
  br i1 %76, label %77, label %92

77:                                               ; preds = %73
  %78 = getelementptr inbounds i8, ptr %28, i64 416
  %79 = getelementptr inbounds i8, ptr %28, i64 400
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %78, i8 0, i64 16, i1 false)
  store i8 8, ptr %79, align 8, !tbaa !44
  %80 = getelementptr inbounds i8, ptr %28, i64 256
  call void @SHA1_Update(ptr noundef nonnull %9, ptr noundef nonnull %80, i32 noundef 144)
  %81 = call i32 @get_file_content(ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %28)
  %82 = load i8, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 81), align 1, !tbaa !24, !range !26, !noundef !27
  %83 = trunc nuw i8 %82 to i1
  br i1 %83, label %84, label %89

84:                                               ; preds = %77
  %85 = call i64 @count_lines(ptr noundef nonnull %6) #8
  %86 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 56), align 8, !tbaa !36
  %87 = insertelement <2 x i64> <i64 poison, i64 1>, i64 %85, i64 0
  %88 = add <2 x i64> %86, %87
  store <2 x i64> %88, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 56), align 8, !tbaa !36
  br label %89

89:                                               ; preds = %84, %77
  %90 = getelementptr inbounds i8, ptr %.056, i64 232
  %91 = load ptr, ptr %90, align 8, !tbaa !47
  call void @strbuf_release(ptr noundef nonnull %6) #8
  %.not = icmp eq ptr %91, null
  br i1 %.not, label %.outer._crit_edge, label %22, !llvm.loop !48

92:                                               ; preds = %73
  %93 = call i32 @get_file_content(ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %28)
  %94 = getelementptr inbounds i8, ptr %28, i64 416
  store i64 %.044.ph58, ptr %94, align 8, !tbaa !50
  %95 = getelementptr inbounds i8, ptr %.056, i64 8
  %96 = load i64, ptr %95, align 8, !tbaa !28
  %97 = getelementptr inbounds i8, ptr %28, i64 424
  store i64 %96, ptr %97, align 8, !tbaa !51
  %98 = getelementptr inbounds i8, ptr %28, i64 256
  %99 = getelementptr inbounds i8, ptr %.056, i64 40
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(144) %98, ptr noundef nonnull align 8 dereferenceable(144) %99, i64 144, i1 false), !tbaa.struct !35
  %100 = getelementptr inbounds i8, ptr %28, i64 400
  store i8 1, ptr %100, align 8, !tbaa !44
  %101 = getelementptr inbounds i8, ptr %28, i64 408
  %102 = load i64, ptr %101, align 8, !tbaa !33
  %103 = add i64 %102, 1
  store i64 %103, ptr %101, align 8, !tbaa !33
  %104 = load ptr, ptr %19, align 8, !tbaa !29
  %105 = load i64, ptr %.056, align 8, !tbaa !30
  %106 = getelementptr inbounds i8, ptr %104, i64 %105
  %107 = load i64, ptr %95, align 8, !tbaa !28
  call void @strbuf_add(ptr noundef nonnull %5, ptr noundef %106, i64 noundef %107) #8
  %108 = load i8, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 81), align 1, !tbaa !24, !range !26, !noundef !27
  %109 = trunc nuw i8 %108 to i1
  br i1 %109, label %110, label %117

110:                                              ; preds = %92
  %111 = call zeroext i1 @strbuf_delta_minimal(ptr noundef null, ptr noundef nonnull %7, ptr noundef nonnull %6, ptr noundef nonnull %5) #8
  %112 = load <2 x i64>, ptr %7, align 16, !tbaa !36
  %113 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 48), align 8, !tbaa !36
  %114 = add <2 x i64> %113, %112
  store <2 x i64> %114, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 48), align 8, !tbaa !36
  %115 = load i64, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 64), align 8, !tbaa !52
  %116 = add i64 %115, 1
  store i64 %116, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 64), align 8, !tbaa !52
  br label %117

117:                                              ; preds = %110, %92
  call void @strbuf_addbuf(ptr noundef nonnull %15, ptr noundef nonnull %5)
  %118 = load ptr, ptr %20, align 8, !tbaa !39
  %119 = load i64, ptr %21, align 8, !tbaa !40
  %120 = trunc i64 %119 to i32
  call void @SHA1_Update(ptr noundef nonnull %9, ptr noundef %118, i32 noundef %120)
  call void @strbuf_release(ptr noundef nonnull %5) #8
  call void @strbuf_release(ptr noundef nonnull %6) #8
  %121 = load i64, ptr %16, align 8, !tbaa !18
  %122 = load i8, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 80), align 8, !tbaa !45, !range !26, !noundef !27
  %123 = trunc nuw i8 %122 to i1
  br i1 %123, label %124, label %.outer.backedge

124:                                              ; preds = %117
  %125 = load i8, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 81), align 1, !tbaa !24, !range !26, !noundef !27
  %126 = trunc nuw i8 %125 to i1
  br i1 %126, label %127, label %.outer.backedge

127:                                              ; preds = %124
  %128 = call i32 (...) @got_signal() #8
  %.not49 = icmp eq i32 %128, 0
  br i1 %.not49, label %.outer.backedge, label %.outer.backedge.sink.split

.outer.backedge.sink.split:                       ; preds = %127, %71
  %.044.ph.be.ph = phi i64 [ %58, %71 ], [ %121, %127 ]
  %129 = load i64, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 48), align 8, !tbaa !31
  %130 = load i64, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 56), align 8, !tbaa !53
  %131 = load i64, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 64), align 8, !tbaa !52
  %132 = load i64, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 72), align 8, !tbaa !32
  %133 = add i64 %132, %131
  %134 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, i64 noundef %129, i64 noundef %130, i64 noundef %133)
  call void (...) @reset_signal() #8
  br label %.outer.backedge

.outer.backedge:                                  ; preds = %.outer.backedge.sink.split, %117, %124, %127, %65, %68, %71
  %.044.ph.be = phi i64 [ %58, %71 ], [ %58, %68 ], [ %58, %65 ], [ %121, %127 ], [ %121, %124 ], [ %121, %117 ], [ %.044.ph.be.ph, %.outer.backedge.sink.split ]
  %.0.ph.be.in = getelementptr inbounds i8, ptr %.056, i64 232
  %.0.ph.be = load ptr, ptr %.0.ph.be.in, align 8, !tbaa !47
  %.not55 = icmp eq ptr %.0.ph.be, null
  br i1 %.not55, label %.outer._crit_edge, label %.lr.ph, !llvm.loop !48

.outer._crit_edge:                                ; preds = %.outer.backedge, %89, %3
  call void (...) @stop_timer() #8
  %135 = load i8, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 80), align 8, !tbaa !45, !range !26, !noundef !27
  %136 = trunc nuw i8 %135 to i1
  br i1 %136, label %137, label %142

137:                                              ; preds = %.outer._crit_edge
  %138 = load i8, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 81), align 1, !tbaa !24, !range !26, !noundef !27
  %139 = trunc nuw i8 %138 to i1
  br i1 %139, label %140, label %142

140:                                              ; preds = %137
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  br label %142

142:                                              ; preds = %140, %137, %.outer._crit_edge
  call void @SHA1_Final(ptr noundef %2, ptr noundef nonnull %9)
  %143 = call i32 @flush_pack_cache(ptr noundef nonnull %4)
  call void @strbuf_release(ptr noundef nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 352, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @SHA1_Init(ptr noundef) local_unnamed_addr #5

declare i32 @set_timer(i32 noundef) local_unnamed_addr #4

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

declare void @basic_delta_result_init(ptr noundef, ptr noundef) local_unnamed_addr #4

declare i64 @count_lines(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @SHA1_Update(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

declare i32 @got_signal(...) local_unnamed_addr #4

declare void @reset_signal(...) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_file_content(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare zeroext i1 @strbuf_delta_minimal(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @stop_timer(...) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @SHA1_Final(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @flush_pack_cache(ptr noundef) local_unnamed_addr #2

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

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 = { inlinehint 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 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 #4 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }

!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, !13, i64 120}
!6 = !{!"cache_object", !7, i64 0, !15, i64 48}
!7 = !{!"cache", !8, i64 0, !11, i64 8, !13, i64 32, !14, i64 40}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"strbuf", !12, i64 0, !12, i64 8, !13, i64 16}
!12 = !{!"long", !9, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"_Bool", !9, i64 0}
!15 = !{!"cache_index", !12, i64 0, !16, i64 8, !13, i64 56, !14, i64 64, !13, i64 72, !13, i64 80}
!16 = !{!"author", !11, i64 0, !11, i64 24}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !12, i64 16}
!19 = !{!"pack_file_cache", !13, i64 0, !11, i64 8}
!20 = !{!21, !13, i64 32}
!21 = !{!"cache_index_entry_list", !12, i64 0, !12, i64 8, !11, i64 16, !22, i64 40, !8, i64 184, !9, i64 188, !13, i64 232}
!22 = !{!"stat", !12, i64 0, !12, i64 8, !12, i64 16, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !23, i64 72, !23, i64 88, !23, i64 104, !9, i64 120}
!23 = !{!"timespec", !12, i64 0, !12, i64 8}
!24 = !{!25, !14, i64 81}
!25 = !{!"commit_options", !11, i64 0, !11, i64 24, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !14, i64 80, !14, i64 81, !14, i64 82}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!21, !12, i64 8}
!29 = !{!6, !13, i64 24}
!30 = !{!21, !12, i64 0}
!31 = !{!25, !12, i64 48}
!32 = !{!25, !12, i64 72}
!33 = !{!34, !12, i64 408}
!34 = !{!"index", !9, i64 0, !22, i64 256, !9, i64 400, !12, i64 408, !12, i64 416, !12, i64 424}
!35 = !{i64 0, i64 8, !36, i64 8, i64 8, !36, i64 16, i64 8, !36, i64 24, i64 4, !37, i64 28, i64 4, !37, i64 32, i64 4, !37, i64 36, i64 4, !37, i64 40, i64 8, !36, i64 48, i64 8, !36, i64 56, i64 8, !36, i64 64, i64 8, !36, i64 72, i64 8, !36, i64 80, i64 8, !36, i64 88, i64 8, !36, i64 96, i64 8, !36, i64 104, i64 8, !36, i64 112, i64 8, !36, i64 120, i64 24, !38}
!36 = !{!12, !12, i64 0}
!37 = !{!8, !8, i64 0}
!38 = !{!9, !9, i64 0}
!39 = !{!11, !13, i64 16}
!40 = !{!11, !12, i64 8}
!41 = !{!42, !13, i64 0}
!42 = !{!"index_list", !13, i64 0, !13, i64 8}
!43 = !{!42, !13, i64 8}
!44 = !{!34, !9, i64 400}
!45 = !{!25, !14, i64 80}
!46 = !{!21, !8, i64 184}
!47 = !{!21, !13, i64 232}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}
!50 = !{!34, !12, i64 416}
!51 = !{!34, !12, i64 424}
!52 = !{!25, !12, i64 64}
!53 = !{!25, !12, i64 56}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass