; LLVM IR from huawei-noah/bolt :: compute/tensor/src/cpu/arm (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.TensorDesc = type { i32, i32, i32, [20 x i32] }
%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 }

@.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 @_Z59depthwise_pointwise_convolution_infer_forward_algorithm_arm10TensorDescS_S_S_20ConvolutionParamSpec17ConvolutionPolicyP36DepthwiseConvolutionForwardAlgorithm8DataType(ptr noundef byval(%struct.TensorDesc) align 8 %0, ptr noundef byval(%struct.TensorDesc) align 8 %1, ptr noundef byval(%struct.TensorDesc) align 8 %2, ptr noundef byval(%struct.TensorDesc) align 8 %3, ptr noundef byval(%struct.ConvolutionParamSpec) align 8 %4, i32 noundef %5, ptr noundef %6, i32 noundef %7) #0 {
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %struct.TensorDesc, align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %struct.TensorDesc, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %struct.TensorDesc, align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  store i32 %5, ptr %10, align 4, !tbaa !5
  store ptr %6, ptr %11, align 8, !tbaa !9
  store i32 %7, ptr %12, align 4, !tbaa !11
  %50 = load ptr, ptr %11, align 8, !tbaa !9
  %51 = icmp eq ptr null, %50
  br i1 %51, label %52, label %68

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

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

67:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %68

68:                                               ; preds = %67, %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !17
  %69 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %35, ptr noundef %16, ptr noundef %19, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25)
  store i32 %69, ptr %34, align 4, !tbaa !13
  %70 = load i32, ptr %34, align 4, !tbaa !13
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %84

72:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %73 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %74 = trunc i64 %73 to i32
  store i32 %74, ptr %36, align 4, !tbaa !15
  %75 = load i32, ptr %36, align 4, !tbaa !15
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %75)
  %77 = load ptr, ptr @stdout, align 8, !tbaa !9
  %78 = call i32 @fflush(ptr noundef %77)
  %79 = load i32, ptr %34, align 4, !tbaa !13
  %80 = call ptr @ee2str(i32 noundef %79)
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %80)
  %82 = load ptr, ptr @stdout, align 8, !tbaa !9
  %83 = call i32 @fflush(ptr noundef %82)
  call void @exit(i32 noundef 1) #8
  unreachable

84:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 8 %1, i64 92, i1 false), !tbaa.struct !17
  %85 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %38, ptr noundef %17, ptr noundef %20, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29)
  store i32 %85, ptr %37, align 4, !tbaa !13
  %86 = load i32, ptr %37, align 4, !tbaa !13
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %100

88:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %89 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %90 = trunc i64 %89 to i32
  store i32 %90, ptr %39, align 4, !tbaa !15
  %91 = load i32, ptr %39, align 4, !tbaa !15
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %91)
  %93 = load ptr, ptr @stdout, align 8, !tbaa !9
  %94 = call i32 @fflush(ptr noundef %93)
  %95 = load i32, ptr %37, align 4, !tbaa !13
  %96 = call ptr @ee2str(i32 noundef %95)
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %96)
  %98 = load ptr, ptr @stdout, align 8, !tbaa !9
  %99 = call i32 @fflush(ptr noundef %98)
  call void @exit(i32 noundef 1) #8
  unreachable

100:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 8 %3, i64 92, i1 false), !tbaa.struct !17
  %101 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %41, ptr noundef %18, ptr noundef %21, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33)
  store i32 %101, ptr %40, align 4, !tbaa !13
  %102 = load i32, ptr %40, align 4, !tbaa !13
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %116

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %105 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %106 = trunc i64 %105 to i32
  store i32 %106, ptr %42, align 4, !tbaa !15
  %107 = load i32, ptr %42, align 4, !tbaa !15
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %107)
  %109 = load ptr, ptr @stdout, align 8, !tbaa !9
  %110 = call i32 @fflush(ptr noundef %109)
  %111 = load i32, ptr %40, align 4, !tbaa !13
  %112 = call ptr @ee2str(i32 noundef %111)
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %112)
  %114 = load ptr, ptr @stdout, align 8, !tbaa !9
  %115 = call i32 @fflush(ptr noundef %114)
  call void @exit(i32 noundef 1) #8
  unreachable

116:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  %117 = load ptr, ptr %11, align 8, !tbaa !9
  store i32 1, ptr %117, align 4, !tbaa !21
  %118 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %4, i32 0, i32 15
  %119 = load i32, ptr %118, align 4, !tbaa !23
  %120 = icmp ne i32 %119, 1
  br i1 %120, label %125, label %121

121:                                              ; preds = %116
  %122 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %4, i32 0, i32 16
  %123 = load i32, ptr %122, align 8, !tbaa !28
  %124 = icmp ne i32 %123, 1
  br i1 %124, label %125, label %127

125:                                              ; preds = %121, %116
  %126 = load i32, ptr %15, align 4, !tbaa !13
  store i32 %126, ptr %9, align 4
  store i32 1, ptr %43, align 4
  br label %178

127:                                              ; preds = %121
  %128 = load i32, ptr %12, align 4, !tbaa !11
  switch i32 %128, label %175 [
    i32 4, label %129
  ]

129:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  %130 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %4, i32 0, i32 5
  %131 = load i32, ptr %130, align 4, !tbaa !29
  store i32 %131, ptr %44, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  %132 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %4, i32 0, i32 6
  %133 = load i32, ptr %132, align 8, !tbaa !30
  store i32 %133, ptr %45, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  %134 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %4, i32 0, i32 9
  %135 = load i32, ptr %134, align 4, !tbaa !31
  store i32 %135, ptr %46, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  %136 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %4, i32 0, i32 10
  %137 = load i32, ptr %136, align 8, !tbaa !32
  store i32 %137, ptr %47, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  %138 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %4, i32 0, i32 11
  %139 = load i32, ptr %138, align 4, !tbaa !33
  store i32 %139, ptr %48, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  %140 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %4, i32 0, i32 12
  %141 = load i32, ptr %140, align 8, !tbaa !34
  store i32 %141, ptr %49, align 4, !tbaa !15
  %142 = load i32, ptr %28, align 4, !tbaa !15
  %143 = icmp eq i32 %142, 3
  br i1 %143, label %144, label %174

144:                                              ; preds = %129
  %145 = load i32, ptr %29, align 4, !tbaa !15
  %146 = icmp eq i32 %145, 3
  br i1 %146, label %147, label %174

147:                                              ; preds = %144
  %148 = load i32, ptr %44, align 4, !tbaa !15
  %149 = icmp eq i32 %148, 1
  br i1 %149, label %150, label %174

150:                                              ; preds = %147
  %151 = load i32, ptr %45, align 4, !tbaa !15
  %152 = icmp eq i32 %151, 1
  br i1 %152, label %153, label %174

153:                                              ; preds = %150
  %154 = load i32, ptr %46, align 4, !tbaa !15
  %155 = icmp eq i32 %154, 1
  br i1 %155, label %156, label %174

156:                                              ; preds = %153
  %157 = load i32, ptr %47, align 4, !tbaa !15
  %158 = icmp eq i32 %157, 1
  br i1 %158, label %159, label %174

159:                                              ; preds = %156
  %160 = load i32, ptr %48, align 4, !tbaa !15
  %161 = icmp eq i32 %160, 1
  br i1 %161, label %162, label %174

162:                                              ; preds = %159
  %163 = load i32, ptr %49, align 4, !tbaa !15
  %164 = icmp eq i32 %163, 1
  br i1 %164, label %165, label %174

165:                                              ; preds = %162
  %166 = load i32, ptr %33, align 4, !tbaa !15
  %167 = urem i32 %166, 4
  %168 = icmp eq i32 %167, 0
  br i1 %168, label %169, label %174

169:                                              ; preds = %165
  %170 = load i32, ptr %33, align 4, !tbaa !15
  %171 = icmp uge i32 %170, 12
  br i1 %171, label %172, label %174

172:                                              ; preds = %169
  %173 = load ptr, ptr %11, align 8, !tbaa !9
  store i32 3, ptr %173, align 4, !tbaa !21
  br label %174

174:                                              ; preds = %172, %169, %165, %162, %159, %156, %153, %150, %147, %144, %129
  store i32 2, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %176

175:                                              ; preds = %127
  br label %176

176:                                              ; preds = %175, %174
  %177 = load i32, ptr %15, align 4, !tbaa !13
  store i32 %177, ptr %9, align 4
  store i32 1, ptr %43, align 4
  br label %178

178:                                              ; preds = %176, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  %179 = load i32, ptr %9, align 4
  ret i32 %179
}

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; 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) #6

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_ZTS17ConvolutionPolicy", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS8DataType", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS2EE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{i64 0, i64 4, !11, i64 4, i64 4, !18, i64 8, i64 4, !15, i64 12, i64 80, !20}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS10DataFormat", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"_ZTS36DepthwiseConvolutionForwardAlgorithm", !7, i64 0}
!23 = !{!24, !16, i64 60}
!24 = !{!"_ZTS20ConvolutionParamSpec", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !16, i64 40, !16, i64 44, !16, i64 48, !16, i64 52, !16, i64 56, !16, i64 60, !16, i64 64, !16, i64 68, !25, i64 72, !26, i64 76, !26, i64 80, !7, i64 84, !27, i64 92, !16, i64 96, !16, i64 100, !16, i64 104}
!25 = !{!"_ZTS15ConvolutionMode", !7, i64 0}
!26 = !{!"_ZTS14ActivationMode", !7, i64 0}
!27 = !{!"_ZTS9RoundMode", !7, i64 0}
!28 = !{!24, !16, i64 64}
!29 = !{!24, !16, i64 20}
!30 = !{!24, !16, i64 24}
!31 = !{!24, !16, i64 36}
!32 = !{!24, !16, i64 40}
!33 = !{!24, !16, i64 44}
!34 = !{!24, !16, i64 48}


; 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] }
%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 }

@.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 nounwind uwtable
define dso_local noundef i32 @_Z59depthwise_pointwise_convolution_infer_forward_algorithm_arm10TensorDescS_S_S_20ConvolutionParamSpec17ConvolutionPolicyP36DepthwiseConvolutionForwardAlgorithm8DataType(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %1, ptr nocapture noundef readnone byval(%struct.TensorDesc) align 8 %2, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %3, ptr nocapture noundef readonly byval(%struct.ConvolutionParamSpec) align 8 %4, i32 noundef %5, ptr noundef writeonly %6, i32 noundef %7) local_unnamed_addr #0 {
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = icmp eq ptr %6, null
  br i1 %27, label %28, label %38

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

38:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #6
  %39 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %9, ptr noundef nonnull %12, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18)
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %50, label %40

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

50:                                               ; preds = %38
  %51 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %1, ptr noundef nonnull %10, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22)
  %.not44 = icmp eq i32 %51, 0
  br i1 %.not44, label %62, label %52

52:                                               ; preds = %50
  %53 = call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %54 = trunc i64 %53 to i32
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %54)
  %56 = load ptr, ptr @stdout, align 8, !tbaa !5
  %57 = call i32 @fflush(ptr noundef %56)
  %58 = call ptr @ee2str(i32 noundef %51)
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %58)
  %60 = load ptr, ptr @stdout, align 8, !tbaa !5
  %61 = call i32 @fflush(ptr noundef %60)
  call void @exit(i32 noundef 1) #7
  unreachable

62:                                               ; preds = %50
  %63 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %3, ptr noundef nonnull %11, ptr noundef nonnull %14, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %26)
  %.not45 = icmp eq i32 %63, 0
  br i1 %.not45, label %74, label %64

64:                                               ; preds = %62
  %65 = call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %66 = trunc i64 %65 to i32
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %66)
  %68 = load ptr, ptr @stdout, align 8, !tbaa !5
  %69 = call i32 @fflush(ptr noundef %68)
  %70 = call ptr @ee2str(i32 noundef %63)
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %70)
  %72 = load ptr, ptr @stdout, align 8, !tbaa !5
  %73 = call i32 @fflush(ptr noundef %72)
  call void @exit(i32 noundef 1) #7
  unreachable

74:                                               ; preds = %62
  store i32 1, ptr %6, align 4, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %4, i64 60
  %76 = load i32, ptr %75, align 4, !tbaa !11
  %77 = icmp eq i32 %76, 1
  %78 = getelementptr inbounds i8, ptr %4, i64 64
  %79 = load i32, ptr %78, align 8
  %80 = icmp eq i32 %79, 1
  %or.cond.not49 = select i1 %77, i1 %80, i1 false
  %cond = icmp eq i32 %7, 4
  %or.cond46 = and i1 %cond, %or.cond.not49
  br i1 %or.cond46, label %81, label %103

81:                                               ; preds = %74
  %82 = getelementptr inbounds i8, ptr %4, i64 20
  %83 = load <2 x i32>, ptr %82, align 4, !tbaa !17
  %84 = getelementptr inbounds i8, ptr %4, i64 36
  %85 = load <4 x i32>, ptr %84, align 4, !tbaa !17
  %86 = load i32, ptr %21, align 4, !tbaa !17
  %87 = load i32, ptr %22, align 4
  %88 = insertelement <8 x i32> poison, i32 %86, i64 0
  %89 = insertelement <8 x i32> %88, i32 %87, i64 1
  %90 = shufflevector <2 x i32> %83, <2 x i32> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
  %91 = shufflevector <8 x i32> %89, <8 x i32> %90, <8 x i32> <i32 0, i32 1, i32 8, i32 9, i32 poison, i32 poison, i32 poison, i32 poison>
  %92 = shufflevector <4 x i32> %85, <4 x i32> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison>
  %93 = shufflevector <8 x i32> %91, <8 x i32> %92, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 8, i32 9, i32 10, i32 11>
  %.fr = freeze <8 x i32> %93
  %94 = icmp ne <8 x i32> %.fr, <i32 3, i32 3, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>
  %95 = bitcast <8 x i1> %94 to i8
  %96 = icmp eq i8 %95, 0
  br i1 %96, label %97, label %103

97:                                               ; preds = %81
  %98 = load i32, ptr %26, align 4
  %99 = and i32 %98, 3
  %100 = icmp eq i32 %99, 0
  %101 = icmp ugt i32 %98, 11
  %or.cond18 = and i1 %101, %100
  br i1 %or.cond18, label %102, label %103

102:                                              ; preds = %97
  store i32 3, ptr %6, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %102, %97, %81, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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 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 = { 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, !10, i64 0}
!10 = !{!"_ZTS36DepthwiseConvolutionForwardAlgorithm", !7, i64 0}
!11 = !{!12, !13, i64 60}
!12 = !{!"_ZTS20ConvolutionParamSpec", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !14, i64 72, !15, i64 76, !15, i64 80, !7, i64 84, !16, i64 92, !13, i64 96, !13, i64 100, !13, i64 104}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS15ConvolutionMode", !7, i64 0}
!15 = !{!"_ZTS14ActivationMode", !7, i64 0}
!16 = !{!"_ZTS9RoundMode", !7, i64 0}
!17 = !{!13, !13, i64 0}


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