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

; 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_storage = type { %struct.secp256k1_fe_storage, %struct.secp256k1_fe_storage }
%struct.secp256k1_fe_storage = type { [4 x i64] }
%struct.secp256k1_ge = type { %struct.secp256k1_fe, %struct.secp256k1_fe, i32 }
%struct.secp256k1_fe = type { [5 x i64] }
%struct.secp256k1_gej = type { %struct.secp256k1_fe, %struct.secp256k1_fe, %struct.secp256k1_fe, i32 }
%struct.secp256k1_context_struct = type { %struct.secp256k1_ecmult_gen_context, %struct.secp256k1_callback, %struct.secp256k1_callback, i32 }
%struct.secp256k1_ecmult_gen_context = type { i32, i32, %struct.secp256k1_ge, %struct.secp256k1_fe }
%struct.secp256k1_callback = type { ptr, ptr }

@stdout = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [32 x i8], align 1
@count = external hidden global i32, align 4
@.str.31 = external hidden unnamed_addr constant [17 x i8], align 1
@num_cores = external hidden global i32, align 4
@this_core = external hidden global i32, align 4
@.str.32 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [46 x i8], align 1
@secp256k1_ecmult_gen_prec_table = external hidden global [1 x [2 x %struct.secp256k1_ge_storage]], align 16
@secp256k1_ge_const_g = external hidden constant %struct.secp256k1_ge, align 8
@secp256k1_pre_g = external hidden global [4 x %struct.secp256k1_ge_storage], align 16
@secp256k1_pre_g_128 = external hidden global [4 x %struct.secp256k1_ge_storage], align 16
@.str.34 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [19 x i8], align 1

; 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(none)
declare i64 @llvm.expect.i64(i64, i64) #1

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @secp256k1_gej_set_infinity(ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [13 x %struct.secp256k1_gej], align 16
  %8 = alloca [13 x %struct.secp256k1_ge], align 16
  %9 = alloca [32 x i8], align 16
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.secp256k1_fe, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.secp256k1_gej, align 8
  %15 = alloca %struct.secp256k1_ge, align 8
  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 1664, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 1144, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %16 = load ptr, ptr @stdout, align 8, !tbaa !9
  call void @setbuf(ptr noundef %16, ptr noundef null) #7
  %17 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @setbuf(ptr noundef %17, ptr noundef null) #7
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, i64 noundef 13)
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 1
  br i1 %20, label %21, label %27

21:                                               ; preds = %2
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = getelementptr inbounds ptr, ptr %22, i64 1
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = call i64 @strtol(ptr noundef %24, ptr noundef null, i32 noundef 0) #7
  %26 = trunc i64 %25 to i32
  store i32 %26, ptr @count, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %21, %2
  %28 = load i32, ptr @count, align 4, !tbaa !5
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, i32 noundef %28)
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = icmp sgt i32 %30, 2
  br i1 %31, label %32, label %36

32:                                               ; preds = %27
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %33, i64 2
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  br label %37

36:                                               ; preds = %27
  br label %37

37:                                               ; preds = %36, %32
  %38 = phi ptr [ %35, %32 ], [ null, %36 ]
  call void @testrand_init(ptr noundef %38)
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = icmp sgt i32 %39, 4
  br i1 %40, label %41, label %71

41:                                               ; preds = %37
  %42 = load ptr, ptr %5, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %42, i64 3
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = call i64 @strtol(ptr noundef %44, ptr noundef null, i32 noundef 0) #7
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr @num_cores, align 4, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 4
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = call i64 @strtol(ptr noundef %49, ptr noundef null, i32 noundef 0) #7
  %51 = trunc i64 %50 to i32
  store i32 %51, ptr @this_core, align 4, !tbaa !5
  %52 = load i32, ptr @num_cores, align 4, !tbaa !5
  %53 = icmp ult i32 %52, 1
  br i1 %53, label %58, label %54

54:                                               ; preds = %41
  %55 = load i32, ptr @this_core, align 4, !tbaa !5
  %56 = load i32, ptr @num_cores, align 4, !tbaa !5
  %57 = icmp uge i32 %55, %56
  br i1 %57, label %58, label %64

58:                                               ; preds = %54, %41
  %59 = load ptr, ptr @stderr, align 8, !tbaa !9
  %60 = load ptr, ptr %5, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %60, i64 0
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.32, ptr noundef %62) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %229

64:                                               ; preds = %54
  %65 = load i32, ptr @this_core, align 4, !tbaa !5
  %66 = zext i32 %65 to i64
  %67 = load i32, ptr @num_cores, align 4, !tbaa !5
  %68 = zext i32 %67 to i64
  %69 = sub i64 %68, 1
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, i64 noundef %66, i64 noundef %69)
  br label %71

71:                                               ; preds = %64, %37
  call void @secp256k1_ecmult_gen_compute_table(ptr noundef @secp256k1_ecmult_gen_prec_table, ptr noundef @secp256k1_ge_const_g, i32 noundef 1, i32 noundef 2, i32 noundef 2)
  call void @secp256k1_ecmult_compute_two_tables(ptr noundef @secp256k1_pre_g, ptr noundef @secp256k1_pre_g_128, i32 noundef 4, ptr noundef @secp256k1_ge_const_g)
  br label %72

72:                                               ; preds = %214, %71
  %73 = load i32, ptr @count, align 4, !tbaa !5
  %74 = add nsw i32 %73, -1
  store i32 %74, ptr @count, align 4, !tbaa !5
  %75 = icmp ne i32 %73, 0
  br i1 %75, label %76, label %227

76:                                               ; preds = %72
  %77 = call ptr @secp256k1_context_create(i32 noundef 1)
  store ptr %77, ptr %10, align 8, !tbaa !9
  %78 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  call void @testrand256(ptr noundef %78)
  br label %79

79:                                               ; preds = %76
  %80 = load ptr, ptr %10, align 8, !tbaa !9
  %81 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %82 = call i32 @secp256k1_context_randomize(ptr noundef %80, ptr noundef %81)
  %83 = icmp ne i32 %82, 0
  %84 = xor i1 %83, true
  %85 = zext i1 %84 to i32
  %86 = sext i32 %85 to i64
  %87 = call i64 @llvm.expect.i64(i64 %86, i64 0)
  %88 = icmp ne i64 %87, 0
  br i1 %88, label %89, label %95

89:                                               ; preds = %79
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr @stderr, align 8, !tbaa !9
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.34, ptr noundef @.str.35, i32 noundef 399, ptr noundef @.str.36) #7
  call void @abort() #8
  unreachable

93:                                               ; No predecessors!
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94, %79
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  %98 = getelementptr inbounds [13 x %struct.secp256k1_gej], ptr %7, i64 0, i64 0
  call void @secp256k1_gej_set_infinity(ptr noundef %98)
  %99 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 0
  %100 = getelementptr inbounds [13 x %struct.secp256k1_gej], ptr %7, i64 0, i64 0
  call void @secp256k1_ge_set_gej(ptr noundef %99, ptr noundef %100)
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %211, %97
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = icmp slt i32 %102, 13
  br i1 %103, label %104, label %214

104:                                              ; preds = %101
  %105 = load i32, ptr %6, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [13 x %struct.secp256k1_gej], ptr %7, i64 0, i64 %106
  %108 = load i32, ptr %6, align 4, !tbaa !5
  %109 = sub nsw i32 %108, 1
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [13 x %struct.secp256k1_gej], ptr %7, i64 0, i64 %110
  call void @secp256k1_gej_add_ge(ptr noundef %107, ptr noundef %111, ptr noundef @secp256k1_ge_const_g)
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 %113
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [13 x %struct.secp256k1_gej], ptr %7, i64 0, i64 %116
  call void @secp256k1_ge_set_gej(ptr noundef %114, ptr noundef %117)
  %118 = load i32, ptr @count, align 4, !tbaa !5
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %124

120:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #7
  call void @testutil_random_fe(ptr noundef %12)
  %121 = load i32, ptr %6, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [13 x %struct.secp256k1_gej], ptr %7, i64 0, i64 %122
  call void @secp256k1_gej_rescale(ptr noundef %123, ptr noundef %12)
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #7
  br label %124

124:                                              ; preds = %120, %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 88, ptr %15) #7
  %125 = load i32, ptr %6, align 4, !tbaa !5
  call void @secp256k1_scalar_set_int(ptr noundef %13, i32 noundef %125)
  %126 = load ptr, ptr %10, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct.secp256k1_context_struct, ptr %126, i32 0, i32 0
  call void @secp256k1_ecmult_gen(ptr noundef %127, ptr noundef %14, ptr noundef %13)
  call void @secp256k1_ge_set_gej(ptr noundef %15, ptr noundef %14)
  br label %128

128:                                              ; preds = %124
  %129 = load i32, ptr %6, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 %130
  %132 = getelementptr inbounds %struct.secp256k1_ge, ptr %131, i32 0, i32 2
  %133 = load i32, ptr %132, align 8, !tbaa !11
  %134 = icmp eq i32 %133, 0
  %135 = xor i1 %134, true
  %136 = zext i1 %135 to i32
  %137 = sext i32 %136 to i64
  %138 = call i64 @llvm.expect.i64(i64 %137, i64 0)
  %139 = icmp ne i64 %138, 0
  br i1 %139, label %140, label %146

140:                                              ; preds = %128
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.34, ptr noundef @.str.35, i32 noundef 425, ptr noundef @.str.37) #7
  call void @abort() #8
  unreachable

144:                                              ; No predecessors!
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145, %128
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  %150 = getelementptr inbounds %struct.secp256k1_ge, ptr %15, i32 0, i32 2
  %151 = load i32, ptr %150, align 8, !tbaa !11
  %152 = icmp eq i32 %151, 0
  %153 = xor i1 %152, true
  %154 = zext i1 %153 to i32
  %155 = sext i32 %154 to i64
  %156 = call i64 @llvm.expect.i64(i64 %155, i64 0)
  %157 = icmp ne i64 %156, 0
  br i1 %157, label %158, label %164

158:                                              ; preds = %149
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr @stderr, align 8, !tbaa !9
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.34, ptr noundef @.str.35, i32 noundef 426, ptr noundef @.str.38) #7
  call void @abort() #8
  unreachable

162:                                              ; No predecessors!
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163, %149
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  %168 = getelementptr inbounds %struct.secp256k1_ge, ptr %15, i32 0, i32 0
  %169 = load i32, ptr %6, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 %170
  %172 = getelementptr inbounds %struct.secp256k1_ge, ptr %171, i32 0, i32 0
  %173 = call i32 @secp256k1_fe_equal(ptr noundef %168, ptr noundef %172)
  %174 = icmp ne i32 %173, 0
  %175 = xor i1 %174, true
  %176 = zext i1 %175 to i32
  %177 = sext i32 %176 to i64
  %178 = call i64 @llvm.expect.i64(i64 %177, i64 0)
  %179 = icmp ne i64 %178, 0
  br i1 %179, label %180, label %186

180:                                              ; preds = %167
  br label %181

181:                                              ; preds = %180
  %182 = load ptr, ptr @stderr, align 8, !tbaa !9
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef @.str.34, ptr noundef @.str.35, i32 noundef 427, ptr noundef @.str.39) #7
  call void @abort() #8
  unreachable

184:                                              ; No predecessors!
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185, %167
  br label %187

187:                                              ; preds = %186
  br label %188

188:                                              ; preds = %187
  br label %189

189:                                              ; preds = %188
  %190 = getelementptr inbounds %struct.secp256k1_ge, ptr %15, i32 0, i32 1
  %191 = load i32, ptr %6, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 %192
  %194 = getelementptr inbounds %struct.secp256k1_ge, ptr %193, i32 0, i32 1
  %195 = call i32 @secp256k1_fe_equal(ptr noundef %190, ptr noundef %194)
  %196 = icmp ne i32 %195, 0
  %197 = xor i1 %196, true
  %198 = zext i1 %197 to i32
  %199 = sext i32 %198 to i64
  %200 = call i64 @llvm.expect.i64(i64 %199, i64 0)
  %201 = icmp ne i64 %200, 0
  br i1 %201, label %202, label %208

202:                                              ; preds = %189
  br label %203

203:                                              ; preds = %202
  %204 = load ptr, ptr @stderr, align 8, !tbaa !9
  %205 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %204, ptr noundef @.str.34, ptr noundef @.str.35, i32 noundef 428, ptr noundef @.str.40) #7
  call void @abort() #8
  unreachable

206:                                              ; No predecessors!
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207, %189
  br label %209

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %6, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %6, align 4, !tbaa !5
  br label %101, !llvm.loop !14

214:                                              ; preds = %101
  %215 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 0
  call void @test_exhaustive_endomorphism(ptr noundef %215)
  %216 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 0
  %217 = getelementptr inbounds [13 x %struct.secp256k1_gej], ptr %7, i64 0, i64 0
  call void @test_exhaustive_addition(ptr noundef %216, ptr noundef %217)
  %218 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 0
  %219 = getelementptr inbounds [13 x %struct.secp256k1_gej], ptr %7, i64 0, i64 0
  call void @test_exhaustive_ecmult(ptr noundef %218, ptr noundef %219)
  %220 = load ptr, ptr %10, align 8, !tbaa !9
  %221 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 0
  call void @test_exhaustive_ecmult_multi(ptr noundef %220, ptr noundef %221)
  %222 = load ptr, ptr %10, align 8, !tbaa !9
  %223 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 0
  call void @test_exhaustive_sign(ptr noundef %222, ptr noundef %223)
  %224 = load ptr, ptr %10, align 8, !tbaa !9
  %225 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %8, i64 0, i64 0
  call void @test_exhaustive_verify(ptr noundef %224, ptr noundef %225)
  %226 = load ptr, ptr %10, align 8, !tbaa !9
  call void @secp256k1_context_destroy(ptr noundef %226)
  br label %72, !llvm.loop !16

227:                                              ; preds = %72
  call void @testrand_finish()
  %228 = call i32 (ptr, ...) @printf(ptr noundef @.str.41)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %229

229:                                              ; preds = %227, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1144, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 1664, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %230 = load i32, ptr %3, align 4
  ret i32 %230
}

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

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

; Function Attrs: nounwind
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @testrand_init(ptr noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @testrand256(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @testutil_random_fe(ptr noundef) #2

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @test_exhaustive_endomorphism(ptr noundef) #2

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 #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, !6, i64 80}
!12 = !{!"", !13, i64 0, !13, i64 40, !6, i64 80}
!13 = !{!"", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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_storage = type { %struct.secp256k1_fe_storage, %struct.secp256k1_fe_storage }
%struct.secp256k1_fe_storage = type { [4 x i64] }
%struct.secp256k1_ge = type { %struct.secp256k1_fe, %struct.secp256k1_fe, i32 }
%struct.secp256k1_fe = type { [5 x i64] }
%struct.secp256k1_gej = type { %struct.secp256k1_fe, %struct.secp256k1_fe, %struct.secp256k1_fe, i32 }

@stdout = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [32 x i8], align 1
@count = external hidden local_unnamed_addr global i32, align 4
@.str.31 = external hidden unnamed_addr constant [17 x i8], align 1
@num_cores = external hidden local_unnamed_addr global i32, align 4
@this_core = external hidden local_unnamed_addr global i32, align 4
@.str.32 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [46 x i8], align 1
@secp256k1_ecmult_gen_prec_table = external hidden global [1 x [2 x %struct.secp256k1_ge_storage]], align 16
@secp256k1_ge_const_g = external hidden constant %struct.secp256k1_ge, align 8
@secp256k1_pre_g = external hidden global [4 x %struct.secp256k1_ge_storage], align 16
@secp256k1_pre_g_128 = external hidden global [4 x %struct.secp256k1_ge_storage], align 16
@.str.34 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [19 x i8], align 1

; 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: nounwind uwtable
declare dso_local void @secp256k1_context_destroy(ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @secp256k1_ge_set_gej(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 nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = alloca [13 x %struct.secp256k1_gej], align 16
  %4 = alloca [13 x %struct.secp256k1_ge], align 16
  %5 = alloca [32 x i8], align 16
  %6 = alloca %struct.secp256k1_fe, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.secp256k1_gej, align 8
  %9 = alloca %struct.secp256k1_ge, align 8
  call void @llvm.lifetime.start.p0(i64 1664, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1144, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %10 = load ptr, ptr @stdout, align 8, !tbaa !5
  tail call void @setbuf(ptr noundef %10, ptr noundef null) #6
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  tail call void @setbuf(ptr noundef %11, ptr noundef null) #6
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, i64 noundef 13)
  %13 = icmp sgt i32 %0, 1
  br i1 %13, label %16, label %.thread

.thread:                                          ; preds = %2
  %14 = load i32, ptr @count, align 4, !tbaa !9
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31, i32 noundef %14)
  br label %.thread35

16:                                               ; preds = %2
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = tail call i64 @strtol(ptr nocapture noundef %18, ptr noundef null, i32 noundef 0) #6
  %20 = trunc i64 %19 to i32
  store i32 %20, ptr @count, align 4, !tbaa !9
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31, i32 noundef %20)
  %.not36 = icmp eq i32 %0, 2
  br i1 %.not36, label %.thread35, label %22

.thread35:                                        ; preds = %.thread, %16
  tail call void @testrand_init(ptr noundef null)
  br label %46

22:                                               ; preds = %16
  %23 = getelementptr inbounds i8, ptr %1, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  tail call void @testrand_init(ptr noundef %24)
  %25 = icmp ugt i32 %0, 4
  br i1 %25, label %26, label %46

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %1, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = tail call i64 @strtol(ptr nocapture noundef %28, ptr noundef null, i32 noundef 0) #6
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr @num_cores, align 4, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %1, i64 32
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = tail call i64 @strtol(ptr nocapture noundef %32, ptr noundef null, i32 noundef 0) #6
  %34 = trunc i64 %33 to i32
  store i32 %34, ptr @this_core, align 4, !tbaa !9
  %35 = load i32, ptr @num_cores, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  %.not = icmp ugt i32 %35, %34
  %or.cond = select i1 %36, i1 %.not, i1 false
  br i1 %or.cond, label %41, label %37

37:                                               ; preds = %26
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = load ptr, ptr %1, align 8, !tbaa !5
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.32, ptr noundef %39) #7
  br label %93

41:                                               ; preds = %26
  %42 = and i64 %33, 4294967295
  %43 = zext i32 %35 to i64
  %44 = add nsw i64 %43, -1
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, i64 noundef %42, i64 noundef %44)
  br label %46

46:                                               ; preds = %.thread35, %41, %22
  tail call void @secp256k1_ecmult_gen_compute_table(ptr noundef nonnull @secp256k1_ecmult_gen_prec_table, ptr noundef nonnull @secp256k1_ge_const_g, i32 noundef 1, i32 noundef 2, i32 noundef 2)
  tail call void @secp256k1_ecmult_compute_two_tables(ptr noundef nonnull @secp256k1_pre_g, ptr noundef nonnull @secp256k1_pre_g_128, i32 noundef 4, ptr noundef nonnull @secp256k1_ge_const_g)
  %47 = load i32, ptr @count, align 4, !tbaa !9
  %48 = add nsw i32 %47, -1
  store i32 %48, ptr @count, align 4, !tbaa !9
  %.not2838 = icmp eq i32 %47, 0
  br i1 %.not2838, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %46
  %49 = getelementptr inbounds i8, ptr %9, i64 80
  %50 = getelementptr inbounds i8, ptr %9, i64 40
  br label %51

51:                                               ; preds = %.lr.ph, %89
  %52 = call ptr @secp256k1_context_create(i32 noundef 1)
  call void @testrand256(ptr noundef nonnull %5)
  %53 = call i32 @secp256k1_context_randomize(ptr noundef %52, ptr noundef nonnull %5)
  %.not29 = icmp eq i32 %53, 0
  br i1 %.not29, label %54, label %57, !prof !11

54:                                               ; preds = %51
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.35, i32 noundef 399, ptr noundef nonnull @.str.36) #7
  call void @abort() #8
  unreachable

57:                                               ; preds = %51
  call void @secp256k1_gej_set_infinity(ptr noundef nonnull %3)
  call void @secp256k1_ge_set_gej(ptr noundef nonnull %4, ptr noundef nonnull %3)
  br label %58

58:                                               ; preds = %57, %88
  %indvars.iv = phi i64 [ 1, %57 ], [ %indvars.iv.next, %88 ]
  %59 = getelementptr inbounds [13 x %struct.secp256k1_gej], ptr %3, i64 0, i64 %indvars.iv
  %60 = add nsw i64 %indvars.iv, -1
  %61 = getelementptr inbounds [13 x %struct.secp256k1_gej], ptr %3, i64 0, i64 %60
  call void @secp256k1_gej_add_ge(ptr noundef nonnull %59, ptr noundef nonnull %61, ptr noundef nonnull @secp256k1_ge_const_g)
  %62 = getelementptr inbounds [13 x %struct.secp256k1_ge], ptr %4, i64 0, i64 %indvars.iv
  call void @secp256k1_ge_set_gej(ptr noundef nonnull %62, ptr noundef nonnull %59)
  %63 = load i32, ptr @count, align 4, !tbaa !9
  %.not30 = icmp eq i32 %63, 0
  br i1 %.not30, label %65, label %64

64:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  call void @testutil_random_fe(ptr noundef nonnull %6)
  call void @secp256k1_gej_rescale(ptr noundef nonnull %59, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  br label %65

65:                                               ; preds = %64, %58
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %9) #6
  %66 = trunc nuw nsw i64 %indvars.iv to i32
  call void @secp256k1_scalar_set_int(ptr noundef nonnull %7, i32 noundef %66)
  call void @secp256k1_ecmult_gen(ptr noundef %52, ptr noundef nonnull %8, ptr noundef nonnull %7)
  call void @secp256k1_ge_set_gej(ptr noundef nonnull %9, ptr noundef nonnull %8)
  %67 = getelementptr inbounds i8, ptr %62, i64 80
  %68 = load i32, ptr %67, align 8, !tbaa !12
  %.not31 = icmp eq i32 %68, 0
  br i1 %.not31, label %72, label %69, !prof !15

69:                                               ; preds = %65
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.35, i32 noundef 425, ptr noundef nonnull @.str.37) #7
  call void @abort() #8
  unreachable

72:                                               ; preds = %65
  %73 = load i32, ptr %49, align 8, !tbaa !12
  %.not32 = icmp eq i32 %73, 0
  br i1 %.not32, label %77, label %74, !prof !15

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

77:                                               ; preds = %72
  %78 = call i32 @secp256k1_fe_equal(ptr noundef nonnull %9, ptr noundef nonnull %62)
  %.not33 = icmp eq i32 %78, 0
  br i1 %.not33, label %79, label %82, !prof !11

79:                                               ; preds = %77
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.35, i32 noundef 427, ptr noundef nonnull @.str.39) #7
  call void @abort() #8
  unreachable

82:                                               ; preds = %77
  %83 = getelementptr inbounds i8, ptr %62, i64 40
  %84 = call i32 @secp256k1_fe_equal(ptr noundef nonnull %50, ptr noundef nonnull %83)
  %.not34 = icmp eq i32 %84, 0
  br i1 %.not34, label %85, label %88, !prof !11

85:                                               ; preds = %82
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.35, i32 noundef 428, ptr noundef nonnull @.str.40) #7
  call void @abort() #8
  unreachable

88:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 13
  br i1 %exitcond.not, label %89, label %58, !llvm.loop !16

89:                                               ; preds = %88
  call void @test_exhaustive_endomorphism(ptr noundef nonnull %4)
  call void @test_exhaustive_addition(ptr noundef nonnull %4, ptr noundef nonnull %3)
  call void @test_exhaustive_ecmult(ptr noundef nonnull %4, ptr noundef nonnull %3)
  call void @test_exhaustive_ecmult_multi(ptr noundef %52, ptr noundef nonnull %4)
  call void @test_exhaustive_sign(ptr noundef %52, ptr noundef nonnull %4)
  call void @test_exhaustive_verify(ptr noundef %52, ptr noundef nonnull %4)
  call void @secp256k1_context_destroy(ptr noundef %52)
  %90 = load i32, ptr @count, align 4, !tbaa !9
  %91 = add nsw i32 %90, -1
  store i32 %91, ptr @count, align 4, !tbaa !9
  %.not28 = icmp eq i32 %90, 0
  br i1 %.not28, label %._crit_edge, label %51, !llvm.loop !18

._crit_edge:                                      ; preds = %89, %46
  call void @testrand_finish()
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41)
  br label %93

93:                                               ; preds = %._crit_edge, %37
  %.0 = phi i32 [ 1, %37 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1144, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1664, ptr nonnull %3) #6
  ret i32 %.0
}

; Function Attrs: nofree nounwind
declare void @setbuf(ptr nocapture noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @secp256k1_gej_rescale(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 @secp256k1_ecmult_gen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @testrand_finish() 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 = { 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 #3 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!12 = !{!13, !10, i64 80}
!13 = !{!"", !14, i64 0, !14, i64 40, !10, i64 80}
!14 = !{!"", !7, i64 0}
!15 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass