; LLVM IR from bitcoin-core/secp256k1 :: src (bench)

; 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.secp256k1_pubkey = type { [64 x i8] }
%struct.secp256k1_ecdsa_signature = type { [64 x i8] }
%struct.bench_data = type { ptr, [32 x i8], [32 x i8], [72 x i8], i64, [33 x i8], i64 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1
@__const.main.valid_args = external hidden unnamed_addr constant [21 x ptr], align 16
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1
@stderr = external global ptr, align 8
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [132 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.secp256k1_pubkey, align 1
  %8 = alloca %struct.secp256k1_ecdsa_signature, align 1
  %9 = alloca %struct.bench_data, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [21 x ptr], align 16
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 200, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = icmp eq i32 %17, 1
  %19 = zext i1 %18 to i32
  store i32 %19, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 20000, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %20 = load i32, ptr %11, align 4, !tbaa !5
  %21 = call i32 @get_iters(i32 noundef %20)
  store i32 %21, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 168, ptr %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.main.valid_args, i64 168, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 21, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = getelementptr inbounds [21 x ptr], ptr %13, i64 0, i64 0
  %25 = load i64, ptr %14, align 8, !tbaa !11
  %26 = call i32 @have_invalid_args(i32 noundef %22, ptr noundef %23, ptr noundef %24, i64 noundef %25)
  store i32 %26, ptr %15, align 4, !tbaa !5
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 1
  br i1 %28, label %29, label %55

29:                                               ; preds = %2
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = call i32 @have_flag(i32 noundef %30, ptr noundef %31, ptr noundef @.str.21)
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %44, label %34

34:                                               ; preds = %29
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = call i32 @have_flag(i32 noundef %35, ptr noundef %36, ptr noundef @.str.22)
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %44, label %39

39:                                               ; preds = %34
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = call i32 @have_flag(i32 noundef %40, ptr noundef %41, ptr noundef @.str.23)
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %46

44:                                               ; preds = %39, %34, %29
  %45 = load i32, ptr %11, align 4, !tbaa !5
  call void @help(i32 noundef %45)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %325

46:                                               ; preds = %39
  %47 = load i32, ptr %15, align 4, !tbaa !5
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %53

49:                                               ; preds = %46
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.24) #7
  %52 = load i32, ptr %11, align 4, !tbaa !5
  call void @help(i32 noundef %52)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %325

53:                                               ; preds = %46
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54, %2
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = call i32 @have_flag(i32 noundef %56, ptr noundef %57, ptr noundef @.str.5)
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %65

60:                                               ; preds = %55
  %61 = load ptr, ptr @stderr, align 8, !tbaa !9
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.25) #7
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.26) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %325

65:                                               ; preds = %55
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !9
  %68 = call i32 @have_flag(i32 noundef %66, ptr noundef %67, ptr noundef @.str.6)
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %75, label %70

70:                                               ; preds = %65
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = call i32 @have_flag(i32 noundef %71, ptr noundef %72, ptr noundef @.str.7)
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %80

75:                                               ; preds = %70, %65
  %76 = load ptr, ptr @stderr, align 8, !tbaa !9
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.27) #7
  %78 = load ptr, ptr @stderr, align 8, !tbaa !9
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.28) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %325

80:                                               ; preds = %70
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = load ptr, ptr %5, align 8, !tbaa !9
  %83 = call i32 @have_flag(i32 noundef %81, ptr noundef %82, ptr noundef @.str.8)
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %95, label %85

85:                                               ; preds = %80
  %86 = load i32, ptr %4, align 4, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !9
  %88 = call i32 @have_flag(i32 noundef %86, ptr noundef %87, ptr noundef @.str.10)
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %95, label %90

90:                                               ; preds = %85
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  %93 = call i32 @have_flag(i32 noundef %91, ptr noundef %92, ptr noundef @.str.9)
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %100

95:                                               ; preds = %90, %85, %80
  %96 = load ptr, ptr @stderr, align 8, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.29) #7
  %98 = load ptr, ptr @stderr, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.30) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %325

100:                                              ; preds = %90
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = load ptr, ptr %5, align 8, !tbaa !9
  %103 = call i32 @have_flag(i32 noundef %101, ptr noundef %102, ptr noundef @.str.14)
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %135, label %105

105:                                              ; preds = %100
  %106 = load i32, ptr %4, align 4, !tbaa !5
  %107 = load ptr, ptr %5, align 8, !tbaa !9
  %108 = call i32 @have_flag(i32 noundef %106, ptr noundef %107, ptr noundef @.str.16)
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %135, label %110

110:                                              ; preds = %105
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = load ptr, ptr %5, align 8, !tbaa !9
  %113 = call i32 @have_flag(i32 noundef %111, ptr noundef %112, ptr noundef @.str.18)
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %135, label %115

115:                                              ; preds = %110
  %116 = load i32, ptr %4, align 4, !tbaa !5
  %117 = load ptr, ptr %5, align 8, !tbaa !9
  %118 = call i32 @have_flag(i32 noundef %116, ptr noundef %117, ptr noundef @.str.15)
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %135, label %120

120:                                              ; preds = %115
  %121 = load i32, ptr %4, align 4, !tbaa !5
  %122 = load ptr, ptr %5, align 8, !tbaa !9
  %123 = call i32 @have_flag(i32 noundef %121, ptr noundef %122, ptr noundef @.str.17)
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %135, label %125

125:                                              ; preds = %120
  %126 = load i32, ptr %4, align 4, !tbaa !5
  %127 = load ptr, ptr %5, align 8, !tbaa !9
  %128 = call i32 @have_flag(i32 noundef %126, ptr noundef %127, ptr noundef @.str.19)
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %135, label %130

130:                                              ; preds = %125
  %131 = load i32, ptr %4, align 4, !tbaa !5
  %132 = load ptr, ptr %5, align 8, !tbaa !9
  %133 = call i32 @have_flag(i32 noundef %131, ptr noundef %132, ptr noundef @.str.20)
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %140

135:                                              ; preds = %130, %125, %120, %115, %110, %105, %100
  %136 = load ptr, ptr @stderr, align 8, !tbaa !9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.31) #7
  %138 = load ptr, ptr @stderr, align 8, !tbaa !9
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.32) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %325

140:                                              ; preds = %130
  %141 = call ptr @secp256k1_context_create(i32 noundef 1)
  %142 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 0
  store ptr %141, ptr %142, align 8, !tbaa !13
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %154, %140
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = icmp slt i32 %144, 32
  br i1 %145, label %146, label %157

146:                                              ; preds = %143
  %147 = load i32, ptr %6, align 4, !tbaa !5
  %148 = add nsw i32 1, %147
  %149 = trunc i32 %148 to i8
  %150 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 1
  %151 = load i32, ptr %6, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [32 x i8], ptr %150, i64 0, i64 %152
  store i8 %149, ptr %153, align 1, !tbaa !15
  br label %154

154:                                              ; preds = %146
  %155 = load i32, ptr %6, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %6, align 4, !tbaa !5
  br label %143, !llvm.loop !16

157:                                              ; preds = %143
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %169, %157
  %159 = load i32, ptr %6, align 4, !tbaa !5
  %160 = icmp slt i32 %159, 32
  br i1 %160, label %161, label %172

161:                                              ; preds = %158
  %162 = load i32, ptr %6, align 4, !tbaa !5
  %163 = add nsw i32 33, %162
  %164 = trunc i32 %163 to i8
  %165 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 2
  %166 = load i32, ptr %6, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [32 x i8], ptr %165, i64 0, i64 %167
  store i8 %164, ptr %168, align 1, !tbaa !15
  br label %169

169:                                              ; preds = %161
  %170 = load i32, ptr %6, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %6, align 4, !tbaa !5
  br label %158, !llvm.loop !18

172:                                              ; preds = %158
  %173 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 4
  store i64 72, ptr %173, align 8, !tbaa !19
  br label %174

174:                                              ; preds = %172
  %175 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8, !tbaa !13
  %177 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 1
  %178 = getelementptr inbounds [32 x i8], ptr %177, i64 0, i64 0
  %179 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 2
  %180 = getelementptr inbounds [32 x i8], ptr %179, i64 0, i64 0
  %181 = call i32 @secp256k1_ecdsa_sign(ptr noundef %176, ptr noundef %8, ptr noundef %178, ptr noundef %180, ptr noundef null, ptr noundef null)
  %182 = icmp ne i32 %181, 0
  %183 = xor i1 %182, true
  %184 = zext i1 %183 to i32
  %185 = sext i32 %184 to i64
  %186 = call i64 @llvm.expect.i64(i64 %185, i64 0)
  %187 = icmp ne i64 %186, 0
  br i1 %187, label %188, label %194

188:                                              ; preds = %174
  br label %189

189:                                              ; preds = %188
  %190 = load ptr, ptr @stderr, align 8, !tbaa !9
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.33, ptr noundef @.str.34, i32 noundef 249, ptr noundef @.str.35) #7
  call void @abort() #8
  unreachable

192:                                              ; No predecessors!
  br label %193

193:                                              ; preds = %192
  br label %194

194:                                              ; preds = %193, %174
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196
  %198 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8, !tbaa !13
  %200 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 3
  %201 = getelementptr inbounds [72 x i8], ptr %200, i64 0, i64 0
  %202 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 4
  %203 = call i32 @secp256k1_ecdsa_signature_serialize_der(ptr noundef %199, ptr noundef %201, ptr noundef %202, ptr noundef %8)
  %204 = icmp ne i32 %203, 0
  %205 = xor i1 %204, true
  %206 = zext i1 %205 to i32
  %207 = sext i32 %206 to i64
  %208 = call i64 @llvm.expect.i64(i64 %207, i64 0)
  %209 = icmp ne i64 %208, 0
  br i1 %209, label %210, label %216

210:                                              ; preds = %197
  br label %211

211:                                              ; preds = %210
  %212 = load ptr, ptr @stderr, align 8, !tbaa !9
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef @.str.33, ptr noundef @.str.34, i32 noundef 250, ptr noundef @.str.36) #7
  call void @abort() #8
  unreachable

214:                                              ; No predecessors!
  br label %215

215:                                              ; preds = %214
  br label %216

216:                                              ; preds = %215, %197
  br label %217

217:                                              ; preds = %216
  br label %218

218:                                              ; preds = %217
  br label %219

219:                                              ; preds = %218
  %220 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 0
  %221 = load ptr, ptr %220, align 8, !tbaa !13
  %222 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 2
  %223 = getelementptr inbounds [32 x i8], ptr %222, i64 0, i64 0
  %224 = call i32 @secp256k1_ec_pubkey_create(ptr noundef %221, ptr noundef %7, ptr noundef %223)
  %225 = icmp ne i32 %224, 0
  %226 = xor i1 %225, true
  %227 = zext i1 %226 to i32
  %228 = sext i32 %227 to i64
  %229 = call i64 @llvm.expect.i64(i64 %228, i64 0)
  %230 = icmp ne i64 %229, 0
  br i1 %230, label %231, label %237

231:                                              ; preds = %219
  br label %232

232:                                              ; preds = %231
  %233 = load ptr, ptr @stderr, align 8, !tbaa !9
  %234 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %233, ptr noundef @.str.33, ptr noundef @.str.34, i32 noundef 251, ptr noundef @.str.37) #7
  call void @abort() #8
  unreachable

235:                                              ; No predecessors!
  br label %236

236:                                              ; preds = %235
  br label %237

237:                                              ; preds = %236, %219
  br label %238

238:                                              ; preds = %237
  br label %239

239:                                              ; preds = %238
  %240 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 6
  store i64 33, ptr %240, align 8, !tbaa !20
  br label %241

241:                                              ; preds = %239
  %242 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8, !tbaa !13
  %244 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 5
  %245 = getelementptr inbounds [33 x i8], ptr %244, i64 0, i64 0
  %246 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 6
  %247 = call i32 @secp256k1_ec_pubkey_serialize(ptr noundef %243, ptr noundef %245, ptr noundef %246, ptr noundef %7, i32 noundef 258)
  %248 = icmp eq i32 %247, 1
  %249 = xor i1 %248, true
  %250 = zext i1 %249 to i32
  %251 = sext i32 %250 to i64
  %252 = call i64 @llvm.expect.i64(i64 %251, i64 0)
  %253 = icmp ne i64 %252, 0
  br i1 %253, label %254, label %260

254:                                              ; preds = %241
  br label %255

255:                                              ; preds = %254
  %256 = load ptr, ptr @stderr, align 8, !tbaa !9
  %257 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.33, ptr noundef @.str.34, i32 noundef 253, ptr noundef @.str.38) #7
  call void @abort() #8
  unreachable

258:                                              ; No predecessors!
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259, %241
  br label %261

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261
  call void @print_output_table_header_row()
  %263 = load i32, ptr %10, align 4, !tbaa !5
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %280, label %265

265:                                              ; preds = %262
  %266 = load i32, ptr %4, align 4, !tbaa !5
  %267 = load ptr, ptr %5, align 8, !tbaa !9
  %268 = call i32 @have_flag(i32 noundef %266, ptr noundef %267, ptr noundef @.str)
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %280, label %270

270:                                              ; preds = %265
  %271 = load i32, ptr %4, align 4, !tbaa !5
  %272 = load ptr, ptr %5, align 8, !tbaa !9
  %273 = call i32 @have_flag(i32 noundef %271, ptr noundef %272, ptr noundef @.str.1)
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %280, label %275

275:                                              ; preds = %270
  %276 = load i32, ptr %4, align 4, !tbaa !5
  %277 = load ptr, ptr %5, align 8, !tbaa !9
  %278 = call i32 @have_flag(i32 noundef %276, ptr noundef %277, ptr noundef @.str.2)
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %282

280:                                              ; preds = %275, %270, %265, %262
  %281 = load i32, ptr %12, align 4, !tbaa !5
  call void @run_benchmark(ptr noundef @.str.2, ptr noundef @bench_verify, ptr noundef null, ptr noundef null, ptr noundef %9, i32 noundef 10, i32 noundef %281)
  br label %282

282:                                              ; preds = %280, %275
  %283 = load i32, ptr %10, align 4, !tbaa !5
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %300, label %285

285:                                              ; preds = %282
  %286 = load i32, ptr %4, align 4, !tbaa !5
  %287 = load ptr, ptr %5, align 8, !tbaa !9
  %288 = call i32 @have_flag(i32 noundef %286, ptr noundef %287, ptr noundef @.str)
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %300, label %290

290:                                              ; preds = %285
  %291 = load i32, ptr %4, align 4, !tbaa !5
  %292 = load ptr, ptr %5, align 8, !tbaa !9
  %293 = call i32 @have_flag(i32 noundef %291, ptr noundef %292, ptr noundef @.str.3)
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %300, label %295

295:                                              ; preds = %290
  %296 = load i32, ptr %4, align 4, !tbaa !5
  %297 = load ptr, ptr %5, align 8, !tbaa !9
  %298 = call i32 @have_flag(i32 noundef %296, ptr noundef %297, ptr noundef @.str.4)
  %299 = icmp ne i32 %298, 0
  br i1 %299, label %300, label %302

300:                                              ; preds = %295, %290, %285, %282
  %301 = load i32, ptr %12, align 4, !tbaa !5
  call void @run_benchmark(ptr noundef @.str.4, ptr noundef @bench_sign_run, ptr noundef @bench_sign_setup, ptr noundef null, ptr noundef %9, i32 noundef 10, i32 noundef %301)
  br label %302

302:                                              ; preds = %300, %295
  %303 = load i32, ptr %10, align 4, !tbaa !5
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %320, label %305

305:                                              ; preds = %302
  %306 = load i32, ptr %4, align 4, !tbaa !5
  %307 = load ptr, ptr %5, align 8, !tbaa !9
  %308 = call i32 @have_flag(i32 noundef %306, ptr noundef %307, ptr noundef @.str.11)
  %309 = icmp ne i32 %308, 0
  br i1 %309, label %320, label %310

310:                                              ; preds = %305
  %311 = load i32, ptr %4, align 4, !tbaa !5
  %312 = load ptr, ptr %5, align 8, !tbaa !9
  %313 = call i32 @have_flag(i32 noundef %311, ptr noundef %312, ptr noundef @.str.12)
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %320, label %315

315:                                              ; preds = %310
  %316 = load i32, ptr %4, align 4, !tbaa !5
  %317 = load ptr, ptr %5, align 8, !tbaa !9
  %318 = call i32 @have_flag(i32 noundef %316, ptr noundef %317, ptr noundef @.str.13)
  %319 = icmp ne i32 %318, 0
  br i1 %319, label %320, label %322

320:                                              ; preds = %315, %310, %305, %302
  %321 = load i32, ptr %12, align 4, !tbaa !5
  call void @run_benchmark(ptr noundef @.str.13, ptr noundef @bench_keygen_run, ptr noundef @bench_keygen_setup, ptr noundef null, ptr noundef %9, i32 noundef 10, i32 noundef %321)
  br label %322

322:                                              ; preds = %320, %315
  %323 = getelementptr inbounds %struct.bench_data, ptr %9, i32 0, i32 0
  %324 = load ptr, ptr %323, align 8, !tbaa !13
  call void @secp256k1_context_destroy(ptr noundef %324)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %325

325:                                              ; preds = %322, %135, %95, %75, %60, %49, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 168, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %326 = load i32, ptr %3, align 4
  ret i32 %326
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @get_iters(i32 noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden i32 @have_invalid_args(i32 noundef, ptr noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @have_flag(i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @help(i32 noundef) #0

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

declare ptr @secp256k1_context_create(i32 noundef) #4

declare i32 @secp256k1_ecdsa_sign(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #5

; Function Attrs: noreturn nounwind
declare void @abort() #6

declare i32 @secp256k1_ecdsa_signature_serialize_der(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @secp256k1_ec_pubkey_create(ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @secp256k1_ec_pubkey_serialize(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @print_output_table_header_row() #0

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @bench_sign_setup(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden void @bench_keygen_setup(ptr noundef) #0

declare void @secp256k1_context_destroy(ptr noundef) #4

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"", !10, i64 0, !7, i64 8, !7, i64 40, !7, i64 72, !12, i64 144, !7, i64 152, !12, i64 192}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!14, !12, i64 144}
!20 = !{!14, !12, i64 192}


; 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.secp256k1_pubkey = type { [64 x i8] }
%struct.secp256k1_ecdsa_signature = type { [64 x i8] }
%struct.bench_data = type { ptr, [32 x i8], [32 x i8], [72 x i8], i64, [33 x i8], i64 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1
@__const.main.valid_args = external hidden unnamed_addr constant [21 x ptr], align 16
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [132 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.secp256k1_pubkey, align 1
  %4 = alloca %struct.secp256k1_ecdsa_signature, align 1
  %5 = alloca %struct.bench_data, align 8
  %6 = alloca [21 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %5) #6
  %7 = icmp eq i32 %0, 1
  %8 = tail call i32 @get_iters(i32 noundef 20000)
  call void @llvm.lifetime.start.p0(i64 168, ptr nonnull %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(168) %6, ptr noundef nonnull align 16 dereferenceable(168) @__const.main.valid_args, i64 168, i1 false)
  %9 = call i32 @have_invalid_args(i32 noundef %0, ptr noundef %1, ptr noundef nonnull %6, i64 noundef 21)
  %10 = icmp sgt i32 %0, 1
  br i1 %10, label %11, label %22

11:                                               ; preds = %2
  %12 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.21)
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %17

13:                                               ; preds = %11
  %14 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.22)
  %.not76 = icmp eq i32 %14, 0
  br i1 %.not76, label %15, label %17

15:                                               ; preds = %13
  %16 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.23)
  %.not77 = icmp eq i32 %16, 0
  br i1 %.not77, label %18, label %17

17:                                               ; preds = %15, %13, %11
  call void @help(i32 noundef 20000)
  br label %120

18:                                               ; preds = %15
  %.not78 = icmp eq i32 %9, 0
  br i1 %.not78, label %22, label %19

19:                                               ; preds = %18
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.24) #7
  call void @help(i32 noundef 20000)
  br label %120

22:                                               ; preds = %18, %2
  %23 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.5)
  %.not79 = icmp eq i32 %23, 0
  br i1 %.not79, label %29, label %24

24:                                               ; preds = %22
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.25) #7
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.26) #7
  br label %120

29:                                               ; preds = %22
  %30 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.6)
  %.not80 = icmp eq i32 %30, 0
  br i1 %.not80, label %31, label %33

31:                                               ; preds = %29
  %32 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.7)
  %.not81 = icmp eq i32 %32, 0
  br i1 %.not81, label %38, label %33

33:                                               ; preds = %31, %29
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.27) #7
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.28) #7
  br label %120

38:                                               ; preds = %31
  %39 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.8)
  %.not82 = icmp eq i32 %39, 0
  br i1 %.not82, label %40, label %44

40:                                               ; preds = %38
  %41 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.10)
  %.not83 = icmp eq i32 %41, 0
  br i1 %.not83, label %42, label %44

42:                                               ; preds = %40
  %43 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.9)
  %.not84 = icmp eq i32 %43, 0
  br i1 %.not84, label %49, label %44

44:                                               ; preds = %42, %40, %38
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.29) #7
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.30) #7
  br label %120

49:                                               ; preds = %42
  %50 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.14)
  %.not85 = icmp eq i32 %50, 0
  br i1 %.not85, label %51, label %63

51:                                               ; preds = %49
  %52 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.16)
  %.not86 = icmp eq i32 %52, 0
  br i1 %.not86, label %53, label %63

53:                                               ; preds = %51
  %54 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.18)
  %.not87 = icmp eq i32 %54, 0
  br i1 %.not87, label %55, label %63

55:                                               ; preds = %53
  %56 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.15)
  %.not88 = icmp eq i32 %56, 0
  br i1 %.not88, label %57, label %63

57:                                               ; preds = %55
  %58 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.17)
  %.not89 = icmp eq i32 %58, 0
  br i1 %.not89, label %59, label %63

59:                                               ; preds = %57
  %60 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.19)
  %.not90 = icmp eq i32 %60, 0
  br i1 %.not90, label %61, label %63

61:                                               ; preds = %59
  %62 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.20)
  %.not91 = icmp eq i32 %62, 0
  br i1 %.not91, label %.preheader, label %63

63:                                               ; preds = %61, %59, %57, %55, %53, %51, %49
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.31) #7
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.32) #7
  br label %120

.preheader:                                       ; preds = %61
  %68 = call ptr @secp256k1_context_create(i32 noundef 1) #6
  store ptr %68, ptr %5, align 8, !tbaa !9
  %69 = getelementptr inbounds i8, ptr %5, i64 8
  store <16 x i8> <i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15, i8 16>, ptr %69, align 8, !tbaa !12
  %70 = getelementptr inbounds i8, ptr %5, i64 24
  store <16 x i8> <i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31, i8 32>, ptr %70, align 8, !tbaa !12
  %71 = getelementptr inbounds i8, ptr %5, i64 40
  store <16 x i8> <i8 33, i8 34, i8 35, i8 36, i8 37, i8 38, i8 39, i8 40, i8 41, i8 42, i8 43, i8 44, i8 45, i8 46, i8 47, i8 48>, ptr %71, align 8, !tbaa !12
  %72 = getelementptr inbounds i8, ptr %5, i64 56
  store <16 x i8> <i8 49, i8 50, i8 51, i8 52, i8 53, i8 54, i8 55, i8 56, i8 57, i8 58, i8 59, i8 60, i8 61, i8 62, i8 63, i8 64>, ptr %72, align 8, !tbaa !12
  %73 = getelementptr inbounds i8, ptr %5, i64 144
  store i64 72, ptr %73, align 8, !tbaa !13
  %74 = call i32 @secp256k1_ecdsa_sign(ptr noundef %68, ptr noundef nonnull %4, ptr noundef nonnull %69, ptr noundef nonnull %71, ptr noundef null, ptr noundef null) #6
  %.not92 = icmp eq i32 %74, 0
  br i1 %.not92, label %75, label %78, !prof !14

75:                                               ; preds = %.preheader
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.34, i32 noundef 249, ptr noundef nonnull @.str.35) #7
  call void @abort() #8
  unreachable

78:                                               ; preds = %.preheader
  %79 = load ptr, ptr %5, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %5, i64 72
  %81 = call i32 @secp256k1_ecdsa_signature_serialize_der(ptr noundef %79, ptr noundef nonnull %80, ptr noundef nonnull %73, ptr noundef nonnull %4) #6
  %.not93 = icmp eq i32 %81, 0
  br i1 %.not93, label %82, label %85, !prof !14

82:                                               ; preds = %78
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.34, i32 noundef 250, ptr noundef nonnull @.str.36) #7
  call void @abort() #8
  unreachable

85:                                               ; preds = %78
  %86 = load ptr, ptr %5, align 8, !tbaa !9
  %87 = call i32 @secp256k1_ec_pubkey_create(ptr noundef %86, ptr noundef nonnull %3, ptr noundef nonnull %71) #6
  %.not94 = icmp eq i32 %87, 0
  br i1 %.not94, label %88, label %91, !prof !14

88:                                               ; preds = %85
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.34, i32 noundef 251, ptr noundef nonnull @.str.37) #7
  call void @abort() #8
  unreachable

91:                                               ; preds = %85
  %92 = getelementptr inbounds i8, ptr %5, i64 192
  store i64 33, ptr %92, align 8, !tbaa !15
  %93 = load ptr, ptr %5, align 8, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %5, i64 152
  %95 = call i32 @secp256k1_ec_pubkey_serialize(ptr noundef %93, ptr noundef nonnull %94, ptr noundef nonnull %92, ptr noundef nonnull %3, i32 noundef 258) #6
  %.not95 = icmp eq i32 %95, 1
  br i1 %.not95, label %99, label %96, !prof !16

96:                                               ; preds = %91
  %97 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.34, i32 noundef 253, ptr noundef nonnull @.str.38) #7
  call void @abort() #8
  unreachable

99:                                               ; preds = %91
  call void @print_output_table_header_row()
  br i1 %7, label %111, label %100

100:                                              ; preds = %99
  %101 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str)
  %.not96 = icmp eq i32 %101, 0
  br i1 %.not96, label %102, label %.thread105

102:                                              ; preds = %100
  %103 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.1)
  %.not97 = icmp eq i32 %103, 0
  br i1 %.not97, label %104, label %.thread105

104:                                              ; preds = %102
  %105 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.2)
  %.not98 = icmp eq i32 %105, 0
  br i1 %.not98, label %.thread, label %.thread105

.thread105:                                       ; preds = %100, %102, %104
  call void @run_benchmark(ptr noundef nonnull @.str.2, ptr noundef nonnull @bench_verify, ptr noundef null, ptr noundef null, ptr noundef nonnull %5, i32 noundef 10, i32 noundef %8)
  br label %.thread

.thread:                                          ; preds = %104, %.thread105
  %106 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str)
  %.not99 = icmp eq i32 %106, 0
  br i1 %.not99, label %107, label %.thread108

107:                                              ; preds = %.thread
  %108 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.3)
  %.not100 = icmp eq i32 %108, 0
  br i1 %.not100, label %109, label %.thread108

109:                                              ; preds = %107
  %110 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.4)
  %.not101 = icmp eq i32 %110, 0
  br i1 %.not101, label %.thread106, label %.thread108

.thread108:                                       ; preds = %.thread, %107, %109
  call void @run_benchmark(ptr noundef nonnull @.str.4, ptr noundef nonnull @bench_sign_run, ptr noundef nonnull @bench_sign_setup, ptr noundef null, ptr noundef nonnull %5, i32 noundef 10, i32 noundef %8)
  br label %.thread106

111:                                              ; preds = %99
  call void @run_benchmark(ptr noundef nonnull @.str.2, ptr noundef nonnull @bench_verify, ptr noundef null, ptr noundef null, ptr noundef nonnull %5, i32 noundef 10, i32 noundef %8)
  call void @run_benchmark(ptr noundef nonnull @.str.4, ptr noundef nonnull @bench_sign_run, ptr noundef nonnull @bench_sign_setup, ptr noundef null, ptr noundef nonnull %5, i32 noundef 10, i32 noundef %8)
  br label %117

.thread106:                                       ; preds = %109, %.thread108
  %112 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.11)
  %.not102 = icmp eq i32 %112, 0
  br i1 %.not102, label %113, label %117

113:                                              ; preds = %.thread106
  %114 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.12)
  %.not103 = icmp eq i32 %114, 0
  br i1 %.not103, label %115, label %117

115:                                              ; preds = %113
  %116 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.13)
  %.not104 = icmp eq i32 %116, 0
  br i1 %.not104, label %118, label %117

117:                                              ; preds = %111, %115, %113, %.thread106
  call void @run_benchmark(ptr noundef nonnull @.str.13, ptr noundef nonnull @bench_keygen_run, ptr noundef nonnull @bench_keygen_setup, ptr noundef null, ptr noundef nonnull %5, i32 noundef 10, i32 noundef %8)
  br label %118

118:                                              ; preds = %117, %115
  %119 = load ptr, ptr %5, align 8, !tbaa !9
  call void @secp256k1_context_destroy(ptr noundef %119) #6
  br label %120

120:                                              ; preds = %118, %63, %44, %33, %24, %19, %17
  %.0 = phi i32 [ 0, %17 ], [ 1, %19 ], [ 1, %24 ], [ 1, %33 ], [ 1, %44 ], [ 1, %63 ], [ 0, %118 ]
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  ret i32 %.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: nounwind uwtable
declare hidden i32 @get_iters(i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden i32 @have_invalid_args(i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @have_flag(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @help(i32 noundef) local_unnamed_addr #0

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

declare ptr @secp256k1_context_create(i32 noundef) local_unnamed_addr #4

declare i32 @secp256k1_ecdsa_sign(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #5

declare i32 @secp256k1_ecdsa_signature_serialize_der(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @secp256k1_ec_pubkey_create(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @secp256k1_ec_pubkey_serialize(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @print_output_table_header_row() local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @bench_sign_setup(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden void @bench_keygen_setup(ptr noundef) #0

declare void @secp256k1_context_destroy(ptr noundef) local_unnamed_addr #4

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { 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 #6 = { nounwind }
attributes #7 = { cold nounwind }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"", !6, i64 0, !7, i64 8, !7, i64 40, !7, i64 72, !11, i64 144, !7, i64 152, !11, i64 192}
!11 = !{!"long", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!10, !11, i64 144}
!14 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!15 = !{!10, !11, i64 192}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LowerExpectIntrinsicPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass