; LLVM IR from oservo/aiFi :: test (trainAndPredictMultiplicationTableV2)

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

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@__const.trainAndPredictMultiplicationTableV2.dataIn = external hidden unnamed_addr constant [100 x [2 x double]], align 16
@__const.trainAndPredictMultiplicationTableV2.dataOut = external hidden unnamed_addr constant [100 x [1 x double]], align 16
@__const.trainAndPredictMultiplicationTableV2.dataIn2 = external hidden unnamed_addr constant [10 x [2 x double]], align 16
@.str.18 = external hidden unnamed_addr constant [30 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

declare ptr @mlpSingletonNew(...) #1

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

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

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

; Function Attrs: nounwind
declare i64 @clock() #3

; Function Attrs: nounwind uwtable
define dso_local i32 @trainAndPredictMultiplicationTableV2(i32 noundef %0, i32 noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca [100 x [2 x double]], align 16
  %11 = alloca [100 x [1 x double]], align 16
  %12 = alloca [10 x [2 x double]], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %23 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %23, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 5000, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 100, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1600, ptr %10) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.trainAndPredictMultiplicationTableV2.dataIn, i64 1600, i1 false)
  call void @llvm.lifetime.start.p0(i64 800, ptr %11) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.trainAndPredictMultiplicationTableV2.dataOut, i64 800, i1 false)
  call void @llvm.lifetime.start.p0(i64 160, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.trainAndPredictMultiplicationTableV2.dataIn2, i64 160, i1 false)
  %24 = call ptr (...) @mlpSingletonNew()
  store ptr %24, ptr %7, align 8, !tbaa !9
  %25 = load ptr, ptr %7, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.mlpSingleton, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = call ptr (...) %27()
  store ptr %28, ptr %8, align 8, !tbaa !9
  %29 = load ptr, ptr %7, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.mlpSingleton, ptr %29, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = load ptr, ptr %8, align 8, !tbaa !9
  call void %31(ptr noundef %32, i32 noundef 2, i32 noundef 0, i32 noundef 0, i32 noundef 3, i32 noundef 5, i32 noundef 1)
  %33 = load ptr, ptr %7, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.mlpSingleton, ptr %33, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  %36 = load ptr, ptr %8, align 8, !tbaa !9
  call void %35(ptr noundef %36, i32 noundef 100, i32 noundef 1, i32 noundef 1, i32 noundef 3, i32 noundef 5, i32 noundef 1)
  %37 = load ptr, ptr %7, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.mlpSingleton, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = load ptr, ptr %8, align 8, !tbaa !9
  call void %39(ptr noundef %40, i32 noundef 1, i32 noundef 2, i32 noundef 2, i32 noundef 3, i32 noundef 5, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %76, %2
  %42 = load i32, ptr %13, align 4, !tbaa !5
  %43 = icmp slt i32 %42, 100
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %79

45:                                               ; preds = %41
  %46 = load i32, ptr %13, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [100 x [2 x double]], ptr %10, i64 0, i64 %47
  %49 = getelementptr inbounds [2 x double], ptr %48, i64 0, i64 0
  %50 = load double, ptr %49, align 16, !tbaa !14
  %51 = fdiv double %50, 1.000000e+01
  %52 = load i32, ptr %13, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [100 x [2 x double]], ptr %10, i64 0, i64 %53
  %55 = getelementptr inbounds [2 x double], ptr %54, i64 0, i64 0
  store double %51, ptr %55, align 16, !tbaa !14
  %56 = load i32, ptr %13, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100 x [2 x double]], ptr %10, i64 0, i64 %57
  %59 = getelementptr inbounds [2 x double], ptr %58, i64 0, i64 1
  %60 = load double, ptr %59, align 8, !tbaa !14
  %61 = fdiv double %60, 1.000000e+01
  %62 = load i32, ptr %13, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [100 x [2 x double]], ptr %10, i64 0, i64 %63
  %65 = getelementptr inbounds [2 x double], ptr %64, i64 0, i64 1
  store double %61, ptr %65, align 8, !tbaa !14
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [100 x [1 x double]], ptr %11, i64 0, i64 %67
  %69 = getelementptr inbounds [1 x double], ptr %68, i64 0, i64 0
  %70 = load double, ptr %69, align 8, !tbaa !14
  %71 = fdiv double %70, 1.000000e+02
  %72 = load i32, ptr %13, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100 x [1 x double]], ptr %11, i64 0, i64 %73
  %75 = getelementptr inbounds [1 x double], ptr %74, i64 0, i64 0
  store double %71, ptr %75, align 8, !tbaa !14
  br label %76

76:                                               ; preds = %45
  %77 = load i32, ptr %13, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %13, align 4, !tbaa !5
  br label %41, !llvm.loop !16

79:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %105, %79
  %81 = load i32, ptr %14, align 4, !tbaa !5
  %82 = icmp slt i32 %81, 10
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %108

84:                                               ; preds = %80
  %85 = load i32, ptr %14, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [10 x [2 x double]], ptr %12, i64 0, i64 %86
  %88 = getelementptr inbounds [2 x double], ptr %87, i64 0, i64 0
  %89 = load double, ptr %88, align 16, !tbaa !14
  %90 = fdiv double %89, 1.000000e+01
  %91 = load i32, ptr %14, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [10 x [2 x double]], ptr %12, i64 0, i64 %92
  %94 = getelementptr inbounds [2 x double], ptr %93, i64 0, i64 0
  store double %90, ptr %94, align 16, !tbaa !14
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [10 x [2 x double]], ptr %12, i64 0, i64 %96
  %98 = getelementptr inbounds [2 x double], ptr %97, i64 0, i64 1
  %99 = load double, ptr %98, align 8, !tbaa !14
  %100 = fdiv double %99, 1.000000e+01
  %101 = load i32, ptr %14, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [10 x [2 x double]], ptr %12, i64 0, i64 %102
  %104 = getelementptr inbounds [2 x double], ptr %103, i64 0, i64 1
  store double %100, ptr %104, align 8, !tbaa !14
  br label %105

105:                                              ; preds = %84
  %106 = load i32, ptr %14, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %14, align 4, !tbaa !5
  br label %80, !llvm.loop !18

108:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %109 = call i64 @clock() #5
  store i64 %109, ptr %15, align 8, !tbaa !19
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %154, %108
  %112 = load i32, ptr %16, align 4, !tbaa !5
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %157

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  %117 = load i32, ptr %16, align 4, !tbaa !5
  %118 = srem i32 %117, 100
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %126

120:                                              ; preds = %116
  %121 = load i32, ptr %16, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %122)
  %124 = load i32, ptr %18, align 4, !tbaa !5
  %125 = sub nsw i32 1, %124
  store i32 %125, ptr %18, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %120, %116
  store i32 1, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %127 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %127, ptr %19, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %150, %126
  %129 = load i32, ptr %19, align 4, !tbaa !5
  %130 = load i32, ptr %9, align 4, !tbaa !5
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %153

133:                                              ; preds = %128
  %134 = load ptr, ptr %7, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.mlpSingleton, ptr %134, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !21
  %137 = load ptr, ptr %8, align 8, !tbaa !9
  %138 = load i32, ptr %19, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [100 x [2 x double]], ptr %10, i64 0, i64 %139
  %141 = getelementptr inbounds [2 x double], ptr %140, i64 0, i64 0
  %142 = load i32, ptr %19, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [100 x [1 x double]], ptr %11, i64 0, i64 %143
  %145 = getelementptr inbounds [1 x double], ptr %144, i64 0, i64 0
  call void %136(ptr noundef %137, i32 noundef 1, ptr noundef %141, ptr noundef %145, double noundef 5.000000e-02, double noundef 1.000000e+00)
  %146 = load i32, ptr %18, align 4, !tbaa !5
  %147 = icmp eq i32 %146, 1
  br i1 %147, label %148, label %149

148:                                              ; preds = %133
  br label %149

149:                                              ; preds = %148, %133
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %19, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %19, align 4, !tbaa !5
  br label %128, !llvm.loop !22

153:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %16, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %16, align 4, !tbaa !5
  br label %111, !llvm.loop !23

157:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %158 = call i64 @clock() #5
  store i64 %158, ptr %20, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %159 = load i64, ptr %20, align 8, !tbaa !19
  %160 = load i64, ptr %15, align 8, !tbaa !19
  %161 = sub nsw i64 %159, %160
  %162 = sitofp i64 %161 to double
  %163 = fdiv double %162, 1.000000e+08
  store double %163, ptr %21, align 8, !tbaa !14
  %164 = load double, ptr %21, align 8, !tbaa !14
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef %164)
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %180, %157
  %168 = load i32, ptr %22, align 4, !tbaa !5
  %169 = icmp slt i32 %168, 10
  br i1 %169, label %171, label %170

170:                                              ; preds = %167
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %183

171:                                              ; preds = %167
  %172 = load ptr, ptr %7, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.mlpSingleton, ptr %172, i32 0, i32 6
  %174 = load ptr, ptr %173, align 8, !tbaa !24
  %175 = load ptr, ptr %8, align 8, !tbaa !9
  %176 = load i32, ptr %22, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [10 x [2 x double]], ptr %12, i64 0, i64 %177
  %179 = getelementptr inbounds [2 x double], ptr %178, i64 0, i64 0
  call void %174(ptr noundef %175, ptr noundef %179)
  br label %180

180:                                              ; preds = %171
  %181 = load i32, ptr %22, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %22, align 4, !tbaa !5
  br label %167, !llvm.loop !25

183:                                              ; preds = %170
  %184 = load i32, ptr %5, align 4, !tbaa !5
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1600, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret i32 %184
}

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

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

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


; 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 [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@__const.trainAndPredictMultiplicationTableV2.dataIn = external hidden unnamed_addr constant [100 x [2 x double]], align 16
@__const.trainAndPredictMultiplicationTableV2.dataOut = external hidden unnamed_addr constant [100 x [1 x double]], align 16
@__const.trainAndPredictMultiplicationTableV2.dataIn2 = external hidden unnamed_addr constant [10 x [2 x double]], align 16
@.str.18 = external hidden unnamed_addr constant [30 x i8], align 1

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

declare ptr @mlpSingletonNew(...) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @trainAndPredictMultiplicationTableV2(i32 noundef %0, i32 noundef returned %1) local_unnamed_addr #5 {
vector.ph:
  %2 = alloca [100 x [2 x double]], align 16
  %3 = alloca [100 x [1 x double]], align 16
  %4 = alloca [10 x [2 x double]], align 16
  call void @llvm.lifetime.start.p0(i64 1600, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1600) %2, ptr noundef nonnull align 16 dereferenceable(1600) @__const.trainAndPredictMultiplicationTableV2.dataIn, i64 1600, i1 false)
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(800) %3, ptr noundef nonnull align 16 dereferenceable(800) @__const.trainAndPredictMultiplicationTableV2.dataOut, i64 800, i1 false)
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %4, ptr noundef nonnull align 16 dereferenceable(160) @__const.trainAndPredictMultiplicationTableV2.dataIn2, i64 160, i1 false)
  %5 = tail call ptr (...) @mlpSingletonNew() #6
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call ptr (...) %6() #6
  %8 = getelementptr inbounds i8, ptr %5, i64 16
  %9 = load ptr, ptr %8, align 8, !tbaa !10
  tail call void %9(ptr noundef %7, i32 noundef 2, i32 noundef 0, i32 noundef 0, i32 noundef 3, i32 noundef 5, i32 noundef 1) #6
  %10 = load ptr, ptr %8, align 8, !tbaa !10
  tail call void %10(ptr noundef %7, i32 noundef 100, i32 noundef 1, i32 noundef 1, i32 noundef 3, i32 noundef 5, i32 noundef 1) #6
  %11 = load ptr, ptr %8, align 8, !tbaa !10
  tail call void %11(ptr noundef %7, i32 noundef 1, i32 noundef 2, i32 noundef 2, i32 noundef 3, i32 noundef 5, i32 noundef 1) #6
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next.1, %vector.body ]
  %12 = getelementptr inbounds [100 x [2 x double]], ptr %2, i64 0, i64 %index
  %wide.vec = load <4 x double>, ptr %12, align 16, !tbaa !11
  %interleaved.vec = fdiv <4 x double> %wide.vec, <double 1.000000e+01, double 1.000000e+01, double 1.000000e+01, double 1.000000e+01>
  store <4 x double> %interleaved.vec, ptr %12, align 16, !tbaa !11
  %13 = getelementptr inbounds [100 x [1 x double]], ptr %3, i64 0, i64 %index
  %wide.load = load <2 x double>, ptr %13, align 16, !tbaa !11
  %14 = fdiv <2 x double> %wide.load, <double 1.000000e+02, double 1.000000e+02>
  store <2 x double> %14, ptr %13, align 16, !tbaa !11
  %index.next = or disjoint i64 %index, 2
  %15 = getelementptr inbounds [100 x [2 x double]], ptr %2, i64 0, i64 %index.next
  %wide.vec.1 = load <4 x double>, ptr %15, align 16, !tbaa !11
  %interleaved.vec.1 = fdiv <4 x double> %wide.vec.1, <double 1.000000e+01, double 1.000000e+01, double 1.000000e+01, double 1.000000e+01>
  store <4 x double> %interleaved.vec.1, ptr %15, align 16, !tbaa !11
  %16 = getelementptr inbounds [100 x [1 x double]], ptr %3, i64 0, i64 %index.next
  %wide.load.1 = load <2 x double>, ptr %16, align 16, !tbaa !11
  %17 = fdiv <2 x double> %wide.load.1, <double 1.000000e+02, double 1.000000e+02>
  store <2 x double> %17, ptr %16, align 16, !tbaa !11
  %index.next.1 = add nuw nsw i64 %index, 4
  %18 = icmp eq i64 %index.next.1, 100
  br i1 %18, label %.preheader.preheader, label %vector.body, !llvm.loop !13

.preheader.preheader:                             ; preds = %vector.body
  %19 = load <2 x double>, ptr %4, align 16, !tbaa !11
  %20 = fdiv <2 x double> %19, <double 1.000000e+01, double 1.000000e+01>
  store <2 x double> %20, ptr %4, align 16, !tbaa !11
  %21 = getelementptr inbounds i8, ptr %4, i64 16
  %22 = load <2 x double>, ptr %21, align 16, !tbaa !11
  %23 = fdiv <2 x double> %22, <double 1.000000e+01, double 1.000000e+01>
  store <2 x double> %23, ptr %21, align 16, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %4, i64 32
  %25 = load <2 x double>, ptr %24, align 16, !tbaa !11
  %26 = fdiv <2 x double> %25, <double 1.000000e+01, double 1.000000e+01>
  store <2 x double> %26, ptr %24, align 16, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %4, i64 48
  %28 = load <2 x double>, ptr %27, align 16, !tbaa !11
  %29 = fdiv <2 x double> %28, <double 1.000000e+01, double 1.000000e+01>
  store <2 x double> %29, ptr %27, align 16, !tbaa !11
  %30 = getelementptr inbounds i8, ptr %4, i64 64
  %31 = load <2 x double>, ptr %30, align 16, !tbaa !11
  %32 = fdiv <2 x double> %31, <double 1.000000e+01, double 1.000000e+01>
  store <2 x double> %32, ptr %30, align 16, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %4, i64 80
  %34 = load <2 x double>, ptr %33, align 16, !tbaa !11
  %35 = fdiv <2 x double> %34, <double 1.000000e+01, double 1.000000e+01>
  store <2 x double> %35, ptr %33, align 16, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %4, i64 96
  %37 = load <2 x double>, ptr %36, align 16, !tbaa !11
  %38 = fdiv <2 x double> %37, <double 1.000000e+01, double 1.000000e+01>
  store <2 x double> %38, ptr %36, align 16, !tbaa !11
  %39 = getelementptr inbounds i8, ptr %4, i64 112
  %40 = load <2 x double>, ptr %39, align 16, !tbaa !11
  %41 = fdiv <2 x double> %40, <double 1.000000e+01, double 1.000000e+01>
  store <2 x double> %41, ptr %39, align 16, !tbaa !11
  %42 = getelementptr inbounds i8, ptr %4, i64 128
  %43 = load <2 x double>, ptr %42, align 16, !tbaa !11
  %44 = fdiv <2 x double> %43, <double 1.000000e+01, double 1.000000e+01>
  store <2 x double> %44, ptr %42, align 16, !tbaa !11
  %45 = getelementptr inbounds i8, ptr %4, i64 144
  %46 = load <2 x double>, ptr %45, align 16, !tbaa !11
  %47 = fdiv <2 x double> %46, <double 1.000000e+01, double 1.000000e+01>
  store <2 x double> %47, ptr %45, align 16, !tbaa !11
  %48 = tail call i64 @clock() #6
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %50 = icmp slt i32 %0, 100
  %51 = getelementptr inbounds i8, ptr %5, i64 32
  br i1 %50, label %.split.us.preheader, label %.split

.split.us.preheader:                              ; preds = %.preheader.preheader
  %52 = sext i32 %0 to i64
  br label %.split.us

.split.us:                                        ; preds = %.split.us.preheader, %._crit_edge.us
  %.04852.us = phi i32 [ %62, %._crit_edge.us ], [ 0, %.split.us.preheader ]
  %.lhs.trunc.us = trunc nuw i32 %.04852.us to i16
  %53 = urem i16 %.lhs.trunc.us, 100
  %54 = icmp eq i16 %53, 0
  br i1 %54, label %55, label %.lr.ph.us.preheader

55:                                               ; preds = %.split.us
  %56 = add nuw nsw i32 %.04852.us, 1
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %56)
  br label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %55, %.split.us
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %indvars.iv63 = phi i64 [ %indvars.iv.next64, %.lr.ph.us ], [ %52, %.lr.ph.us.preheader ]
  %58 = load ptr, ptr %51, align 8, !tbaa !17
  %59 = getelementptr inbounds [100 x [2 x double]], ptr %2, i64 0, i64 %indvars.iv63
  %60 = getelementptr inbounds [100 x [1 x double]], ptr %3, i64 0, i64 %indvars.iv63
  call void %58(ptr noundef %7, i32 noundef 1, ptr noundef nonnull %59, ptr noundef nonnull %60, double noundef 5.000000e-02, double noundef 1.000000e+00) #6
  %indvars.iv.next64 = add nsw i64 %indvars.iv63, 1
  %61 = and i64 %indvars.iv.next64, 4294967295
  %exitcond66.not = icmp eq i64 %61, 100
  br i1 %exitcond66.not, label %._crit_edge.us, label %.lr.ph.us, !llvm.loop !18

._crit_edge.us:                                   ; preds = %.lr.ph.us
  %62 = add nuw nsw i32 %.04852.us, 1
  %exitcond67.not = icmp eq i32 %62, 5000
  br i1 %exitcond67.not, label %.split54.us, label %.split.us, !llvm.loop !19

.split54.us:                                      ; preds = %.split._crit_edge, %._crit_edge.us
  %63 = call i64 @clock() #6
  %64 = sub nsw i64 %63, %48
  %65 = sitofp i64 %64 to double
  %66 = fdiv double %65, 1.000000e+08
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef %66)
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %69 = getelementptr inbounds i8, ptr %5, i64 48
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  call void %70(ptr noundef %7, ptr noundef nonnull %4) #6
  %71 = load ptr, ptr %69, align 8, !tbaa !20
  call void %71(ptr noundef %7, ptr noundef nonnull %21) #6
  %72 = load ptr, ptr %69, align 8, !tbaa !20
  call void %72(ptr noundef %7, ptr noundef nonnull %24) #6
  %73 = load ptr, ptr %69, align 8, !tbaa !20
  call void %73(ptr noundef %7, ptr noundef nonnull %27) #6
  %74 = load ptr, ptr %69, align 8, !tbaa !20
  call void %74(ptr noundef %7, ptr noundef nonnull %30) #6
  %75 = load ptr, ptr %69, align 8, !tbaa !20
  call void %75(ptr noundef %7, ptr noundef nonnull %33) #6
  %76 = load ptr, ptr %69, align 8, !tbaa !20
  call void %76(ptr noundef %7, ptr noundef nonnull %36) #6
  %77 = load ptr, ptr %69, align 8, !tbaa !20
  call void %77(ptr noundef %7, ptr noundef nonnull %39) #6
  %78 = load ptr, ptr %69, align 8, !tbaa !20
  call void %78(ptr noundef %7, ptr noundef nonnull %42) #6
  %79 = load ptr, ptr %69, align 8, !tbaa !20
  call void %79(ptr noundef %7, ptr noundef nonnull %45) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 1600, ptr nonnull %2) #6
  ret i32 %1

.split:                                           ; preds = %.preheader.preheader, %.split._crit_edge
  %.04852 = phi i32 [ %82, %.split._crit_edge ], [ 0, %.preheader.preheader ]
  %.lhs.trunc = trunc nuw i32 %.04852 to i16
  %80 = urem i16 %.lhs.trunc, 100
  %81 = icmp eq i16 %80, 0
  %82 = add nuw nsw i32 %.04852, 1
  br i1 %81, label %83, label %.split._crit_edge

83:                                               ; preds = %.split
  %84 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %82)
  br label %.split._crit_edge

.split._crit_edge:                                ; preds = %.split, %83
  %exitcond62.not = icmp eq i32 %82, 5000
  br i1 %exitcond62.not, label %.split54.us, label %.split, !llvm.loop !19
}

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass