; LLVM IR from interpretml/interpret :: shared/libebm/Tensor.ll (ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_)

; 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.NAMESPACE_MAIN::Tensor" = type { i64, i64, i64, i64, ptr, i8, [1 x %"struct.NAMESPACE_MAIN::Tensor::DimensionInfo"] }
%"struct.NAMESPACE_MAIN::Tensor::DimensionInfo" = type { i64, ptr, i64 }

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [44 x i8], align 1
@__func__._ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_ = external hidden unnamed_addr constant [8 x i8], align 1
@__PRETTY_FUNCTION__._ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_ = external hidden unnamed_addr constant [59 x i8], align 1

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef, i64 noundef) #2

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK14NAMESPACE_MAIN6Tensor13GetDimensionsEv(ptr noundef nonnull align 8 dereferenceable(72)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(72) %1) #5 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8
  %21 = getelementptr inbounds %"class.NAMESPACE_MAIN::Tensor", ptr %20, i32 0, i32 3
  %22 = load i64, ptr %21, align 8, !tbaa !9
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.NAMESPACE_MAIN::Tensor", ptr %23, i32 0, i32 3
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = icmp ne i64 %22, %25
  br i1 %26, label %27, label %28

27:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %159

28:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %29 = call noundef ptr @_ZNK14NAMESPACE_MAIN6Tensor13GetDimensionsEv(ptr noundef nonnull align 8 dereferenceable(72) %20)
  store ptr %29, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call noundef ptr @_ZNK14NAMESPACE_MAIN6Tensor13GetDimensionsEv(ptr noundef nonnull align 8 dereferenceable(72) %30)
  store ptr %31, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %32 = getelementptr inbounds %"class.NAMESPACE_MAIN::Tensor", ptr %20, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !13
  store i64 %33, ptr %8, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !14
  br label %34

34:                                               ; preds = %114, %28
  %35 = load i64, ptr %9, align 8, !tbaa !14
  %36 = getelementptr inbounds %"class.NAMESPACE_MAIN::Tensor", ptr %20, i32 0, i32 3
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = icmp ult i64 %35, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %34
  store i32 2, ptr %10, align 4
  br label %117

40:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load i64, ptr %9, align 8, !tbaa !14
  %43 = getelementptr inbounds %"struct.NAMESPACE_MAIN::Tensor::DimensionInfo", ptr %41, i64 %42
  store ptr %43, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load i64, ptr %9, align 8, !tbaa !14
  %46 = getelementptr inbounds %"struct.NAMESPACE_MAIN::Tensor::DimensionInfo", ptr %44, i64 %45
  store ptr %46, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.NAMESPACE_MAIN::Tensor::DimensionInfo", ptr %47, i32 0, i32 0
  %49 = load i64, ptr %48, align 8, !tbaa !15
  store i64 %49, ptr %13, align 8, !tbaa !14
  %50 = load i64, ptr %13, align 8, !tbaa !14
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.NAMESPACE_MAIN::Tensor::DimensionInfo", ptr %51, i32 0, i32 0
  %53 = load i64, ptr %52, align 8, !tbaa !15
  %54 = icmp ne i64 %50, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %40
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %111

56:                                               ; preds = %40
  %57 = load i64, ptr %13, align 8, !tbaa !14
  %58 = icmp ult i64 1, %57
  br i1 %58, label %59, label %110

59:                                               ; preds = %56
  %60 = load i64, ptr %8, align 8, !tbaa !14
  %61 = load i64, ptr %13, align 8, !tbaa !14
  %62 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef %60, i64 noundef %61) #6
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  call void @LogAssertFailure(i64 noundef 767, ptr noundef @.str, ptr noundef @__func__._ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_, ptr noundef @.str.13)
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str, i32 noundef 767, ptr noundef @__PRETTY_FUNCTION__._ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_) #7
  unreachable

64:                                               ; No predecessors!
  br label %65

65:                                               ; preds = %64, %59
  %66 = phi i1 [ true, %59 ], [ false, %64 ]
  %67 = load i64, ptr %13, align 8, !tbaa !14
  %68 = load i64, ptr %8, align 8, !tbaa !14
  %69 = mul i64 %68, %67
  store i64 %69, ptr %8, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.NAMESPACE_MAIN::Tensor::DimensionInfo", ptr %70, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !17
  store ptr %72, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.NAMESPACE_MAIN::Tensor::DimensionInfo", ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !17
  store ptr %75, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = load i64, ptr %13, align 8, !tbaa !14
  %78 = getelementptr inbounds i64, ptr %76, i64 %77
  %79 = getelementptr inbounds i64, ptr %78, i64 -1
  store ptr %79, ptr %16, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %97, %65
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = load i64, ptr %81, align 8, !tbaa !14
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !14
  %85 = icmp ne i64 %82, %84
  %86 = xor i1 %85, true
  %87 = xor i1 %86, true
  %88 = zext i1 %87 to i64
  %89 = call i64 @llvm.expect.i64(i64 %88, i64 0)
  %90 = icmp ne i64 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %80
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %107

92:                                               ; preds = %80
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = getelementptr inbounds i64, ptr %93, i32 1
  store ptr %94, ptr %14, align 8, !tbaa !5
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = getelementptr inbounds i64, ptr %95, i32 1
  store ptr %96, ptr %15, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %92
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = icmp ne ptr %98, %99
  %101 = xor i1 %100, true
  %102 = xor i1 %101, true
  %103 = zext i1 %102 to i64
  %104 = call i64 @llvm.expect.i64(i64 %103, i64 1)
  %105 = icmp ne i64 %104, 0
  br i1 %105, label %80, label %106, !llvm.loop !18

106:                                              ; preds = %97
  store i32 0, ptr %10, align 4
  br label %107

107:                                              ; preds = %106, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %108 = load i32, ptr %10, align 4
  switch i32 %108, label %111 [
    i32 0, label %109
  ]

109:                                              ; preds = %107
  br label %110

110:                                              ; preds = %109, %56
  store i32 0, ptr %10, align 4
  br label %111

111:                                              ; preds = %110, %107, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %112 = load i32, ptr %10, align 4
  switch i32 %112, label %117 [
    i32 0, label %113
  ]

113:                                              ; preds = %111
  br label %114

114:                                              ; preds = %113
  %115 = load i64, ptr %9, align 8, !tbaa !14
  %116 = add i64 %115, 1
  store i64 %116, ptr %9, align 8, !tbaa !14
  br label %34, !llvm.loop !20

117:                                              ; preds = %111, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %118 = load i32, ptr %10, align 4
  switch i32 %118, label %158 [
    i32 2, label %119
  ]

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %120 = getelementptr inbounds %"class.NAMESPACE_MAIN::Tensor", ptr %20, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !21
  %122 = getelementptr inbounds double, ptr %121, i64 0
  store ptr %122, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %"class.NAMESPACE_MAIN::Tensor", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !21
  %126 = getelementptr inbounds double, ptr %125, i64 0
  store ptr %126, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %127 = load ptr, ptr %17, align 8, !tbaa !5
  %128 = load i64, ptr %8, align 8, !tbaa !14
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  store ptr %129, ptr %19, align 8, !tbaa !5
  br label %130

130:                                              ; preds = %147, %119
  %131 = load ptr, ptr %17, align 8, !tbaa !5
  %132 = load double, ptr %131, align 8, !tbaa !22
  %133 = load ptr, ptr %18, align 8, !tbaa !5
  %134 = load double, ptr %133, align 8, !tbaa !22
  %135 = fcmp une double %132, %134
  %136 = xor i1 %135, true
  %137 = xor i1 %136, true
  %138 = zext i1 %137 to i64
  %139 = call i64 @llvm.expect.i64(i64 %138, i64 0)
  %140 = icmp ne i64 %139, 0
  br i1 %140, label %141, label %142

141:                                              ; preds = %130
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %157

142:                                              ; preds = %130
  %143 = load ptr, ptr %17, align 8, !tbaa !5
  %144 = getelementptr inbounds double, ptr %143, i32 1
  store ptr %144, ptr %17, align 8, !tbaa !5
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %145, i32 1
  store ptr %146, ptr %18, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %142
  %148 = load ptr, ptr %19, align 8, !tbaa !5
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = icmp ne ptr %148, %149
  %151 = xor i1 %150, true
  %152 = xor i1 %151, true
  %153 = zext i1 %152 to i64
  %154 = call i64 @llvm.expect.i64(i64 %153, i64 1)
  %155 = icmp ne i64 %154, 0
  br i1 %155, label %130, label %156, !llvm.loop !24

156:                                              ; preds = %147
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %157

157:                                              ; preds = %156, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %158

158:                                              ; preds = %157, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %159

159:                                              ; preds = %158, %27
  %160 = load i1, ptr %3, align 1
  ret i1 %160
}

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

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

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


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

%"struct.NAMESPACE_MAIN::Tensor::DimensionInfo" = type { i64, ptr, i64 }

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [44 x i8], align 1
@__func__._ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_ = external hidden unnamed_addr constant [8 x i8], align 1
@__PRETTY_FUNCTION__._ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_ = external hidden unnamed_addr constant [59 x i8], align 1

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK14NAMESPACE_MAIN6Tensor13GetDimensionsEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(72) %1) local_unnamed_addr #3 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i64, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 24
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i64 %4, %6
  br i1 %.not, label %7, label %.critedge.thread66

7:                                                ; preds = %2
  %8 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN6Tensor13GetDimensionsEv(ptr noundef nonnull align 8 dereferenceable(72) %0)
  %9 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN6Tensor13GetDimensionsEv(ptr noundef nonnull align 8 dereferenceable(72) %1)
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load i64, ptr %10, align 8, !tbaa !12
  %12 = load i64, ptr %3, align 8, !tbaa !5
  %.not5976.not = icmp eq i64 %12, 0
  br i1 %.not5976.not, label %.critedge.thread68, label %.lr.ph

.lr.ph:                                           ; preds = %7, %.loopexit
  %13 = phi i64 [ %37, %.loopexit ], [ %12, %7 ]
  %.04378 = phi i64 [ %.245.ph, %.loopexit ], [ %11, %7 ]
  %.04977 = phi i64 [ %38, %.loopexit ], [ 0, %7 ]
  %14 = getelementptr inbounds %"struct.NAMESPACE_MAIN::Tensor::DimensionInfo", ptr %8, i64 %.04977
  %15 = getelementptr inbounds %"struct.NAMESPACE_MAIN::Tensor::DimensionInfo", ptr %9, i64 %.04977
  %16 = load i64, ptr %14, align 8, !tbaa !13
  %17 = load i64, ptr %15, align 8, !tbaa !13
  %.not56 = icmp eq i64 %16, %17
  br i1 %.not56, label %18, label %.critedge.thread66

18:                                               ; preds = %.lr.ph
  %19 = icmp ugt i64 %16, 1
  br i1 %19, label %20, label %.loopexit

20:                                               ; preds = %18
  %21 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef %.04378, i64 noundef %16) #4
  br i1 %21, label %22, label %23

22:                                               ; preds = %20
  tail call void @LogAssertFailure(i64 noundef 767, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_, ptr noundef nonnull @.str.13)
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str, i32 noundef 767, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK14NAMESPACE_MAIN6Tensor7IsEqualERKS0_) #5
  unreachable

23:                                               ; preds = %20
  %24 = mul i64 %16, %.04378
  %25 = getelementptr inbounds i8, ptr %14, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %15, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !15
  %29 = getelementptr inbounds i64, ptr %26, i64 %16
  %30 = getelementptr inbounds i8, ptr %29, i64 -8
  br label %31

31:                                               ; preds = %34, %23
  %.048 = phi ptr [ %26, %23 ], [ %35, %34 ]
  %.047 = phi ptr [ %28, %23 ], [ %36, %34 ]
  %32 = load i64, ptr %.048, align 8, !tbaa !16
  %33 = load i64, ptr %.047, align 8, !tbaa !16
  %.not57 = icmp eq i64 %32, %33
  br i1 %.not57, label %34, label %.critedge.thread66, !prof !17

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %.048, i64 8
  %36 = getelementptr inbounds i8, ptr %.047, i64 8
  %.not58 = icmp eq ptr %30, %35
  br i1 %.not58, label %.loopexit.loopexit, label %31, !prof !18, !llvm.loop !19

.loopexit.loopexit:                               ; preds = %34
  %.pre = load i64, ptr %3, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %18
  %37 = phi i64 [ %13, %18 ], [ %.pre, %.loopexit.loopexit ]
  %.245.ph = phi i64 [ %.04378, %18 ], [ %24, %.loopexit.loopexit ]
  %38 = add nuw i64 %.04977, 1
  %.not59 = icmp ult i64 %38, %37
  br i1 %.not59, label %.lr.ph, label %.critedge.thread68, !llvm.loop !21

.critedge.thread68:                               ; preds = %.loopexit, %7
  %.043.lcssa = phi i64 [ %11, %7 ], [ %.245.ph, %.loopexit ]
  %39 = getelementptr inbounds i8, ptr %0, i64 32
  %40 = load ptr, ptr %39, align 8, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %1, i64 32
  %42 = load ptr, ptr %41, align 8, !tbaa !22
  %43 = getelementptr inbounds double, ptr %40, i64 %.043.lcssa
  br label %44

44:                                               ; preds = %44, %.critedge.thread68
  %.042 = phi ptr [ %40, %.critedge.thread68 ], [ %48, %44 ]
  %.041 = phi ptr [ %42, %.critedge.thread68 ], [ %49, %44 ]
  %45 = load double, ptr %.042, align 8, !tbaa !23
  %46 = load double, ptr %.041, align 8, !tbaa !23
  %47 = fcmp oeq double %45, %46
  %48 = getelementptr inbounds i8, ptr %.042, i64 8
  %49 = getelementptr inbounds i8, ptr %.041, i64 8
  %.not60 = icmp ne ptr %43, %48
  %or.cond.not = select i1 %47, i1 %.not60, i1 false
  br i1 %or.cond.not, label %44, label %.critedge.thread66, !prof !25, !llvm.loop !26

.critedge.thread66:                               ; preds = %.lr.ph, %31, %44, %2
  %.7 = phi i1 [ false, %2 ], [ %47, %44 ], [ false, %31 ], [ false, %.lr.ph ]
  ret i1 %.7
}

attributes #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 = { 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 #2 = { inlinehint 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 #3 = { 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 = { nounwind }
attributes #5 = { 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 24}
!6 = !{!"_ZTSN14NAMESPACE_MAIN6TensorE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 48}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSN14NAMESPACE_MAIN6Tensor13DimensionInfoE", !7, i64 0, !10, i64 8, !7, i64 16}
!15 = !{!14, !10, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!18 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!6, !10, i64 32}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !8, i64 0}
!25 = !{!"branch_weights", i32 4000000, i32 4001}
!26 = distinct !{!26, !20}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass