; LLVM IR from huawei-noah/bolt :: compute/tensor/src (batch_norm)

; 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.TensorDesc = type { i32, i32, i32, [20 x i32] }
%struct.BatchNormParamSpec = type { i32, float, float, float }
%class.Tensor = type { %"class.std::shared_ptr", %"class.std::shared_ptr.0" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%struct.ArchInfo = type { i32, ptr }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor8get_descEv(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z27batch_norm_transform_filter6TensorS_18BatchNormParamSpecS_S_P8ArchInfo(ptr noundef %0, ptr noundef %1, i64 %2, <2 x float> %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %struct.BatchNormParamSpec, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %class.Tensor, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %class.Tensor, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %class.Tensor, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %class.Tensor, align 8
  %25 = alloca i32, align 4
  %26 = alloca %struct.TensorDesc, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = getelementptr inbounds { i64, <2 x float> }, ptr %8, i32 0, i32 0
  store i64 %2, ptr %32, align 4
  %33 = getelementptr inbounds { i64, <2 x float> }, ptr %8, i32 0, i32 1
  store <2 x float> %3, ptr %33, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  store ptr %6, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ArchInfo, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 8, !tbaa !9
  store i32 %36, ptr %14, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %37 = load i32, ptr %14, align 4, !tbaa !12
  %38 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %16, i32 noundef %37)
          to label %39 unwind label %104

39:                                               ; preds = %7
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  store ptr %38, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %40 = load i32, ptr %14, align 4, !tbaa !12
  %41 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %20, i32 noundef %40)
          to label %42 unwind label %108

42:                                               ; preds = %39
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  store ptr %41, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  %43 = load i32, ptr %14, align 4, !tbaa !12
  %44 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %22, i32 noundef %43)
          to label %45 unwind label %112

45:                                               ; preds = %42
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  store ptr %44, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  %46 = load i32, ptr %14, align 4, !tbaa !12
  %47 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %24, i32 noundef %46)
          to label %48 unwind label %116

48:                                               ; preds = %45
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  store ptr %47, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 51, ptr %25, align 4, !tbaa !13
  %49 = load i32, ptr %14, align 4, !tbaa !12
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %78, label %51

51:                                               ; preds = %48
  %52 = load i32, ptr %14, align 4, !tbaa !12
  %53 = icmp eq i32 %52, 8
  br i1 %53, label %78, label %54

54:                                               ; preds = %51
  %55 = load i32, ptr %14, align 4, !tbaa !12
  %56 = icmp eq i32 %55, 9
  br i1 %56, label %78, label %57

57:                                               ; preds = %54
  %58 = load i32, ptr %14, align 4, !tbaa !12
  %59 = icmp eq i32 %58, 10
  br i1 %59, label %78, label %60

60:                                               ; preds = %57
  %61 = load i32, ptr %14, align 4, !tbaa !12
  %62 = icmp eq i32 %61, 9
  br i1 %62, label %78, label %63

63:                                               ; preds = %60
  %64 = load i32, ptr %14, align 4, !tbaa !12
  %65 = icmp eq i32 %64, 10
  br i1 %65, label %78, label %66

66:                                               ; preds = %63
  %67 = load i32, ptr %14, align 4, !tbaa !12
  %68 = icmp eq i32 %67, 5
  br i1 %68, label %78, label %69

69:                                               ; preds = %66
  %70 = load i32, ptr %14, align 4, !tbaa !12
  %71 = icmp eq i32 %70, 6
  br i1 %71, label %78, label %72

72:                                               ; preds = %69
  %73 = load i32, ptr %14, align 4, !tbaa !12
  %74 = icmp eq i32 %73, 4
  br i1 %74, label %78, label %75

75:                                               ; preds = %72
  %76 = load i32, ptr %14, align 4, !tbaa !12
  %77 = icmp eq i32 %76, 3
  br i1 %77, label %78, label %120

78:                                               ; preds = %75, %72, %69, %66, %63, %60, %57, %54, %51, %48
  call void @llvm.lifetime.start.p0(i64 92, ptr %26) #5
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %26, ptr noundef nonnull align 8 dereferenceable(32) %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %79 = getelementptr inbounds %struct.TensorDesc, ptr %26, i32 0, i32 0
  %80 = load i32, ptr %79, align 4, !tbaa !15
  store i32 %80, ptr %27, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %81 = call noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  store i32 %81, ptr %28, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %82 = load i32, ptr %14, align 4, !tbaa !12
  %83 = call noundef ptr @_Z24get_array_power_function4Arch(i32 noundef %82)
  store ptr %83, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %84 = load i32, ptr %14, align 4, !tbaa !12
  %85 = call noundef ptr @_Z24get_array_scale_function4Arch(i32 noundef %84)
  store ptr %85, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %86 = load i32, ptr %14, align 4, !tbaa !12
  %87 = call noundef ptr @_Z22get_array_mul_function4Arch(i32 noundef %86)
  store ptr %87, ptr %31, align 8, !tbaa !5
  %88 = load ptr, ptr %29, align 8, !tbaa !5
  %89 = load i32, ptr %27, align 4, !tbaa !20
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = load ptr, ptr %21, align 8, !tbaa !5
  %92 = load i32, ptr %28, align 4, !tbaa !21
  call void %88(i32 noundef %89, ptr noundef %90, ptr noundef %91, i32 noundef %92, float noundef -5.000000e-01)
  %93 = load ptr, ptr %30, align 8, !tbaa !5
  %94 = load i32, ptr %27, align 4, !tbaa !20
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  %96 = load ptr, ptr %23, align 8, !tbaa !5
  %97 = load i32, ptr %28, align 4, !tbaa !21
  call void %93(i32 noundef %94, ptr noundef %95, ptr noundef %96, i32 noundef %97, float noundef -1.000000e+00, float noundef 0.000000e+00)
  %98 = load ptr, ptr %31, align 8, !tbaa !5
  %99 = load i32, ptr %27, align 4, !tbaa !20
  %100 = load ptr, ptr %21, align 8, !tbaa !5
  %101 = load ptr, ptr %23, align 8, !tbaa !5
  %102 = load ptr, ptr %23, align 8, !tbaa !5
  %103 = load i32, ptr %28, align 4, !tbaa !21
  call void %98(i32 noundef %99, ptr noundef %100, ptr noundef %101, ptr noundef %102, i32 noundef %103)
  store i32 0, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 92, ptr %26) #5
  br label %120

104:                                              ; preds = %7
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %17, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %124

108:                                              ; preds = %39
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %17, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  br label %123

112:                                              ; preds = %42
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %17, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  br label %122

116:                                              ; preds = %45
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %17, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %122

120:                                              ; preds = %78, %75
  %121 = load i32, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  ret i32 %121

122:                                              ; preds = %116, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %123

123:                                              ; preds = %122, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %124

124:                                              ; preds = %123, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr %17, align 8
  %127 = load i32, ptr %18, align 4
  %128 = insertvalue { ptr, i32 } poison, ptr %126, 0
  %129 = insertvalue { ptr, i32 } %128, i32 %127, 1
  resume { ptr, i32 } %129
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z24get_array_power_function4Arch(i32 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z24get_array_scale_function4Arch(i32 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z22get_array_mul_function4Arch(i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 uwtable "min-legal-vector-width"="64" "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 = { 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 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS8ArchInfo", !11, i64 0, !6, i64 8}
!11 = !{!"_ZTS4Arch", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS2EE", !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS10TensorDesc", !17, i64 0, !18, i64 4, !19, i64 8, !7, i64 12}
!17 = !{!"_ZTS8DataType", !7, i64 0}
!18 = !{!"_ZTS10DataFormat", !7, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!17, !17, i64 0}
!21 = !{!19, !19, 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"

%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }
%class.Tensor = type { %"class.std::shared_ptr", %"class.std::shared_ptr.0" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor8get_descEv(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; 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 uwtable
define dso_local noundef range(i32 0, 52) i32 @_Z27batch_norm_transform_filter6TensorS_18BatchNormParamSpecS_S_P8ArchInfo(ptr noundef nonnull %0, ptr noundef %1, i64 %2, <2 x float> %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef readonly %6) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %class.Tensor, align 8
  %9 = alloca %class.Tensor, align 8
  %10 = alloca %class.Tensor, align 8
  %11 = alloca %class.Tensor, align 8
  %12 = alloca %struct.TensorDesc, align 4
  %13 = load i32, ptr %6, align 8, !tbaa !5
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %14 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %8, i32 noundef %13)
          to label %15 unwind label %28

15:                                               ; preds = %7
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %16 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %9, i32 noundef %13)
          to label %17 unwind label %30

17:                                               ; preds = %15
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  %18 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %10, i32 noundef %13)
          to label %19 unwind label %32

19:                                               ; preds = %17
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  %20 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %11, i32 noundef %13)
          to label %21 unwind label %34

21:                                               ; preds = %19
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  switch i32 %13, label %36 [
    i32 10, label %22
    i32 9, label %22
    i32 8, label %22
    i32 6, label %22
    i32 5, label %22
    i32 4, label %22
    i32 3, label %22
    i32 1, label %22
  ]

22:                                               ; preds = %21, %21, %21, %21, %21, %21, %21, %21
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %12) #5
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %12, ptr noundef nonnull align 8 dereferenceable(32) %0)
  %23 = load i32, ptr %12, align 4, !tbaa !11
  %24 = call noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %25 = call noundef ptr @_Z24get_array_power_function4Arch(i32 noundef %13)
  %26 = call noundef ptr @_Z24get_array_scale_function4Arch(i32 noundef %13)
  %27 = call noundef ptr @_Z22get_array_mul_function4Arch(i32 noundef %13)
  call void %25(i32 noundef %23, ptr noundef %14, ptr noundef %18, i32 noundef %24, float noundef -5.000000e-01)
  call void %26(i32 noundef %23, ptr noundef %16, ptr noundef %20, i32 noundef %24, float noundef -1.000000e+00, float noundef 0.000000e+00)
  call void %27(i32 noundef %23, ptr noundef %18, ptr noundef %20, ptr noundef %20, i32 noundef %24)
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %12) #5
  br label %36

28:                                               ; preds = %7
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %37

30:                                               ; preds = %15
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %37

32:                                               ; preds = %17
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %37

34:                                               ; preds = %19
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %37

36:                                               ; preds = %21, %22
  %.056 = phi i32 [ 0, %22 ], [ 51, %21 ]
  ret i32 %.056

37:                                               ; preds = %30, %34, %32, %28
  %.sink = phi ptr [ %9, %30 ], [ %11, %34 ], [ %10, %32 ], [ %8, %28 ]
  %.pn.pn.pn = phi { ptr, i32 } [ %31, %30 ], [ %35, %34 ], [ %33, %32 ], [ %29, %28 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #5
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z24get_array_power_function4Arch(i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z24get_array_scale_function4Arch(i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z22get_array_mul_function4Arch(i32 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 uwtable "min-legal-vector-width"="64" "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 = { 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 = { 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 #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 = !{!"_ZTS8ArchInfo", !7, i64 0, !10, i64 8}
!7 = !{!"_ZTS4Arch", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS10TensorDesc", !13, i64 0, !14, i64 4, !15, i64 8, !8, i64 12}
!13 = !{!"_ZTS8DataType", !8, i64 0}
!14 = !{!"_ZTS10DataFormat", !8, i64 0}
!15 = !{!"int", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass