; LLVM IR from keroro824/HashingDeepLearning :: SLIDE/Node.ll (ZN4Node13getActivationEPiPfii)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Node = type <{ i32, i32, ptr, i32, [4 x i8], i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, float, float, float, float, float, [4 x i8] }>
%struct.train = type { float, float, float, i32, [48 x i8] }

@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Node13getActivationEPiPfii = external hidden unnamed_addr constant [52 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN4Node13getActivationEPiPfii(ptr noundef nonnull align 8 dereferenceable(132) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #1 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  %12 = load ptr, ptr %6, align 8
  %13 = load i32, ptr %10, align 4, !tbaa !9
  %14 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 3
  %15 = load i32, ptr %14, align 8, !tbaa !11
  %16 = icmp sle i32 %13, %15
  br i1 %16, label %17, label %18

17:                                               ; preds = %5
  br label %20

18:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 90, ptr noundef @__PRETTY_FUNCTION__._ZN4Node13getActivationEPiPfii) #5
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  %21 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %22 = load ptr, ptr %21, align 8, !tbaa !16
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds %struct.train, ptr %22, i64 %24
  %26 = getelementptr inbounds %struct.train, ptr %25, i32 0, i32 3
  %27 = load i32, ptr %26, align 4, !tbaa !17
  %28 = icmp ne i32 %27, 1
  br i1 %28, label %29, label %39

29:                                               ; preds = %20
  %30 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds %struct.train, ptr %31, i64 %33
  %35 = getelementptr inbounds %struct.train, ptr %34, i32 0, i32 3
  store i32 1, ptr %35, align 4, !tbaa !17
  %36 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !19
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %36, align 8, !tbaa !19
  br label %39

39:                                               ; preds = %29, %20
  %40 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds %struct.train, ptr %41, i64 %43
  %45 = getelementptr inbounds %struct.train, ptr %44, i32 0, i32 1
  store float 0.000000e+00, ptr %45, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %75, %39
  %47 = load i32, ptr %11, align 4, !tbaa !9
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %78

51:                                               ; preds = %46
  %52 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 10
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i32, ptr %54, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds float, ptr %53, i64 %59
  %61 = load float, ptr %60, align 4, !tbaa !22
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds float, ptr %62, i64 %64
  %66 = load float, ptr %65, align 4, !tbaa !22
  %67 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds %struct.train, ptr %68, i64 %70
  %72 = getelementptr inbounds %struct.train, ptr %71, i32 0, i32 1
  %73 = load float, ptr %72, align 4, !tbaa !20
  %74 = call float @llvm.fmuladd.f32(float %61, float %66, float %73)
  store float %74, ptr %72, align 4, !tbaa !20
  br label %75

75:                                               ; preds = %51
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %11, align 4, !tbaa !9
  br label %46, !llvm.loop !23

78:                                               ; preds = %50
  %79 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 16
  %80 = load float, ptr %79, align 8, !tbaa !25
  %81 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !16
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %struct.train, ptr %82, i64 %84
  %86 = getelementptr inbounds %struct.train, ptr %85, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !20
  %88 = fadd float %87, %80
  store float %88, ptr %86, align 4, !tbaa !20
  %89 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !26
  switch i32 %90, label %127 [
    i32 0, label %91
    i32 1, label %130
  ]

91:                                               ; preds = %78
  %92 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !16
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds %struct.train, ptr %93, i64 %95
  %97 = getelementptr inbounds %struct.train, ptr %96, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !20
  %99 = fcmp olt float %98, 0.000000e+00
  br i1 %99, label %100, label %119

100:                                              ; preds = %91
  %101 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %102 = load ptr, ptr %101, align 8, !tbaa !16
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct.train, ptr %102, i64 %104
  %106 = getelementptr inbounds %struct.train, ptr %105, i32 0, i32 1
  store float 0.000000e+00, ptr %106, align 4, !tbaa !20
  %107 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !16
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %struct.train, ptr %108, i64 %110
  %112 = getelementptr inbounds %struct.train, ptr %111, i32 0, i32 2
  store float 1.000000e+00, ptr %112, align 8, !tbaa !27
  %113 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !16
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds %struct.train, ptr %114, i64 %116
  %118 = getelementptr inbounds %struct.train, ptr %117, i32 0, i32 0
  store float 0.000000e+00, ptr %118, align 64, !tbaa !28
  br label %126

119:                                              ; preds = %91
  %120 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %121 = load ptr, ptr %120, align 8, !tbaa !16
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds %struct.train, ptr %121, i64 %123
  %125 = getelementptr inbounds %struct.train, ptr %124, i32 0, i32 2
  store float 0.000000e+00, ptr %125, align 8, !tbaa !27
  br label %126

126:                                              ; preds = %119, %100
  br label %130

127:                                              ; preds = %78
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %130

130:                                              ; preds = %127, %126, %78
  %131 = getelementptr inbounds %class.Node, ptr %12, i32 0, i32 2
  %132 = load ptr, ptr %131, align 8, !tbaa !16
  %133 = load i32, ptr %10, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %struct.train, ptr %132, i64 %134
  %136 = getelementptr inbounds %struct.train, ptr %135, i32 0, i32 1
  %137 = load float, ptr %136, align 4, !tbaa !20
  ret float %137
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint mustprogress 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 = { noreturn nounwind }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"_ZTS4Node", !10, i64 0, !13, i64 4, !6, i64 8, !10, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128}
!13 = !{!"_ZTS8NodeType", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !6, i64 8}
!17 = !{!18, !10, i64 12}
!18 = !{!"_ZTS5train", !15, i64 0, !15, i64 4, !15, i64 8, !10, i64 12}
!19 = !{!12, !10, i64 0}
!20 = !{!18, !15, i64 4}
!21 = !{!12, !6, i64 64}
!22 = !{!15, !15, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !15, i64 112}
!26 = !{!12, !13, i64 4}
!27 = !{!18, !15, i64 8}
!28 = !{!18, !15, i64 0}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.train = type { float, float, float, i32, [48 x i8] }

@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Node13getActivationEPiPfii = external hidden unnamed_addr constant [52 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.5 = external hidden unnamed_addr constant [35 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 uwtable
define dso_local noundef float @_ZN4Node13getActivationEPiPfii(ptr nocapture noundef nonnull align 8 dereferenceable(132) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #1 align 2 {
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %.not = icmp slt i32 %7, %4
  br i1 %.not, label %8, label %9

8:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 90, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4Node13getActivationEPiPfii) #4
  unreachable

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !14
  %12 = sext i32 %4 to i64
  %13 = getelementptr inbounds %struct.train, ptr %11, i64 %12, i32 3
  %14 = load i32, ptr %13, align 4, !tbaa !15
  %.not20 = icmp eq i32 %14, 1
  br i1 %.not20, label %18, label %15

15:                                               ; preds = %9
  store i32 1, ptr %13, align 4, !tbaa !15
  %16 = load i32, ptr %0, align 8, !tbaa !17
  %17 = add nsw i32 %16, 1
  store i32 %17, ptr %0, align 8, !tbaa !17
  br label %18

18:                                               ; preds = %15, %9
  %19 = getelementptr inbounds %struct.train, ptr %11, i64 %12, i32 1
  store float 0.000000e+00, ptr %19, align 4, !tbaa !18
  %20 = icmp sgt i32 %3, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 64
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  %wide.trip.count = zext nneg i32 %3 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %23 = icmp eq i32 %3, 1
  br i1 %23, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %38

._crit_edge.loopexit.unr-lcssa:                   ; preds = %38, %.lr.ph
  %.lcssa.ph = phi float [ poison, %.lr.ph ], [ %55, %38 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %38 ]
  %.unr = phi float [ 0.000000e+00, %.lr.ph ], [ %55, %38 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %24 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv.unr
  %25 = load i32, ptr %24, align 4, !tbaa !20
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds float, ptr %22, i64 %26
  %28 = load float, ptr %27, align 4, !tbaa !21
  %29 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.unr
  %30 = load float, ptr %29, align 4, !tbaa !21
  %31 = tail call float @llvm.fmuladd.f32(float %28, float %30, float %.unr)
  store float %31, ptr %19, align 4, !tbaa !18
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %18
  %32 = phi float [ 0.000000e+00, %18 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %31, %._crit_edge.loopexit.epilog-lcssa ]
  %33 = getelementptr inbounds i8, ptr %0, i64 112
  %34 = load float, ptr %33, align 8, !tbaa !22
  %35 = fadd float %34, %32
  store float %35, ptr %19, align 4, !tbaa !18
  %36 = getelementptr inbounds i8, ptr %0, i64 4
  %37 = load i32, ptr %36, align 4, !tbaa !23
  switch i32 %37, label %63 [
    i32 0, label %56
    i32 1, label %66
  ]

38:                                               ; preds = %38, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %38 ]
  %39 = phi float [ 0.000000e+00, %.lr.ph.new ], [ %55, %38 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %38 ]
  %40 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv
  %41 = load i32, ptr %40, align 4, !tbaa !20
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds float, ptr %22, i64 %42
  %44 = load float, ptr %43, align 4, !tbaa !21
  %45 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  %46 = load float, ptr %45, align 4, !tbaa !21
  %47 = tail call float @llvm.fmuladd.f32(float %44, float %46, float %39)
  store float %47, ptr %19, align 4, !tbaa !18
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %48 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv.next
  %49 = load i32, ptr %48, align 4, !tbaa !20
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds float, ptr %22, i64 %50
  %52 = load float, ptr %51, align 4, !tbaa !21
  %53 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next
  %54 = load float, ptr %53, align 4, !tbaa !21
  %55 = tail call float @llvm.fmuladd.f32(float %52, float %54, float %47)
  store float %55, ptr %19, align 4, !tbaa !18
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %38, !llvm.loop !24

56:                                               ; preds = %._crit_edge
  %57 = getelementptr inbounds %struct.train, ptr %11, i64 %12
  %58 = fcmp olt float %35, 0.000000e+00
  br i1 %58, label %59, label %61

59:                                               ; preds = %56
  %60 = getelementptr inbounds %struct.train, ptr %11, i64 %12, i32 2
  store float 1.000000e+00, ptr %60, align 8, !tbaa !26
  store <2 x float> zeroinitializer, ptr %57, align 64, !tbaa !21
  br label %66

61:                                               ; preds = %56
  %62 = getelementptr inbounds i8, ptr %57, i64 8
  store float 0.000000e+00, ptr %62, align 8, !tbaa !26
  br label %66

63:                                               ; preds = %._crit_edge
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %.pre = load ptr, ptr %10, align 8, !tbaa !14
  %.phi.trans.insert = getelementptr inbounds %struct.train, ptr %.pre, i64 %12, i32 1
  %.pre23 = load float, ptr %.phi.trans.insert, align 4, !tbaa !18
  br label %66

66:                                               ; preds = %59, %61, %63, %._crit_edge
  %67 = phi float [ 0.000000e+00, %59 ], [ %35, %61 ], [ %.pre23, %63 ], [ %35, %._crit_edge ]
  ret float %67
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #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 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint mustprogress 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 = { 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 16}
!6 = !{!"_ZTS4Node", !7, i64 0, !10, i64 4, !11, i64 8, !7, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS8NodeType", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = !{!6, !11, i64 8}
!15 = !{!16, !7, i64 12}
!16 = !{!"_ZTS5train", !13, i64 0, !13, i64 4, !13, i64 8, !7, i64 12}
!17 = !{!6, !7, i64 0}
!18 = !{!16, !13, i64 4}
!19 = !{!6, !11, i64 64}
!20 = !{!7, !7, i64 0}
!21 = !{!13, !13, i64 0}
!22 = !{!6, !13, i64 112}
!23 = !{!6, !10, i64 4}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!16, !13, i64 8}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass