; LLVM IR from siavashserver/neonrvm :: example (main)

; 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"

@.str = external hidden unnamed_addr constant [45 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @sinc(i64 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @preprocess(i64 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @rbf(i64 noundef, i64 noundef, ptr noundef, ptr noundef, double noundef, i1 noundef zeroext, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @calc_mape(i64 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 500, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store double 5.000000e+00, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store double 5.000000e+00, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store double 1.000000e-03, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %30 = load i64, ptr %2, align 8, !tbaa !5
  %31 = mul i64 %30, 8
  %32 = call noalias ptr @malloc(i64 noundef %31) #7
  store ptr %32, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %33 = load i64, ptr %2, align 8, !tbaa !5
  %34 = mul i64 %33, 8
  %35 = call noalias ptr @malloc(i64 noundef %34) #7
  store ptr %35, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %36 = load i64, ptr %2, align 8, !tbaa !5
  %37 = mul i64 %36, 8
  %38 = call noalias ptr @malloc(i64 noundef %37) #7
  store ptr %38, ptr %8, align 8, !tbaa !11
  %39 = load i64, ptr %2, align 8, !tbaa !5
  %40 = load double, ptr %3, align 8, !tbaa !9
  %41 = load double, ptr %4, align 8, !tbaa !9
  %42 = load double, ptr %5, align 8, !tbaa !9
  %43 = load ptr, ptr %6, align 8, !tbaa !11
  %44 = load ptr, ptr %7, align 8, !tbaa !11
  call void @sinc(i64 noundef %39, double noundef %40, double noundef %41, double noundef %42, ptr noundef %43, ptr noundef %44)
  %45 = load ptr, ptr %8, align 8, !tbaa !11
  %46 = load ptr, ptr %6, align 8, !tbaa !11
  %47 = load i64, ptr %2, align 8, !tbaa !5
  %48 = mul i64 %47, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %46, i64 %48, i1 false)
  %49 = load i64, ptr %2, align 8, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !11
  call void @preprocess(i64 noundef %49, ptr noundef %50)
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  store i8 0, ptr %9, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store double 1.000000e+01, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %51 = load i64, ptr %2, align 8, !tbaa !5
  %52 = load i64, ptr %2, align 8, !tbaa !5
  %53 = mul i64 %51, %52
  %54 = mul i64 %53, 8
  %55 = call noalias ptr @malloc(i64 noundef %54) #7
  store ptr %55, ptr %11, align 8, !tbaa !11
  %56 = load i64, ptr %2, align 8, !tbaa !5
  %57 = load i64, ptr %2, align 8, !tbaa !5
  %58 = load ptr, ptr %8, align 8, !tbaa !11
  %59 = load ptr, ptr %8, align 8, !tbaa !11
  %60 = load double, ptr %10, align 8, !tbaa !9
  %61 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
  %62 = trunc i8 %61 to i1
  %63 = load ptr, ptr %11, align 8, !tbaa !11
  call void @rbf(i64 noundef %56, i64 noundef %57, ptr noundef %58, ptr noundef %59, double noundef %60, i1 noundef zeroext %62, ptr noundef %63)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %64 = load i64, ptr %2, align 8, !tbaa !5
  %65 = mul i64 %64, 8
  %66 = call noalias ptr @malloc(i64 noundef %65) #7
  store ptr %66, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %77, %0
  %68 = load i64, ptr %13, align 8, !tbaa !5
  %69 = load i64, ptr %2, align 8, !tbaa !5
  %70 = icmp ult i64 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %80

72:                                               ; preds = %67
  %73 = load i64, ptr %13, align 8, !tbaa !5
  %74 = load ptr, ptr %12, align 8, !tbaa !11
  %75 = load i64, ptr %13, align 8, !tbaa !5
  %76 = getelementptr inbounds i64, ptr %74, i64 %75
  store i64 %73, ptr %76, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %72
  %78 = load i64, ptr %13, align 8, !tbaa !5
  %79 = add i64 %78, 1
  store i64 %79, ptr %13, align 8, !tbaa !5
  br label %67, !llvm.loop !17

80:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %81 = load ptr, ptr %7, align 8, !tbaa !11
  %82 = load i64, ptr %2, align 8, !tbaa !5
  %83 = call i32 @neonrvm_create_cache(ptr noundef %14, ptr noundef %81, i64 noundef %82)
  %84 = call i32 @neonrvm_create_param(ptr noundef %15, double noundef 0x3EB0C6F7A0B5ED8D, double noundef 1.000000e+03, double noundef 1.000000e-01, double noundef 0x3EB0C6F7A0B5ED8D, double noundef 8.000000e+01, i64 noundef 100)
  %85 = call i32 @neonrvm_create_param(ptr noundef %16, double noundef 0x3EB0C6F7A0B5ED8D, double noundef 1.000000e+03, double noundef 1.000000e-02, double noundef 0x3EB0C6F7A0B5ED8D, double noundef 0.000000e+00, i64 noundef 300)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 100, ptr %17, align 8, !tbaa !5
  %86 = load ptr, ptr %14, align 8, !tbaa !11
  %87 = load ptr, ptr %15, align 8, !tbaa !11
  %88 = load ptr, ptr %16, align 8, !tbaa !11
  %89 = load ptr, ptr %11, align 8, !tbaa !11
  %90 = load ptr, ptr %12, align 8, !tbaa !11
  %91 = load i64, ptr %2, align 8, !tbaa !5
  %92 = load i64, ptr %17, align 8, !tbaa !5
  %93 = call i32 @neonrvm_train(ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, i64 noundef %91, i64 noundef %92)
  %94 = icmp ne i32 0, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %80
  store i32 1, ptr %1, align 4
  store i32 1, ptr %18, align 4
  br label %236

96:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store i64 0, ptr %19, align 8, !tbaa !5
  %97 = load ptr, ptr %14, align 8, !tbaa !11
  %98 = call i32 @neonrvm_get_training_stats(ptr noundef %97, ptr noundef %19, ptr noundef %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %99 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %104

101:                                              ; preds = %96
  %102 = load i64, ptr %19, align 8, !tbaa !5
  %103 = sub i64 %102, 1
  br label %106

104:                                              ; preds = %96
  %105 = load i64, ptr %19, align 8, !tbaa !5
  br label %106

106:                                              ; preds = %104, %101
  %107 = phi i64 [ %103, %101 ], [ %105, %104 ]
  store i64 %107, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %108 = load i64, ptr %19, align 8, !tbaa !5
  %109 = mul i64 %108, 8
  %110 = call noalias ptr @malloc(i64 noundef %109) #7
  store ptr %110, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %111 = load i64, ptr %19, align 8, !tbaa !5
  %112 = mul i64 %111, 8
  %113 = call noalias ptr @malloc(i64 noundef %112) #7
  store ptr %113, ptr %22, align 8, !tbaa !11
  %114 = load ptr, ptr %14, align 8, !tbaa !11
  %115 = load ptr, ptr %21, align 8, !tbaa !11
  %116 = load ptr, ptr %22, align 8, !tbaa !11
  %117 = call i32 @neonrvm_get_training_results(ptr noundef %114, ptr noundef %115, ptr noundef %116)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store i64 0, ptr %23, align 8, !tbaa !5
  br label %118

118:                                              ; preds = %143, %106
  %119 = load i64, ptr %23, align 8, !tbaa !5
  %120 = load i64, ptr %20, align 8, !tbaa !5
  %121 = icmp ult i64 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %146

123:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %124 = load ptr, ptr %21, align 8, !tbaa !11
  %125 = load i64, ptr %23, align 8, !tbaa !5
  %126 = getelementptr inbounds i64, ptr %124, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !5
  store i64 %127, ptr %24, align 8, !tbaa !5
  %128 = load i64, ptr %23, align 8, !tbaa !5
  %129 = load i64, ptr %24, align 8, !tbaa !5
  %130 = load ptr, ptr %22, align 8, !tbaa !11
  %131 = load i64, ptr %23, align 8, !tbaa !5
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = load ptr, ptr %6, align 8, !tbaa !11
  %135 = load i64, ptr %24, align 8, !tbaa !5
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = load ptr, ptr %7, align 8, !tbaa !11
  %139 = load i64, ptr %24, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !9
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %128, i64 noundef %129, double noundef %133, double noundef %137, double noundef %141)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %143

143:                                              ; preds = %123
  %144 = load i64, ptr %23, align 8, !tbaa !5
  %145 = add i64 %144, 1
  store i64 %145, ptr %23, align 8, !tbaa !5
  br label %118, !llvm.loop !19

146:                                              ; preds = %122
  %147 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
  %148 = trunc i8 %147 to i1
  %149 = zext i1 %148 to i32
  %150 = icmp eq i32 1, %149
  br i1 %150, label %151, label %157

151:                                              ; preds = %146
  %152 = load ptr, ptr %22, align 8, !tbaa !11
  %153 = load i64, ptr %20, align 8, !tbaa !5
  %154 = getelementptr inbounds double, ptr %152, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !9
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %155)
  br label %157

157:                                              ; preds = %151, %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %158 = load i64, ptr %20, align 8, !tbaa !5
  %159 = mul i64 %158, 8
  %160 = call noalias ptr @malloc(i64 noundef %159) #7
  store ptr %160, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  store i64 0, ptr %26, align 8, !tbaa !5
  br label %161

161:                                              ; preds = %178, %157
  %162 = load i64, ptr %26, align 8, !tbaa !5
  %163 = load i64, ptr %20, align 8, !tbaa !5
  %164 = icmp ult i64 %162, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %161
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %181

166:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %167 = load ptr, ptr %21, align 8, !tbaa !11
  %168 = load i64, ptr %26, align 8, !tbaa !5
  %169 = getelementptr inbounds i64, ptr %167, i64 %168
  %170 = load i64, ptr %169, align 8, !tbaa !5
  store i64 %170, ptr %27, align 8, !tbaa !5
  %171 = load ptr, ptr %8, align 8, !tbaa !11
  %172 = load i64, ptr %27, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %171, i64 %172
  %174 = load double, ptr %173, align 8, !tbaa !9
  %175 = load ptr, ptr %25, align 8, !tbaa !11
  %176 = load i64, ptr %26, align 8, !tbaa !5
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  store double %174, ptr %177, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %178

178:                                              ; preds = %166
  %179 = load i64, ptr %26, align 8, !tbaa !5
  %180 = add i64 %179, 1
  store i64 %180, ptr %26, align 8, !tbaa !5
  br label %161, !llvm.loop !20

181:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %182 = load i64, ptr %2, align 8, !tbaa !5
  %183 = load i64, ptr %19, align 8, !tbaa !5
  %184 = mul i64 %182, %183
  %185 = mul i64 %184, 8
  %186 = call noalias ptr @malloc(i64 noundef %185) #7
  store ptr %186, ptr %28, align 8, !tbaa !11
  %187 = load i64, ptr %2, align 8, !tbaa !5
  %188 = load i64, ptr %20, align 8, !tbaa !5
  %189 = load ptr, ptr %8, align 8, !tbaa !11
  %190 = load ptr, ptr %25, align 8, !tbaa !11
  %191 = load double, ptr %10, align 8, !tbaa !9
  %192 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
  %193 = trunc i8 %192 to i1
  %194 = load ptr, ptr %28, align 8, !tbaa !11
  call void @rbf(i64 noundef %187, i64 noundef %188, ptr noundef %189, ptr noundef %190, double noundef %191, i1 noundef zeroext %193, ptr noundef %194)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %195 = load i64, ptr %2, align 8, !tbaa !5
  %196 = mul i64 %195, 8
  %197 = call noalias ptr @malloc(i64 noundef %196) #7
  store ptr %197, ptr %29, align 8, !tbaa !11
  %198 = load ptr, ptr %28, align 8, !tbaa !11
  %199 = load ptr, ptr %22, align 8, !tbaa !11
  %200 = load i64, ptr %2, align 8, !tbaa !5
  %201 = load i64, ptr %19, align 8, !tbaa !5
  %202 = load ptr, ptr %29, align 8, !tbaa !11
  %203 = call i32 @neonrvm_predict(ptr noundef %198, ptr noundef %199, i64 noundef %200, i64 noundef %201, ptr noundef %202)
  %204 = icmp ne i32 0, %203
  br i1 %204, label %205, label %206

205:                                              ; preds = %181
  store i32 1, ptr %1, align 4
  store i32 1, ptr %18, align 4
  br label %235

206:                                              ; preds = %181
  %207 = load i64, ptr %2, align 8, !tbaa !5
  %208 = load ptr, ptr %7, align 8, !tbaa !11
  %209 = load ptr, ptr %29, align 8, !tbaa !11
  %210 = call double @calc_mape(i64 noundef %207, ptr noundef %208, ptr noundef %209)
  %211 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %210)
  %212 = load i64, ptr %19, align 8, !tbaa !5
  %213 = uitofp i64 %212 to double
  %214 = fmul double 1.000000e+02, %213
  %215 = load i64, ptr %2, align 8, !tbaa !5
  %216 = uitofp i64 %215 to double
  %217 = fdiv double %214, %216
  %218 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %217)
  %219 = load ptr, ptr %14, align 8, !tbaa !11
  %220 = call i32 @neonrvm_destroy_cache(ptr noundef %219)
  %221 = load ptr, ptr %15, align 8, !tbaa !11
  %222 = call i32 @neonrvm_destroy_param(ptr noundef %221)
  %223 = load ptr, ptr %16, align 8, !tbaa !11
  %224 = call i32 @neonrvm_destroy_param(ptr noundef %223)
  %225 = load ptr, ptr %6, align 8, !tbaa !11
  call void @free(ptr noundef %225) #6
  %226 = load ptr, ptr %7, align 8, !tbaa !11
  call void @free(ptr noundef %226) #6
  %227 = load ptr, ptr %8, align 8, !tbaa !11
  call void @free(ptr noundef %227) #6
  %228 = load ptr, ptr %11, align 8, !tbaa !11
  call void @free(ptr noundef %228) #6
  %229 = load ptr, ptr %12, align 8, !tbaa !11
  call void @free(ptr noundef %229) #6
  %230 = load ptr, ptr %21, align 8, !tbaa !11
  call void @free(ptr noundef %230) #6
  %231 = load ptr, ptr %22, align 8, !tbaa !11
  call void @free(ptr noundef %231) #6
  %232 = load ptr, ptr %25, align 8, !tbaa !11
  call void @free(ptr noundef %232) #6
  %233 = load ptr, ptr %28, align 8, !tbaa !11
  call void @free(ptr noundef %233) #6
  %234 = load ptr, ptr %29, align 8, !tbaa !11
  call void @free(ptr noundef %234) #6
  store i32 0, ptr %1, align 4
  store i32 1, ptr %18, align 4
  br label %235

235:                                              ; preds = %206, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %236

236:                                              ; preds = %235, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %237 = load i32, ptr %1, align 4
  ret i32 %237
}

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

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

declare i32 @neonrvm_create_cache(ptr noundef, ptr noundef, i64 noundef) #4

declare i32 @neonrvm_create_param(ptr noundef, double noundef, double noundef, double noundef, double noundef, double noundef, i64 noundef) #4

declare i32 @neonrvm_train(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #4

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

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

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

declare i32 @neonrvm_predict(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #4

declare i32 @neonrvm_destroy_cache(ptr noundef) #4

declare i32 @neonrvm_destroy_param(ptr noundef) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


; 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"

@.str = external hidden unnamed_addr constant [45 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @sinc(i64 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @preprocess(i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @rbf(i64 noundef, i64 noundef, ptr noundef, ptr noundef, double noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @calc_mape(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main() local_unnamed_addr #0 {
vector.ph:
  %0 = alloca i8, align 1
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = tail call noalias dereferenceable_or_null(4000) ptr @malloc(i64 noundef 4000) #7
  %6 = tail call noalias dereferenceable_or_null(4000) ptr @malloc(i64 noundef 4000) #7
  %7 = tail call noalias dereferenceable_or_null(4000) ptr @malloc(i64 noundef 4000) #7
  tail call void @sinc(i64 noundef 500, double noundef 5.000000e+00, double noundef 5.000000e+00, double noundef 1.000000e-03, ptr noundef %5, ptr noundef %6)
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(4000) %7, ptr noundef nonnull align 8 dereferenceable(4000) %5, i64 4000, i1 false)
  tail call void @preprocess(i64 noundef 500, ptr noundef %7)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %0) #8
  store i8 0, ptr %0, align 1, !tbaa !5
  %8 = tail call noalias dereferenceable_or_null(2000000) ptr @malloc(i64 noundef 2000000) #7
  tail call void @rbf(i64 noundef 500, i64 noundef 500, ptr noundef %7, ptr noundef %7, double noundef 1.000000e+01, i1 noundef zeroext false, ptr noundef %8)
  %9 = tail call noalias dereferenceable_or_null(4000) ptr @malloc(i64 noundef 4000) #7
  br label %vector.body

vector.body:                                      ; preds = %vector.body.1, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next.3, %vector.body.1 ]
  %vec.ind = phi <2 x i64> [ <i64 0, i64 1>, %vector.ph ], [ %vec.ind.next.3, %vector.body.1 ]
  %step.add = add <2 x i64> %vec.ind, <i64 2, i64 2>
  %10 = getelementptr inbounds i64, ptr %9, i64 %index
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  store <2 x i64> %vec.ind, ptr %10, align 8, !tbaa !9
  store <2 x i64> %step.add, ptr %11, align 8, !tbaa !9
  %12 = icmp eq i64 %index, 496
  br i1 %12, label %middle.block, label %vector.body.1, !llvm.loop !11

vector.body.1:                                    ; preds = %vector.body
  %index.next = or disjoint i64 %index, 4
  %vec.ind.next = add <2 x i64> %vec.ind, <i64 4, i64 4>
  %step.add.1 = add <2 x i64> %vec.ind, <i64 6, i64 6>
  %13 = getelementptr inbounds i64, ptr %9, i64 %index.next
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  store <2 x i64> %vec.ind.next, ptr %13, align 8, !tbaa !9
  store <2 x i64> %step.add.1, ptr %14, align 8, !tbaa !9
  %index.next.1 = or disjoint i64 %index, 8
  %vec.ind.next.1 = add <2 x i64> %vec.ind, <i64 8, i64 8>
  %step.add.2 = add <2 x i64> %vec.ind, <i64 10, i64 10>
  %15 = getelementptr inbounds i64, ptr %9, i64 %index.next.1
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  store <2 x i64> %vec.ind.next.1, ptr %15, align 8, !tbaa !9
  store <2 x i64> %step.add.2, ptr %16, align 8, !tbaa !9
  %index.next.2 = or disjoint i64 %index, 12
  %vec.ind.next.2 = add <2 x i64> %vec.ind, <i64 12, i64 12>
  %step.add.3 = add <2 x i64> %vec.ind, <i64 14, i64 14>
  %17 = getelementptr inbounds i64, ptr %9, i64 %index.next.2
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  store <2 x i64> %vec.ind.next.2, ptr %17, align 8, !tbaa !9
  store <2 x i64> %step.add.3, ptr %18, align 8, !tbaa !9
  %index.next.3 = add nuw nsw i64 %index, 16
  %vec.ind.next.3 = add <2 x i64> %vec.ind, <i64 16, i64 16>
  br label %vector.body

middle.block:                                     ; preds = %vector.body
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %19 = call i32 @neonrvm_create_cache(ptr noundef nonnull %1, ptr noundef %6, i64 noundef 500) #8
  %20 = call i32 @neonrvm_create_param(ptr noundef nonnull %2, double noundef 0x3EB0C6F7A0B5ED8D, double noundef 1.000000e+03, double noundef 1.000000e-01, double noundef 0x3EB0C6F7A0B5ED8D, double noundef 8.000000e+01, i64 noundef 100) #8
  %21 = call i32 @neonrvm_create_param(ptr noundef nonnull %3, double noundef 0x3EB0C6F7A0B5ED8D, double noundef 1.000000e+03, double noundef 1.000000e-02, double noundef 0x3EB0C6F7A0B5ED8D, double noundef 0.000000e+00, i64 noundef 300) #8
  %22 = load ptr, ptr %1, align 8, !tbaa !15
  %23 = load ptr, ptr %2, align 8, !tbaa !15
  %24 = load ptr, ptr %3, align 8, !tbaa !15
  %25 = call i32 @neonrvm_train(ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %8, ptr noundef nonnull %9, i64 noundef 500, i64 noundef 100) #8
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %26, label %112

26:                                               ; preds = %middle.block
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store i64 0, ptr %4, align 8, !tbaa !9
  %27 = load ptr, ptr %1, align 8, !tbaa !15
  %28 = call i32 @neonrvm_get_training_stats(ptr noundef %27, ptr noundef nonnull %4, ptr noundef nonnull %0) #8
  %29 = load i8, ptr %0, align 1, !tbaa !5, !range !17, !noundef !18
  %30 = zext nneg i8 %29 to i64
  %31 = load i64, ptr %4, align 8
  %32 = sub i64 %31, %30
  %33 = shl i64 %31, 3
  %34 = call noalias ptr @malloc(i64 noundef %33) #7
  %35 = call noalias ptr @malloc(i64 noundef %33) #7
  %36 = load ptr, ptr %1, align 8, !tbaa !15
  %37 = call i32 @neonrvm_get_training_results(ptr noundef %36, ptr noundef %34, ptr noundef %35) #8
  %.not99 = icmp eq i64 %31, %30
  br i1 %.not99, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %26
  %38 = load i8, ptr %0, align 1, !tbaa !5, !range !17, !noundef !18
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %50, label %54

.lr.ph:                                           ; preds = %26, %.lr.ph
  %.09094 = phi i64 [ %49, %.lr.ph ], [ 0, %26 ]
  %40 = getelementptr inbounds i64, ptr %34, i64 %.09094
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = getelementptr inbounds double, ptr %35, i64 %.09094
  %43 = load double, ptr %42, align 8, !tbaa !19
  %44 = getelementptr inbounds double, ptr %5, i64 %41
  %45 = load double, ptr %44, align 8, !tbaa !19
  %46 = getelementptr inbounds double, ptr %6, i64 %41
  %47 = load double, ptr %46, align 8, !tbaa !19
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %.09094, i64 noundef %41, double noundef %43, double noundef %45, double noundef %47)
  %49 = add nuw i64 %.09094, 1
  %exitcond101.not = icmp eq i64 %49, %32
  br i1 %exitcond101.not, label %._crit_edge, label %.lr.ph, !llvm.loop !21

50:                                               ; preds = %._crit_edge
  %51 = getelementptr inbounds double, ptr %35, i64 %32
  %52 = load double, ptr %51, align 8, !tbaa !19
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %52)
  br label %54

54:                                               ; preds = %50, %._crit_edge
  %55 = shl i64 %32, 3
  %56 = call noalias ptr @malloc(i64 noundef %55) #7
  br i1 %.not99, label %._crit_edge98, label %.lr.ph97.preheader

.lr.ph97.preheader:                               ; preds = %54
  %xtraiter = and i64 %32, 3
  %57 = sub i64 %30, %31
  %58 = icmp ugt i64 %57, -4
  br i1 %58, label %._crit_edge98.loopexit.unr-lcssa, label %.lr.ph97.preheader.new

.lr.ph97.preheader.new:                           ; preds = %.lr.ph97.preheader
  %unroll_iter = and i64 %32, -4
  br label %.lr.ph97

._crit_edge98.loopexit.unr-lcssa:                 ; preds = %.lr.ph97, %.lr.ph97.preheader
  %.08995.unr = phi i64 [ 0, %.lr.ph97.preheader ], [ %96, %.lr.ph97 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge98, label %.lr.ph97.epil

.lr.ph97.epil:                                    ; preds = %._crit_edge98.loopexit.unr-lcssa, %.lr.ph97.epil
  %.08995.epil = phi i64 [ %64, %.lr.ph97.epil ], [ %.08995.unr, %._crit_edge98.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph97.epil ], [ 0, %._crit_edge98.loopexit.unr-lcssa ]
  %59 = getelementptr inbounds i64, ptr %34, i64 %.08995.epil
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds double, ptr %7, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !19
  %63 = getelementptr inbounds double, ptr %56, i64 %.08995.epil
  store double %62, ptr %63, align 8, !tbaa !19
  %64 = add nuw i64 %.08995.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge98, label %.lr.ph97.epil, !llvm.loop !22

._crit_edge98:                                    ; preds = %._crit_edge98.loopexit.unr-lcssa, %.lr.ph97.epil, %54
  %65 = load i64, ptr %4, align 8, !tbaa !9
  %66 = mul i64 %65, 4000
  %67 = call noalias ptr @malloc(i64 noundef %66) #7
  %68 = load i8, ptr %0, align 1, !tbaa !5, !range !17, !noundef !18
  %69 = trunc nuw i8 %68 to i1
  call void @rbf(i64 noundef 500, i64 noundef %32, ptr noundef %7, ptr noundef %56, double noundef 1.000000e+01, i1 noundef zeroext %69, ptr noundef %67)
  %70 = call noalias dereferenceable_or_null(4000) ptr @malloc(i64 noundef 4000) #7
  %71 = load i64, ptr %4, align 8, !tbaa !9
  %72 = call i32 @neonrvm_predict(ptr noundef %67, ptr noundef %35, i64 noundef 500, i64 noundef %71, ptr noundef %70) #8
  %.not92 = icmp eq i32 %72, 0
  br i1 %.not92, label %97, label %111

.lr.ph97:                                         ; preds = %.lr.ph97, %.lr.ph97.preheader.new
  %.08995 = phi i64 [ 0, %.lr.ph97.preheader.new ], [ %96, %.lr.ph97 ]
  %niter = phi i64 [ 0, %.lr.ph97.preheader.new ], [ %niter.next.3, %.lr.ph97 ]
  %73 = getelementptr inbounds i64, ptr %34, i64 %.08995
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = getelementptr inbounds double, ptr %7, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !19
  %77 = getelementptr inbounds double, ptr %56, i64 %.08995
  store double %76, ptr %77, align 8, !tbaa !19
  %78 = or disjoint i64 %.08995, 1
  %79 = getelementptr inbounds i64, ptr %34, i64 %78
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds double, ptr %7, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !19
  %83 = getelementptr inbounds double, ptr %56, i64 %78
  store double %82, ptr %83, align 8, !tbaa !19
  %84 = or disjoint i64 %.08995, 2
  %85 = getelementptr inbounds i64, ptr %34, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds double, ptr %7, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !19
  %89 = getelementptr inbounds double, ptr %56, i64 %84
  store double %88, ptr %89, align 8, !tbaa !19
  %90 = or disjoint i64 %.08995, 3
  %91 = getelementptr inbounds i64, ptr %34, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = getelementptr inbounds double, ptr %7, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !19
  %95 = getelementptr inbounds double, ptr %56, i64 %90
  store double %94, ptr %95, align 8, !tbaa !19
  %96 = add nuw i64 %.08995, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge98.loopexit.unr-lcssa, label %.lr.ph97, !llvm.loop !24

97:                                               ; preds = %._crit_edge98
  %98 = call double @calc_mape(i64 noundef 500, ptr noundef %6, ptr noundef %70)
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %98)
  %100 = load i64, ptr %4, align 8, !tbaa !9
  %101 = uitofp i64 %100 to double
  %102 = fmul double %101, 1.000000e+02
  %103 = fdiv double %102, 5.000000e+02
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %103)
  %105 = load ptr, ptr %1, align 8, !tbaa !15
  %106 = call i32 @neonrvm_destroy_cache(ptr noundef %105) #8
  %107 = load ptr, ptr %2, align 8, !tbaa !15
  %108 = call i32 @neonrvm_destroy_param(ptr noundef %107) #8
  %109 = load ptr, ptr %3, align 8, !tbaa !15
  %110 = call i32 @neonrvm_destroy_param(ptr noundef %109) #8
  call void @free(ptr noundef %5) #8
  call void @free(ptr noundef %6) #8
  call void @free(ptr noundef %7) #8
  call void @free(ptr noundef %8) #8
  call void @free(ptr noundef %9) #8
  call void @free(ptr noundef %34) #8
  call void @free(ptr noundef %35) #8
  call void @free(ptr noundef %56) #8
  call void @free(ptr noundef %67) #8
  call void @free(ptr noundef %70) #8
  br label %111

111:                                              ; preds = %._crit_edge98, %97
  %.0 = phi i32 [ 0, %97 ], [ 1, %._crit_edge98 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %112

112:                                              ; preds = %middle.block, %111
  %.1 = phi i32 [ %.0, %111 ], [ 1, %middle.block ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %0) #8
  ret i32 %.1
}

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

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

declare i32 @neonrvm_create_cache(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @neonrvm_create_param(ptr noundef, double noundef, double noundef, double noundef, double noundef, double noundef, i64 noundef) local_unnamed_addr #4

declare i32 @neonrvm_train(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

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

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

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

declare i32 @neonrvm_predict(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare i32 @neonrvm_destroy_cache(ptr noundef) local_unnamed_addr #4

declare i32 @neonrvm_destroy_param(ptr noundef) local_unnamed_addr #4

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

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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #6 = { 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 #7 = { nounwind allocsize(0) }
attributes #8 = { 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 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass