; LLVM IR from huawei-noah/bolt :: compute/tensor/src/cpu/arm/bnn (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 }
%struct.ActivationParamSpec = type { i32, [4 x 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 @_Z15convolution_bnn10TensorDescPKtS_PKh20ConvolutionParamSpecS_S1_S_S1_jPvS_Pt19ActivationParamSpec4Arch(ptr noundef byval(%struct.TensorDesc) align 8 %0, ptr noundef %1, ptr noundef byval(%struct.TensorDesc) align 8 %2, ptr noundef %3, ptr noundef byval(%struct.ConvolutionParamSpec) align 8 %4, ptr noundef byval(%struct.TensorDesc) align 8 %5, ptr noundef %6, ptr noundef byval(%struct.TensorDesc) align 8 %7, ptr noundef %8, i32 noundef %9, ptr noundef %10, ptr noundef byval(%struct.TensorDesc) align 8 %11, ptr noundef %12, ptr noundef byval(%struct.ActivationParamSpec) align 8 %13, i32 noundef %14) #0 {
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %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 i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca %struct.TensorDesc, align 8
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca %struct.TensorDesc, align 8
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca %struct.TensorDesc, align 8
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca %struct.TensorDesc, align 8
  %61 = alloca %struct.TensorDesc, align 8
  %62 = alloca %struct.ConvolutionParamSpec, align 8
  %63 = alloca %struct.TensorDesc, align 8
  %64 = alloca %struct.TensorDesc, align 8
  %65 = alloca %struct.TensorDesc, align 8
  %66 = alloca %struct.ActivationParamSpec, align 8
  %67 = alloca %struct.TensorDesc, align 8
  %68 = alloca %struct.TensorDesc, align 8
  %69 = alloca %struct.ConvolutionParamSpec, align 8
  %70 = alloca %struct.TensorDesc, align 8
  %71 = alloca %struct.TensorDesc, align 8
  %72 = alloca %struct.TensorDesc, align 8
  %73 = alloca %struct.ActivationParamSpec, align 8
  store ptr %1, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store i32 %9, ptr %20, align 4, !tbaa !9
  store ptr %10, ptr %21, align 8, !tbaa !5
  store ptr %12, ptr %22, align 8, !tbaa !5
  store i32 %14, ptr %23, align 4, !tbaa !11
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = icmp eq ptr null, %74
  br i1 %75, label %91, label %76

76:                                               ; preds = %15
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = icmp eq ptr null, %77
  br i1 %78, label %91, label %79

79:                                               ; preds = %76
  %80 = load ptr, ptr %22, align 8, !tbaa !5
  %81 = icmp eq ptr null, %80
  br i1 %81, label %91, label %82

82:                                               ; preds = %79
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  %84 = icmp eq ptr null, %83
  br i1 %84, label %91, label %85

85:                                               ; preds = %82
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  %87 = icmp eq ptr null, %86
  br i1 %87, label %91, label %88

88:                                               ; preds = %85
  %89 = load ptr, ptr %21, align 8, !tbaa !5
  %90 = icmp eq ptr null, %89
  br i1 %90, label %91, label %107

91:                                               ; preds = %88, %85, %82, %79, %76, %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 1, ptr %24, align 4, !tbaa !13
  %92 = load i32, ptr %24, align 4, !tbaa !13
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %106

94:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %95 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %96 = trunc i64 %95 to i32
  store i32 %96, ptr %25, align 4, !tbaa !9
  %97 = load i32, ptr %25, align 4, !tbaa !9
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %97)
  %99 = load ptr, ptr @stdout, align 8, !tbaa !5
  %100 = call i32 @fflush(ptr noundef %99)
  %101 = load i32, ptr %24, align 4, !tbaa !13
  %102 = call ptr @ee2str(i32 noundef %101)
  %103 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %102)
  %104 = load ptr, ptr @stdout, align 8, !tbaa !5
  %105 = call i32 @fflush(ptr noundef %104)
  call void @exit(i32 noundef 1) #9
  unreachable

106:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %107

107:                                              ; preds = %106, %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %108 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %45, ptr noundef %26, ptr noundef %29, ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef %35)
  store i32 %108, ptr %44, align 4, !tbaa !13
  %109 = load i32, ptr %44, align 4, !tbaa !13
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %123

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

123:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %124 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %48, ptr noundef %27, ptr noundef %30, ptr noundef %36, ptr noundef %37, ptr noundef %38, ptr noundef %39)
  store i32 %124, ptr %47, align 4, !tbaa !13
  %125 = load i32, ptr %47, align 4, !tbaa !13
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %139

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  %128 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %129 = trunc i64 %128 to i32
  store i32 %129, ptr %49, align 4, !tbaa !9
  %130 = load i32, ptr %49, align 4, !tbaa !9
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %130)
  %132 = load ptr, ptr @stdout, align 8, !tbaa !5
  %133 = call i32 @fflush(ptr noundef %132)
  %134 = load i32, ptr %47, align 4, !tbaa !13
  %135 = call ptr @ee2str(i32 noundef %134)
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %135)
  %137 = load ptr, ptr @stdout, align 8, !tbaa !5
  %138 = call i32 @fflush(ptr noundef %137)
  call void @exit(i32 noundef 1) #9
  unreachable

139:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 8 %11, i64 92, i1 false), !tbaa.struct !15
  %140 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %51, ptr noundef %28, ptr noundef %31, ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43)
  store i32 %140, ptr %50, align 4, !tbaa !13
  %141 = load i32, ptr %50, align 4, !tbaa !13
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %155

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %144 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %145 = trunc i64 %144 to i32
  store i32 %145, ptr %52, align 4, !tbaa !9
  %146 = load i32, ptr %52, align 4, !tbaa !9
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %146)
  %148 = load ptr, ptr @stdout, align 8, !tbaa !5
  %149 = call i32 @fflush(ptr noundef %148)
  %150 = load i32, ptr %50, align 4, !tbaa !13
  %151 = call ptr @ee2str(i32 noundef %150)
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %151)
  %153 = load ptr, ptr @stdout, align 8, !tbaa !5
  %154 = call i32 @fflush(ptr noundef %153)
  call void @exit(i32 noundef 1) #9
  unreachable

155:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  %156 = load i32, ptr %26, align 4, !tbaa !16
  %157 = icmp ne i32 %156, 4
  br i1 %157, label %158, label %174

158:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  store i32 2, ptr %53, align 4, !tbaa !13
  %159 = load i32, ptr %53, align 4, !tbaa !13
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %173

161:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  %162 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %163 = trunc i64 %162 to i32
  store i32 %163, ptr %54, align 4, !tbaa !9
  %164 = load i32, ptr %54, align 4, !tbaa !9
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %164)
  %166 = load ptr, ptr @stdout, align 8, !tbaa !5
  %167 = call i32 @fflush(ptr noundef %166)
  %168 = load i32, ptr %53, align 4, !tbaa !13
  %169 = call ptr @ee2str(i32 noundef %168)
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %169)
  %171 = load ptr, ptr @stdout, align 8, !tbaa !5
  %172 = call i32 @fflush(ptr noundef %171)
  call void @exit(i32 noundef 1) #9
  unreachable

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

174:                                              ; preds = %173, %155
  %175 = load i32, ptr %28, align 4, !tbaa !16
  %176 = icmp ne i32 %175, 4
  br i1 %176, label %177, label %193

177:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  store i32 2, ptr %55, align 4, !tbaa !13
  %178 = load i32, ptr %55, align 4, !tbaa !13
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %192

180:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #8
  %181 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %182 = trunc i64 %181 to i32
  store i32 %182, ptr %56, align 4, !tbaa !9
  %183 = load i32, ptr %56, align 4, !tbaa !9
  %184 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %183)
  %185 = load ptr, ptr @stdout, align 8, !tbaa !5
  %186 = call i32 @fflush(ptr noundef %185)
  %187 = load i32, ptr %55, align 4, !tbaa !13
  %188 = call ptr @ee2str(i32 noundef %187)
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %188)
  %190 = load ptr, ptr @stdout, align 8, !tbaa !5
  %191 = call i32 @fflush(ptr noundef %190)
  call void @exit(i32 noundef 1) #9
  unreachable

192:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  br label %193

193:                                              ; preds = %192, %174
  %194 = load i32, ptr %29, align 4, !tbaa !18
  %195 = icmp ne i32 %194, 2
  br i1 %195, label %199, label %196

196:                                              ; preds = %193
  %197 = load i32, ptr %31, align 4, !tbaa !18
  %198 = icmp ne i32 %197, 2
  br i1 %198, label %199, label %215

199:                                              ; preds = %196, %193
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #8
  store i32 2, ptr %57, align 4, !tbaa !13
  %200 = load i32, ptr %57, align 4, !tbaa !13
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %214

202:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #8
  %203 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %204 = trunc i64 %203 to i32
  store i32 %204, ptr %58, align 4, !tbaa !9
  %205 = load i32, ptr %58, align 4, !tbaa !9
  %206 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %205)
  %207 = load ptr, ptr @stdout, align 8, !tbaa !5
  %208 = call i32 @fflush(ptr noundef %207)
  %209 = load i32, ptr %57, align 4, !tbaa !13
  %210 = call ptr @ee2str(i32 noundef %209)
  %211 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %210)
  %212 = load ptr, ptr @stdout, align 8, !tbaa !5
  %213 = call i32 @fflush(ptr noundef %212)
  call void @exit(i32 noundef 1) #9
  unreachable

214:                                              ; preds = %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #8
  br label %215

215:                                              ; preds = %214, %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #8
  store i32 0, ptr %59, align 4, !tbaa !13
  %216 = load i32, ptr %27, align 4, !tbaa !16
  switch i32 %216, label %237 [
    i32 7, label %217
    i32 8, label %227
  ]

217:                                              ; preds = %215
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %218 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %219 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %62, ptr align 8 %4, i64 108, i1 false), !tbaa.struct !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 8 %5, i64 92, i1 false), !tbaa.struct !15
  %220 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 8 %7, i64 92, i1 false), !tbaa.struct !15
  %221 = load ptr, ptr %19, align 8, !tbaa !5
  %222 = load i32, ptr %20, align 4, !tbaa !9
  %223 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 8 %11, i64 92, i1 false), !tbaa.struct !15
  %224 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 8 %13, i64 20, i1 false), !tbaa.struct !28
  %225 = load i32, ptr %23, align 4, !tbaa !11
  %226 = call noundef i32 @_Z18convolution_dorefa10TensorDescPKtS_PKh20ConvolutionParamSpecS_S1_S_S1_jPvS_Pt19ActivationParamSpec4Arch(ptr noundef byval(%struct.TensorDesc) align 8 %60, ptr noundef %218, ptr noundef byval(%struct.TensorDesc) align 8 %61, ptr noundef %219, ptr noundef byval(%struct.ConvolutionParamSpec) align 8 %62, ptr noundef byval(%struct.TensorDesc) align 8 %63, ptr noundef %220, ptr noundef byval(%struct.TensorDesc) align 8 %64, ptr noundef %221, i32 noundef %222, ptr noundef %223, ptr noundef byval(%struct.TensorDesc) align 8 %65, ptr noundef %224, ptr noundef byval(%struct.ActivationParamSpec) align 8 %66, i32 noundef %225)
  store i32 %226, ptr %59, align 4, !tbaa !13
  br label %238

227:                                              ; preds = %215
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %229 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 8 %4, i64 108, i1 false), !tbaa.struct !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 8 %5, i64 92, i1 false), !tbaa.struct !15
  %230 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 8 %7, i64 92, i1 false), !tbaa.struct !15
  %231 = load ptr, ptr %19, align 8, !tbaa !5
  %232 = load i32, ptr %20, align 4, !tbaa !9
  %233 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 8 %11, i64 92, i1 false), !tbaa.struct !15
  %234 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 8 %13, i64 20, i1 false), !tbaa.struct !28
  %235 = load i32, ptr %23, align 4, !tbaa !11
  %236 = call noundef i32 @_Z16convolution_xnor10TensorDescPKtS_PKh20ConvolutionParamSpecS_S1_S_S1_jPvS_Pt19ActivationParamSpec4Arch(ptr noundef byval(%struct.TensorDesc) align 8 %67, ptr noundef %228, ptr noundef byval(%struct.TensorDesc) align 8 %68, ptr noundef %229, ptr noundef byval(%struct.ConvolutionParamSpec) align 8 %69, ptr noundef byval(%struct.TensorDesc) align 8 %70, ptr noundef %230, ptr noundef byval(%struct.TensorDesc) align 8 %71, ptr noundef %231, i32 noundef %232, ptr noundef %233, ptr noundef byval(%struct.TensorDesc) align 8 %72, ptr noundef %234, ptr noundef byval(%struct.ActivationParamSpec) align 8 %73, i32 noundef %235)
  store i32 %236, ptr %59, align 4, !tbaa !13
  br label %238

237:                                              ; preds = %215
  store i32 51, ptr %59, align 4, !tbaa !13
  br label %238

238:                                              ; preds = %237, %227, %217
  %239 = load i32, ptr %59, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  ret i32 %239
}

; 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

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

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

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 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS4Arch", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS2EE", !7, i64 0}
!15 = !{i64 0, i64 4, !16, i64 4, i64 4, !18, i64 8, i64 4, !9, i64 12, i64 80, !20}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS8DataType", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS10DataFormat", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 28, i64 4, !9, i64 32, i64 4, !9, i64 36, i64 4, !9, i64 40, i64 4, !9, i64 44, i64 4, !9, i64 48, i64 4, !9, i64 52, i64 4, !9, i64 56, i64 4, !9, i64 60, i64 4, !9, i64 64, i64 4, !9, i64 68, i64 4, !9, i64 72, i64 4, !22, i64 76, i64 4, !24, i64 80, i64 4, !24, i64 84, i64 8, !20, i64 92, i64 4, !26, i64 96, i64 4, !9, i64 100, i64 4, !9, i64 104, i64 4, !9}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTS15ConvolutionMode", !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTS14ActivationMode", !7, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTS9RoundMode", !7, i64 0}
!28 = !{i64 0, i64 4, !24, i64 4, i64 16, !20}


; 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 }
%struct.ActivationParamSpec = type { i32, [4 x 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 uwtable
define dso_local noundef i32 @_Z15convolution_bnn10TensorDescPKtS_PKh20ConvolutionParamSpecS_S1_S_S1_jPvS_Pt19ActivationParamSpec4Arch(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr noundef %1, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %2, ptr noundef %3, ptr nocapture noundef readonly byval(%struct.ConvolutionParamSpec) align 8 %4, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %5, ptr noundef %6, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %7, ptr noundef %8, i32 noundef %9, ptr noundef %10, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %11, ptr noundef %12, ptr nocapture noundef readonly byval(%struct.ActivationParamSpec) align 8 %13, i32 noundef %14) local_unnamed_addr #0 {
  %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 = insertelement <4 x ptr> poison, ptr %1, i64 0
  %35 = insertelement <4 x ptr> %34, ptr %3, i64 1
  %36 = insertelement <4 x ptr> %35, ptr %12, i64 2
  %37 = insertelement <4 x ptr> %36, ptr %6, i64 3
  %38 = icmp eq <4 x ptr> %37, zeroinitializer
  %39 = icmp eq ptr %8, null
  %40 = icmp eq ptr %10, null
  %41 = bitcast <4 x i1> %38 to i4
  %42 = icmp ne i4 %41, 0
  %op.rdx = or i1 %42, %39
  %op.rdx61 = or i1 %op.rdx, %40
  br i1 %op.rdx61, label %43, label %53

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

53:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #7
  %54 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %16, ptr noundef nonnull %19, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25)
  %.not = icmp eq i32 %54, 0
  br i1 %.not, label %65, label %55

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

65:                                               ; preds = %53
  %66 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %2, ptr noundef nonnull %17, ptr noundef nonnull %20, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef nonnull %29)
  %.not57 = icmp eq i32 %66, 0
  br i1 %.not57, label %77, label %67

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

77:                                               ; preds = %65
  %78 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %11, ptr noundef nonnull %18, ptr noundef nonnull %21, ptr noundef nonnull %30, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33)
  %.not58 = icmp eq i32 %78, 0
  br i1 %.not58, label %89, label %79

79:                                               ; preds = %77
  %80 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %81 = trunc i64 %80 to i32
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %81)
  %83 = load ptr, ptr @stdout, align 8, !tbaa !5
  %84 = call i32 @fflush(ptr noundef %83)
  %85 = call ptr @ee2str(i32 noundef %78)
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %85)
  %87 = load ptr, ptr @stdout, align 8, !tbaa !5
  %88 = call i32 @fflush(ptr noundef %87)
  call void @exit(i32 noundef 1) #8
  unreachable

89:                                               ; preds = %77
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %.not59 = icmp eq i32 %90, 4
  br i1 %.not59, label %101, label %91

91:                                               ; preds = %89
  %92 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %93 = trunc i64 %92 to i32
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %93)
  %95 = load ptr, ptr @stdout, align 8, !tbaa !5
  %96 = call i32 @fflush(ptr noundef %95)
  %97 = call ptr @ee2str(i32 noundef 2)
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %97)
  %99 = load ptr, ptr @stdout, align 8, !tbaa !5
  %100 = call i32 @fflush(ptr noundef %99)
  call void @exit(i32 noundef 1) #8
  unreachable

101:                                              ; preds = %89
  %102 = load i32, ptr %18, align 4, !tbaa !9
  %.not60 = icmp eq i32 %102, 4
  br i1 %.not60, label %113, label %103

103:                                              ; preds = %101
  %104 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %105 = trunc i64 %104 to i32
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %105)
  %107 = load ptr, ptr @stdout, align 8, !tbaa !5
  %108 = call i32 @fflush(ptr noundef %107)
  %109 = call ptr @ee2str(i32 noundef 2)
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %109)
  %111 = load ptr, ptr @stdout, align 8, !tbaa !5
  %112 = call i32 @fflush(ptr noundef %111)
  call void @exit(i32 noundef 1) #8
  unreachable

113:                                              ; preds = %101
  %114 = load i32, ptr %19, align 4, !tbaa !11
  %115 = icmp ne i32 %114, 2
  %116 = load i32, ptr %21, align 4
  %117 = icmp ne i32 %116, 2
  %or.cond11 = select i1 %115, i1 true, i1 %117
  br i1 %or.cond11, label %118, label %128

118:                                              ; preds = %113
  %119 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %120 = trunc i64 %119 to i32
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %120)
  %122 = load ptr, ptr @stdout, align 8, !tbaa !5
  %123 = call i32 @fflush(ptr noundef %122)
  %124 = call ptr @ee2str(i32 noundef 2)
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %124)
  %126 = load ptr, ptr @stdout, align 8, !tbaa !5
  %127 = call i32 @fflush(ptr noundef %126)
  call void @exit(i32 noundef 1) #8
  unreachable

128:                                              ; preds = %113
  %129 = load i32, ptr %17, align 4, !tbaa !9
  switch i32 %129, label %134 [
    i32 7, label %130
    i32 8, label %132
  ]

130:                                              ; preds = %128
  %131 = call noundef i32 @_Z18convolution_dorefa10TensorDescPKtS_PKh20ConvolutionParamSpecS_S1_S_S1_jPvS_Pt19ActivationParamSpec4Arch(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %1, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %2, ptr noundef nonnull %3, ptr noundef nonnull byval(%struct.ConvolutionParamSpec) align 8 %4, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5, ptr noundef nonnull %6, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %7, ptr noundef nonnull %8, i32 noundef %9, ptr noundef nonnull %10, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %11, ptr noundef nonnull %12, ptr noundef nonnull byval(%struct.ActivationParamSpec) align 8 %13, i32 noundef %14)
  br label %134

132:                                              ; preds = %128
  %133 = call noundef i32 @_Z16convolution_xnor10TensorDescPKtS_PKh20ConvolutionParamSpecS_S1_S_S1_jPvS_Pt19ActivationParamSpec4Arch(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %1, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %2, ptr noundef nonnull %3, ptr noundef nonnull byval(%struct.ConvolutionParamSpec) align 8 %4, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5, ptr noundef nonnull %6, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %7, ptr noundef nonnull %8, i32 noundef %9, ptr noundef nonnull %10, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %11, ptr noundef nonnull %12, ptr noundef nonnull byval(%struct.ActivationParamSpec) align 8 %13, i32 noundef %14)
  br label %134

134:                                              ; preds = %128, %132, %130
  %.0 = phi i32 [ %133, %132 ], [ %131, %130 ], [ 51, %128 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #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: 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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z16convolution_xnor10TensorDescPKtS_PKh20ConvolutionParamSpecS_S1_S_S1_jPvS_Pt19ActivationParamSpec4Arch(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef byval(%struct.ConvolutionParamSpec) align 8, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, i32 noundef, ptr noundef, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef byval(%struct.ActivationParamSpec) align 8, i32 noundef) local_unnamed_addr #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 = { 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, !10, i64 0}
!10 = !{!"_ZTS8DataType", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS10DataFormat", !7, i64 0}


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