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

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

@__const.main.outfile = external hidden unnamed_addr constant [29 x i8], align 16
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [216 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [146 x i8], align 1
@default_error_callback = external hidden constant %struct.secp256k1_callback, align 8
@secp256k1_ge_const_g = external hidden constant %struct.secp256k1_ge, align 8
@.str.13 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [10 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 [29 x i8], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, 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 29, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.outfile, i64 29, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !9
  %17 = getelementptr inbounds [29 x i8], ptr %6, i64 0, i64 0
  %18 = call noalias ptr @fopen(ptr noundef %17, ptr noundef @.str)
  store ptr %18, ptr %7, align 8, !tbaa !9
  %19 = load ptr, ptr %7, align 8, !tbaa !9
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %25

21:                                               ; preds = %2
  %22 = load ptr, ptr @stderr, align 8, !tbaa !9
  %23 = getelementptr inbounds [29 x i8], ptr %6, i64 0, i64 0
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.1, ptr noundef %23) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %337

25:                                               ; preds = %2
  %26 = load ptr, ptr %7, align 8, !tbaa !9
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.2) #6
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.3) #6
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.4) #6
  %32 = load ptr, ptr %7, align 8, !tbaa !9
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.5) #6
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.6) #6
  %36 = load ptr, ptr %7, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.7) #6
  %38 = load ptr, ptr %7, align 8, !tbaa !9
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.8) #6
  %40 = load ptr, ptr %7, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.9) #6
  %42 = load ptr, ptr %7, align 8, !tbaa !9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.10) #6
  %44 = load ptr, ptr %7, align 8, !tbaa !9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str.11) #6
  %46 = load ptr, ptr %7, align 8, !tbaa !9
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.12) #6
  store i32 2, ptr %8, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %327, %25
  %49 = load i32, ptr %8, align 4, !tbaa !5
  %50 = icmp sle i32 %49, 8
  br i1 %50, label %51, label %330

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %52 = load i32, ptr %8, align 4, !tbaa !5
  %53 = shl i32 1, %52
  store i32 %53, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = sdiv i32 256, %54
  store i32 %55, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %56 = load i32, ptr %11, align 4, !tbaa !5
  %57 = load i32, ptr %10, align 4, !tbaa !5
  %58 = mul nsw i32 %56, %57
  %59 = sext i32 %58 to i64
  %60 = mul i64 %59, 64
  %61 = call ptr @checked_malloc(ptr noundef @default_error_callback, i64 noundef %60)
  store ptr %61, ptr %14, align 8, !tbaa !9
  %62 = load ptr, ptr %14, align 8, !tbaa !9
  %63 = load i32, ptr %8, align 4, !tbaa !5
  call void @secp256k1_ecmult_gen_compute_table(ptr noundef %62, ptr noundef @secp256k1_ge_const_g, i32 noundef %63)
  %64 = load ptr, ptr %7, align 8, !tbaa !9
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.13, i32 noundef %65) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %320, %51
  %68 = load i32, ptr %13, align 4, !tbaa !5
  %69 = load i32, ptr %11, align 4, !tbaa !5
  %70 = icmp ne i32 %68, %69
  br i1 %70, label %71, label %323

71:                                               ; preds = %67
  %72 = load ptr, ptr %7, align 8, !tbaa !9
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.14) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %305, %71
  %75 = load i32, ptr %12, align 4, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = icmp ne i32 %75, %76
  br i1 %77, label %78, label %308

78:                                               ; preds = %74
  %79 = load ptr, ptr %7, align 8, !tbaa !9
  %80 = load ptr, ptr %14, align 8, !tbaa !9
  %81 = load i32, ptr %13, align 4, !tbaa !5
  %82 = load i32, ptr %10, align 4, !tbaa !5
  %83 = mul nsw i32 %81, %82
  %84 = load i32, ptr %12, align 4, !tbaa !5
  %85 = add nsw i32 %83, %84
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %80, i64 %86
  %88 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds [4 x i64], ptr %89, i64 0, i64 3
  %91 = load i64, ptr %90, align 8, !tbaa !11
  %92 = lshr i64 %91, 32
  %93 = trunc i64 %92 to i32
  %94 = load ptr, ptr %14, align 8, !tbaa !9
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = load i32, ptr %10, align 4, !tbaa !5
  %97 = mul nsw i32 %95, %96
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = add nsw i32 %97, %98
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %94, i64 %100
  %102 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds [4 x i64], ptr %103, i64 0, i64 3
  %105 = load i64, ptr %104, align 8, !tbaa !11
  %106 = trunc i64 %105 to i32
  %107 = load ptr, ptr %14, align 8, !tbaa !9
  %108 = load i32, ptr %13, align 4, !tbaa !5
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = mul nsw i32 %108, %109
  %111 = load i32, ptr %12, align 4, !tbaa !5
  %112 = add nsw i32 %110, %111
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %107, i64 %113
  %115 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds [4 x i64], ptr %116, i64 0, i64 2
  %118 = load i64, ptr %117, align 8, !tbaa !11
  %119 = lshr i64 %118, 32
  %120 = trunc i64 %119 to i32
  %121 = load ptr, ptr %14, align 8, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !5
  %123 = load i32, ptr %10, align 4, !tbaa !5
  %124 = mul nsw i32 %122, %123
  %125 = load i32, ptr %12, align 4, !tbaa !5
  %126 = add nsw i32 %124, %125
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %121, i64 %127
  %129 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %129, i32 0, i32 0
  %131 = getelementptr inbounds [4 x i64], ptr %130, i64 0, i64 2
  %132 = load i64, ptr %131, align 8, !tbaa !11
  %133 = trunc i64 %132 to i32
  %134 = load ptr, ptr %14, align 8, !tbaa !9
  %135 = load i32, ptr %13, align 4, !tbaa !5
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = mul nsw i32 %135, %136
  %138 = load i32, ptr %12, align 4, !tbaa !5
  %139 = add nsw i32 %137, %138
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %134, i64 %140
  %142 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds [4 x i64], ptr %143, i64 0, i64 1
  %145 = load i64, ptr %144, align 8, !tbaa !11
  %146 = lshr i64 %145, 32
  %147 = trunc i64 %146 to i32
  %148 = load ptr, ptr %14, align 8, !tbaa !9
  %149 = load i32, ptr %13, align 4, !tbaa !5
  %150 = load i32, ptr %10, align 4, !tbaa !5
  %151 = mul nsw i32 %149, %150
  %152 = load i32, ptr %12, align 4, !tbaa !5
  %153 = add nsw i32 %151, %152
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %148, i64 %154
  %156 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds [4 x i64], ptr %157, i64 0, i64 1
  %159 = load i64, ptr %158, align 8, !tbaa !11
  %160 = trunc i64 %159 to i32
  %161 = load ptr, ptr %14, align 8, !tbaa !9
  %162 = load i32, ptr %13, align 4, !tbaa !5
  %163 = load i32, ptr %10, align 4, !tbaa !5
  %164 = mul nsw i32 %162, %163
  %165 = load i32, ptr %12, align 4, !tbaa !5
  %166 = add nsw i32 %164, %165
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %161, i64 %167
  %169 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds [4 x i64], ptr %170, i64 0, i64 0
  %172 = load i64, ptr %171, align 8, !tbaa !11
  %173 = lshr i64 %172, 32
  %174 = trunc i64 %173 to i32
  %175 = load ptr, ptr %14, align 8, !tbaa !9
  %176 = load i32, ptr %13, align 4, !tbaa !5
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = mul nsw i32 %176, %177
  %179 = load i32, ptr %12, align 4, !tbaa !5
  %180 = add nsw i32 %178, %179
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %175, i64 %181
  %183 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %182, i32 0, i32 0
  %184 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds [4 x i64], ptr %184, i64 0, i64 0
  %186 = load i64, ptr %185, align 8, !tbaa !11
  %187 = trunc i64 %186 to i32
  %188 = load ptr, ptr %14, align 8, !tbaa !9
  %189 = load i32, ptr %13, align 4, !tbaa !5
  %190 = load i32, ptr %10, align 4, !tbaa !5
  %191 = mul nsw i32 %189, %190
  %192 = load i32, ptr %12, align 4, !tbaa !5
  %193 = add nsw i32 %191, %192
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %188, i64 %194
  %196 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %195, i32 0, i32 1
  %197 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds [4 x i64], ptr %197, i64 0, i64 3
  %199 = load i64, ptr %198, align 8, !tbaa !11
  %200 = lshr i64 %199, 32
  %201 = trunc i64 %200 to i32
  %202 = load ptr, ptr %14, align 8, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !5
  %204 = load i32, ptr %10, align 4, !tbaa !5
  %205 = mul nsw i32 %203, %204
  %206 = load i32, ptr %12, align 4, !tbaa !5
  %207 = add nsw i32 %205, %206
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %202, i64 %208
  %210 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %209, i32 0, i32 1
  %211 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %210, i32 0, i32 0
  %212 = getelementptr inbounds [4 x i64], ptr %211, i64 0, i64 3
  %213 = load i64, ptr %212, align 8, !tbaa !11
  %214 = trunc i64 %213 to i32
  %215 = load ptr, ptr %14, align 8, !tbaa !9
  %216 = load i32, ptr %13, align 4, !tbaa !5
  %217 = load i32, ptr %10, align 4, !tbaa !5
  %218 = mul nsw i32 %216, %217
  %219 = load i32, ptr %12, align 4, !tbaa !5
  %220 = add nsw i32 %218, %219
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %215, i64 %221
  %223 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %222, i32 0, i32 1
  %224 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %223, i32 0, i32 0
  %225 = getelementptr inbounds [4 x i64], ptr %224, i64 0, i64 2
  %226 = load i64, ptr %225, align 8, !tbaa !11
  %227 = lshr i64 %226, 32
  %228 = trunc i64 %227 to i32
  %229 = load ptr, ptr %14, align 8, !tbaa !9
  %230 = load i32, ptr %13, align 4, !tbaa !5
  %231 = load i32, ptr %10, align 4, !tbaa !5
  %232 = mul nsw i32 %230, %231
  %233 = load i32, ptr %12, align 4, !tbaa !5
  %234 = add nsw i32 %232, %233
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %229, i64 %235
  %237 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %236, i32 0, i32 1
  %238 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %237, i32 0, i32 0
  %239 = getelementptr inbounds [4 x i64], ptr %238, i64 0, i64 2
  %240 = load i64, ptr %239, align 8, !tbaa !11
  %241 = trunc i64 %240 to i32
  %242 = load ptr, ptr %14, align 8, !tbaa !9
  %243 = load i32, ptr %13, align 4, !tbaa !5
  %244 = load i32, ptr %10, align 4, !tbaa !5
  %245 = mul nsw i32 %243, %244
  %246 = load i32, ptr %12, align 4, !tbaa !5
  %247 = add nsw i32 %245, %246
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %242, i64 %248
  %250 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %249, i32 0, i32 1
  %251 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %250, i32 0, i32 0
  %252 = getelementptr inbounds [4 x i64], ptr %251, i64 0, i64 1
  %253 = load i64, ptr %252, align 8, !tbaa !11
  %254 = lshr i64 %253, 32
  %255 = trunc i64 %254 to i32
  %256 = load ptr, ptr %14, align 8, !tbaa !9
  %257 = load i32, ptr %13, align 4, !tbaa !5
  %258 = load i32, ptr %10, align 4, !tbaa !5
  %259 = mul nsw i32 %257, %258
  %260 = load i32, ptr %12, align 4, !tbaa !5
  %261 = add nsw i32 %259, %260
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %256, i64 %262
  %264 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %263, i32 0, i32 1
  %265 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %264, i32 0, i32 0
  %266 = getelementptr inbounds [4 x i64], ptr %265, i64 0, i64 1
  %267 = load i64, ptr %266, align 8, !tbaa !11
  %268 = trunc i64 %267 to i32
  %269 = load ptr, ptr %14, align 8, !tbaa !9
  %270 = load i32, ptr %13, align 4, !tbaa !5
  %271 = load i32, ptr %10, align 4, !tbaa !5
  %272 = mul nsw i32 %270, %271
  %273 = load i32, ptr %12, align 4, !tbaa !5
  %274 = add nsw i32 %272, %273
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %269, i64 %275
  %277 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %276, i32 0, i32 1
  %278 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %277, i32 0, i32 0
  %279 = getelementptr inbounds [4 x i64], ptr %278, i64 0, i64 0
  %280 = load i64, ptr %279, align 8, !tbaa !11
  %281 = lshr i64 %280, 32
  %282 = trunc i64 %281 to i32
  %283 = load ptr, ptr %14, align 8, !tbaa !9
  %284 = load i32, ptr %13, align 4, !tbaa !5
  %285 = load i32, ptr %10, align 4, !tbaa !5
  %286 = mul nsw i32 %284, %285
  %287 = load i32, ptr %12, align 4, !tbaa !5
  %288 = add nsw i32 %286, %287
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %283, i64 %289
  %291 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %290, i32 0, i32 1
  %292 = getelementptr inbounds %struct.secp256k1_fe_storage, ptr %291, i32 0, i32 0
  %293 = getelementptr inbounds [4 x i64], ptr %292, i64 0, i64 0
  %294 = load i64, ptr %293, align 8, !tbaa !11
  %295 = trunc i64 %294 to i32
  %296 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.15, i32 noundef %93, i32 noundef %106, i32 noundef %120, i32 noundef %133, i32 noundef %147, i32 noundef %160, i32 noundef %174, i32 noundef %187, i32 noundef %201, i32 noundef %214, i32 noundef %228, i32 noundef %241, i32 noundef %255, i32 noundef %268, i32 noundef %282, i32 noundef %295) #6
  %297 = load i32, ptr %12, align 4, !tbaa !5
  %298 = load i32, ptr %10, align 4, !tbaa !5
  %299 = sub nsw i32 %298, 1
  %300 = icmp ne i32 %297, %299
  br i1 %300, label %301, label %304

301:                                              ; preds = %78
  %302 = load ptr, ptr %7, align 8, !tbaa !9
  %303 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %302, ptr noundef @.str.16) #6
  br label %304

304:                                              ; preds = %301, %78
  br label %305

305:                                              ; preds = %304
  %306 = load i32, ptr %12, align 4, !tbaa !5
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %12, align 4, !tbaa !5
  br label %74, !llvm.loop !13

308:                                              ; preds = %74
  %309 = load i32, ptr %13, align 4, !tbaa !5
  %310 = load i32, ptr %11, align 4, !tbaa !5
  %311 = sub nsw i32 %310, 1
  %312 = icmp ne i32 %309, %311
  br i1 %312, label %313, label %316

313:                                              ; preds = %308
  %314 = load ptr, ptr %7, align 8, !tbaa !9
  %315 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %314, ptr noundef @.str.17) #6
  br label %319

316:                                              ; preds = %308
  %317 = load ptr, ptr %7, align 8, !tbaa !9
  %318 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %317, ptr noundef @.str.18) #6
  br label %319

319:                                              ; preds = %316, %313
  br label %320

320:                                              ; preds = %319
  %321 = load i32, ptr %13, align 4, !tbaa !5
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %13, align 4, !tbaa !5
  br label %67, !llvm.loop !15

323:                                              ; preds = %67
  %324 = load ptr, ptr %7, align 8, !tbaa !9
  %325 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %324, ptr noundef @.str.19) #6
  %326 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %326) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %327

327:                                              ; preds = %323
  %328 = load i32, ptr %8, align 4, !tbaa !5
  %329 = mul nsw i32 %328, 2
  store i32 %329, ptr %8, align 4, !tbaa !5
  br label %48, !llvm.loop !16

330:                                              ; preds = %48
  %331 = load ptr, ptr %7, align 8, !tbaa !9
  %332 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %331, ptr noundef @.str.20) #6
  %333 = load ptr, ptr %7, align 8, !tbaa !9
  %334 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %333, ptr noundef @.str.21) #6
  %335 = load ptr, ptr %7, align 8, !tbaa !9
  %336 = call i32 @fclose(ptr noundef %335)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %337

337:                                              ; preds = %330, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 29, ptr %6) #6
  %338 = load i32, ptr %3, align 4
  ret i32 %338
}

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @checked_malloc(ptr noundef, i64 noundef) #5

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

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

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

declare i32 @fclose(ptr noundef) #3

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 = { "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 "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 }

!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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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

@__const.main.outfile = external hidden unnamed_addr constant [29 x i8], align 16
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [216 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [146 x i8], align 1
@default_error_callback = external hidden constant %struct.secp256k1_callback, align 8
@secp256k1_ge_const_g = external hidden constant %struct.secp256k1_ge, align 8
@.str.13 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [29 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 29, ptr nonnull %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(29) %3, ptr noundef nonnull align 16 dereferenceable(29) @__const.main.outfile, i64 29, i1 false)
  %4 = call noalias ptr @fopen(ptr noundef nonnull %3, ptr noundef nonnull @.str)
  %5 = icmp eq ptr %4, null
  br i1 %5, label %6, label %.lr.ph

6:                                                ; preds = %2
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.1, ptr noundef nonnull %3) #7
  br label %306

.lr.ph:                                           ; preds = %2
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.2) #6
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.3) #6
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.4) #6
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.5) #6
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.6) #6
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.7) #6
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.8) #6
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.9) #6
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.10) #6
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.11) #6
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.12) #6
  %20 = tail call ptr @checked_malloc(ptr noundef nonnull @default_error_callback, i64 noundef 32768)
  tail call void @secp256k1_ecmult_gen_compute_table(ptr noundef %20, ptr noundef nonnull @secp256k1_ge_const_g, i32 noundef 2)
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.13, i32 noundef 2) #6
  br label %22

22:                                               ; preds = %195, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %195 ]
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.14) #6
  %24 = shl nsw i64 %indvars.iv, 2
  %25 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %20, i64 %24
  %26 = getelementptr inbounds i8, ptr %25, i64 24
  %27 = load i64, ptr %26, align 8, !tbaa !9
  %28 = lshr i64 %27, 32
  %29 = trunc nuw i64 %28 to i32
  %30 = trunc i64 %27 to i32
  %31 = getelementptr inbounds i8, ptr %25, i64 16
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = lshr i64 %32, 32
  %34 = trunc nuw i64 %33 to i32
  %35 = trunc i64 %32 to i32
  %36 = getelementptr inbounds i8, ptr %25, i64 8
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = lshr i64 %37, 32
  %39 = trunc nuw i64 %38 to i32
  %40 = trunc i64 %37 to i32
  %41 = load i64, ptr %25, align 8, !tbaa !9
  %42 = lshr i64 %41, 32
  %43 = trunc nuw i64 %42 to i32
  %44 = trunc i64 %41 to i32
  %45 = getelementptr inbounds i8, ptr %25, i64 32
  %46 = getelementptr inbounds i8, ptr %25, i64 56
  %47 = load i64, ptr %46, align 8, !tbaa !9
  %48 = lshr i64 %47, 32
  %49 = trunc nuw i64 %48 to i32
  %50 = trunc i64 %47 to i32
  %51 = getelementptr inbounds i8, ptr %25, i64 48
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = lshr i64 %52, 32
  %54 = trunc nuw i64 %53 to i32
  %55 = trunc i64 %52 to i32
  %56 = getelementptr inbounds i8, ptr %25, i64 40
  %57 = load i64, ptr %56, align 8, !tbaa !9
  %58 = lshr i64 %57, 32
  %59 = trunc nuw i64 %58 to i32
  %60 = trunc i64 %57 to i32
  %61 = load i64, ptr %45, align 8, !tbaa !9
  %62 = lshr i64 %61, 32
  %63 = trunc nuw i64 %62 to i32
  %64 = trunc i64 %61 to i32
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.15, i32 noundef %29, i32 noundef %30, i32 noundef %34, i32 noundef %35, i32 noundef %39, i32 noundef %40, i32 noundef %43, i32 noundef %44, i32 noundef %49, i32 noundef %50, i32 noundef %54, i32 noundef %55, i32 noundef %59, i32 noundef %60, i32 noundef %63, i32 noundef %64) #6
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.16) #6
  %67 = or disjoint i64 %24, 1
  %68 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %20, i64 %67
  %69 = getelementptr inbounds i8, ptr %68, i64 24
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = lshr i64 %70, 32
  %72 = trunc nuw i64 %71 to i32
  %73 = trunc i64 %70 to i32
  %74 = getelementptr inbounds i8, ptr %68, i64 16
  %75 = load i64, ptr %74, align 8, !tbaa !9
  %76 = lshr i64 %75, 32
  %77 = trunc nuw i64 %76 to i32
  %78 = trunc i64 %75 to i32
  %79 = getelementptr inbounds i8, ptr %68, i64 8
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = lshr i64 %80, 32
  %82 = trunc nuw i64 %81 to i32
  %83 = trunc i64 %80 to i32
  %84 = load i64, ptr %68, align 8, !tbaa !9
  %85 = lshr i64 %84, 32
  %86 = trunc nuw i64 %85 to i32
  %87 = trunc i64 %84 to i32
  %88 = getelementptr inbounds i8, ptr %68, i64 32
  %89 = getelementptr inbounds i8, ptr %68, i64 56
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = lshr i64 %90, 32
  %92 = trunc nuw i64 %91 to i32
  %93 = trunc i64 %90 to i32
  %94 = getelementptr inbounds i8, ptr %68, i64 48
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = lshr i64 %95, 32
  %97 = trunc nuw i64 %96 to i32
  %98 = trunc i64 %95 to i32
  %99 = getelementptr inbounds i8, ptr %68, i64 40
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = lshr i64 %100, 32
  %102 = trunc nuw i64 %101 to i32
  %103 = trunc i64 %100 to i32
  %104 = load i64, ptr %88, align 8, !tbaa !9
  %105 = lshr i64 %104, 32
  %106 = trunc nuw i64 %105 to i32
  %107 = trunc i64 %104 to i32
  %108 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.15, i32 noundef %72, i32 noundef %73, i32 noundef %77, i32 noundef %78, i32 noundef %82, i32 noundef %83, i32 noundef %86, i32 noundef %87, i32 noundef %92, i32 noundef %93, i32 noundef %97, i32 noundef %98, i32 noundef %102, i32 noundef %103, i32 noundef %106, i32 noundef %107) #6
  %109 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.16) #6
  %110 = or disjoint i64 %24, 2
  %111 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %20, i64 %110
  %112 = getelementptr inbounds i8, ptr %111, i64 24
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = lshr i64 %113, 32
  %115 = trunc nuw i64 %114 to i32
  %116 = trunc i64 %113 to i32
  %117 = getelementptr inbounds i8, ptr %111, i64 16
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = lshr i64 %118, 32
  %120 = trunc nuw i64 %119 to i32
  %121 = trunc i64 %118 to i32
  %122 = getelementptr inbounds i8, ptr %111, i64 8
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = lshr i64 %123, 32
  %125 = trunc nuw i64 %124 to i32
  %126 = trunc i64 %123 to i32
  %127 = load i64, ptr %111, align 8, !tbaa !9
  %128 = lshr i64 %127, 32
  %129 = trunc nuw i64 %128 to i32
  %130 = trunc i64 %127 to i32
  %131 = getelementptr inbounds i8, ptr %111, i64 32
  %132 = getelementptr inbounds i8, ptr %111, i64 56
  %133 = load i64, ptr %132, align 8, !tbaa !9
  %134 = lshr i64 %133, 32
  %135 = trunc nuw i64 %134 to i32
  %136 = trunc i64 %133 to i32
  %137 = getelementptr inbounds i8, ptr %111, i64 48
  %138 = load i64, ptr %137, align 8, !tbaa !9
  %139 = lshr i64 %138, 32
  %140 = trunc nuw i64 %139 to i32
  %141 = trunc i64 %138 to i32
  %142 = getelementptr inbounds i8, ptr %111, i64 40
  %143 = load i64, ptr %142, align 8, !tbaa !9
  %144 = lshr i64 %143, 32
  %145 = trunc nuw i64 %144 to i32
  %146 = trunc i64 %143 to i32
  %147 = load i64, ptr %131, align 8, !tbaa !9
  %148 = lshr i64 %147, 32
  %149 = trunc nuw i64 %148 to i32
  %150 = trunc i64 %147 to i32
  %151 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.15, i32 noundef %115, i32 noundef %116, i32 noundef %120, i32 noundef %121, i32 noundef %125, i32 noundef %126, i32 noundef %129, i32 noundef %130, i32 noundef %135, i32 noundef %136, i32 noundef %140, i32 noundef %141, i32 noundef %145, i32 noundef %146, i32 noundef %149, i32 noundef %150) #6
  %152 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.16) #6
  %153 = or disjoint i64 %24, 3
  %154 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %20, i64 %153
  %155 = getelementptr inbounds i8, ptr %154, i64 24
  %156 = load i64, ptr %155, align 8, !tbaa !9
  %157 = lshr i64 %156, 32
  %158 = trunc nuw i64 %157 to i32
  %159 = trunc i64 %156 to i32
  %160 = getelementptr inbounds i8, ptr %154, i64 16
  %161 = load i64, ptr %160, align 8, !tbaa !9
  %162 = lshr i64 %161, 32
  %163 = trunc nuw i64 %162 to i32
  %164 = trunc i64 %161 to i32
  %165 = getelementptr inbounds i8, ptr %154, i64 8
  %166 = load i64, ptr %165, align 8, !tbaa !9
  %167 = lshr i64 %166, 32
  %168 = trunc nuw i64 %167 to i32
  %169 = trunc i64 %166 to i32
  %170 = load i64, ptr %154, align 8, !tbaa !9
  %171 = lshr i64 %170, 32
  %172 = trunc nuw i64 %171 to i32
  %173 = trunc i64 %170 to i32
  %174 = getelementptr inbounds i8, ptr %154, i64 32
  %175 = getelementptr inbounds i8, ptr %154, i64 56
  %176 = load i64, ptr %175, align 8, !tbaa !9
  %177 = lshr i64 %176, 32
  %178 = trunc nuw i64 %177 to i32
  %179 = trunc i64 %176 to i32
  %180 = getelementptr inbounds i8, ptr %154, i64 48
  %181 = load i64, ptr %180, align 8, !tbaa !9
  %182 = lshr i64 %181, 32
  %183 = trunc nuw i64 %182 to i32
  %184 = trunc i64 %181 to i32
  %185 = getelementptr inbounds i8, ptr %154, i64 40
  %186 = load i64, ptr %185, align 8, !tbaa !9
  %187 = lshr i64 %186, 32
  %188 = trunc nuw i64 %187 to i32
  %189 = trunc i64 %186 to i32
  %190 = load i64, ptr %174, align 8, !tbaa !9
  %191 = lshr i64 %190, 32
  %192 = trunc nuw i64 %191 to i32
  %193 = trunc i64 %190 to i32
  %194 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.15, i32 noundef %158, i32 noundef %159, i32 noundef %163, i32 noundef %164, i32 noundef %168, i32 noundef %169, i32 noundef %172, i32 noundef %173, i32 noundef %178, i32 noundef %179, i32 noundef %183, i32 noundef %184, i32 noundef %188, i32 noundef %189, i32 noundef %192, i32 noundef %193) #6
  %.not115 = icmp eq i64 %indvars.iv, 127
  br i1 %.not115, label %.lr.ph.1, label %195

195:                                              ; preds = %22
  %196 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.17) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %22

.lr.ph.1:                                         ; preds = %22
  %197 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.18) #6
  %198 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.19) #6
  tail call void @free(ptr noundef nonnull %20) #6
  %199 = tail call ptr @checked_malloc(ptr noundef nonnull @default_error_callback, i64 noundef 65536)
  tail call void @secp256k1_ecmult_gen_compute_table(ptr noundef %199, ptr noundef nonnull @secp256k1_ge_const_g, i32 noundef 4)
  %200 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.13, i32 noundef 4) #6
  br label %201

201:                                              ; preds = %247, %.lr.ph.1
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %247 ], [ 0, %.lr.ph.1 ]
  %202 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.14) #6
  %.idx = shl nsw i64 %indvars.iv125, 10
  %invariant.gep = getelementptr inbounds i8, ptr %199, i64 %.idx
  br label %203

203:                                              ; preds = %244, %201
  %indvars.iv.1 = phi i64 [ 0, %201 ], [ %indvars.iv.next.1, %244 ]
  %gep = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %invariant.gep, i64 %indvars.iv.1
  %204 = getelementptr inbounds i8, ptr %gep, i64 24
  %205 = load i64, ptr %204, align 8, !tbaa !9
  %206 = lshr i64 %205, 32
  %207 = trunc nuw i64 %206 to i32
  %208 = trunc i64 %205 to i32
  %209 = getelementptr inbounds i8, ptr %gep, i64 16
  %210 = load i64, ptr %209, align 8, !tbaa !9
  %211 = lshr i64 %210, 32
  %212 = trunc nuw i64 %211 to i32
  %213 = trunc i64 %210 to i32
  %214 = getelementptr inbounds i8, ptr %gep, i64 8
  %215 = load i64, ptr %214, align 8, !tbaa !9
  %216 = lshr i64 %215, 32
  %217 = trunc nuw i64 %216 to i32
  %218 = trunc i64 %215 to i32
  %219 = load i64, ptr %gep, align 8, !tbaa !9
  %220 = lshr i64 %219, 32
  %221 = trunc nuw i64 %220 to i32
  %222 = trunc i64 %219 to i32
  %223 = getelementptr inbounds i8, ptr %gep, i64 32
  %224 = getelementptr inbounds i8, ptr %gep, i64 56
  %225 = load i64, ptr %224, align 8, !tbaa !9
  %226 = lshr i64 %225, 32
  %227 = trunc nuw i64 %226 to i32
  %228 = trunc i64 %225 to i32
  %229 = getelementptr inbounds i8, ptr %gep, i64 48
  %230 = load i64, ptr %229, align 8, !tbaa !9
  %231 = lshr i64 %230, 32
  %232 = trunc nuw i64 %231 to i32
  %233 = trunc i64 %230 to i32
  %234 = getelementptr inbounds i8, ptr %gep, i64 40
  %235 = load i64, ptr %234, align 8, !tbaa !9
  %236 = lshr i64 %235, 32
  %237 = trunc nuw i64 %236 to i32
  %238 = trunc i64 %235 to i32
  %239 = load i64, ptr %223, align 8, !tbaa !9
  %240 = lshr i64 %239, 32
  %241 = trunc nuw i64 %240 to i32
  %242 = trunc i64 %239 to i32
  %243 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.15, i32 noundef %207, i32 noundef %208, i32 noundef %212, i32 noundef %213, i32 noundef %217, i32 noundef %218, i32 noundef %221, i32 noundef %222, i32 noundef %227, i32 noundef %228, i32 noundef %232, i32 noundef %233, i32 noundef %237, i32 noundef %238, i32 noundef %241, i32 noundef %242) #6
  %.not116.1 = icmp eq i64 %indvars.iv.1, 15
  br i1 %.not116.1, label %246, label %244

244:                                              ; preds = %203
  %245 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.16) #6
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  br label %203

246:                                              ; preds = %203
  %.not115.1 = icmp eq i64 %indvars.iv125, 63
  br i1 %.not115.1, label %.lr.ph.2, label %247

247:                                              ; preds = %246
  %248 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.17) #6
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  br label %201

.lr.ph.2:                                         ; preds = %246
  %249 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.18) #6
  %250 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.19) #6
  tail call void @free(ptr noundef nonnull %199) #6
  %251 = tail call ptr @checked_malloc(ptr noundef nonnull @default_error_callback, i64 noundef 524288)
  tail call void @secp256k1_ecmult_gen_compute_table(ptr noundef %251, ptr noundef nonnull @secp256k1_ge_const_g, i32 noundef 8)
  %252 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.13, i32 noundef 8) #6
  br label %253

253:                                              ; preds = %299, %.lr.ph.2
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %299 ], [ 0, %.lr.ph.2 ]
  %254 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.14) #6
  %.idx140 = shl nsw i64 %indvars.iv122, 14
  %invariant.gep155 = getelementptr inbounds i8, ptr %251, i64 %.idx140
  br label %255

255:                                              ; preds = %296, %253
  %indvars.iv.2 = phi i64 [ 0, %253 ], [ %indvars.iv.next.2, %296 ]
  %gep156 = getelementptr inbounds %struct.secp256k1_ge_storage, ptr %invariant.gep155, i64 %indvars.iv.2
  %256 = getelementptr inbounds i8, ptr %gep156, i64 24
  %257 = load i64, ptr %256, align 8, !tbaa !9
  %258 = lshr i64 %257, 32
  %259 = trunc nuw i64 %258 to i32
  %260 = trunc i64 %257 to i32
  %261 = getelementptr inbounds i8, ptr %gep156, i64 16
  %262 = load i64, ptr %261, align 8, !tbaa !9
  %263 = lshr i64 %262, 32
  %264 = trunc nuw i64 %263 to i32
  %265 = trunc i64 %262 to i32
  %266 = getelementptr inbounds i8, ptr %gep156, i64 8
  %267 = load i64, ptr %266, align 8, !tbaa !9
  %268 = lshr i64 %267, 32
  %269 = trunc nuw i64 %268 to i32
  %270 = trunc i64 %267 to i32
  %271 = load i64, ptr %gep156, align 8, !tbaa !9
  %272 = lshr i64 %271, 32
  %273 = trunc nuw i64 %272 to i32
  %274 = trunc i64 %271 to i32
  %275 = getelementptr inbounds i8, ptr %gep156, i64 32
  %276 = getelementptr inbounds i8, ptr %gep156, i64 56
  %277 = load i64, ptr %276, align 8, !tbaa !9
  %278 = lshr i64 %277, 32
  %279 = trunc nuw i64 %278 to i32
  %280 = trunc i64 %277 to i32
  %281 = getelementptr inbounds i8, ptr %gep156, i64 48
  %282 = load i64, ptr %281, align 8, !tbaa !9
  %283 = lshr i64 %282, 32
  %284 = trunc nuw i64 %283 to i32
  %285 = trunc i64 %282 to i32
  %286 = getelementptr inbounds i8, ptr %gep156, i64 40
  %287 = load i64, ptr %286, align 8, !tbaa !9
  %288 = lshr i64 %287, 32
  %289 = trunc nuw i64 %288 to i32
  %290 = trunc i64 %287 to i32
  %291 = load i64, ptr %275, align 8, !tbaa !9
  %292 = lshr i64 %291, 32
  %293 = trunc nuw i64 %292 to i32
  %294 = trunc i64 %291 to i32
  %295 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.15, i32 noundef %259, i32 noundef %260, i32 noundef %264, i32 noundef %265, i32 noundef %269, i32 noundef %270, i32 noundef %273, i32 noundef %274, i32 noundef %279, i32 noundef %280, i32 noundef %284, i32 noundef %285, i32 noundef %289, i32 noundef %290, i32 noundef %293, i32 noundef %294) #6
  %.not116.2 = icmp eq i64 %indvars.iv.2, 255
  br i1 %.not116.2, label %298, label %296

296:                                              ; preds = %255
  %297 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.16) #6
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  br label %255

298:                                              ; preds = %255
  %.not115.2 = icmp eq i64 %indvars.iv122, 31
  br i1 %.not115.2, label %._crit_edge.2, label %299

299:                                              ; preds = %298
  %300 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.17) #6
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  br label %253

._crit_edge.2:                                    ; preds = %298
  %301 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.18) #6
  %302 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.19) #6
  tail call void @free(ptr noundef nonnull %251) #6
  %303 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20) #6
  %304 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.21) #6
  %305 = tail call i32 @fclose(ptr noundef %4)
  br label %306

306:                                              ; preds = %._crit_edge.2, %6
  %.0 = phi i32 [ -1, %6 ], [ 0, %._crit_edge.2 ]
  call void @llvm.lifetime.end.p0(i64 29, 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: 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: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @checked_malloc(ptr noundef, i64 noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { cold 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 = !{!"long", !7, i64 0}


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