; LLVM IR from vergecurrency/verge :: src/secp256k1/src (bench_ecmult)

; 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_ge = type { %struct.secp256k1_fe, %struct.secp256k1_fe, i32 }
%struct.secp256k1_fe = type { [5 x i64] }
%struct.bench_data = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, i64, i64, ptr }
%struct.secp256k1_gej = type { %struct.secp256k1_fe, %struct.secp256k1_fe, %struct.secp256k1_fe, i32 }
%struct.secp256k1_scalar = type { [4 x i64] }

@.str.29 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [25 x i8], align 1
@stderr = external global ptr, align 8
@.str.38 = external hidden unnamed_addr constant [34 x i8], align 1
@secp256k1_ge_const_g = external hidden constant %struct.secp256k1_ge, align 8

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @secp256k1_context_create(i32 noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @secp256k1_context_destroy(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @secp256k1_scratch_space_create(ptr noundef, i64 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.bench_data, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = 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 104, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %12 = call i32 @get_iters(i32 noundef 10000)
  store i32 %12, ptr %10, align 4, !tbaa !5
  %13 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 7
  store ptr @secp256k1_ecmult_multi_var, ptr %13, align 8, !tbaa !11
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = icmp sgt i32 %14, 1
  br i1 %15, label %16, label %70

16:                                               ; preds = %2
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = call i32 @have_flag(i32 noundef %17, ptr noundef %18, ptr noundef @.str.29)
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %31, label %21

21:                                               ; preds = %16
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = call i32 @have_flag(i32 noundef %22, ptr noundef %23, ptr noundef @.str.30)
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %31, label %26

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

31:                                               ; preds = %26, %21, %16
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  call void @help(ptr noundef %32)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %225

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

38:                                               ; preds = %33
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  %40 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 7
  store ptr @secp256k1_ecmult_pippenger_batch_single, ptr %40, align 8, !tbaa !11
  br label %68

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

46:                                               ; preds = %41
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.35)
  %48 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 7
  store ptr @secp256k1_ecmult_strauss_batch_single, ptr %48, align 8, !tbaa !11
  br label %67

49:                                               ; preds = %41
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = call i32 @have_flag(i32 noundef %50, ptr noundef %51, ptr noundef @.str.36)
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %49
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.37)
  br label %66

56:                                               ; preds = %49
  %57 = load ptr, ptr @stderr, align 8, !tbaa !9
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %58, i64 0
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 1
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.38, ptr noundef %60, ptr noundef %63) #6
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  call void @help(ptr noundef %65)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %225

66:                                               ; preds = %54
  br label %67

67:                                               ; preds = %66, %46
  br label %68

68:                                               ; preds = %67, %38
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69, %2
  %71 = call ptr @secp256k1_context_create(i32 noundef 1)
  %72 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 0
  store ptr %71, ptr %72, align 8, !tbaa !14
  %73 = call i64 @secp256k1_strauss_scratch_size(i64 noundef 32768)
  %74 = add i64 %73, 80
  store i64 %74, ptr %9, align 8, !tbaa !15
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = call i32 @have_flag(i32 noundef %75, ptr noundef %76, ptr noundef @.str.36)
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %85, label %79

79:                                               ; preds = %70
  %80 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !14
  %82 = load i64, ptr %9, align 8, !tbaa !15
  %83 = call ptr @secp256k1_scratch_space_create(ptr noundef %81, i64 noundef %82)
  %84 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 1
  store ptr %83, ptr %84, align 8, !tbaa !16
  br label %87

85:                                               ; preds = %70
  %86 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 1
  store ptr null, ptr %86, align 8, !tbaa !16
  br label %87

87:                                               ; preds = %85, %79
  %88 = call noalias ptr @malloc(i64 noundef 1048576) #7
  %89 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 2
  store ptr %88, ptr %89, align 8, !tbaa !17
  %90 = call noalias ptr @malloc(i64 noundef 1048576) #7
  %91 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 5
  store ptr %90, ptr %91, align 8, !tbaa !18
  %92 = call noalias ptr @malloc(i64 noundef 2883584) #7
  %93 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 3
  store ptr %92, ptr %93, align 8, !tbaa !19
  %94 = call noalias ptr @malloc(i64 noundef 4194304) #7
  %95 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 4
  store ptr %94, ptr %95, align 8, !tbaa !20
  %96 = load i32, ptr %10, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  %98 = sext i32 %97 to i64
  %99 = mul i64 128, %98
  %100 = call noalias ptr @malloc(i64 noundef %99) #7
  %101 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 6
  store ptr %100, ptr %101, align 8, !tbaa !21
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = mul i64 128, %104
  %106 = call noalias ptr @malloc(i64 noundef %105) #7
  %107 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 12
  store ptr %106, ptr %107, align 8, !tbaa !22
  %108 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !20
  %110 = getelementptr inbounds %struct.secp256k1_gej, ptr %109, i64 0
  call void @secp256k1_gej_set_ge(ptr noundef %110, ptr noundef @secp256k1_ge_const_g)
  %111 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 5
  %112 = load ptr, ptr %111, align 8, !tbaa !18
  %113 = getelementptr inbounds %struct.secp256k1_scalar, ptr %112, i64 0
  call void @secp256k1_scalar_set_int(ptr noundef %113, i32 noundef 1)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %157, %87
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = icmp slt i32 %115, 32768
  br i1 %116, label %117, label %160

117:                                              ; preds = %114
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 2
  %120 = load ptr, ptr %119, align 8, !tbaa !17
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %struct.secp256k1_scalar, ptr %120, i64 %122
  call void @generate_scalar(i32 noundef %118, ptr noundef %123)
  %124 = load i32, ptr %7, align 4, !tbaa !5
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %156

126:                                              ; preds = %117
  %127 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !20
  %129 = load i32, ptr %7, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds %struct.secp256k1_gej, ptr %128, i64 %130
  %132 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !20
  %134 = load i32, ptr %7, align 4, !tbaa !5
  %135 = sub nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds %struct.secp256k1_gej, ptr %133, i64 %136
  call void @secp256k1_gej_double_var(ptr noundef %131, ptr noundef %137, ptr noundef null)
  %138 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 5
  %139 = load ptr, ptr %138, align 8, !tbaa !18
  %140 = load i32, ptr %7, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %struct.secp256k1_scalar, ptr %139, i64 %141
  %143 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 5
  %144 = load ptr, ptr %143, align 8, !tbaa !18
  %145 = load i32, ptr %7, align 4, !tbaa !5
  %146 = sub nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds %struct.secp256k1_scalar, ptr %144, i64 %147
  %149 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 5
  %150 = load ptr, ptr %149, align 8, !tbaa !18
  %151 = load i32, ptr %7, align 4, !tbaa !5
  %152 = sub nsw i32 %151, 1
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %struct.secp256k1_scalar, ptr %150, i64 %153
  %155 = call i32 @secp256k1_scalar_add(ptr noundef %142, ptr noundef %148, ptr noundef %154)
  br label %156

156:                                              ; preds = %126, %117
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %7, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %7, align 4, !tbaa !5
  br label %114, !llvm.loop !23

160:                                              ; preds = %114
  %161 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 3
  %162 = load ptr, ptr %161, align 8, !tbaa !19
  %163 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !20
  call void @secp256k1_ge_set_all_gej_var(ptr noundef %162, ptr noundef %164, i64 noundef 32768)
  call void @print_output_table_header_row()
  call void @hash_into_offset(ptr noundef %6, i64 noundef 0)
  %165 = load i32, ptr %10, align 4, !tbaa !5
  call void @run_ecmult_bench(ptr noundef %6, i32 noundef %165)
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %173, %160
  %167 = load i32, ptr %7, align 4, !tbaa !5
  %168 = icmp sle i32 %167, 8
  br i1 %168, label %169, label %176

169:                                              ; preds = %166
  %170 = load i32, ptr %7, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = load i32, ptr %10, align 4, !tbaa !5
  call void @run_ecmult_multi_bench(ptr noundef %6, i64 noundef %171, i32 noundef 1, i32 noundef %172)
  br label %173

173:                                              ; preds = %169
  %174 = load i32, ptr %7, align 4, !tbaa !5
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %7, align 4, !tbaa !5
  br label %166, !llvm.loop !25

176:                                              ; preds = %166
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = icmp sgt i32 %177, 2
  br i1 %178, label %179, label %201

179:                                              ; preds = %176
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %180

180:                                              ; preds = %197, %179
  %181 = load i32, ptr %8, align 4, !tbaa !5
  %182 = icmp sle i32 %181, 11
  br i1 %182, label %183, label %200

183:                                              ; preds = %180
  store i32 9, ptr %7, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %193, %183
  %185 = load i32, ptr %7, align 4, !tbaa !5
  %186 = icmp sle i32 %185, 16
  br i1 %186, label %187, label %196

187:                                              ; preds = %184
  %188 = load i32, ptr %7, align 4, !tbaa !5
  %189 = load i32, ptr %8, align 4, !tbaa !5
  %190 = shl i32 %188, %189
  %191 = sext i32 %190 to i64
  %192 = load i32, ptr %10, align 4, !tbaa !5
  call void @run_ecmult_multi_bench(ptr noundef %6, i64 noundef %191, i32 noundef 1, i32 noundef %192)
  br label %193

193:                                              ; preds = %187
  %194 = load i32, ptr %7, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %7, align 4, !tbaa !5
  br label %184, !llvm.loop !26

196:                                              ; preds = %184
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %8, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %8, align 4, !tbaa !5
  br label %180, !llvm.loop !27

200:                                              ; preds = %180
  br label %201

201:                                              ; preds = %200, %176
  %202 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 1
  %203 = load ptr, ptr %202, align 8, !tbaa !16
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %210

205:                                              ; preds = %201
  %206 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 0
  %207 = load ptr, ptr %206, align 8, !tbaa !14
  %208 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 1
  %209 = load ptr, ptr %208, align 8, !tbaa !16
  call void @secp256k1_scratch_space_destroy(ptr noundef %207, ptr noundef %209)
  br label %210

210:                                              ; preds = %205, %201
  %211 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8, !tbaa !14
  call void @secp256k1_context_destroy(ptr noundef %212)
  %213 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 2
  %214 = load ptr, ptr %213, align 8, !tbaa !17
  call void @free(ptr noundef %214) #6
  %215 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 3
  %216 = load ptr, ptr %215, align 8, !tbaa !19
  call void @free(ptr noundef %216) #6
  %217 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !20
  call void @free(ptr noundef %218) #6
  %219 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 5
  %220 = load ptr, ptr %219, align 8, !tbaa !18
  call void @free(ptr noundef %220) #6
  %221 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 12
  %222 = load ptr, ptr %221, align 8, !tbaa !22
  call void @free(ptr noundef %222) #6
  %223 = getelementptr inbounds %struct.bench_data, ptr %6, i32 0, i32 6
  %224 = load ptr, ptr %223, align 8, !tbaa !21
  call void @free(ptr noundef %224) #6
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %225

225:                                              ; preds = %210, %56, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %6) #6
  %226 = load i32, ptr %3, align 4
  ret i32 %226
}

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @help(ptr noundef) #1

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i64 @secp256k1_strauss_scratch_size(i64 noundef) #1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @secp256k1_ge_set_all_gej_var(ptr noundef, ptr noundef, i64 noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden void @hash_into_offset(ptr noundef, i64 noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden void @run_ecmult_multi_bench(ptr noundef, i64 noundef, i32 noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !10, i64 56}
!12 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !13, i64 64, !6, i64 72, !13, i64 80, !13, i64 88, !10, i64 96}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !10, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !10, i64 16}
!18 = !{!12, !10, i64 40}
!19 = !{!12, !10, i64 24}
!20 = !{!12, !10, i64 32}
!21 = !{!12, !10, i64 48}
!22 = !{!12, !10, i64 96}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}


; 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_ge = type { %struct.secp256k1_fe, %struct.secp256k1_fe, i32 }
%struct.secp256k1_fe = type { [5 x i64] }
%struct.bench_data = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, i64, i64, ptr }
%struct.secp256k1_scalar = type { [4 x i64] }
%struct.secp256k1_gej = type { %struct.secp256k1_fe, %struct.secp256k1_fe, %struct.secp256k1_fe, i32 }

@.str.29 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [25 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.38 = external hidden unnamed_addr constant [34 x i8], align 1
@secp256k1_ge_const_g = external hidden constant %struct.secp256k1_ge, align 8

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @secp256k1_context_create(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @secp256k1_context_destroy(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @secp256k1_scratch_space_create(ptr noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca %struct.bench_data, align 8
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %3) #6
  %4 = tail call i32 @get_iters(i32 noundef 10000)
  %5 = getelementptr inbounds i8, ptr %3, i64 56
  store ptr @secp256k1_ecmult_multi_var, ptr %5, align 8, !tbaa !5
  %6 = icmp sgt i32 %0, 1
  br i1 %6, label %7, label %32

7:                                                ; preds = %2
  %8 = tail call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.29)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %13

9:                                                ; preds = %7
  %10 = tail call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.30)
  %.not50 = icmp eq i32 %10, 0
  br i1 %.not50, label %11, label %13

11:                                               ; preds = %9
  %12 = tail call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.31)
  %.not51 = icmp eq i32 %12, 0
  br i1 %.not51, label %14, label %13

13:                                               ; preds = %11, %9, %7
  tail call void @help(ptr noundef %1)
  br label %93

14:                                               ; preds = %11
  %15 = tail call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.32)
  %.not52 = icmp eq i32 %15, 0
  br i1 %.not52, label %18, label %16

16:                                               ; preds = %14
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  store ptr @secp256k1_ecmult_pippenger_batch_single, ptr %5, align 8, !tbaa !5
  br label %32

18:                                               ; preds = %14
  %19 = tail call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.34)
  %.not53 = icmp eq i32 %19, 0
  br i1 %.not53, label %22, label %20

20:                                               ; preds = %18
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35)
  store ptr @secp256k1_ecmult_strauss_batch_single, ptr %5, align 8, !tbaa !5
  br label %32

22:                                               ; preds = %18
  %23 = tail call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.36)
  %.not54 = icmp eq i32 %23, 0
  br i1 %.not54, label %26, label %24

24:                                               ; preds = %22
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37)
  br label %32

26:                                               ; preds = %22
  %27 = load ptr, ptr @stderr, align 8, !tbaa !12
  %28 = load ptr, ptr %1, align 8, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %1, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.38, ptr noundef %28, ptr noundef %30) #7
  tail call void @help(ptr noundef nonnull %1)
  br label %93

32:                                               ; preds = %20, %24, %16, %2
  %33 = tail call ptr @secp256k1_context_create(i32 noundef 1)
  store ptr %33, ptr %3, align 8, !tbaa !13
  %34 = tail call i64 @secp256k1_strauss_scratch_size(i64 noundef 32768)
  %35 = tail call i32 @have_flag(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.36)
  %.not55 = icmp eq i32 %35, 0
  br i1 %.not55, label %36, label %.peel.next

36:                                               ; preds = %32
  %37 = add i64 %34, 80
  %38 = tail call ptr @secp256k1_scratch_space_create(ptr noundef %33, i64 noundef %37)
  br label %.peel.next

.peel.next:                                       ; preds = %32, %36
  %.sink = phi ptr [ %38, %36 ], [ null, %32 ]
  %39 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %.sink, ptr %39, align 8
  %40 = tail call noalias dereferenceable_or_null(1048576) ptr @malloc(i64 noundef 1048576) #8
  %41 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr %40, ptr %41, align 8, !tbaa !14
  %42 = tail call noalias dereferenceable_or_null(1048576) ptr @malloc(i64 noundef 1048576) #8
  %43 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %42, ptr %43, align 8, !tbaa !15
  %44 = tail call noalias dereferenceable_or_null(2883584) ptr @malloc(i64 noundef 2883584) #8
  %45 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %44, ptr %45, align 8, !tbaa !16
  %46 = tail call noalias dereferenceable_or_null(4194304) ptr @malloc(i64 noundef 4194304) #8
  %47 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr %46, ptr %47, align 8, !tbaa !17
  %48 = add nsw i32 %4, 1
  %49 = sext i32 %48 to i64
  %50 = shl nsw i64 %49, 7
  %51 = tail call noalias ptr @malloc(i64 noundef %50) #8
  %52 = getelementptr inbounds i8, ptr %3, i64 48
  store ptr %51, ptr %52, align 8, !tbaa !18
  %53 = tail call noalias ptr @malloc(i64 noundef %50) #8
  %54 = getelementptr inbounds i8, ptr %3, i64 96
  store ptr %53, ptr %54, align 8, !tbaa !19
  tail call void @secp256k1_gej_set_ge(ptr noundef %46, ptr noundef nonnull @secp256k1_ge_const_g)
  tail call void @secp256k1_scalar_set_int(ptr noundef %42, i32 noundef 1)
  tail call void @generate_scalar(i32 noundef 0, ptr noundef %40)
  br label %55

55:                                               ; preds = %.peel.next, %55
  %indvars.iv = phi i64 [ 1, %.peel.next ], [ %indvars.iv.next, %55 ]
  %56 = getelementptr inbounds %struct.secp256k1_scalar, ptr %40, i64 %indvars.iv
  %57 = trunc nuw nsw i64 %indvars.iv to i32
  tail call void @generate_scalar(i32 noundef %57, ptr noundef nonnull %56)
  %58 = getelementptr inbounds %struct.secp256k1_gej, ptr %46, i64 %indvars.iv
  %59 = add nsw i64 %indvars.iv, -1
  %60 = getelementptr inbounds %struct.secp256k1_gej, ptr %46, i64 %59
  tail call void @secp256k1_gej_double_var(ptr noundef nonnull %58, ptr noundef %60, ptr noundef null)
  %61 = getelementptr inbounds %struct.secp256k1_scalar, ptr %42, i64 %indvars.iv
  %62 = getelementptr inbounds %struct.secp256k1_scalar, ptr %42, i64 %59
  %63 = tail call i32 @secp256k1_scalar_add(ptr noundef nonnull %61, ptr noundef %62, ptr noundef %62)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 32768
  br i1 %exitcond.not, label %.loopexit65, label %55, !llvm.loop !20

.loopexit65:                                      ; preds = %55
  tail call void @secp256k1_ge_set_all_gej_var(ptr noundef %44, ptr noundef %46, i64 noundef 32768)
  tail call void @print_output_table_header_row()
  call void @hash_into_offset(ptr noundef nonnull %3, i64 noundef 0)
  call void @run_ecmult_bench(ptr noundef nonnull %3, i32 noundef %4)
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef 1, i32 noundef 1, i32 noundef %4)
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef 2, i32 noundef 1, i32 noundef %4)
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef 3, i32 noundef 1, i32 noundef %4)
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef 4, i32 noundef 1, i32 noundef %4)
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef 5, i32 noundef 1, i32 noundef %4)
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef 6, i32 noundef 1, i32 noundef %4)
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef 7, i32 noundef 1, i32 noundef %4)
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef 8, i32 noundef 1, i32 noundef %4)
  %64 = icmp sgt i32 %4, 2
  br i1 %64, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.loopexit65, %.preheader
  %.04662 = phi i32 [ %81, %.preheader ], [ 0, %.loopexit65 ]
  %65 = shl nuw nsw i32 9, %.04662
  %66 = zext nneg i32 %65 to i64
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef %66, i32 noundef 1, i32 noundef %4)
  %67 = shl nuw nsw i32 10, %.04662
  %68 = zext nneg i32 %67 to i64
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef %68, i32 noundef 1, i32 noundef %4)
  %69 = shl nuw nsw i32 11, %.04662
  %70 = zext nneg i32 %69 to i64
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef %70, i32 noundef 1, i32 noundef %4)
  %71 = shl nuw nsw i32 12, %.04662
  %72 = zext nneg i32 %71 to i64
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef %72, i32 noundef 1, i32 noundef %4)
  %73 = shl nuw nsw i32 13, %.04662
  %74 = zext nneg i32 %73 to i64
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef %74, i32 noundef 1, i32 noundef %4)
  %75 = shl nuw nsw i32 14, %.04662
  %76 = zext nneg i32 %75 to i64
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef %76, i32 noundef 1, i32 noundef %4)
  %77 = shl nuw nsw i32 15, %.04662
  %78 = zext nneg i32 %77 to i64
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef %78, i32 noundef 1, i32 noundef %4)
  %79 = shl nuw nsw i32 16, %.04662
  %80 = zext nneg i32 %79 to i64
  call void @run_ecmult_multi_bench(ptr noundef nonnull %3, i64 noundef %80, i32 noundef 1, i32 noundef %4)
  %81 = add nuw nsw i32 %.04662, 1
  %exitcond71.not = icmp eq i32 %81, 12
  br i1 %exitcond71.not, label %.loopexit, label %.preheader, !llvm.loop !23

.loopexit:                                        ; preds = %.preheader, %.loopexit65
  %82 = load ptr, ptr %39, align 8, !tbaa !24
  %.not56 = icmp eq ptr %82, null
  br i1 %.not56, label %85, label %83

83:                                               ; preds = %.loopexit
  %84 = load ptr, ptr %3, align 8, !tbaa !13
  call void @secp256k1_scratch_space_destroy(ptr noundef %84, ptr noundef nonnull %82)
  br label %85

85:                                               ; preds = %83, %.loopexit
  %86 = load ptr, ptr %3, align 8, !tbaa !13
  call void @secp256k1_context_destroy(ptr noundef %86)
  %87 = load ptr, ptr %41, align 8, !tbaa !14
  call void @free(ptr noundef %87) #6
  %88 = load ptr, ptr %45, align 8, !tbaa !16
  call void @free(ptr noundef %88) #6
  %89 = load ptr, ptr %47, align 8, !tbaa !17
  call void @free(ptr noundef %89) #6
  %90 = load ptr, ptr %43, align 8, !tbaa !15
  call void @free(ptr noundef %90) #6
  %91 = load ptr, ptr %54, align 8, !tbaa !19
  call void @free(ptr noundef %91) #6
  %92 = load ptr, ptr %52, align 8, !tbaa !18
  call void @free(ptr noundef %92) #6
  br label %93

93:                                               ; preds = %85, %26, %13
  %.0 = phi i32 [ 0, %13 ], [ 0, %85 ], [ 1, %26 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %3) #6
  ret i32 %.0
}

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i64 @secp256k1_strauss_scratch_size(i64 noundef) local_unnamed_addr #1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @secp256k1_ge_set_all_gej_var(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden void @hash_into_offset(ptr noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden void @run_ecmult_multi_bench(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { cold nounwind }
attributes #8 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 56}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !11, i64 72, !10, i64 80, !10, i64 88, !7, i64 96}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !7, i64 40}
!16 = !{!6, !7, i64 24}
!17 = !{!6, !7, i64 32}
!18 = !{!6, !7, i64 48}
!19 = !{!6, !7, i64 96}
!20 = distinct !{!20, !21, !22}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!"llvm.loop.peeled.count", i32 1}
!23 = distinct !{!23, !21}
!24 = !{!6, !7, i64 8}


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