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

; 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.ConvolutionParamSpec = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %union.ActivationSpec, i32, i32, i32, i32 }
%union.ActivationSpec = type { %struct.ClipParamSpec }
%struct.ClipParamSpec = type { float, float }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }
%struct.ArchInfo = type { i32, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z49depthwise_pointwise_convolution_infer_output_sizeP6TensorS_S_20ConvolutionParamSpecS0_8DataTypeP8ArchInfo(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef byval(%struct.ConvolutionParamSpec) align 8 %3, ptr noundef %4, i32 noundef %5, ptr noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.TensorDesc, align 4
  %19 = alloca %struct.TensorDesc, align 4
  %20 = alloca %struct.TensorDesc, align 4
  %21 = alloca %struct.TensorDesc, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.TensorDesc, align 8
  %24 = alloca %struct.TensorDesc, align 8
  %25 = alloca %struct.TensorDesc, align 8
  %26 = alloca %struct.ConvolutionParamSpec, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %struct.TensorDesc, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  store ptr %6, ptr %13, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %50

34:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 1, ptr %14, align 4, !tbaa !11
  %35 = load i32, ptr %14, align 4, !tbaa !11
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %49

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %38 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %15, align 4, !tbaa !13
  %40 = load i32, ptr %15, align 4, !tbaa !13
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %40)
  %42 = load ptr, ptr @stdout, align 8, !tbaa !5
  %43 = call i32 @fflush(ptr noundef %42)
  %44 = load i32, ptr %14, align 4, !tbaa !11
  %45 = call ptr @ee2str(i32 noundef %44)
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %45)
  %47 = load ptr, ptr @stdout, align 8, !tbaa !5
  %48 = call i32 @fflush(ptr noundef %47)
  call void @exit(i32 noundef 1) #9
  unreachable

49:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %50

50:                                               ; preds = %49, %7
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = icmp eq ptr %51, null
  br i1 %52, label %53, label %69

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 1, ptr %16, align 4, !tbaa !11
  %54 = load i32, ptr %16, align 4, !tbaa !11
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %68

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %57 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %58 = trunc i64 %57 to i32
  store i32 %58, ptr %17, align 4, !tbaa !13
  %59 = load i32, ptr %17, align 4, !tbaa !13
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %59)
  %61 = load ptr, ptr @stdout, align 8, !tbaa !5
  %62 = call i32 @fflush(ptr noundef %61)
  %63 = load i32, ptr %16, align 4, !tbaa !11
  %64 = call ptr @ee2str(i32 noundef %63)
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %64)
  %66 = load ptr, ptr @stdout, align 8, !tbaa !5
  %67 = call i32 @fflush(ptr noundef %66)
  call void @exit(i32 noundef 1) #9
  unreachable

68:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %69

69:                                               ; preds = %68, %50
  call void @llvm.lifetime.start.p0(i64 92, ptr %18) #8
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %18, ptr noundef nonnull align 8 dereferenceable(32) %70)
  call void @llvm.lifetime.start.p0(i64 92, ptr %19) #8
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %19, ptr noundef nonnull align 8 dereferenceable(32) %71)
  call void @llvm.lifetime.start.p0(i64 92, ptr %20) #8
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %20, ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @llvm.lifetime.start.p0(i64 92, ptr %21) #8
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %21, ptr noundef nonnull align 8 dereferenceable(32) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %18, i64 92, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %20, i64 92, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %21, i64 92, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 8 %3, i64 108, i1 false), !tbaa.struct !19
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = call noundef i32 @_Z53depthwise_pointwise_convolution_infer_output_size_cpu10TensorDescS_S_20ConvolutionParamSpecPS_8DataType(ptr noundef byval(%struct.TensorDesc) align 8 %23, ptr noundef byval(%struct.TensorDesc) align 8 %24, ptr noundef byval(%struct.TensorDesc) align 8 %25, ptr noundef byval(%struct.ConvolutionParamSpec) align 8 %26, ptr noundef %19, i32 noundef %72)
  store i32 %73, ptr %22, align 4, !tbaa !11
  %74 = load i32, ptr %22, align 4, !tbaa !11
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %88

76:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %77 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %78 = trunc i64 %77 to i32
  store i32 %78, ptr %27, align 4, !tbaa !13
  %79 = load i32, ptr %27, align 4, !tbaa !13
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %79)
  %81 = load ptr, ptr @stdout, align 8, !tbaa !5
  %82 = call i32 @fflush(ptr noundef %81)
  %83 = load i32, ptr %22, align 4, !tbaa !11
  %84 = call ptr @ee2str(i32 noundef %83)
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %84)
  %86 = load ptr, ptr @stdout, align 8, !tbaa !5
  %87 = call i32 @fflush(ptr noundef %86)
  call void @exit(i32 noundef 1) #9
  unreachable

88:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ArchInfo, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !26
  %92 = icmp eq i32 %91, 2
  br i1 %92, label %98, label %93

93:                                               ; preds = %88
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ArchInfo, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !26
  %97 = icmp eq i32 %96, 7
  br i1 %97, label %98, label %99

98:                                               ; preds = %93, %88
  br label %127

99:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %100 = getelementptr inbounds %struct.TensorDesc, ptr %21, i32 0, i32 3
  %101 = getelementptr inbounds %struct.TensorDesc, ptr %21, i32 0, i32 2
  %102 = load i32, ptr %101, align 4, !tbaa !29
  %103 = sub i32 %102, 1
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds [20 x i32], ptr %100, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !13
  store i32 %106, ptr %28, align 4, !tbaa !13
  %107 = load i32, ptr %28, align 4, !tbaa !13
  %108 = urem i32 %107, 8
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %126

110:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 51, ptr %29, align 4, !tbaa !11
  %111 = load i32, ptr %29, align 4, !tbaa !11
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %125

113:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %114 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %115 = trunc i64 %114 to i32
  store i32 %115, ptr %30, align 4, !tbaa !13
  %116 = load i32, ptr %30, align 4, !tbaa !13
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %116)
  %118 = load ptr, ptr @stdout, align 8, !tbaa !5
  %119 = call i32 @fflush(ptr noundef %118)
  %120 = load i32, ptr %29, align 4, !tbaa !11
  %121 = call ptr @ee2str(i32 noundef %120)
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %121)
  %123 = load ptr, ptr @stdout, align 8, !tbaa !5
  %124 = call i32 @fflush(ptr noundef %123)
  call void @exit(i32 noundef 1) #9
  unreachable

125:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %126

126:                                              ; preds = %125, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %127

127:                                              ; preds = %126, %98
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %19, i64 92, i1 false), !tbaa.struct !15
  call void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %128, ptr noundef byval(%struct.TensorDesc) align 8 %31)
  call void @llvm.lifetime.end.p0(i64 92, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %18) #8
  ret i32 0
}

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

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) #2

declare i32 @printf(ptr noundef, ...) #3

declare i32 @fflush(ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @ee2str(i32 noundef) #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

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

; 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)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z53depthwise_pointwise_convolution_infer_output_size_cpu10TensorDescS_S_20ConvolutionParamSpecPS_8DataType(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef byval(%struct.ConvolutionParamSpec) align 8, ptr noundef, i32 noundef) #6

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef byval(%struct.TensorDesc) align 8) #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = { 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { 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, !10, i64 0}
!10 = !{!"_ZTS8DataType", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS2EE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 4, !9, i64 4, i64 4, !16, i64 8, i64 4, !13, i64 12, i64 80, !18}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS10DataFormat", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{i64 0, i64 4, !13, i64 4, i64 4, !13, i64 8, i64 4, !13, i64 12, i64 4, !13, i64 16, i64 4, !13, i64 20, i64 4, !13, i64 24, i64 4, !13, i64 28, i64 4, !13, i64 32, i64 4, !13, i64 36, i64 4, !13, i64 40, i64 4, !13, i64 44, i64 4, !13, i64 48, i64 4, !13, i64 52, i64 4, !13, i64 56, i64 4, !13, i64 60, i64 4, !13, i64 64, i64 4, !13, i64 68, i64 4, !13, i64 72, i64 4, !20, i64 76, i64 4, !22, i64 80, i64 4, !22, i64 84, i64 8, !18, i64 92, i64 4, !24, i64 96, i64 4, !13, i64 100, i64 4, !13, i64 104, i64 4, !13}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTS15ConvolutionMode", !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTS14ActivationMode", !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTS9RoundMode", !7, i64 0}
!26 = !{!27, !28, i64 0}
!27 = !{!"_ZTS8ArchInfo", !28, i64 0, !6, i64 8}
!28 = !{!"_ZTS4Arch", !7, i64 0}
!29 = !{!30, !14, i64 8}
!30 = !{!"_ZTS10TensorDesc", !10, i64 0, !17, i64 4, !14, i64 8, !7, i64 12}


; 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.ConvolutionParamSpec = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %union.ActivationSpec, i32, i32, i32, i32 }
%union.ActivationSpec = type { %struct.ClipParamSpec }
%struct.ClipParamSpec = type { float, float }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z49depthwise_pointwise_convolution_infer_output_sizeP6TensorS_S_20ConvolutionParamSpecS0_8DataTypeP8ArchInfo(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly byval(%struct.ConvolutionParamSpec) align 8 %3, ptr noundef %4, i32 noundef %5, ptr nocapture noundef readonly %6) local_unnamed_addr #0 {
  %8 = alloca %struct.TensorDesc, align 8
  %9 = alloca %struct.TensorDesc, align 8
  %10 = alloca %struct.TensorDesc, align 8
  %11 = alloca %struct.TensorDesc, align 8
  %12 = icmp eq ptr %0, null
  br i1 %12, label %13, label %23

13:                                               ; preds = %7
  %14 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %15 = trunc i64 %14 to i32
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %15)
  %17 = load ptr, ptr @stdout, align 8, !tbaa !5
  %18 = tail call i32 @fflush(ptr noundef %17)
  %19 = tail call ptr @ee2str(i32 noundef 1)
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %19)
  %21 = load ptr, ptr @stdout, align 8, !tbaa !5
  %22 = tail call i32 @fflush(ptr noundef %21)
  tail call void @exit(i32 noundef 1) #8
  unreachable

23:                                               ; preds = %7
  %24 = icmp eq ptr %4, null
  br i1 %24, label %25, label %35

25:                                               ; preds = %23
  %26 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %27 = trunc i64 %26 to i32
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %27)
  %29 = load ptr, ptr @stdout, align 8, !tbaa !5
  %30 = tail call i32 @fflush(ptr noundef %29)
  %31 = tail call ptr @ee2str(i32 noundef 1)
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %31)
  %33 = load ptr, ptr @stdout, align 8, !tbaa !5
  %34 = tail call i32 @fflush(ptr noundef %33)
  tail call void @exit(i32 noundef 1) #8
  unreachable

35:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %8) #7
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %9) #7
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %9, ptr noundef nonnull align 8 dereferenceable(32) %4)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %10) #7
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %10, ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %11) #7
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %11, ptr noundef nonnull align 8 dereferenceable(32) %2)
  %36 = call noundef i32 @_Z53depthwise_pointwise_convolution_infer_output_size_cpu10TensorDescS_S_20ConvolutionParamSpecPS_8DataType(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %8, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %10, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %11, ptr noundef nonnull byval(%struct.ConvolutionParamSpec) align 8 %3, ptr noundef nonnull %9, i32 noundef %5)
  %.not = icmp eq i32 %36, 0
  br i1 %.not, label %47, label %37

37:                                               ; preds = %35
  %38 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %39 = trunc i64 %38 to i32
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %39)
  %41 = load ptr, ptr @stdout, align 8, !tbaa !5
  %42 = call i32 @fflush(ptr noundef %41)
  %43 = call ptr @ee2str(i32 noundef %36)
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %43)
  %45 = load ptr, ptr @stdout, align 8, !tbaa !5
  %46 = call i32 @fflush(ptr noundef %45)
  call void @exit(i32 noundef 1) #8
  unreachable

47:                                               ; preds = %35
  %48 = load i32, ptr %6, align 8, !tbaa !9
  switch i32 %48, label %49 [
    i32 2, label %68
    i32 7, label %68
  ]

49:                                               ; preds = %47
  %50 = getelementptr inbounds i8, ptr %11, i64 12
  %51 = getelementptr inbounds i8, ptr %11, i64 8
  %52 = load i32, ptr %51, align 8, !tbaa !12
  %53 = add i32 %52, -1
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds [20 x i32], ptr %50, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !17
  %57 = and i32 %56, 7
  %.not21 = icmp eq i32 %57, 0
  br i1 %.not21, label %68, label %58

58:                                               ; preds = %49
  %59 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %60 = trunc i64 %59 to i32
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %60)
  %62 = load ptr, ptr @stdout, align 8, !tbaa !5
  %63 = call i32 @fflush(ptr noundef %62)
  %64 = call ptr @ee2str(i32 noundef 51)
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %64)
  %66 = load ptr, ptr @stdout, align 8, !tbaa !5
  %67 = call i32 @fflush(ptr noundef %66)
  call void @exit(i32 noundef 1) #8
  unreachable

68:                                               ; preds = %49, %47, %47
  call void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9)
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %8) #7
  ret i32 0
}

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

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @ee2str(i32 noundef) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

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

; 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 #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z53depthwise_pointwise_convolution_infer_output_size_cpu10TensorDescS_S_20ConvolutionParamSpecPS_8DataType(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef byval(%struct.ConvolutionParamSpec) align 8, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 0}
!10 = !{!"_ZTS8ArchInfo", !11, i64 0, !6, i64 8}
!11 = !{!"_ZTS4Arch", !7, i64 0}
!12 = !{!13, !16, i64 8}
!13 = !{!"_ZTS10TensorDesc", !14, i64 0, !15, i64 4, !16, i64 8, !7, i64 12}
!14 = !{!"_ZTS8DataType", !7, i64 0}
!15 = !{!"_ZTS10DataFormat", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!16, !16, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass