; LLVM IR from vergecurrency/verge :: src/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_verify_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
@__const.main.valid_args = external hidden unnamed_addr constant [11 x ptr], align 16
@.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 [5 x i8], align 1
@stderr = external global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.26 = 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_verify_data, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [11 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 88, ptr %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.main.valid_args, i64 88, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 11, 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 [11 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.11)
  %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.12)
  %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.13)
  %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 %265

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.14) #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 %265

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.15) #7
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.16) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %265

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.17) #7
  %78 = load ptr, ptr @stderr, align 8, !tbaa !9
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.18) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %265

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.19) #7
  %98 = load ptr, ptr @stderr, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.20) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %265

100:                                              ; preds = %90
  %101 = call ptr @secp256k1_context_create(i32 noundef 1)
  %102 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 0
  store ptr %101, ptr %102, align 8, !tbaa !13
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %114, %100
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = icmp slt i32 %104, 32
  br i1 %105, label %106, label %117

106:                                              ; preds = %103
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = add nsw i32 1, %107
  %109 = trunc i32 %108 to i8
  %110 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 1
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [32 x i8], ptr %110, i64 0, i64 %112
  store i8 %109, ptr %113, align 1, !tbaa !15
  br label %114

114:                                              ; preds = %106
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %6, align 4, !tbaa !5
  br label %103, !llvm.loop !16

117:                                              ; preds = %103
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %129, %117
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = icmp slt i32 %119, 32
  br i1 %120, label %121, label %132

121:                                              ; preds = %118
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = add nsw i32 33, %122
  %124 = trunc i32 %123 to i8
  %125 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 2
  %126 = load i32, ptr %6, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [32 x i8], ptr %125, i64 0, i64 %127
  store i8 %124, ptr %128, align 1, !tbaa !15
  br label %129

129:                                              ; preds = %121
  %130 = load i32, ptr %6, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %6, align 4, !tbaa !5
  br label %118, !llvm.loop !18

132:                                              ; preds = %118
  %133 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 4
  store i64 72, ptr %133, align 8, !tbaa !19
  br label %134

134:                                              ; preds = %132
  %135 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  %137 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 1
  %138 = getelementptr inbounds [32 x i8], ptr %137, i64 0, i64 0
  %139 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 2
  %140 = getelementptr inbounds [32 x i8], ptr %139, i64 0, i64 0
  %141 = call i32 @secp256k1_ecdsa_sign(ptr noundef %136, ptr noundef %8, ptr noundef %138, ptr noundef %140, ptr noundef null, ptr noundef null)
  %142 = icmp ne i32 %141, 0
  %143 = xor i1 %142, true
  %144 = zext i1 %143 to i32
  %145 = sext i32 %144 to i64
  %146 = call i64 @llvm.expect.i64(i64 %145, i64 0)
  %147 = icmp ne i64 %146, 0
  br i1 %147, label %148, label %154

148:                                              ; preds = %134
  br label %149

149:                                              ; preds = %148
  %150 = load ptr, ptr @stderr, align 8, !tbaa !9
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.21, ptr noundef @.str.22, i32 noundef 200, ptr noundef @.str.23) #7
  call void @abort() #8
  unreachable

152:                                              ; No predecessors!
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153, %134
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  %158 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8, !tbaa !13
  %160 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 3
  %161 = getelementptr inbounds [72 x i8], ptr %160, i64 0, i64 0
  %162 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 4
  %163 = call i32 @secp256k1_ecdsa_signature_serialize_der(ptr noundef %159, ptr noundef %161, ptr noundef %162, ptr noundef %8)
  %164 = icmp ne i32 %163, 0
  %165 = xor i1 %164, true
  %166 = zext i1 %165 to i32
  %167 = sext i32 %166 to i64
  %168 = call i64 @llvm.expect.i64(i64 %167, i64 0)
  %169 = icmp ne i64 %168, 0
  br i1 %169, label %170, label %176

170:                                              ; preds = %157
  br label %171

171:                                              ; preds = %170
  %172 = load ptr, ptr @stderr, align 8, !tbaa !9
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.21, ptr noundef @.str.22, i32 noundef 201, ptr noundef @.str.24) #7
  call void @abort() #8
  unreachable

174:                                              ; No predecessors!
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175, %157
  br label %177

177:                                              ; preds = %176
  br label %178

178:                                              ; preds = %177
  br label %179

179:                                              ; preds = %178
  %180 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !13
  %182 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 2
  %183 = getelementptr inbounds [32 x i8], ptr %182, i64 0, i64 0
  %184 = call i32 @secp256k1_ec_pubkey_create(ptr noundef %181, ptr noundef %7, ptr noundef %183)
  %185 = icmp ne i32 %184, 0
  %186 = xor i1 %185, true
  %187 = zext i1 %186 to i32
  %188 = sext i32 %187 to i64
  %189 = call i64 @llvm.expect.i64(i64 %188, i64 0)
  %190 = icmp ne i64 %189, 0
  br i1 %190, label %191, label %197

191:                                              ; preds = %179
  br label %192

192:                                              ; preds = %191
  %193 = load ptr, ptr @stderr, align 8, !tbaa !9
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.21, ptr noundef @.str.22, i32 noundef 202, ptr noundef @.str.25) #7
  call void @abort() #8
  unreachable

195:                                              ; No predecessors!
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196, %179
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198
  %200 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 6
  store i64 33, ptr %200, align 8, !tbaa !20
  br label %201

201:                                              ; preds = %199
  %202 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 0
  %203 = load ptr, ptr %202, align 8, !tbaa !13
  %204 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 5
  %205 = getelementptr inbounds [33 x i8], ptr %204, i64 0, i64 0
  %206 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 6
  %207 = call i32 @secp256k1_ec_pubkey_serialize(ptr noundef %203, ptr noundef %205, ptr noundef %206, ptr noundef %7, i32 noundef 258)
  %208 = icmp eq i32 %207, 1
  %209 = xor i1 %208, true
  %210 = zext i1 %209 to i32
  %211 = sext i32 %210 to i64
  %212 = call i64 @llvm.expect.i64(i64 %211, i64 0)
  %213 = icmp ne i64 %212, 0
  br i1 %213, label %214, label %220

214:                                              ; preds = %201
  br label %215

215:                                              ; preds = %214
  %216 = load ptr, ptr @stderr, align 8, !tbaa !9
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %216, ptr noundef @.str.21, ptr noundef @.str.22, i32 noundef 204, ptr noundef @.str.26) #7
  call void @abort() #8
  unreachable

218:                                              ; No predecessors!
  br label %219

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219, %201
  br label %221

221:                                              ; preds = %220
  br label %222

222:                                              ; preds = %221
  call void @print_output_table_header_row()
  %223 = load i32, ptr %10, align 4, !tbaa !5
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %240, label %225

225:                                              ; preds = %222
  %226 = load i32, ptr %4, align 4, !tbaa !5
  %227 = load ptr, ptr %5, align 8, !tbaa !9
  %228 = call i32 @have_flag(i32 noundef %226, ptr noundef %227, ptr noundef @.str)
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %240, label %230

230:                                              ; preds = %225
  %231 = load i32, ptr %4, align 4, !tbaa !5
  %232 = load ptr, ptr %5, align 8, !tbaa !9
  %233 = call i32 @have_flag(i32 noundef %231, ptr noundef %232, ptr noundef @.str.1)
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %240, label %235

235:                                              ; preds = %230
  %236 = load i32, ptr %4, align 4, !tbaa !5
  %237 = load ptr, ptr %5, align 8, !tbaa !9
  %238 = call i32 @have_flag(i32 noundef %236, ptr noundef %237, ptr noundef @.str.2)
  %239 = icmp ne i32 %238, 0
  br i1 %239, label %240, label %242

240:                                              ; preds = %235, %230, %225, %222
  %241 = 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 %241)
  br label %242

242:                                              ; preds = %240, %235
  %243 = load i32, ptr %10, align 4, !tbaa !5
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %260, label %245

245:                                              ; preds = %242
  %246 = load i32, ptr %4, align 4, !tbaa !5
  %247 = load ptr, ptr %5, align 8, !tbaa !9
  %248 = call i32 @have_flag(i32 noundef %246, ptr noundef %247, ptr noundef @.str)
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %260, label %250

250:                                              ; preds = %245
  %251 = load i32, ptr %4, align 4, !tbaa !5
  %252 = load ptr, ptr %5, align 8, !tbaa !9
  %253 = call i32 @have_flag(i32 noundef %251, ptr noundef %252, ptr noundef @.str.3)
  %254 = icmp ne i32 %253, 0
  br i1 %254, label %260, label %255

255:                                              ; preds = %250
  %256 = load i32, ptr %4, align 4, !tbaa !5
  %257 = load ptr, ptr %5, align 8, !tbaa !9
  %258 = call i32 @have_flag(i32 noundef %256, ptr noundef %257, ptr noundef @.str.4)
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %262

260:                                              ; preds = %255, %250, %245, %242
  %261 = 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 %261)
  br label %262

262:                                              ; preds = %260, %255
  %263 = getelementptr inbounds %struct.bench_verify_data, ptr %9, i32 0, i32 0
  %264 = load ptr, ptr %263, align 8, !tbaa !13
  call void @secp256k1_context_destroy(ptr noundef %264)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %265

265:                                              ; preds = %262, %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 88, 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
  %266 = load i32, ptr %3, align 4
  ret i32 %266
}

; 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

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_verify_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
@__const.main.valid_args = external hidden unnamed_addr constant [11 x ptr], align 16
@.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 [5 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.26 = 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_verify_data, align 8
  %6 = alloca [11 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 88, ptr nonnull %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(88) %6, ptr noundef nonnull align 16 dereferenceable(88) @__const.main.valid_args, i64 88, i1 false)
  %9 = call i32 @have_invalid_args(i32 noundef %0, ptr noundef %1, ptr noundef nonnull %6, i64 noundef 11)
  %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.11)
  %.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.12)
  %.not54 = icmp eq i32 %14, 0
  br i1 %.not54, label %15, label %17

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

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

18:                                               ; preds = %15
  %.not56 = icmp eq i32 %9, 0
  br i1 %.not56, 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.14) #7
  call void @help(i32 noundef 20000)
  br label %96

22:                                               ; preds = %18, %2
  %23 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.5)
  %.not57 = icmp eq i32 %23, 0
  br i1 %.not57, 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.15) #7
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.16) #7
  br label %96

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

31:                                               ; preds = %29
  %32 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.7)
  %.not59 = icmp eq i32 %32, 0
  br i1 %.not59, 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.17) #7
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.18) #7
  br label %96

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

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

42:                                               ; preds = %40
  %43 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.9)
  %.not62 = icmp eq i32 %43, 0
  br i1 %.not62, label %.preheader, 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.19) #7
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.20) #7
  br label %96

.preheader:                                       ; preds = %42
  %49 = call ptr @secp256k1_context_create(i32 noundef 1) #6
  store ptr %49, ptr %5, align 8, !tbaa !9
  %50 = 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 %50, align 8, !tbaa !12
  %51 = 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 %51, align 8, !tbaa !12
  %52 = 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 %52, align 8, !tbaa !12
  %53 = 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 %53, align 8, !tbaa !12
  %54 = getelementptr inbounds i8, ptr %5, i64 144
  store i64 72, ptr %54, align 8, !tbaa !13
  %55 = call i32 @secp256k1_ecdsa_sign(ptr noundef %49, ptr noundef nonnull %4, ptr noundef nonnull %50, ptr noundef nonnull %52, ptr noundef null, ptr noundef null) #6
  %.not63 = icmp eq i32 %55, 0
  br i1 %.not63, label %56, label %59, !prof !14

56:                                               ; preds = %.preheader
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.22, i32 noundef 200, ptr noundef nonnull @.str.23) #7
  call void @abort() #8
  unreachable

59:                                               ; preds = %.preheader
  %60 = load ptr, ptr %5, align 8, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %5, i64 72
  %62 = call i32 @secp256k1_ecdsa_signature_serialize_der(ptr noundef %60, ptr noundef nonnull %61, ptr noundef nonnull %54, ptr noundef nonnull %4) #6
  %.not64 = icmp eq i32 %62, 0
  br i1 %.not64, label %63, label %66, !prof !14

63:                                               ; preds = %59
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.22, i32 noundef 201, ptr noundef nonnull @.str.24) #7
  call void @abort() #8
  unreachable

66:                                               ; preds = %59
  %67 = load ptr, ptr %5, align 8, !tbaa !9
  %68 = call i32 @secp256k1_ec_pubkey_create(ptr noundef %67, ptr noundef nonnull %3, ptr noundef nonnull %52) #6
  %.not65 = icmp eq i32 %68, 0
  br i1 %.not65, label %69, label %72, !prof !14

69:                                               ; preds = %66
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.22, i32 noundef 202, ptr noundef nonnull @.str.25) #7
  call void @abort() #8
  unreachable

72:                                               ; preds = %66
  %73 = getelementptr inbounds i8, ptr %5, i64 192
  store i64 33, ptr %73, align 8, !tbaa !15
  %74 = load ptr, ptr %5, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %5, i64 152
  %76 = call i32 @secp256k1_ec_pubkey_serialize(ptr noundef %74, ptr noundef nonnull %75, ptr noundef nonnull %73, ptr noundef nonnull %3, i32 noundef 258) #6
  %.not66 = icmp eq i32 %76, 1
  br i1 %.not66, label %80, label %77, !prof !16

77:                                               ; preds = %72
  %78 = load ptr, ptr @stderr, align 8, !tbaa !5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.22, i32 noundef 204, ptr noundef nonnull @.str.26) #7
  call void @abort() #8
  unreachable

80:                                               ; preds = %72
  call void @print_output_table_header_row()
  br i1 %7, label %87, label %81

81:                                               ; preds = %80
  %82 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str)
  %.not67 = icmp eq i32 %82, 0
  br i1 %.not67, label %83, label %.thread73

83:                                               ; preds = %81
  %84 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.1)
  %.not68 = icmp eq i32 %84, 0
  br i1 %.not68, label %85, label %.thread73

85:                                               ; preds = %83
  %86 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.2)
  %.not69 = icmp eq i32 %86, 0
  br i1 %.not69, label %.thread, label %.thread73

.thread73:                                        ; preds = %81, %83, %85
  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

87:                                               ; preds = %80
  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 %93

.thread:                                          ; preds = %85, %.thread73
  %88 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str)
  %.not70 = icmp eq i32 %88, 0
  br i1 %.not70, label %89, label %93

89:                                               ; preds = %.thread
  %90 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.3)
  %.not71 = icmp eq i32 %90, 0
  br i1 %.not71, label %91, label %93

91:                                               ; preds = %89
  %92 = call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.4)
  %.not72 = icmp eq i32 %92, 0
  br i1 %.not72, label %94, label %93

93:                                               ; preds = %87, %91, %89, %.thread
  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 %94

94:                                               ; preds = %93, %91
  %95 = load ptr, ptr %5, align 8, !tbaa !9
  call void @secp256k1_context_destroy(ptr noundef %95) #6
  br label %96

96:                                               ; preds = %94, %44, %33, %24, %19, %17
  %.0 = phi i32 [ 0, %17 ], [ 1, %19 ], [ 1, %24 ], [ 1, %33 ], [ 1, %44 ], [ 0, %94 ]
  call void @llvm.lifetime.end.p0(i64 88, 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

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