; LLVM IR from NervanaSystems/ngraph :: doc/examples/mnist_mlp (dist_mnist_mlp)

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

@.str.3 = external hidden unnamed_addr constant [38 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z14accuracy_countRKSt10shared_ptrIN6ngraph7runtime6TensorEES5_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime6TensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds ptr, ptr %22, i64 2
  %24 = load ptr, ptr %23, align 8
  %25 = call noundef nonnull align 8 dereferenceable(24) ptr %24(ptr noundef nonnull align 8 dereferenceable(64) %21)
  store ptr %25, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0)
  %28 = load i64, ptr %27, align 8, !tbaa !11
  store i64 %28, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef 1)
  %31 = load i64, ptr %30, align 8, !tbaa !11
  store i64 %31, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime6TensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %32) #5
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 2
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef nonnull align 8 dereferenceable(24) ptr %36(ptr noundef nonnull align 8 dereferenceable(64) %33)
  store ptr %37, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #5
  %40 = icmp ne i64 %39, 1
  br i1 %40, label %47, label %41

41:                                               ; preds = %2
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef 0)
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = load i64, ptr %6, align 8, !tbaa !11
  %46 = icmp ne i64 %44, %45
  br i1 %46, label %47, label %54

47:                                               ; preds = %41, %2
  %48 = call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef @.str.3)
          to label %49 unwind label %50

49:                                               ; preds = %47
  call void @__cxa_throw(ptr %48, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #6
  unreachable

50:                                               ; preds = %47
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %9, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %10, align 4
  call void @__cxa_free_exception(ptr %48) #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 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %102

54:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %55

55:                                               ; preds = %97, %54
  %56 = load i64, ptr %13, align 8, !tbaa !11
  %57 = load i64, ptr %6, align 8, !tbaa !11
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %100

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = load i64, ptr %11, align 8, !tbaa !11
  %63 = add i64 %62, 1
  store i64 %63, ptr %11, align 8, !tbaa !11
  %64 = call noundef float @_Z10get_scalarIfET_RKSt10shared_ptrIN6ngraph7runtime6TensorEEm(ptr noundef nonnull align 8 dereferenceable(16) %61, i64 noundef %62)
  store float %64, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 1, ptr %17, align 8, !tbaa !11
  br label %65

65:                                               ; preds = %82, %60
  %66 = load i64, ptr %17, align 8, !tbaa !11
  %67 = load i64, ptr %7, align 8, !tbaa !11
  %68 = icmp ult i64 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %85

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = load i64, ptr %11, align 8, !tbaa !11
  %73 = add i64 %72, 1
  store i64 %73, ptr %11, align 8, !tbaa !11
  %74 = call noundef float @_Z10get_scalarIfET_RKSt10shared_ptrIN6ngraph7runtime6TensorEEm(ptr noundef nonnull align 8 dereferenceable(16) %71, i64 noundef %72)
  store float %74, ptr %18, align 4, !tbaa !13
  %75 = load float, ptr %18, align 4, !tbaa !13
  %76 = load float, ptr %15, align 4, !tbaa !13
  %77 = fcmp ogt float %75, %76
  br i1 %77, label %78, label %81

78:                                               ; preds = %70
  %79 = load float, ptr %18, align 4, !tbaa !13
  store float %79, ptr %15, align 4, !tbaa !13
  %80 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %80, ptr %16, align 8, !tbaa !11
  br label %81

81:                                               ; preds = %78, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %82

82:                                               ; preds = %81
  %83 = load i64, ptr %17, align 8, !tbaa !11
  %84 = add i64 %83, 1
  store i64 %84, ptr %17, align 8, !tbaa !11
  br label %65, !llvm.loop !15

85:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load i64, ptr %13, align 8, !tbaa !11
  %88 = call noundef float @_Z10get_scalarIfET_RKSt10shared_ptrIN6ngraph7runtime6TensorEEm(ptr noundef nonnull align 8 dereferenceable(16) %86, i64 noundef %87)
  store float %88, ptr %19, align 4, !tbaa !13
  %89 = load float, ptr %19, align 4, !tbaa !13
  %90 = fptoui float %89 to i64
  %91 = load i64, ptr %16, align 8, !tbaa !11
  %92 = icmp eq i64 %90, %91
  br i1 %92, label %93, label %96

93:                                               ; preds = %85
  %94 = load i64, ptr %12, align 8, !tbaa !11
  %95 = add i64 %94, 1
  store i64 %95, ptr %12, align 8, !tbaa !11
  br label %96

96:                                               ; preds = %93, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %97

97:                                               ; preds = %96
  %98 = load i64, ptr %13, align 8, !tbaa !11
  %99 = add i64 %98, 1
  store i64 %99, ptr %13, align 8, !tbaa !11
  br label %55, !llvm.loop !17

100:                                              ; preds = %59
  %101 = load i64, ptr %12, align 8, !tbaa !11
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #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 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret i64 %101

102:                                              ; preds = %50
  %103 = load ptr, ptr %9, align 8
  %104 = load i32, ptr %10, align 4
  %105 = insertvalue { ptr, i32 } poison, ptr %103, 0
  %106 = insertvalue { ptr, i32 } %105, i32 %104, 1
  resume { ptr, i32 } %106
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime6TensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_Z10get_scalarIfET_RKSt10shared_ptrIN6ngraph7runtime6TensorEEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2

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

!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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !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.3 = external hidden unnamed_addr constant [38 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z14accuracy_countRKSt10shared_ptrIN6ngraph7runtime6TensorEES5_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime6TensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #4
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 16
  %6 = load ptr, ptr %5, align 8
  %7 = tail call noundef nonnull align 8 dereferenceable(24) ptr %6(ptr noundef nonnull align 8 dereferenceable(64) %3)
  %8 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0)
  %9 = load i64, ptr %8, align 8, !tbaa !8
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 1)
  %11 = load i64, ptr %10, align 8, !tbaa !8
  %.fr52 = freeze i64 %11
  %12 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime6TensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %15 = load ptr, ptr %14, align 8
  %16 = tail call noundef nonnull align 8 dereferenceable(24) ptr %15(ptr noundef nonnull align 8 dereferenceable(64) %12)
  %17 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  %.not = icmp eq i64 %17, 1
  br i1 %.not, label %18, label %33

18:                                               ; preds = %2
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0)
  %20 = load i64, ptr %19, align 8, !tbaa !8
  %.not38 = icmp eq i64 %20, %9
  br i1 %.not38, label %.preheader, label %33

.preheader:                                       ; preds = %18
  %.not51 = icmp eq i64 %9, 0
  br i1 %.not51, label %._crit_edge49, label %.lr.ph48

.lr.ph48:                                         ; preds = %.preheader
  %21 = icmp ugt i64 %.fr52, 1
  br i1 %21, label %.lr.ph.us, label %.lr.ph48.split

.lr.ph.us:                                        ; preds = %.lr.ph48, %._crit_edge.us
  %.047.us = phi i64 [ %23, %._crit_edge.us ], [ 0, %.lr.ph48 ]
  %.02846.us = phi i64 [ %spec.select.us, %._crit_edge.us ], [ 0, %.lr.ph48 ]
  %.03545.us = phi i64 [ %32, %._crit_edge.us ], [ 0, %.lr.ph48 ]
  %22 = tail call noundef float @_Z10get_scalarIfET_RKSt10shared_ptrIN6ngraph7runtime6TensorEEm(ptr noundef nonnull align 8 dereferenceable(16) %0, i64 noundef %.047.us)
  %.139.us = add i64 %.047.us, 1
  %23 = add i64 %.fr52, %.047.us
  br label %24

24:                                               ; preds = %.lr.ph.us, %24
  %.143.us = phi i64 [ %.139.us, %.lr.ph.us ], [ %.1.us, %24 ]
  %.03042.us = phi i64 [ 1, %.lr.ph.us ], [ %27, %24 ]
  %.03141.us = phi i64 [ 0, %.lr.ph.us ], [ %.132.us, %24 ]
  %.03340.us = phi float [ %22, %.lr.ph.us ], [ %.134.us, %24 ]
  %25 = tail call noundef float @_Z10get_scalarIfET_RKSt10shared_ptrIN6ngraph7runtime6TensorEEm(ptr noundef nonnull align 8 dereferenceable(16) %0, i64 noundef %.143.us)
  %26 = fcmp ogt float %25, %.03340.us
  %.134.us = select i1 %26, float %25, float %.03340.us
  %.132.us = select i1 %26, i64 %.03042.us, i64 %.03141.us
  %27 = add nuw i64 %.03042.us, 1
  %.1.us = add i64 %.143.us, 1
  %exitcond54.not = icmp eq i64 %.1.us, %23
  br i1 %exitcond54.not, label %._crit_edge.us, label %24, !llvm.loop !11

._crit_edge.us:                                   ; preds = %24
  %28 = tail call noundef float @_Z10get_scalarIfET_RKSt10shared_ptrIN6ngraph7runtime6TensorEEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %.03545.us)
  %29 = fptoui float %28 to i64
  %30 = icmp eq i64 %.132.us, %29
  %31 = zext i1 %30 to i64
  %spec.select.us = add i64 %.02846.us, %31
  %32 = add nuw i64 %.03545.us, 1
  %exitcond55.not = icmp eq i64 %32, %9
  br i1 %exitcond55.not, label %._crit_edge49, label %.lr.ph.us, !llvm.loop !13

33:                                               ; preds = %18, %2
  %34 = tail call ptr @__cxa_allocate_exception(i64 16) #4
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull @.str.3)
          to label %35 unwind label %36

35:                                               ; preds = %33
  tail call void @__cxa_throw(ptr nonnull %34, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #5
  unreachable

36:                                               ; preds = %33
  %37 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %34) #4
  resume { ptr, i32 } %37

._crit_edge49:                                    ; preds = %.lr.ph48.split, %._crit_edge.us, %.preheader
  %.028.lcssa = phi i64 [ 0, %.preheader ], [ %spec.select.us, %._crit_edge.us ], [ %spec.select, %.lr.ph48.split ]
  ret i64 %.028.lcssa

.lr.ph48.split:                                   ; preds = %.lr.ph48, %.lr.ph48.split
  %.047 = phi i64 [ %.139, %.lr.ph48.split ], [ 0, %.lr.ph48 ]
  %.02846 = phi i64 [ %spec.select, %.lr.ph48.split ], [ 0, %.lr.ph48 ]
  %38 = tail call noundef float @_Z10get_scalarIfET_RKSt10shared_ptrIN6ngraph7runtime6TensorEEm(ptr noundef nonnull align 8 dereferenceable(16) %0, i64 noundef %.047)
  %.139 = add nuw i64 %.047, 1
  %39 = tail call noundef float @_Z10get_scalarIfET_RKSt10shared_ptrIN6ngraph7runtime6TensorEEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %.047)
  %40 = fptoui float %39 to i64
  %41 = icmp eq i64 %40, 0
  %42 = zext i1 %41 to i64
  %spec.select = add i64 %.02846, %42
  %exitcond.not = icmp eq i64 %.139, %9
  br i1 %exitcond.not, label %._crit_edge49, label %.lr.ph48.split, !llvm.loop !13
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime6TensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_Z10get_scalarIfET_RKSt10shared_ptrIN6ngraph7runtime6TensorEEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 #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 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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