; LLVM IR from oservo/aiFi :: mlp (mlpTrain)

; 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.mlp = type { i32, i32, i32, i32, i32, double, double, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@__PRETTY_FUNCTION__.mlpTrain = external hidden unnamed_addr constant [101 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1

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

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #1

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local void @mlpTrain(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, double noundef %10, double noundef %11) #3 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store i32 %2, ptr %15, align 4, !tbaa !9
  store i32 %3, ptr %16, align 4, !tbaa !9
  store ptr %4, ptr %17, align 8, !tbaa !5
  store i32 %5, ptr %18, align 4, !tbaa !9
  store i32 %6, ptr %19, align 4, !tbaa !9
  store i32 %7, ptr %20, align 4, !tbaa !9
  store i32 %8, ptr %21, align 4, !tbaa !9
  store i32 %9, ptr %22, align 4, !tbaa !9
  store double %10, ptr %23, align 8, !tbaa !11
  store double %11, ptr %24, align 8, !tbaa !11
  %28 = load i32, ptr %20, align 4, !tbaa !9
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %48, label %30

30:                                               ; preds = %12
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = call ptr @__errno_location() #5
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %30
  br label %40

36:                                               ; preds = %30
  %37 = call ptr @__errno_location() #5
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = call ptr @strerror(i32 noundef %38) #6
  br label %40

40:                                               ; preds = %36, %35
  %41 = phi ptr [ @.str.2, %35 ], [ %39, %36 ]
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 178, ptr noundef %41) #6
  %43 = load i32, ptr %20, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %40
  br label %47

46:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 178, ptr noundef @__PRETTY_FUNCTION__.mlpTrain) #7
  unreachable

47:                                               ; preds = %45
  br label %48

48:                                               ; preds = %47, %12
  %49 = load i32, ptr %22, align 4, !tbaa !9
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %69, label %51

51:                                               ; preds = %48
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = call ptr @__errno_location() #5
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %51
  br label %61

57:                                               ; preds = %51
  %58 = call ptr @__errno_location() #5
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = call ptr @strerror(i32 noundef %59) #6
  br label %61

61:                                               ; preds = %57, %56
  %62 = phi ptr [ @.str.2, %56 ], [ %60, %57 ]
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 179, ptr noundef %62) #6
  %64 = load i32, ptr %22, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  br label %68

67:                                               ; preds = %61
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 179, ptr noundef @__PRETTY_FUNCTION__.mlpTrain) #7
  unreachable

68:                                               ; preds = %66
  br label %69

69:                                               ; preds = %68, %48
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.mlp, ptr %70, i32 0, i32 9
  store i32 0, ptr %71, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %204, %69
  %73 = load i32, ptr %25, align 4, !tbaa !9
  %74 = load i32, ptr %21, align 4, !tbaa !9
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 2, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %207

77:                                               ; preds = %72
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.mlp, ptr %78, i32 0, i32 17
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %97

82:                                               ; preds = %77
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.mlp, ptr %83, i32 0, i32 17
  %85 = load ptr, ptr %84, align 8, !tbaa !15
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = load i32, ptr %15, align 4, !tbaa !9
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = load i32, ptr %18, align 4, !tbaa !9
  %92 = load i32, ptr %19, align 4, !tbaa !9
  %93 = load i32, ptr %25, align 4, !tbaa !9
  %94 = call i32 %85(ptr noundef %86, ptr noundef %87, i32 noundef %88, i32 noundef %89, ptr noundef %90, i32 noundef %91, i32 noundef %92, i32 noundef %93)
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %97

96:                                               ; preds = %82
  br label %204

97:                                               ; preds = %82, %77
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.mlp, ptr %98, i32 0, i32 12
  store i32 0, ptr %99, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %178, %97
  %101 = load i32, ptr %27, align 4, !tbaa !9
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 5, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %181

105:                                              ; preds = %100
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.mlp, ptr %106, i32 0, i32 19
  %108 = load ptr, ptr %107, align 8, !tbaa !17
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %132

110:                                              ; preds = %105
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mlp, ptr %111, i32 0, i32 19
  %113 = load ptr, ptr %112, align 8, !tbaa !17
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = load i32, ptr %27, align 4, !tbaa !9
  %117 = load i32, ptr %16, align 4, !tbaa !9
  %118 = mul nsw i32 %116, %117
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %115, i64 %119
  %121 = load i32, ptr %16, align 4, !tbaa !9
  %122 = load ptr, ptr %17, align 8, !tbaa !5
  %123 = load i32, ptr %27, align 4, !tbaa !9
  %124 = load i32, ptr %19, align 4, !tbaa !9
  %125 = mul nsw i32 %123, %124
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds double, ptr %122, i64 %126
  %128 = load i32, ptr %19, align 4, !tbaa !9
  %129 = call i32 %113(ptr noundef %114, ptr noundef %120, i32 noundef %121, ptr noundef %127, i32 noundef %128)
  %130 = icmp eq i32 %129, 1
  br i1 %130, label %131, label %132

131:                                              ; preds = %110
  br label %178

132:                                              ; preds = %110, %105
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = load i32, ptr %20, align 4, !tbaa !9
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = load i32, ptr %27, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = mul nsw i32 %136, %137
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds double, ptr %135, i64 %139
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = load i32, ptr %27, align 4, !tbaa !9
  %143 = load i32, ptr %19, align 4, !tbaa !9
  %144 = mul nsw i32 %142, %143
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %141, i64 %145
  %147 = load double, ptr %23, align 8, !tbaa !11
  %148 = load double, ptr %24, align 8, !tbaa !11
  call void @mlpTrainTuple(ptr noundef %133, i32 noundef %134, ptr noundef %140, ptr noundef %146, double noundef %147, double noundef %148)
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.mlp, ptr %149, i32 0, i32 12
  %151 = load i32, ptr %150, align 8, !tbaa !16
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %150, align 8, !tbaa !16
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.mlp, ptr %153, i32 0, i32 20
  %155 = load ptr, ptr %154, align 8, !tbaa !18
  %156 = icmp ne ptr %155, null
  br i1 %156, label %157, label %177

157:                                              ; preds = %132
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.mlp, ptr %158, i32 0, i32 20
  %160 = load ptr, ptr %159, align 8, !tbaa !18
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  %163 = load i32, ptr %27, align 4, !tbaa !9
  %164 = load i32, ptr %16, align 4, !tbaa !9
  %165 = mul nsw i32 %163, %164
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %162, i64 %166
  %168 = load i32, ptr %16, align 4, !tbaa !9
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = load i32, ptr %27, align 4, !tbaa !9
  %171 = load i32, ptr %19, align 4, !tbaa !9
  %172 = mul nsw i32 %170, %171
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %169, i64 %173
  %175 = load i32, ptr %19, align 4, !tbaa !9
  %176 = call i32 %160(ptr noundef %161, ptr noundef %167, i32 noundef %168, ptr noundef %174, i32 noundef %175)
  br label %177

177:                                              ; preds = %157, %132
  br label %178

178:                                              ; preds = %177, %131
  %179 = load i32, ptr %27, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %27, align 4, !tbaa !9
  br label %100, !llvm.loop !19

181:                                              ; preds = %104
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.mlp, ptr %182, i32 0, i32 9
  %184 = load i32, ptr %183, align 4, !tbaa !13
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %183, align 4, !tbaa !13
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.mlp, ptr %186, i32 0, i32 18
  %188 = load ptr, ptr %187, align 8, !tbaa !21
  %189 = icmp ne ptr %188, null
  br i1 %189, label %190, label %203

190:                                              ; preds = %181
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.mlp, ptr %191, i32 0, i32 18
  %193 = load ptr, ptr %192, align 8, !tbaa !21
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = load i32, ptr %15, align 4, !tbaa !9
  %197 = load i32, ptr %16, align 4, !tbaa !9
  %198 = load ptr, ptr %17, align 8, !tbaa !5
  %199 = load i32, ptr %18, align 4, !tbaa !9
  %200 = load i32, ptr %19, align 4, !tbaa !9
  %201 = load i32, ptr %25, align 4, !tbaa !9
  %202 = call i32 %193(ptr noundef %194, ptr noundef %195, i32 noundef %196, i32 noundef %197, ptr noundef %198, i32 noundef %199, i32 noundef %200, i32 noundef %201)
  br label %203

203:                                              ; preds = %190, %181
  br label %204

204:                                              ; preds = %203, %96
  %205 = load i32, ptr %25, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %25, align 4, !tbaa !9
  br label %72, !llvm.loop !22

207:                                              ; preds = %76
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @mlpTrainTuple(ptr noundef, i32 noundef, ptr noundef, ptr noundef, double noundef, double noundef) #3

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

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

attributes #0 = { 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 = { nounwind willreturn memory(none) "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 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

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

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


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@__PRETTY_FUNCTION__.mlpTrain = external hidden unnamed_addr constant [101 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #1

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @mlpTrain(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, double noundef %10, double noundef %11) local_unnamed_addr #4 {
  %13 = icmp eq i32 %7, 1
  br i1 %13, label %24, label %14

14:                                               ; preds = %12
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call ptr @__errno_location() #5
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %21, label %19

19:                                               ; preds = %14
  %20 = tail call ptr @strerror(i32 noundef %17) #6
  br label %21

21:                                               ; preds = %14, %19
  %22 = phi ptr [ %20, %19 ], [ @.str.2, %14 ]
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 178, ptr noundef %22) #7
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 178, ptr noundef nonnull @__PRETTY_FUNCTION__.mlpTrain) #8
  unreachable

24:                                               ; preds = %12
  %25 = icmp eq i32 %9, 1
  br i1 %25, label %36, label %26

26:                                               ; preds = %24
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = tail call ptr @__errno_location() #5
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %33, label %31

31:                                               ; preds = %26
  %32 = tail call ptr @strerror(i32 noundef %29) #6
  br label %33

33:                                               ; preds = %26, %31
  %34 = phi ptr [ %32, %31 ], [ @.str.2, %26 ]
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 179, ptr noundef %34) #7
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 179, ptr noundef nonnull @__PRETTY_FUNCTION__.mlpTrain) #8
  unreachable

36:                                               ; preds = %24
  %37 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 0, ptr %37, align 4, !tbaa !11
  %38 = icmp sgt i32 %8, 0
  br i1 %38, label %.lr.ph79, label %._crit_edge80

.lr.ph79:                                         ; preds = %36
  %39 = getelementptr inbounds i8, ptr %0, i64 96
  %40 = getelementptr inbounds i8, ptr %0, i64 64
  %41 = icmp sgt i32 %2, 0
  %42 = getelementptr inbounds i8, ptr %0, i64 112
  %43 = getelementptr inbounds i8, ptr %0, i64 120
  %44 = getelementptr inbounds i8, ptr %0, i64 104
  br i1 %41, label %.lr.ph79.split.us.preheader, label %.lr.ph79.split

.lr.ph79.split.us.preheader:                      ; preds = %.lr.ph79
  %45 = sext i32 %3 to i64
  %46 = sext i32 %6 to i64
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph79.split.us

.lr.ph79.split.us:                                ; preds = %.lr.ph79.split.us.preheader, %53
  %.06577.us = phi i32 [ %54, %53 ], [ 0, %.lr.ph79.split.us.preheader ]
  %47 = load ptr, ptr %39, align 8, !tbaa !14
  %.not.us = icmp eq ptr %47, null
  br i1 %.not.us, label %.lr.ph.us, label %48

48:                                               ; preds = %.lr.ph79.split.us
  %49 = tail call i32 %47(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %.06577.us) #6
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %53, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %48, %.lr.ph79.split.us
  store i32 0, ptr %40, align 8, !tbaa !15
  br label %55

51:                                               ; preds = %._crit_edge.us
  %52 = tail call i32 %74(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %.06577.us) #6
  br label %53

53:                                               ; preds = %51, %._crit_edge.us, %48
  %54 = add nuw nsw i32 %.06577.us, 1
  %exitcond84.not = icmp eq i32 %54, %8
  br i1 %exitcond84.not, label %._crit_edge80, label %.lr.ph79.split.us, !llvm.loop !16

55:                                               ; preds = %.lr.ph.us, %71
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %71 ]
  %56 = load ptr, ptr %42, align 8, !tbaa !18
  %.not74.us = icmp eq ptr %56, null
  %.pre = mul nsw i64 %indvars.iv, %45
  br i1 %.not74.us, label %._crit_edge, label %57

._crit_edge:                                      ; preds = %55
  %.pre85 = mul nsw i64 %indvars.iv, %46
  br label %63

57:                                               ; preds = %55
  %58 = getelementptr inbounds double, ptr %1, i64 %.pre
  %59 = mul nsw i64 %indvars.iv, %46
  %60 = getelementptr inbounds double, ptr %4, i64 %59
  %61 = tail call i32 %56(ptr noundef nonnull %0, ptr noundef %58, i32 noundef %3, ptr noundef %60, i32 noundef %6) #6
  %62 = icmp eq i32 %61, 1
  br i1 %62, label %71, label %63

63:                                               ; preds = %._crit_edge, %57
  %.pre-phi86 = phi i64 [ %.pre85, %._crit_edge ], [ %59, %57 ]
  %64 = getelementptr inbounds double, ptr %1, i64 %.pre
  %65 = getelementptr inbounds double, ptr %4, i64 %.pre-phi86
  tail call void @mlpTrainTuple(ptr noundef nonnull %0, i32 noundef 1, ptr noundef %64, ptr noundef %65, double noundef %10, double noundef %11)
  %66 = load i32, ptr %40, align 8, !tbaa !15
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %40, align 8, !tbaa !15
  %68 = load ptr, ptr %43, align 8, !tbaa !19
  %.not75.us = icmp eq ptr %68, null
  br i1 %.not75.us, label %71, label %69

69:                                               ; preds = %63
  %70 = tail call i32 %68(ptr noundef nonnull %0, ptr noundef %64, i32 noundef %3, ptr noundef %65, i32 noundef %6) #6
  br label %71

71:                                               ; preds = %69, %63, %57
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond83.not, label %._crit_edge.us, label %55, !llvm.loop !20

._crit_edge.us:                                   ; preds = %71
  %72 = load i32, ptr %37, align 4, !tbaa !11
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %37, align 4, !tbaa !11
  %74 = load ptr, ptr %44, align 8, !tbaa !21
  %.not73.us = icmp eq ptr %74, null
  br i1 %.not73.us, label %53, label %51

._crit_edge80:                                    ; preds = %85, %53, %36
  ret void

.lr.ph79.split:                                   ; preds = %.lr.ph79, %85
  %.06577 = phi i32 [ %86, %85 ], [ 0, %.lr.ph79 ]
  %75 = load ptr, ptr %39, align 8, !tbaa !14
  %.not = icmp eq ptr %75, null
  br i1 %.not, label %79, label %76

76:                                               ; preds = %.lr.ph79.split
  %77 = tail call i32 %75(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %.06577) #6
  %78 = icmp eq i32 %77, 1
  br i1 %78, label %85, label %79

79:                                               ; preds = %76, %.lr.ph79.split
  store i32 0, ptr %40, align 8, !tbaa !15
  %80 = load i32, ptr %37, align 4, !tbaa !11
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %37, align 4, !tbaa !11
  %82 = load ptr, ptr %44, align 8, !tbaa !21
  %.not73 = icmp eq ptr %82, null
  br i1 %.not73, label %85, label %83

83:                                               ; preds = %79
  %84 = tail call i32 %82(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %.06577) #6
  br label %85

85:                                               ; preds = %79, %83, %76
  %86 = add nuw nsw i32 %.06577, 1
  %exitcond.not = icmp eq i32 %86, %8
  br i1 %exitcond.not, label %._crit_edge80, label %.lr.ph79.split, !llvm.loop !16
}

; Function Attrs: nounwind uwtable
declare dso_local void @mlpTrainTuple(ptr noundef, i32 noundef, ptr noundef, ptr noundef, double noundef, double noundef) local_unnamed_addr #4

attributes #0 = { 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 #1 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 = { nounwind willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { cold nounwind }
attributes #8 = { noreturn nounwind }

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

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


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