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

@cm_opts = external dso_local global %struct.commit_options, align 8
@stderr = external global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [3 x i8], align 1
@__const.commit.msg = external hidden unnamed_addr constant %struct.strbuf, align 8
@__const.commit.desc = external hidden unnamed_addr constant %struct.strbuf, align 8
@.str.101 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @commit_options_init() #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @print_commits() #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @generate_new_commit(ptr noundef, ptr noundef, ptr noundef, i16 noundef signext) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @commit(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %struct.strbuf, align 8
  %6 = alloca %struct.strbuf, align 8
  %7 = alloca [50 x i8], align 16
  %8 = alloca [100 x i8], align 16
  %9 = alloca i16, align 2
  %10 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 @__const.commit.msg, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 @__const.commit.desc, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 50, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 100, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #8
  store i16 0, ptr %9, align 2, !tbaa !11
  call void @commit_options_init()
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = icmp slt i32 %11, 2
  br i1 %12, label %13, label %27

13:                                               ; preds = %2
  br label %14

14:                                               ; preds = %13
  %15 = load ptr, ptr @stderr, align 8, !tbaa !9
  %16 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef @.str.18) #8
  %17 = load ptr, ptr @stderr, align 8, !tbaa !9
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef @.str.19) #8
  %19 = load ptr, ptr @stderr, align 8, !tbaa !9
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.20) #8
  %21 = load ptr, ptr @stderr, align 8, !tbaa !9
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.21) #8
  %23 = load ptr, ptr @stderr, align 8, !tbaa !9
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.101) #8
  call void @exit(i32 noundef 1) #9
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26, %2
  call void @vud()
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %281, %27
  %29 = load i32, ptr %10, align 4, !tbaa !5
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %284

33:                                               ; preds = %28
  %34 = load ptr, ptr %4, align 8, !tbaa !9
  %35 = load i32, ptr %10, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds ptr, ptr %34, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = call i32 @strcmp(ptr noundef %38, ptr noundef @.str.43) #10
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %49

41:                                               ; preds = %33
  %42 = load ptr, ptr %4, align 8, !tbaa !9
  %43 = load i32, ptr %10, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %42, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = call i32 @strcmp(ptr noundef %46, ptr noundef @.str.44) #10
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %51, label %49

49:                                               ; preds = %41, %33
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.102)
  call void @exit(i32 noundef 0) #9
  unreachable

51:                                               ; preds = %41
  %52 = load ptr, ptr %4, align 8, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %52, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = call i32 @strcmp(ptr noundef %56, ptr noundef @.str.103) #10
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %67

59:                                               ; preds = %51
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds ptr, ptr %60, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = call i32 @strcmp(ptr noundef %64, ptr noundef @.str.104) #10
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %100, label %67

67:                                               ; preds = %59, %51
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = icmp sge i32 %69, %70
  br i1 %71, label %72, label %91

72:                                               ; preds = %67
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr @stderr, align 8, !tbaa !9
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.18) #8
  %76 = load ptr, ptr @stderr, align 8, !tbaa !9
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.19) #8
  %78 = load ptr, ptr @stderr, align 8, !tbaa !9
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.20) #8
  %80 = load ptr, ptr @stderr, align 8, !tbaa !9
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.21) #8
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = load ptr, ptr %4, align 8, !tbaa !9
  %84 = load i32, ptr %10, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.105, ptr noundef %87) #8
  call void @exit(i32 noundef 1) #9
  unreachable

89:                                               ; No predecessors!
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90, %67
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  %93 = load i32, ptr %10, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %92, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  call void @strbuf_addstr(ptr noundef %5, ptr noundef %97)
  %98 = load i32, ptr %10, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %10, align 4, !tbaa !5
  br label %279

100:                                              ; preds = %59
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds ptr, ptr %101, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = call i32 @strcmp(ptr noundef %105, ptr noundef @.str.106) #10
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %116

108:                                              ; preds = %100
  %109 = load ptr, ptr %4, align 8, !tbaa !9
  %110 = load i32, ptr %10, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %114 = call i32 @strcmp(ptr noundef %113, ptr noundef @.str.107) #10
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %119, label %116

116:                                              ; preds = %108, %100
  store i8 1, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 8), align 2, !tbaa !13
  store i8 0, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 7), align 1, !tbaa !18
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %10, align 4, !tbaa !5
  br label %278

119:                                              ; preds = %108
  %120 = load ptr, ptr %4, align 8, !tbaa !9
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds ptr, ptr %120, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !9
  %125 = call i32 @strcmp(ptr noundef %124, ptr noundef @.str.108) #10
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %135

127:                                              ; preds = %119
  %128 = load ptr, ptr %4, align 8, !tbaa !9
  %129 = load i32, ptr %10, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds ptr, ptr %128, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !9
  %133 = call i32 @strcmp(ptr noundef %132, ptr noundef @.str.109) #10
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %168, label %135

135:                                              ; preds = %127, %119
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  %138 = load i32, ptr %3, align 4, !tbaa !5
  %139 = icmp sge i32 %137, %138
  br i1 %139, label %140, label %159

140:                                              ; preds = %135
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.18) #8
  %144 = load ptr, ptr @stderr, align 8, !tbaa !9
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.19) #8
  %146 = load ptr, ptr @stderr, align 8, !tbaa !9
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef @.str.20) #8
  %148 = load ptr, ptr @stderr, align 8, !tbaa !9
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.21) #8
  %150 = load ptr, ptr @stderr, align 8, !tbaa !9
  %151 = load ptr, ptr %4, align 8, !tbaa !9
  %152 = load i32, ptr %10, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %151, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.110, ptr noundef %155) #8
  call void @exit(i32 noundef 1) #9
  unreachable

157:                                              ; No predecessors!
  br label %158

158:                                              ; preds = %157
  br label %159

159:                                              ; preds = %158, %135
  %160 = load ptr, ptr %4, align 8, !tbaa !9
  %161 = load i32, ptr %10, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds ptr, ptr %160, i64 %163
  %165 = load ptr, ptr %164, align 8, !tbaa !9
  call void @strbuf_addstr(ptr noundef %6, ptr noundef %165)
  %166 = load i32, ptr %10, align 4, !tbaa !5
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %10, align 4, !tbaa !5
  br label %277

168:                                              ; preds = %127
  %169 = load ptr, ptr %4, align 8, !tbaa !9
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds ptr, ptr %169, i64 %171
  %173 = load ptr, ptr %172, align 8, !tbaa !9
  %174 = call i32 @strcmp(ptr noundef %173, ptr noundef @.str.111) #10
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %177, label %176

176:                                              ; preds = %168
  call void @print_commits()
  call void @exit(i32 noundef 0) #9
  unreachable

177:                                              ; preds = %168
  %178 = load ptr, ptr %4, align 8, !tbaa !9
  %179 = load i32, ptr %10, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds ptr, ptr %178, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  %183 = call i32 @strcmp(ptr noundef %182, ptr noundef @.str.112) #10
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %193

185:                                              ; preds = %177
  %186 = load ptr, ptr %4, align 8, !tbaa !9
  %187 = load i32, ptr %10, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds ptr, ptr %186, i64 %188
  %190 = load ptr, ptr %189, align 8, !tbaa !9
  %191 = call i32 @strcmp(ptr noundef %190, ptr noundef @.str.113) #10
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %255, label %193

193:                                              ; preds = %185, %177
  %194 = load i32, ptr %10, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  %196 = load i32, ptr %3, align 4, !tbaa !5
  %197 = icmp sge i32 %195, %196
  br i1 %197, label %198, label %217

198:                                              ; preds = %193
  br label %199

199:                                              ; preds = %198
  %200 = load ptr, ptr @stderr, align 8, !tbaa !9
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str.18) #8
  %202 = load ptr, ptr @stderr, align 8, !tbaa !9
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %202, ptr noundef @.str.19) #8
  %204 = load ptr, ptr @stderr, align 8, !tbaa !9
  %205 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %204, ptr noundef @.str.20) #8
  %206 = load ptr, ptr @stderr, align 8, !tbaa !9
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef @.str.21) #8
  %208 = load ptr, ptr @stderr, align 8, !tbaa !9
  %209 = load ptr, ptr %4, align 8, !tbaa !9
  %210 = load i32, ptr %10, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds ptr, ptr %209, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !9
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.114, ptr noundef %213) #8
  call void @exit(i32 noundef 1) #9
  unreachable

215:                                              ; No predecessors!
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216, %193
  %218 = load ptr, ptr %4, align 8, !tbaa !9
  %219 = load i32, ptr %10, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds ptr, ptr %218, i64 %221
  %223 = load ptr, ptr %222, align 8, !tbaa !9
  %224 = call i64 @strlen(ptr noundef %223) #10
  %225 = icmp ugt i64 %224, 50
  br i1 %225, label %226, label %240

226:                                              ; preds = %217
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr @stderr, align 8, !tbaa !9
  %229 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %228, ptr noundef @.str.18) #8
  %230 = load ptr, ptr @stderr, align 8, !tbaa !9
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.19) #8
  %232 = load ptr, ptr @stderr, align 8, !tbaa !9
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str.20) #8
  %234 = load ptr, ptr @stderr, align 8, !tbaa !9
  %235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.21) #8
  %236 = load ptr, ptr @stderr, align 8, !tbaa !9
  %237 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef @.str.115, i32 noundef 50) #8
  call void @exit(i32 noundef 1) #9
  unreachable

238:                                              ; No predecessors!
  br label %239

239:                                              ; preds = %238
  br label %240

240:                                              ; preds = %239, %217
  %241 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
  %242 = load ptr, ptr %4, align 8, !tbaa !9
  %243 = load i32, ptr %10, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds ptr, ptr %242, i64 %245
  %247 = load ptr, ptr %246, align 8, !tbaa !9
  %248 = call ptr @strcpy(ptr noundef %241, ptr noundef %247) #8
  %249 = load i16, ptr %9, align 2, !tbaa !11
  %250 = sext i16 %249 to i32
  %251 = or i32 %250, 1
  %252 = trunc i32 %251 to i16
  store i16 %252, ptr %9, align 2, !tbaa !11
  %253 = load i32, ptr %10, align 4, !tbaa !5
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %10, align 4, !tbaa !5
  br label %275

255:                                              ; preds = %185
  %256 = load ptr, ptr %4, align 8, !tbaa !9
  %257 = load i32, ptr %10, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds ptr, ptr %256, i64 %258
  %260 = load ptr, ptr %259, align 8, !tbaa !9
  %261 = call i32 @strcmp(ptr noundef %260, ptr noundef @.str.116) #10
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %264, label %263

263:                                              ; preds = %255
  store i8 1, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 6), align 8, !tbaa !19
  br label %274

264:                                              ; preds = %255
  %265 = load ptr, ptr %4, align 8, !tbaa !9
  %266 = load i32, ptr %10, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds ptr, ptr %265, i64 %267
  %269 = load ptr, ptr %268, align 8, !tbaa !9
  %270 = call i32 @strcmp(ptr noundef %269, ptr noundef @.str.117) #10
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %273, label %272

272:                                              ; preds = %264
  store i8 0, ptr getelementptr inbounds (%struct.commit_options, ptr @cm_opts, i32 0, i32 7), align 1, !tbaa !18
  br label %273

273:                                              ; preds = %272, %264
  br label %274

274:                                              ; preds = %273, %263
  br label %275

275:                                              ; preds = %274, %240
  br label %276

276:                                              ; preds = %275
  br label %277

277:                                              ; preds = %276, %159
  br label %278

278:                                              ; preds = %277, %116
  br label %279

279:                                              ; preds = %278, %91
  br label %280

280:                                              ; preds = %279
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %10, align 4, !tbaa !5
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %10, align 4, !tbaa !5
  br label %28, !llvm.loop !20

284:                                              ; preds = %32
  %285 = getelementptr inbounds %struct.strbuf, ptr %5, i32 0, i32 1
  %286 = load i64, ptr %285, align 8, !tbaa !22
  %287 = icmp ne i64 %286, 0
  br i1 %287, label %302, label %288

288:                                              ; preds = %284
  br label %289

289:                                              ; preds = %288
  %290 = load ptr, ptr @stderr, align 8, !tbaa !9
  %291 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %290, ptr noundef @.str.18) #8
  %292 = load ptr, ptr @stderr, align 8, !tbaa !9
  %293 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %292, ptr noundef @.str.19) #8
  %294 = load ptr, ptr @stderr, align 8, !tbaa !9
  %295 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef @.str.20) #8
  %296 = load ptr, ptr @stderr, align 8, !tbaa !9
  %297 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %296, ptr noundef @.str.21) #8
  %298 = load ptr, ptr @stderr, align 8, !tbaa !9
  %299 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %298, ptr noundef @.str.118) #8
  call void @exit(i32 noundef 1) #9
  unreachable

300:                                              ; No predecessors!
  br label %301

301:                                              ; preds = %300
  br label %302

302:                                              ; preds = %301, %284
  %303 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
  %304 = load i16, ptr %9, align 2, !tbaa !11
  %305 = call i32 @generate_new_commit(ptr noundef %5, ptr noundef %6, ptr noundef %303, i16 noundef signext %304)
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 100, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 50, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  ret i32 0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @strbuf_addstr(ptr noundef, ptr noundef) #7

; Function Attrs: nounwind uwtable
declare hidden void @vud() #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 = { 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 "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 = { noreturn 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 #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !17, i64 82}
!14 = !{!"commit_options", !15, i64 0, !15, i64 24, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !17, i64 80, !17, i64 81, !17, i64 82}
!15 = !{!"strbuf", !16, i64 0, !16, i64 8, !10, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!14, !17, i64 81}
!19 = !{!14, !17, i64 80}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!15, !16, 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 }

@cm_opts = external dso_local local_unnamed_addr global %struct.commit_options, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [3 x i8], align 1
@__const.commit.msg = external hidden unnamed_addr constant %struct.strbuf, align 8
@__const.commit.desc = external hidden unnamed_addr constant %struct.strbuf, align 8
@.str.101 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @commit_options_init() local_unnamed_addr #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare dso_local void @print_commits() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @generate_new_commit(ptr noundef, ptr noundef, ptr noundef, i16 noundef signext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @commit(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = alloca %struct.strbuf, align 8
  %4 = alloca %struct.strbuf, align 8
  %5 = alloca [50 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) @__const.commit.msg, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) @__const.commit.desc, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 50, ptr nonnull %5) #8
  tail call void @commit_options_init()
  %6 = icmp slt i32 %0, 2
  br i1 %6, label %7, label %18

7:                                                ; preds = %2
  %8 = load ptr, ptr @stderr, align 8, !tbaa !5
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.18) #9
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.19) #9
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.20) #9
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.21) #9
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.101) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

18:                                               ; preds = %2
  tail call void @vud()
  br label %22

19:                                               ; preds = %130
  %20 = getelementptr inbounds i8, ptr %3, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !9
  %.not = icmp eq i64 %21, 0
  br i1 %.not, label %133, label %144

22:                                               ; preds = %18, %130
  %.091 = phi i32 [ 1, %18 ], [ %131, %130 ]
  %.05590 = phi i16 [ 0, %18 ], [ %.156, %130 ]
  %23 = sext i32 %.091 to i64
  %24 = getelementptr inbounds ptr, ptr %1, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.43) #11
  %.not61 = icmp eq i32 %26, 0
  br i1 %.not61, label %29, label %27

27:                                               ; preds = %22
  %28 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.44) #11
  %.not62 = icmp eq i32 %28, 0
  br i1 %.not62, label %29, label %31

29:                                               ; preds = %27, %22
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.102)
  call void @exit(i32 noundef 0) #10
  unreachable

31:                                               ; preds = %27
  %32 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.103) #11
  %.not63 = icmp eq i32 %32, 0
  br i1 %.not63, label %35, label %33

33:                                               ; preds = %31
  %34 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.104) #11
  %.not64 = icmp eq i32 %34, 0
  br i1 %.not64, label %35, label %54

35:                                               ; preds = %33, %31
  %36 = add nsw i32 %.091, 1
  %.not65 = icmp slt i32 %36, %0
  br i1 %.not65, label %50, label %37

37:                                               ; preds = %35
  %38 = getelementptr inbounds ptr, ptr %1, i64 %23
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.18) #9
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.19) #9
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.20) #9
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.21) #9
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = load ptr, ptr %38, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.105, ptr noundef %48) #9
  call void @exit(i32 noundef 1) #10
  unreachable

50:                                               ; preds = %35
  %51 = sext i32 %36 to i64
  %52 = getelementptr inbounds ptr, ptr %1, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  call void @strbuf_addstr(ptr noundef nonnull %3, ptr noundef %53)
  br label %130

54:                                               ; preds = %33
  %55 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.106) #11
  %.not66 = icmp eq i32 %55, 0
  br i1 %.not66, label %58, label %56

56:                                               ; preds = %54
  %57 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.107) #11
  %.not67 = icmp eq i32 %57, 0
  br i1 %.not67, label %58, label %60

58:                                               ; preds = %56, %54
  store i8 1, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 82), align 2, !tbaa !12
  store i8 0, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 81), align 1, !tbaa !15
  %59 = add nsw i32 %.091, 1
  br label %130

60:                                               ; preds = %56
  %61 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.108) #11
  %.not68 = icmp eq i32 %61, 0
  br i1 %.not68, label %64, label %62

62:                                               ; preds = %60
  %63 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.109) #11
  %.not69 = icmp eq i32 %63, 0
  br i1 %.not69, label %64, label %83

64:                                               ; preds = %62, %60
  %65 = add nsw i32 %.091, 1
  %.not70 = icmp slt i32 %65, %0
  br i1 %.not70, label %79, label %66

66:                                               ; preds = %64
  %67 = getelementptr inbounds ptr, ptr %1, i64 %23
  %68 = load ptr, ptr @stderr, align 8, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef nonnull @.str.18) #9
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.19) #9
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.20) #9
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.21) #9
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = load ptr, ptr %67, align 8, !tbaa !5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.110, ptr noundef %77) #9
  call void @exit(i32 noundef 1) #10
  unreachable

79:                                               ; preds = %64
  %80 = sext i32 %65 to i64
  %81 = getelementptr inbounds ptr, ptr %1, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  call void @strbuf_addstr(ptr noundef nonnull %4, ptr noundef %82)
  br label %130

83:                                               ; preds = %62
  %84 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.111) #11
  %.not71 = icmp eq i32 %84, 0
  br i1 %.not71, label %85, label %86

85:                                               ; preds = %83
  call void @print_commits()
  call void @exit(i32 noundef 0) #10
  unreachable

86:                                               ; preds = %83
  %87 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.112) #11
  %.not72 = icmp eq i32 %87, 0
  br i1 %.not72, label %90, label %88

88:                                               ; preds = %86
  %89 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.113) #11
  %.not73 = icmp eq i32 %89, 0
  br i1 %.not73, label %90, label %124

90:                                               ; preds = %88, %86
  %91 = add nsw i32 %.091, 1
  %.not74 = icmp slt i32 %91, %0
  br i1 %.not74, label %105, label %92

92:                                               ; preds = %90
  %93 = getelementptr inbounds ptr, ptr %1, i64 %23
  %94 = load ptr, ptr @stderr, align 8, !tbaa !5
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.18) #9
  %96 = load ptr, ptr @stderr, align 8, !tbaa !5
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.19) #9
  %98 = load ptr, ptr @stderr, align 8, !tbaa !5
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.20) #9
  %100 = load ptr, ptr @stderr, align 8, !tbaa !5
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.21) #9
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = load ptr, ptr %93, align 8, !tbaa !5
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.114, ptr noundef %103) #9
  call void @exit(i32 noundef 1) #10
  unreachable

105:                                              ; preds = %90
  %106 = sext i32 %91 to i64
  %107 = getelementptr inbounds ptr, ptr %1, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %108) #11
  %110 = icmp ugt i64 %109, 50
  br i1 %110, label %111, label %122

111:                                              ; preds = %105
  %112 = load ptr, ptr @stderr, align 8, !tbaa !5
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef nonnull @.str.18) #9
  %114 = load ptr, ptr @stderr, align 8, !tbaa !5
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef nonnull @.str.19) #9
  %116 = load ptr, ptr @stderr, align 8, !tbaa !5
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef nonnull @.str.20) #9
  %118 = load ptr, ptr @stderr, align 8, !tbaa !5
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef nonnull @.str.21) #9
  %120 = load ptr, ptr @stderr, align 8, !tbaa !5
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.115, i32 noundef 50) #9
  call void @exit(i32 noundef 1) #10
  unreachable

122:                                              ; preds = %105
  %123 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) %108) #8
  br label %130

124:                                              ; preds = %88
  %125 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.116) #11
  %.not75 = icmp eq i32 %125, 0
  br i1 %.not75, label %126, label %127

126:                                              ; preds = %124
  store i8 1, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 80), align 8, !tbaa !16
  br label %130

127:                                              ; preds = %124
  %128 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.117) #11
  %.not76 = icmp eq i32 %128, 0
  br i1 %.not76, label %129, label %130

129:                                              ; preds = %127
  store i8 0, ptr getelementptr inbounds (i8, ptr @cm_opts, i64 81), align 1, !tbaa !15
  br label %130

130:                                              ; preds = %58, %126, %129, %127, %122, %79, %50
  %.156 = phi i16 [ %.05590, %127 ], [ %.05590, %129 ], [ %.05590, %126 ], [ 1, %122 ], [ %.05590, %79 ], [ %.05590, %58 ], [ %.05590, %50 ]
  %.1 = phi i32 [ %.091, %127 ], [ %.091, %129 ], [ %.091, %126 ], [ %91, %122 ], [ %65, %79 ], [ %59, %58 ], [ %36, %50 ]
  %131 = add nsw i32 %.1, 1
  %132 = icmp slt i32 %131, %0
  br i1 %132, label %22, label %19, !llvm.loop !17

133:                                              ; preds = %19
  %134 = load ptr, ptr @stderr, align 8, !tbaa !5
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef nonnull @.str.18) #9
  %136 = load ptr, ptr @stderr, align 8, !tbaa !5
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef nonnull @.str.19) #9
  %138 = load ptr, ptr @stderr, align 8, !tbaa !5
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.20) #9
  %140 = load ptr, ptr @stderr, align 8, !tbaa !5
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef nonnull @.str.21) #9
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.118) #9
  call void @exit(i32 noundef 1) #10
  unreachable

144:                                              ; preds = %19
  %145 = call i32 @generate_new_commit(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, i16 noundef signext %.156)
  call void @llvm.lifetime.end.p0(i64 50, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  ret i32 0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @strbuf_addstr(ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: nounwind uwtable
declare hidden void @vud() local_unnamed_addr #2

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 #8 = { nounwind }
attributes #9 = { cold nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { 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, !11, i64 8}
!10 = !{!"strbuf", !11, i64 0, !11, i64 8, !6, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !14, i64 82}
!13 = !{!"commit_options", !10, i64 0, !10, i64 24, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !14, i64 80, !14, i64 81, !14, i64 82}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!13, !14, i64 81}
!16 = !{!13, !14, i64 80}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass