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

; 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.3 = external hidden unnamed_addr constant [11 x i8], align 1
@__const.trainAndPredictMultiplicationTable.dataIn = external hidden unnamed_addr constant [110 x [2 x double]], align 16
@__const.trainAndPredictMultiplicationTable.dataOut = external hidden unnamed_addr constant <{ [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], <{ double, double, [99 x double] }>, <{ double, double, double, [98 x double] }>, <{ double, double, double, double, [97 x double] }>, <{ double, double, double, double, double, [96 x double] }>, <{ double, double, double, double, double, double, [95 x double] }>, <{ double, double, double, double, double, double, double, [94 x double] }>, <{ [8 x double], [93 x double] }>, <{ [9 x double], [92 x double] }>, <{ [10 x double], [91 x double] }>, <{ [11 x double], [90 x double] }>, <{ double, double, double, [98 x double] }>, <{ double, double, double, double, double, [96 x double] }>, <{ double, double, double, double, double, double, double, [94 x double] }>, <{ [9 x double], [92 x double] }>, <{ [11 x double], [90 x double] }>, <{ [13 x double], [88 x double] }>, <{ [15 x double], [86 x double] }>, <{ [17 x double], [84 x double] }>, <{ [19 x double], [82 x double] }>, <{ [21 x double], [80 x double] }>, <{ double, double, double, double, [97 x double] }>, <{ double, double, double, double, double, double, double, [94 x double] }>, <{ [10 x double], [91 x double] }>, <{ [13 x double], [88 x double] }>, <{ [16 x double], [85 x double] }>, <{ [19 x double], [82 x double] }>, <{ [22 x double], [79 x double] }>, <{ [25 x double], [76 x double] }>, <{ [28 x double], [73 x double] }>, <{ [31 x double], [70 x double] }>, <{ double, double, double, double, double, [96 x double] }>, <{ [9 x double], [92 x double] }>, <{ [13 x double], [88 x double] }>, <{ [17 x double], [84 x double] }>, <{ [21 x double], [80 x double] }>, <{ [25 x double], [76 x double] }>, <{ [29 x double], [72 x double] }>, <{ [33 x double], [68 x double] }>, <{ [37 x double], [64 x double] }>, <{ [41 x double], [60 x double] }>, <{ double, double, double, double, double, double, [95 x double] }>, <{ [11 x double], [90 x double] }>, <{ [16 x double], [85 x double] }>, <{ [21 x double], [80 x double] }>, <{ [26 x double], [75 x double] }>, <{ [31 x double], [70 x double] }>, <{ [36 x double], [65 x double] }>, <{ [41 x double], [60 x double] }>, <{ [46 x double], [55 x double] }>, <{ [51 x double], [50 x double] }>, <{ double, double, double, double, double, double, double, [94 x double] }>, <{ [13 x double], [88 x double] }>, <{ [19 x double], [82 x double] }>, <{ [25 x double], [76 x double] }>, <{ [31 x double], [70 x double] }>, <{ [37 x double], [64 x double] }>, <{ [43 x double], [58 x double] }>, <{ [49 x double], [52 x double] }>, <{ [55 x double], [46 x double] }>, <{ [61 x double], [40 x double] }>, <{ [8 x double], [93 x double] }>, <{ [15 x double], [86 x double] }>, <{ [22 x double], [79 x double] }>, <{ [29 x double], [72 x double] }>, <{ [36 x double], [65 x double] }>, <{ [43 x double], [58 x double] }>, <{ [50 x double], [51 x double] }>, <{ [57 x double], [44 x double] }>, <{ [64 x double], [37 x double] }>, <{ [71 x double], [30 x double] }>, <{ [9 x double], [92 x double] }>, <{ [17 x double], [84 x double] }>, <{ [25 x double], [76 x double] }>, <{ [33 x double], [68 x double] }>, <{ [41 x double], [60 x double] }>, <{ [49 x double], [52 x double] }>, <{ [57 x double], [44 x double] }>, <{ [65 x double], [36 x double] }>, <{ [73 x double], [28 x double] }>, <{ [81 x double], [20 x double] }>, <{ [10 x double], [91 x double] }>, <{ [19 x double], [82 x double] }>, <{ [28 x double], [73 x double] }>, <{ [37 x double], [64 x double] }>, <{ [46 x double], [55 x double] }>, <{ [55 x double], [46 x double] }>, <{ [64 x double], [37 x double] }>, <{ [73 x double], [28 x double] }>, <{ [82 x double], [19 x double] }>, <{ [91 x double], [10 x double] }>, <{ [11 x double], [90 x double] }>, <{ [21 x double], [80 x double] }>, <{ [31 x double], [70 x double] }>, <{ [41 x double], [60 x double] }>, <{ [51 x double], [50 x double] }>, <{ [61 x double], [40 x double] }>, <{ [71 x double], [30 x double] }>, <{ [81 x double], [20 x double] }>, <{ [91 x double], [10 x double] }>, [101 x double] }>, align 16
@.str.9 = external hidden unnamed_addr constant [11 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 uwtable
define dso_local i32 @trainAndPredictMultiplicationTable(i32 noundef %0, i32 noundef %1) #3 {
  %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 [110 x [2 x double]], align 16
  %11 = alloca [110 x [101 x double]], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = 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) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 5, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 110, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1760, ptr %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.trainAndPredictMultiplicationTable.dataIn, i64 1760, i1 false)
  call void @llvm.lifetime.start.p0(i64 88880, ptr %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.trainAndPredictMultiplicationTable.dataOut, i64 88880, i1 false)
  %17 = call ptr (...) @mlpSingletonNew()
  store ptr %17, ptr %7, align 8, !tbaa !9
  %18 = load ptr, ptr %7, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.mlpSingleton, ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = call ptr (...) %20()
  store ptr %21, ptr %8, align 8, !tbaa !9
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.mlpSingleton, ptr %22, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = load ptr, ptr %8, align 8, !tbaa !9
  call void %24(ptr noundef %25, i32 noundef 2, i32 noundef 0, i32 noundef 0, i32 noundef 3, i32 noundef 5, i32 noundef 1)
  %26 = load ptr, ptr %7, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.mlpSingleton, ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = load ptr, ptr %8, align 8, !tbaa !9
  call void %28(ptr noundef %29, i32 noundef 110, i32 noundef 1, i32 noundef 1, i32 noundef 3, i32 noundef 5, i32 noundef 1)
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.mlpSingleton, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = load ptr, ptr %8, align 8, !tbaa !9
  call void %32(ptr noundef %33, i32 noundef 101, i32 noundef 2, i32 noundef 2, i32 noundef 3, i32 noundef 5, i32 noundef 1)
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %77, %2
  %36 = load i32, ptr %12, align 4, !tbaa !5
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %80

40:                                               ; preds = %35
  %41 = load i32, ptr %12, align 4, !tbaa !5
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %41)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  %43 = load i32, ptr %12, align 4, !tbaa !5
  %44 = srem i32 %43, 1000
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %40
  %47 = load i32, ptr %14, align 4, !tbaa !5
  %48 = sub nsw i32 1, %47
  store i32 %48, ptr %14, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %46, %40
  store i32 1, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %50 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %50, ptr %15, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %73, %49
  %52 = load i32, ptr %15, align 4, !tbaa !5
  %53 = load i32, ptr %9, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %76

56:                                               ; preds = %51
  %57 = load ptr, ptr %7, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.mlpSingleton, ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !14
  %60 = load ptr, ptr %8, align 8, !tbaa !9
  %61 = load i32, ptr %15, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [110 x [2 x double]], ptr %10, i64 0, i64 %62
  %64 = getelementptr inbounds [2 x double], ptr %63, i64 0, i64 0
  %65 = load i32, ptr %15, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [110 x [101 x double]], ptr %11, i64 0, i64 %66
  %68 = getelementptr inbounds [101 x double], ptr %67, i64 0, i64 0
  call void %59(ptr noundef %60, i32 noundef 1, ptr noundef %64, ptr noundef %68, double noundef 5.000000e-02, double noundef 1.000000e+00)
  %69 = load i32, ptr %14, align 4, !tbaa !5
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %71, label %72

71:                                               ; preds = %56
  br label %72

72:                                               ; preds = %71, %56
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %15, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %15, align 4, !tbaa !5
  br label %51, !llvm.loop !15

76:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %12, align 4, !tbaa !5
  br label %35, !llvm.loop !17

80:                                               ; preds = %39
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %82 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %82, ptr %16, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %97, %80
  %84 = load i32, ptr %16, align 4, !tbaa !5
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %100

88:                                               ; preds = %83
  %89 = load ptr, ptr %7, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.mlpSingleton, ptr %89, i32 0, i32 6
  %91 = load ptr, ptr %90, align 8, !tbaa !18
  %92 = load ptr, ptr %8, align 8, !tbaa !9
  %93 = load i32, ptr %16, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [110 x [2 x double]], ptr %10, i64 0, i64 %94
  %96 = getelementptr inbounds [2 x double], ptr %95, i64 0, i64 0
  call void %91(ptr noundef %92, ptr noundef %96)
  br label %97

97:                                               ; preds = %88
  %98 = load i32, ptr %16, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %16, align 4, !tbaa !5
  br label %83, !llvm.loop !19

100:                                              ; preds = %87
  %101 = load i32, ptr %5, align 4, !tbaa !5
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 88880, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1760, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret i32 %101
}

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 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 }

!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 = !{!12, !10, i64 32}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!12, !10, i64 48}
!19 = distinct !{!19, !16}


; 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.3 = external hidden unnamed_addr constant [11 x i8], align 1
@__const.trainAndPredictMultiplicationTable.dataIn = external hidden unnamed_addr constant [110 x [2 x double]], align 16
@__const.trainAndPredictMultiplicationTable.dataOut = external hidden unnamed_addr constant <{ [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], [101 x double], <{ double, double, [99 x double] }>, <{ double, double, double, [98 x double] }>, <{ double, double, double, double, [97 x double] }>, <{ double, double, double, double, double, [96 x double] }>, <{ double, double, double, double, double, double, [95 x double] }>, <{ double, double, double, double, double, double, double, [94 x double] }>, <{ [8 x double], [93 x double] }>, <{ [9 x double], [92 x double] }>, <{ [10 x double], [91 x double] }>, <{ [11 x double], [90 x double] }>, <{ double, double, double, [98 x double] }>, <{ double, double, double, double, double, [96 x double] }>, <{ double, double, double, double, double, double, double, [94 x double] }>, <{ [9 x double], [92 x double] }>, <{ [11 x double], [90 x double] }>, <{ [13 x double], [88 x double] }>, <{ [15 x double], [86 x double] }>, <{ [17 x double], [84 x double] }>, <{ [19 x double], [82 x double] }>, <{ [21 x double], [80 x double] }>, <{ double, double, double, double, [97 x double] }>, <{ double, double, double, double, double, double, double, [94 x double] }>, <{ [10 x double], [91 x double] }>, <{ [13 x double], [88 x double] }>, <{ [16 x double], [85 x double] }>, <{ [19 x double], [82 x double] }>, <{ [22 x double], [79 x double] }>, <{ [25 x double], [76 x double] }>, <{ [28 x double], [73 x double] }>, <{ [31 x double], [70 x double] }>, <{ double, double, double, double, double, [96 x double] }>, <{ [9 x double], [92 x double] }>, <{ [13 x double], [88 x double] }>, <{ [17 x double], [84 x double] }>, <{ [21 x double], [80 x double] }>, <{ [25 x double], [76 x double] }>, <{ [29 x double], [72 x double] }>, <{ [33 x double], [68 x double] }>, <{ [37 x double], [64 x double] }>, <{ [41 x double], [60 x double] }>, <{ double, double, double, double, double, double, [95 x double] }>, <{ [11 x double], [90 x double] }>, <{ [16 x double], [85 x double] }>, <{ [21 x double], [80 x double] }>, <{ [26 x double], [75 x double] }>, <{ [31 x double], [70 x double] }>, <{ [36 x double], [65 x double] }>, <{ [41 x double], [60 x double] }>, <{ [46 x double], [55 x double] }>, <{ [51 x double], [50 x double] }>, <{ double, double, double, double, double, double, double, [94 x double] }>, <{ [13 x double], [88 x double] }>, <{ [19 x double], [82 x double] }>, <{ [25 x double], [76 x double] }>, <{ [31 x double], [70 x double] }>, <{ [37 x double], [64 x double] }>, <{ [43 x double], [58 x double] }>, <{ [49 x double], [52 x double] }>, <{ [55 x double], [46 x double] }>, <{ [61 x double], [40 x double] }>, <{ [8 x double], [93 x double] }>, <{ [15 x double], [86 x double] }>, <{ [22 x double], [79 x double] }>, <{ [29 x double], [72 x double] }>, <{ [36 x double], [65 x double] }>, <{ [43 x double], [58 x double] }>, <{ [50 x double], [51 x double] }>, <{ [57 x double], [44 x double] }>, <{ [64 x double], [37 x double] }>, <{ [71 x double], [30 x double] }>, <{ [9 x double], [92 x double] }>, <{ [17 x double], [84 x double] }>, <{ [25 x double], [76 x double] }>, <{ [33 x double], [68 x double] }>, <{ [41 x double], [60 x double] }>, <{ [49 x double], [52 x double] }>, <{ [57 x double], [44 x double] }>, <{ [65 x double], [36 x double] }>, <{ [73 x double], [28 x double] }>, <{ [81 x double], [20 x double] }>, <{ [10 x double], [91 x double] }>, <{ [19 x double], [82 x double] }>, <{ [28 x double], [73 x double] }>, <{ [37 x double], [64 x double] }>, <{ [46 x double], [55 x double] }>, <{ [55 x double], [46 x double] }>, <{ [64 x double], [37 x double] }>, <{ [73 x double], [28 x double] }>, <{ [82 x double], [19 x double] }>, <{ [91 x double], [10 x double] }>, <{ [11 x double], [90 x double] }>, <{ [21 x double], [80 x double] }>, <{ [31 x double], [70 x double] }>, <{ [41 x double], [60 x double] }>, <{ [51 x double], [50 x double] }>, <{ [61 x double], [40 x double] }>, <{ [71 x double], [30 x double] }>, <{ [81 x double], [20 x double] }>, <{ [91 x double], [10 x double] }>, [101 x double] }>, align 16
@.str.9 = external hidden unnamed_addr constant [11 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 uwtable
define dso_local noundef i32 @trainAndPredictMultiplicationTable(i32 noundef %0, i32 noundef %1) local_unnamed_addr #4 {
  %3 = alloca [110 x [2 x double]], align 16
  %4 = alloca [110 x [101 x double]], align 16
  call void @llvm.lifetime.start.p0(i64 1760, ptr nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1760) %3, ptr noundef nonnull align 16 dereferenceable(1760) @__const.trainAndPredictMultiplicationTable.dataIn, i64 1760, i1 false)
  call void @llvm.lifetime.start.p0(i64 88880, ptr nonnull %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(88880) %4, ptr noundef nonnull align 16 dereferenceable(88880) @__const.trainAndPredictMultiplicationTable.dataOut, i64 88880, i1 false)
  %5 = tail call ptr (...) @mlpSingletonNew() #5
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call ptr (...) %6() #5
  %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) #5
  %10 = load ptr, ptr %8, align 8, !tbaa !10
  tail call void %10(ptr noundef %7, i32 noundef 110, i32 noundef 1, i32 noundef 1, i32 noundef 3, i32 noundef 5, i32 noundef 1) #5
  %11 = load ptr, ptr %8, align 8, !tbaa !10
  tail call void %11(ptr noundef %7, i32 noundef 101, i32 noundef 2, i32 noundef 2, i32 noundef 3, i32 noundef 5, i32 noundef 1) #5
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %13 = icmp slt i32 %0, 110
  %14 = getelementptr inbounds i8, ptr %5, i64 32
  br i1 %13, label %.lr.ph.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %2
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 0)
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 1)
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 2)
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 3)
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 4)
  br label %.split34.us

.lr.ph.us.preheader:                              ; preds = %2
  %20 = sext i32 %0 to i64
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 0)
  br label %22

22:                                               ; preds = %.lr.ph.us.preheader, %22
  %indvars.iv = phi i64 [ %20, %.lr.ph.us.preheader ], [ %indvars.iv.next, %22 ]
  %23 = load ptr, ptr %14, align 8, !tbaa !11
  %24 = getelementptr inbounds [110 x [2 x double]], ptr %3, i64 0, i64 %indvars.iv
  %25 = getelementptr inbounds [110 x [101 x double]], ptr %4, i64 0, i64 %indvars.iv
  call void %23(ptr noundef %7, i32 noundef 1, ptr noundef nonnull %24, ptr noundef nonnull %25, double noundef 5.000000e-02, double noundef 1.000000e+00) #5
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %26 = and i64 %indvars.iv.next, 4294967295
  %exitcond.not = icmp eq i64 %26, 110
  br i1 %exitcond.not, label %._crit_edge.us, label %22, !llvm.loop !12

._crit_edge.us:                                   ; preds = %22
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 1)
  br label %28

28:                                               ; preds = %28, %._crit_edge.us
  %indvars.iv.1 = phi i64 [ %20, %._crit_edge.us ], [ %indvars.iv.next.1, %28 ]
  %29 = load ptr, ptr %14, align 8, !tbaa !11
  %30 = getelementptr inbounds [110 x [2 x double]], ptr %3, i64 0, i64 %indvars.iv.1
  %31 = getelementptr inbounds [110 x [101 x double]], ptr %4, i64 0, i64 %indvars.iv.1
  call void %29(ptr noundef %7, i32 noundef 1, ptr noundef nonnull %30, ptr noundef nonnull %31, double noundef 5.000000e-02, double noundef 1.000000e+00) #5
  %indvars.iv.next.1 = add nsw i64 %indvars.iv.1, 1
  %32 = and i64 %indvars.iv.next.1, 4294967295
  %exitcond.1.not = icmp eq i64 %32, 110
  br i1 %exitcond.1.not, label %._crit_edge.us.1, label %28, !llvm.loop !12

._crit_edge.us.1:                                 ; preds = %28
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 2)
  br label %34

34:                                               ; preds = %34, %._crit_edge.us.1
  %indvars.iv.2 = phi i64 [ %20, %._crit_edge.us.1 ], [ %indvars.iv.next.2, %34 ]
  %35 = load ptr, ptr %14, align 8, !tbaa !11
  %36 = getelementptr inbounds [110 x [2 x double]], ptr %3, i64 0, i64 %indvars.iv.2
  %37 = getelementptr inbounds [110 x [101 x double]], ptr %4, i64 0, i64 %indvars.iv.2
  call void %35(ptr noundef %7, i32 noundef 1, ptr noundef nonnull %36, ptr noundef nonnull %37, double noundef 5.000000e-02, double noundef 1.000000e+00) #5
  %indvars.iv.next.2 = add nsw i64 %indvars.iv.2, 1
  %38 = and i64 %indvars.iv.next.2, 4294967295
  %exitcond.2.not = icmp eq i64 %38, 110
  br i1 %exitcond.2.not, label %._crit_edge.us.2, label %34, !llvm.loop !12

._crit_edge.us.2:                                 ; preds = %34
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 3)
  br label %40

40:                                               ; preds = %40, %._crit_edge.us.2
  %indvars.iv.3 = phi i64 [ %20, %._crit_edge.us.2 ], [ %indvars.iv.next.3, %40 ]
  %41 = load ptr, ptr %14, align 8, !tbaa !11
  %42 = getelementptr inbounds [110 x [2 x double]], ptr %3, i64 0, i64 %indvars.iv.3
  %43 = getelementptr inbounds [110 x [101 x double]], ptr %4, i64 0, i64 %indvars.iv.3
  call void %41(ptr noundef %7, i32 noundef 1, ptr noundef nonnull %42, ptr noundef nonnull %43, double noundef 5.000000e-02, double noundef 1.000000e+00) #5
  %indvars.iv.next.3 = add nsw i64 %indvars.iv.3, 1
  %44 = and i64 %indvars.iv.next.3, 4294967295
  %exitcond.3.not = icmp eq i64 %44, 110
  br i1 %exitcond.3.not, label %._crit_edge.us.3, label %40, !llvm.loop !12

._crit_edge.us.3:                                 ; preds = %40
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 4)
  br label %46

46:                                               ; preds = %46, %._crit_edge.us.3
  %indvars.iv.4 = phi i64 [ %20, %._crit_edge.us.3 ], [ %indvars.iv.next.4, %46 ]
  %47 = load ptr, ptr %14, align 8, !tbaa !11
  %48 = getelementptr inbounds [110 x [2 x double]], ptr %3, i64 0, i64 %indvars.iv.4
  %49 = getelementptr inbounds [110 x [101 x double]], ptr %4, i64 0, i64 %indvars.iv.4
  call void %47(ptr noundef %7, i32 noundef 1, ptr noundef nonnull %48, ptr noundef nonnull %49, double noundef 5.000000e-02, double noundef 1.000000e+00) #5
  %indvars.iv.next.4 = add nsw i64 %indvars.iv.4, 1
  %50 = and i64 %indvars.iv.next.4, 4294967295
  %exitcond.4.not = icmp eq i64 %50, 110
  br i1 %exitcond.4.not, label %.split34.us, label %46, !llvm.loop !12

.split34.us:                                      ; preds = %46, %.split.preheader
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %52 = icmp slt i32 %0, %1
  br i1 %52, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.split34.us
  %53 = getelementptr inbounds i8, ptr %5, i64 48
  %54 = sext i32 %0 to i64
  br label %55

._crit_edge:                                      ; preds = %55, %.split34.us
  call void @llvm.lifetime.end.p0(i64 88880, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 1760, ptr nonnull %3) #5
  ret i32 0

55:                                               ; preds = %.lr.ph, %55
  %indvars.iv39 = phi i64 [ %54, %.lr.ph ], [ %indvars.iv.next40, %55 ]
  %56 = load ptr, ptr %53, align 8, !tbaa !14
  %57 = getelementptr inbounds [110 x [2 x double]], ptr %3, i64 0, i64 %indvars.iv39
  call void %56(ptr noundef %7, ptr noundef nonnull %57) #5
  %indvars.iv.next40 = add nsw i64 %indvars.iv39, 1
  %lftr.wideiv42 = trunc i64 %indvars.iv.next40 to i32
  %exitcond43.not = icmp eq i32 %lftr.wideiv42, %1
  br i1 %exitcond43.not, label %._crit_edge, label %55, !llvm.loop !15
}

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 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, !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 = !{!6, !7, i64 32}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!6, !7, i64 48}
!15 = distinct !{!15, !13}


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