; LLVM IR from skywind3000/ml :: NeuralNetwork (ineuron)

; 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.INTRAIN_BP = type { ptr, i32, i32, i32, double, double, ptr, ptr, ptr }
%struct.INEURALNET = type { i32, i32, i32, ptr, [1 x ptr] }
%struct.INLAYER = type { i32, i32, ptr, [1 x ptr] }
%struct.INEURON = type { i32, i32, double, double, ptr, ptr, [1 x double] }

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__.intrain_bp_create = external hidden unnamed_addr constant [66 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [24 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; 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
define dso_local ptr @intrain_bp_create(ptr noundef %0, double noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %13 = call noalias ptr @malloc(i64 noundef 64) #5
  store ptr %13, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %20

16:                                               ; preds = %2
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %16
  br label %21

20:                                               ; preds = %16, %2
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 466, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_create) #6
  unreachable

21:                                               ; preds = %19
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.INTRAIN_BP, ptr %23, i32 0, i32 0
  store ptr %22, ptr %24, align 8, !tbaa !11
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.INEURALNET, ptr %25, i32 0, i32 0
  %27 = load i32, ptr %26, align 8, !tbaa !14
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.INTRAIN_BP, ptr %28, i32 0, i32 1
  store i32 %27, ptr %29, align 8, !tbaa !16
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.INEURALNET, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 4, !tbaa !17
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.INTRAIN_BP, ptr %33, i32 0, i32 2
  store i32 %32, ptr %34, align 4, !tbaa !18
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.INEURALNET, ptr %35, i32 0, i32 2
  %37 = load i32, ptr %36, align 8, !tbaa !19
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.INTRAIN_BP, ptr %38, i32 0, i32 3
  store i32 %37, ptr %39, align 8, !tbaa !20
  %40 = load double, ptr %4, align 8, !tbaa !9
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.INTRAIN_BP, ptr %41, i32 0, i32 4
  store double %40, ptr %42, align 8, !tbaa !21
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.INTRAIN_BP, ptr %43, i32 0, i32 5
  store double 0.000000e+00, ptr %44, align 8, !tbaa !22
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.INEURALNET, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !14
  store i32 %47, ptr %7, align 4, !tbaa !23
  %48 = load i32, ptr %7, align 4, !tbaa !23
  %49 = sext i32 %48 to i64
  %50 = mul i64 8, %49
  %51 = call noalias ptr @malloc(i64 noundef %50) #5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.INTRAIN_BP, ptr %52, i32 0, i32 6
  store ptr %51, ptr %53, align 8, !tbaa !24
  %54 = load i32, ptr %7, align 4, !tbaa !23
  %55 = sext i32 %54 to i64
  %56 = mul i64 8, %55
  %57 = call noalias ptr @malloc(i64 noundef %56) #5
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.INTRAIN_BP, ptr %58, i32 0, i32 7
  store ptr %57, ptr %59, align 8, !tbaa !25
  %60 = load i32, ptr %7, align 4, !tbaa !23
  %61 = sext i32 %60 to i64
  %62 = mul i64 8, %61
  %63 = call noalias ptr @malloc(i64 noundef %62) #5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.INTRAIN_BP, ptr %64, i32 0, i32 8
  store ptr %63, ptr %65, align 8, !tbaa !26
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.INTRAIN_BP, ptr %66, i32 0, i32 6
  %68 = load ptr, ptr %67, align 8, !tbaa !24
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %81

70:                                               ; preds = %21
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.INTRAIN_BP, ptr %71, i32 0, i32 7
  %73 = load ptr, ptr %72, align 8, !tbaa !25
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %81

75:                                               ; preds = %70
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.INTRAIN_BP, ptr %76, i32 0, i32 8
  %78 = load ptr, ptr %77, align 8, !tbaa !26
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %81

80:                                               ; preds = %75
  br label %82

81:                                               ; preds = %75, %70, %21
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 482, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_create) #6
  unreachable

82:                                               ; preds = %80
  store i32 0, ptr %10, align 4, !tbaa !23
  br label %83

83:                                               ; preds = %258, %82
  %84 = load i32, ptr %10, align 4, !tbaa !23
  %85 = load i32, ptr %7, align 4, !tbaa !23
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %87, label %261

87:                                               ; preds = %83
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.INEURALNET, ptr %88, i32 0, i32 4
  %90 = load i32, ptr %10, align 4, !tbaa !23
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [1 x ptr], ptr %89, i64 0, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  store ptr %93, ptr %6, align 8, !tbaa !5
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.INLAYER, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !27
  store i32 %96, ptr %8, align 4, !tbaa !23
  %97 = load i32, ptr %8, align 4, !tbaa !23
  %98 = sext i32 %97 to i64
  %99 = mul i64 8, %98
  %100 = call noalias ptr @malloc(i64 noundef %99) #5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.INTRAIN_BP, ptr %101, i32 0, i32 6
  %103 = load ptr, ptr %102, align 8, !tbaa !24
  %104 = load i32, ptr %10, align 4, !tbaa !23
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds ptr, ptr %103, i64 %105
  store ptr %100, ptr %106, align 8, !tbaa !5
  %107 = load i32, ptr %8, align 4, !tbaa !23
  %108 = sext i32 %107 to i64
  %109 = mul i64 8, %108
  %110 = call noalias ptr @malloc(i64 noundef %109) #5
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.INTRAIN_BP, ptr %111, i32 0, i32 7
  %113 = load ptr, ptr %112, align 8, !tbaa !25
  %114 = load i32, ptr %10, align 4, !tbaa !23
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  store ptr %110, ptr %116, align 8, !tbaa !5
  %117 = load i32, ptr %8, align 4, !tbaa !23
  %118 = sext i32 %117 to i64
  %119 = mul i64 8, %118
  %120 = call noalias ptr @malloc(i64 noundef %119) #5
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.INTRAIN_BP, ptr %121, i32 0, i32 8
  %123 = load ptr, ptr %122, align 8, !tbaa !26
  %124 = load i32, ptr %10, align 4, !tbaa !23
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds ptr, ptr %123, i64 %125
  store ptr %120, ptr %126, align 8, !tbaa !5
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.INTRAIN_BP, ptr %127, i32 0, i32 6
  %129 = load ptr, ptr %128, align 8, !tbaa !24
  %130 = load i32, ptr %10, align 4, !tbaa !23
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds ptr, ptr %129, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %136

135:                                              ; preds = %87
  br label %137

136:                                              ; preds = %87
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 491, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_create) #6
  unreachable

137:                                              ; preds = %135
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.INTRAIN_BP, ptr %138, i32 0, i32 7
  %140 = load ptr, ptr %139, align 8, !tbaa !25
  %141 = load i32, ptr %10, align 4, !tbaa !23
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds ptr, ptr %140, i64 %142
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %147

146:                                              ; preds = %137
  br label %148

147:                                              ; preds = %137
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 492, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_create) #6
  unreachable

148:                                              ; preds = %146
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.INTRAIN_BP, ptr %149, i32 0, i32 8
  %151 = load ptr, ptr %150, align 8, !tbaa !26
  %152 = load i32, ptr %10, align 4, !tbaa !23
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %151, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = icmp ne ptr %155, null
  br i1 %156, label %157, label %158

157:                                              ; preds = %148
  br label %159

158:                                              ; preds = %148
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 493, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_create) #6
  unreachable

159:                                              ; preds = %157
  store i32 0, ptr %11, align 4, !tbaa !23
  br label %160

160:                                              ; preds = %254, %159
  %161 = load i32, ptr %11, align 4, !tbaa !23
  %162 = load i32, ptr %8, align 4, !tbaa !23
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %164, label %257

164:                                              ; preds = %160
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.INTRAIN_BP, ptr %165, i32 0, i32 6
  %167 = load ptr, ptr %166, align 8, !tbaa !24
  %168 = load i32, ptr %10, align 4, !tbaa !23
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds ptr, ptr %167, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = load i32, ptr %11, align 4, !tbaa !23
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %171, i64 %173
  store double 0.000000e+00, ptr %174, align 8, !tbaa !9
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.INTRAIN_BP, ptr %175, i32 0, i32 8
  %177 = load ptr, ptr %176, align 8, !tbaa !26
  %178 = load i32, ptr %10, align 4, !tbaa !23
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds ptr, ptr %177, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  %182 = load i32, ptr %11, align 4, !tbaa !23
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %181, i64 %183
  store double 0.000000e+00, ptr %184, align 8, !tbaa !9
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.INLAYER, ptr %185, i32 0, i32 3
  %187 = load i32, ptr %11, align 4, !tbaa !23
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [1 x ptr], ptr %186, i64 0, i64 %188
  %190 = load ptr, ptr %189, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.INEURON, ptr %190, i32 0, i32 0
  %192 = load i32, ptr %191, align 8, !tbaa !29
  %193 = sext i32 %192 to i64
  %194 = mul i64 8, %193
  %195 = trunc i64 %194 to i32
  store i32 %195, ptr %9, align 4, !tbaa !23
  %196 = load i32, ptr %9, align 4, !tbaa !23
  %197 = sext i32 %196 to i64
  %198 = call noalias ptr @malloc(i64 noundef %197) #5
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.INTRAIN_BP, ptr %199, i32 0, i32 7
  %201 = load ptr, ptr %200, align 8, !tbaa !25
  %202 = load i32, ptr %10, align 4, !tbaa !23
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds ptr, ptr %201, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  %206 = load i32, ptr %11, align 4, !tbaa !23
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds ptr, ptr %205, i64 %207
  store ptr %198, ptr %208, align 8, !tbaa !5
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.INTRAIN_BP, ptr %209, i32 0, i32 7
  %211 = load ptr, ptr %210, align 8, !tbaa !25
  %212 = load i32, ptr %10, align 4, !tbaa !23
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds ptr, ptr %211, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = load i32, ptr %11, align 4, !tbaa !23
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds ptr, ptr %215, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = icmp ne ptr %219, null
  br i1 %220, label %221, label %222

221:                                              ; preds = %164
  br label %223

222:                                              ; preds = %164
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.1, i32 noundef 501, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_create) #6
  unreachable

223:                                              ; preds = %221
  store i32 0, ptr %12, align 4, !tbaa !23
  br label %224

224:                                              ; preds = %250, %223
  %225 = load i32, ptr %12, align 4, !tbaa !23
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.INLAYER, ptr %226, i32 0, i32 3
  %228 = load i32, ptr %11, align 4, !tbaa !23
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [1 x ptr], ptr %227, i64 0, i64 %229
  %231 = load ptr, ptr %230, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.INEURON, ptr %231, i32 0, i32 0
  %233 = load i32, ptr %232, align 8, !tbaa !29
  %234 = icmp slt i32 %225, %233
  br i1 %234, label %235, label %253

235:                                              ; preds = %224
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.INTRAIN_BP, ptr %236, i32 0, i32 7
  %238 = load ptr, ptr %237, align 8, !tbaa !25
  %239 = load i32, ptr %10, align 4, !tbaa !23
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds ptr, ptr %238, i64 %240
  %242 = load ptr, ptr %241, align 8, !tbaa !5
  %243 = load i32, ptr %11, align 4, !tbaa !23
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds ptr, ptr %242, i64 %244
  %246 = load ptr, ptr %245, align 8, !tbaa !5
  %247 = load i32, ptr %12, align 4, !tbaa !23
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds double, ptr %246, i64 %248
  store double 0.000000e+00, ptr %249, align 8, !tbaa !9
  br label %250

250:                                              ; preds = %235
  %251 = load i32, ptr %12, align 4, !tbaa !23
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %12, align 4, !tbaa !23
  br label %224, !llvm.loop !31

253:                                              ; preds = %224
  br label %254

254:                                              ; preds = %253
  %255 = load i32, ptr %11, align 4, !tbaa !23
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %11, align 4, !tbaa !23
  br label %160, !llvm.loop !33

257:                                              ; preds = %160
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %10, align 4, !tbaa !23
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %10, align 4, !tbaa !23
  br label %83, !llvm.loop !34

261:                                              ; preds = %83
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret ptr %262
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }
attributes #6 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"INTRAIN_BP", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"INEURALNET", !13, i64 0, !13, i64 4, !13, i64 8, !6, i64 16, !7, i64 24}
!16 = !{!12, !13, i64 8}
!17 = !{!15, !13, i64 4}
!18 = !{!12, !13, i64 12}
!19 = !{!15, !13, i64 8}
!20 = !{!12, !13, i64 16}
!21 = !{!12, !10, i64 24}
!22 = !{!12, !10, i64 32}
!23 = !{!13, !13, i64 0}
!24 = !{!12, !6, i64 40}
!25 = !{!12, !6, i64 48}
!26 = !{!12, !6, i64 56}
!27 = !{!28, !13, i64 0}
!28 = !{!"INLAYER", !13, i64 0, !13, i64 4, !6, i64 8, !7, i64 16}
!29 = !{!30, !13, i64 0}
!30 = !{!"INEURON", !13, i64 0, !13, i64 4, !10, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !7, i64 40}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = distinct !{!34, !32}


; 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.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__.intrain_bp_create = external hidden unnamed_addr constant [66 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @intrain_bp_create(ptr noundef %0, double noundef %1) local_unnamed_addr #2 {
  %3 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #4
  %4 = icmp ne ptr %0, null
  %5 = icmp ne ptr %3, null
  %or.cond = and i1 %4, %5
  br i1 %or.cond, label %7, label %6

6:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 466, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_create) #5
  unreachable

7:                                                ; preds = %2
  store ptr %0, ptr %3, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %3, i64 8
  %9 = load <2 x i32>, ptr %0, align 8, !tbaa !12
  store <2 x i32> %9, ptr %8, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load i32, ptr %10, align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 %11, ptr %12, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %3, i64 24
  store double %1, ptr %13, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %3, i64 32
  store double 0.000000e+00, ptr %14, align 8, !tbaa !17
  %15 = extractelement <2 x i32> %9, i64 0
  %16 = sext i32 %15 to i64
  %17 = shl nsw i64 %16, 3
  %18 = tail call noalias ptr @malloc(i64 noundef %17) #4
  %19 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %18, ptr %19, align 8, !tbaa !18
  %20 = tail call noalias ptr @malloc(i64 noundef %17) #4
  %21 = getelementptr inbounds i8, ptr %3, i64 48
  store ptr %20, ptr %21, align 8, !tbaa !19
  %22 = tail call noalias ptr @malloc(i64 noundef %17) #4
  %23 = getelementptr inbounds i8, ptr %3, i64 56
  store ptr %22, ptr %23, align 8, !tbaa !20
  %.not = icmp eq ptr %18, null
  br i1 %.not, label %27, label %24

24:                                               ; preds = %7
  %.not75 = icmp eq ptr %20, null
  %.not76 = icmp eq ptr %22, null
  %or.cond81 = or i1 %.not75, %.not76
  br i1 %or.cond81, label %27, label %.preheader83

.preheader83:                                     ; preds = %24
  %25 = icmp sgt i32 %15, 0
  br i1 %25, label %.lr.ph89, label %._crit_edge90

.lr.ph89:                                         ; preds = %.preheader83
  %26 = getelementptr inbounds i8, ptr %0, i64 24
  %wide.trip.count96 = zext nneg i32 %15 to i64
  br label %28

27:                                               ; preds = %24, %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 482, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_create) #5
  unreachable

28:                                               ; preds = %.lr.ph89, %._crit_edge87
  %indvars.iv93 = phi i64 [ 0, %.lr.ph89 ], [ %indvars.iv.next94, %._crit_edge87 ]
  %29 = getelementptr inbounds [1 x ptr], ptr %26, i64 0, i64 %indvars.iv93
  %30 = load ptr, ptr %29, align 8, !tbaa !21
  %31 = load i32, ptr %30, align 8, !tbaa !22
  %32 = sext i32 %31 to i64
  %33 = shl nsw i64 %32, 3
  %34 = tail call noalias ptr @malloc(i64 noundef %33) #4
  %35 = getelementptr inbounds ptr, ptr %18, i64 %indvars.iv93
  store ptr %34, ptr %35, align 8, !tbaa !21
  %36 = tail call noalias ptr @malloc(i64 noundef %33) #4
  %37 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv93
  store ptr %36, ptr %37, align 8, !tbaa !21
  %38 = tail call noalias ptr @malloc(i64 noundef %33) #4
  %39 = getelementptr inbounds ptr, ptr %22, i64 %indvars.iv93
  store ptr %38, ptr %39, align 8, !tbaa !21
  %.not77 = icmp eq ptr %34, null
  br i1 %.not77, label %40, label %41

40:                                               ; preds = %28
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 491, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_create) #5
  unreachable

41:                                               ; preds = %28
  %.not78 = icmp eq ptr %36, null
  br i1 %.not78, label %42, label %43

42:                                               ; preds = %41
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 492, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_create) #5
  unreachable

43:                                               ; preds = %41
  %.not79 = icmp eq ptr %38, null
  br i1 %.not79, label %46, label %.preheader82

.preheader82:                                     ; preds = %43
  %44 = icmp sgt i32 %31, 0
  br i1 %44, label %.lr.ph86, label %._crit_edge87

.lr.ph86:                                         ; preds = %.preheader82
  %45 = getelementptr inbounds i8, ptr %30, i64 16
  %wide.trip.count = zext nneg i32 %31 to i64
  br label %47

46:                                               ; preds = %43
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i32 noundef 493, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_create) #5
  unreachable

47:                                               ; preds = %.lr.ph86, %._crit_edge
  %48 = phi ptr [ %36, %.lr.ph86 ], [ %60, %._crit_edge ]
  %indvars.iv = phi i64 [ 0, %.lr.ph86 ], [ %indvars.iv.next, %._crit_edge ]
  %49 = load ptr, ptr %35, align 8, !tbaa !21
  %50 = getelementptr inbounds double, ptr %49, i64 %indvars.iv
  store double 0.000000e+00, ptr %50, align 8, !tbaa !24
  %51 = load ptr, ptr %39, align 8, !tbaa !21
  %52 = getelementptr inbounds double, ptr %51, i64 %indvars.iv
  store double 0.000000e+00, ptr %52, align 8, !tbaa !24
  %53 = getelementptr inbounds [1 x ptr], ptr %45, i64 0, i64 %indvars.iv
  %54 = load ptr, ptr %53, align 8, !tbaa !21
  %55 = load i32, ptr %54, align 8, !tbaa !25
  %56 = shl i32 %55, 3
  %57 = sext i32 %56 to i64
  %58 = tail call noalias ptr @malloc(i64 noundef %57) #4
  %59 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv
  store ptr %58, ptr %59, align 8, !tbaa !21
  %60 = load ptr, ptr %37, align 8, !tbaa !21
  %61 = getelementptr inbounds ptr, ptr %60, i64 %indvars.iv
  %62 = load ptr, ptr %61, align 8, !tbaa !21
  %.not80 = icmp eq ptr %62, null
  br i1 %.not80, label %68, label %.preheader

.preheader:                                       ; preds = %47
  %63 = load ptr, ptr %53, align 8, !tbaa !21
  %64 = load i32, ptr %63, align 8, !tbaa !25
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %66 = zext nneg i32 %64 to i64
  %67 = shl nuw nsw i64 %66, 3
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %62, i8 0, i64 %67, i1 false), !tbaa !24
  br label %._crit_edge

68:                                               ; preds = %47
  tail call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.1, i32 noundef 501, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_create) #5
  unreachable

._crit_edge:                                      ; preds = %.lr.ph.preheader, %.preheader
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge87, label %47, !llvm.loop !27

._crit_edge87:                                    ; preds = %._crit_edge, %.preheader82
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond97.not = icmp eq i64 %indvars.iv.next94, %wide.trip.count96
  br i1 %exitcond97.not, label %._crit_edge90, label %28, !llvm.loop !29

._crit_edge90:                                    ; preds = %._crit_edge87, %.preheader83
  ret ptr %3
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

attributes #0 = { 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 #1 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind allocsize(0) }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"INTRAIN_BP", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"INEURALNET", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !8, i64 24}
!15 = !{!6, !10, i64 16}
!16 = !{!6, !11, i64 24}
!17 = !{!6, !11, i64 32}
!18 = !{!6, !7, i64 40}
!19 = !{!6, !7, i64 48}
!20 = !{!6, !7, i64 56}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !10, i64 0}
!23 = !{!"INLAYER", !10, i64 0, !10, i64 4, !7, i64 8, !8, i64 16}
!24 = !{!11, !11, i64 0}
!25 = !{!26, !10, i64 0}
!26 = !{!"INEURON", !10, i64 0, !10, i64 4, !11, i64 8, !11, i64 16, !7, i64 24, !7, i64 32, !8, i64 40}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}


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