; LLVM IR from libxsmm/libxsmm :: samples/eltwise (eltwise_unary_dropout)

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

@is_reference_kernel = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [125 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [140 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_return_success_code(i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %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
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %23 = call ptr @getenv(ptr noundef @.str) #7
  store ptr %23, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %24 = load ptr, ptr %9, align 8, !tbaa !9
  %25 = icmp eq ptr null, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %2
  br label %30

27:                                               ; preds = %2
  %28 = load ptr, ptr %9, align 8, !tbaa !9
  %29 = call i32 @atoi(ptr noundef %28) #8
  br label %30

30:                                               ; preds = %27, %26
  %31 = phi i32 [ 1, %26 ], [ %29, %27 ]
  %32 = icmp sle i32 0, %31
  br i1 %32, label %33, label %42

33:                                               ; preds = %30
  %34 = load ptr, ptr %9, align 8, !tbaa !9
  %35 = icmp eq ptr null, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  br label %40

37:                                               ; preds = %33
  %38 = load ptr, ptr %9, align 8, !tbaa !9
  %39 = call i32 @atoi(ptr noundef %38) #8
  br label %40

40:                                               ; preds = %37, %36
  %41 = phi i32 [ 1, %36 ], [ %39, %37 ]
  br label %52

42:                                               ; preds = %30
  %43 = load ptr, ptr %9, align 8, !tbaa !9
  %44 = icmp eq ptr null, %43
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  br label %49

46:                                               ; preds = %42
  %47 = load ptr, ptr %9, align 8, !tbaa !9
  %48 = call i32 @atoi(ptr noundef %47) #8
  br label %49

49:                                               ; preds = %46, %45
  %50 = phi i32 [ 1, %45 ], [ %48, %46 ]
  %51 = sub nsw i32 0, %50
  br label %52

52:                                               ; preds = %49, %40
  %53 = phi i32 [ %41, %40 ], [ %51, %49 ]
  store i32 %53, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  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
  store i32 1, ptr %19, align 4, !tbaa !5
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = icmp ne i32 %54, 9
  br i1 %55, label %56, label %61

56:                                               ; preds = %52
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %57, i64 0
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %59)
  call void @exit(i32 noundef -1) #9
  unreachable

61:                                               ; preds = %52
  %62 = load ptr, ptr %5, align 8, !tbaa !9
  %63 = getelementptr inbounds ptr, ptr %62, i64 1
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = load i8, ptr %64, align 1, !tbaa !11
  store i8 %65, ptr %8, align 1, !tbaa !11
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %66, i64 2
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = call i32 @atoi(ptr noundef %68) #8
  store i32 %69, ptr %14, align 4, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = getelementptr inbounds ptr, ptr %70, i64 3
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  store ptr %72, ptr %6, align 8, !tbaa !9
  %73 = load ptr, ptr %5, align 8, !tbaa !9
  %74 = getelementptr inbounds ptr, ptr %73, i64 4
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  store ptr %75, ptr %7, align 8, !tbaa !9
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = getelementptr inbounds ptr, ptr %76, i64 5
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = call i32 @atoi(ptr noundef %78) #8
  store i32 %79, ptr %15, align 4, !tbaa !5
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %80, i64 6
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = call i32 @atoi(ptr noundef %82) #8
  store i32 %83, ptr %16, align 4, !tbaa !5
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = getelementptr inbounds ptr, ptr %84, i64 7
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = call i32 @atoi(ptr noundef %86) #8
  store i32 %87, ptr %17, align 4, !tbaa !5
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = getelementptr inbounds ptr, ptr %88, i64 8
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = call i32 @atoi(ptr noundef %90) #8
  store i32 %91, ptr %18, align 4, !tbaa !5
  call void @libxsmm_init()
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = icmp ne i32 0, %92
  br i1 %93, label %94, label %120

94:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %95 = call i32 @libxsmm_get_target_archid()
  store i32 %95, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %96 = load i32, ptr %20, align 4, !tbaa !5
  %97 = call i32 @libxsmm_cpuid_vlen32(i32 noundef %96)
  store i32 %97, ptr %21, align 4, !tbaa !5
  %98 = load i32, ptr %15, align 4, !tbaa !5
  %99 = load i32, ptr %21, align 4, !tbaa !5
  %100 = mul nsw i32 4, %99
  %101 = icmp slt i32 %98, %100
  br i1 %101, label %102, label %104

102:                                              ; preds = %94
  %103 = load i32, ptr %15, align 4, !tbaa !5
  br label %107

104:                                              ; preds = %94
  %105 = load i32, ptr %21, align 4, !tbaa !5
  %106 = mul nsw i32 4, %105
  br label %107

107:                                              ; preds = %104, %102
  %108 = phi i32 [ %103, %102 ], [ %106, %104 ]
  store i32 %108, ptr %15, align 4, !tbaa !5
  %109 = load i32, ptr %16, align 4, !tbaa !5
  %110 = load i32, ptr %21, align 4, !tbaa !5
  %111 = mul nsw i32 4, %110
  %112 = icmp slt i32 %109, %111
  br i1 %112, label %113, label %115

113:                                              ; preds = %107
  %114 = load i32, ptr %16, align 4, !tbaa !5
  br label %118

115:                                              ; preds = %107
  %116 = load i32, ptr %21, align 4, !tbaa !5
  %117 = mul nsw i32 4, %116
  br label %118

118:                                              ; preds = %115, %113
  %119 = phi i32 [ %114, %113 ], [ %117, %115 ]
  store i32 %119, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %120

120:                                              ; preds = %118, %61
  %121 = load i8, ptr %8, align 1, !tbaa !11
  %122 = sext i8 %121 to i32
  %123 = icmp eq i32 %122, 66
  br i1 %123, label %124, label %130

124:                                              ; preds = %120
  %125 = load i32, ptr %14, align 4, !tbaa !5
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %124
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %129 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %129, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %284

130:                                              ; preds = %124, %120
  %131 = load ptr, ptr %6, align 8, !tbaa !9
  %132 = call i32 @char_to_libxsmm_datatype(ptr noundef %131)
  store i32 %132, ptr %13, align 4, !tbaa !5
  %133 = load ptr, ptr %7, align 8, !tbaa !9
  %134 = call i32 @char_to_libxsmm_datatype(ptr noundef %133)
  store i32 %134, ptr %12, align 4, !tbaa !5
  %135 = load i32, ptr %13, align 4, !tbaa !5
  %136 = icmp eq i32 %135, 1
  br i1 %136, label %137, label %140

137:                                              ; preds = %130
  %138 = load i32, ptr %12, align 4, !tbaa !5
  %139 = icmp eq i32 %138, 1
  br i1 %139, label %212, label %140

140:                                              ; preds = %137, %130
  %141 = load i32, ptr %13, align 4, !tbaa !5
  %142 = icmp eq i32 %141, 2
  br i1 %142, label %143, label %146

143:                                              ; preds = %140
  %144 = load i32, ptr %12, align 4, !tbaa !5
  %145 = icmp eq i32 %144, 2
  br i1 %145, label %212, label %146

146:                                              ; preds = %143, %140
  %147 = load i32, ptr %13, align 4, !tbaa !5
  %148 = icmp eq i32 %147, 2
  br i1 %148, label %149, label %152

149:                                              ; preds = %146
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = icmp eq i32 %150, 1
  br i1 %151, label %212, label %152

152:                                              ; preds = %149, %146
  %153 = load i32, ptr %13, align 4, !tbaa !5
  %154 = icmp eq i32 %153, 1
  br i1 %154, label %155, label %158

155:                                              ; preds = %152
  %156 = load i32, ptr %12, align 4, !tbaa !5
  %157 = icmp eq i32 %156, 2
  br i1 %157, label %212, label %158

158:                                              ; preds = %155, %152
  %159 = load i32, ptr %13, align 4, !tbaa !5
  %160 = icmp eq i32 %159, 3
  br i1 %160, label %161, label %164

161:                                              ; preds = %158
  %162 = load i32, ptr %12, align 4, !tbaa !5
  %163 = icmp eq i32 %162, 3
  br i1 %163, label %212, label %164

164:                                              ; preds = %161, %158
  %165 = load i32, ptr %13, align 4, !tbaa !5
  %166 = icmp eq i32 %165, 3
  br i1 %166, label %167, label %170

167:                                              ; preds = %164
  %168 = load i32, ptr %12, align 4, !tbaa !5
  %169 = icmp eq i32 %168, 1
  br i1 %169, label %212, label %170

170:                                              ; preds = %167, %164
  %171 = load i32, ptr %13, align 4, !tbaa !5
  %172 = icmp eq i32 %171, 1
  br i1 %172, label %173, label %176

173:                                              ; preds = %170
  %174 = load i32, ptr %12, align 4, !tbaa !5
  %175 = icmp eq i32 %174, 3
  br i1 %175, label %212, label %176

176:                                              ; preds = %173, %170
  %177 = load i32, ptr %13, align 4, !tbaa !5
  %178 = icmp eq i32 %177, 4
  br i1 %178, label %179, label %182

179:                                              ; preds = %176
  %180 = load i32, ptr %12, align 4, !tbaa !5
  %181 = icmp eq i32 %180, 4
  br i1 %181, label %212, label %182

182:                                              ; preds = %179, %176
  %183 = load i32, ptr %13, align 4, !tbaa !5
  %184 = icmp eq i32 %183, 4
  br i1 %184, label %185, label %188

185:                                              ; preds = %182
  %186 = load i32, ptr %12, align 4, !tbaa !5
  %187 = icmp eq i32 %186, 1
  br i1 %187, label %212, label %188

188:                                              ; preds = %185, %182
  %189 = load i32, ptr %13, align 4, !tbaa !5
  %190 = icmp eq i32 %189, 1
  br i1 %190, label %191, label %194

191:                                              ; preds = %188
  %192 = load i32, ptr %12, align 4, !tbaa !5
  %193 = icmp eq i32 %192, 4
  br i1 %193, label %212, label %194

194:                                              ; preds = %191, %188
  %195 = load i32, ptr %13, align 4, !tbaa !5
  %196 = icmp eq i32 %195, 5
  br i1 %196, label %197, label %200

197:                                              ; preds = %194
  %198 = load i32, ptr %12, align 4, !tbaa !5
  %199 = icmp eq i32 %198, 5
  br i1 %199, label %212, label %200

200:                                              ; preds = %197, %194
  %201 = load i32, ptr %13, align 4, !tbaa !5
  %202 = icmp eq i32 %201, 5
  br i1 %202, label %203, label %206

203:                                              ; preds = %200
  %204 = load i32, ptr %12, align 4, !tbaa !5
  %205 = icmp eq i32 %204, 1
  br i1 %205, label %212, label %206

206:                                              ; preds = %203, %200
  %207 = load i32, ptr %13, align 4, !tbaa !5
  %208 = icmp eq i32 %207, 1
  br i1 %208, label %209, label %268

209:                                              ; preds = %206
  %210 = load i32, ptr %12, align 4, !tbaa !5
  %211 = icmp eq i32 %210, 5
  br i1 %211, label %212, label %268

212:                                              ; preds = %209, %203, %197, %191, %185, %179, %173, %167, %161, %155, %149, %143, %137
  %213 = load i8, ptr %8, align 1, !tbaa !11
  %214 = sext i8 %213 to i32
  %215 = icmp eq i32 %214, 70
  br i1 %215, label %216, label %237

216:                                              ; preds = %212
  %217 = load i32, ptr %13, align 4, !tbaa !5
  %218 = call ptr @libxsmm_get_typename(i32 noundef %217)
  %219 = load i32, ptr %12, align 4, !tbaa !5
  %220 = call ptr @libxsmm_get_typename(i32 noundef %219)
  %221 = load i32, ptr %11, align 4, !tbaa !5
  %222 = call ptr @libxsmm_get_typename(i32 noundef %221)
  %223 = load i32, ptr %15, align 4, !tbaa !5
  %224 = load i32, ptr %16, align 4, !tbaa !5
  %225 = load i32, ptr %17, align 4, !tbaa !5
  %226 = load i32, ptr %18, align 4, !tbaa !5
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %218, ptr noundef %220, ptr noundef %222, i32 noundef %223, i32 noundef %224, i32 noundef %225, i32 noundef %226)
  %228 = load i32, ptr %14, align 4, !tbaa !5
  %229 = load i32, ptr %15, align 4, !tbaa !5
  %230 = load i32, ptr %16, align 4, !tbaa !5
  %231 = load i32, ptr %17, align 4, !tbaa !5
  %232 = load i32, ptr %18, align 4, !tbaa !5
  %233 = load i32, ptr %13, align 4, !tbaa !5
  %234 = load i32, ptr %12, align 4, !tbaa !5
  %235 = load i32, ptr %11, align 4, !tbaa !5
  %236 = call i32 @test_dropout_fwd(i32 noundef %228, i32 noundef %229, i32 noundef %230, i32 noundef %231, i32 noundef %232, i32 noundef %233, i32 noundef %234, i32 noundef %235)
  store i32 %236, ptr %19, align 4, !tbaa !5
  br label %267

237:                                              ; preds = %212
  %238 = load i8, ptr %8, align 1, !tbaa !11
  %239 = sext i8 %238 to i32
  %240 = icmp eq i32 %239, 66
  br i1 %240, label %241, label %261

241:                                              ; preds = %237
  %242 = load i32, ptr %13, align 4, !tbaa !5
  %243 = call ptr @libxsmm_get_typename(i32 noundef %242)
  %244 = load i32, ptr %12, align 4, !tbaa !5
  %245 = call ptr @libxsmm_get_typename(i32 noundef %244)
  %246 = load i32, ptr %11, align 4, !tbaa !5
  %247 = call ptr @libxsmm_get_typename(i32 noundef %246)
  %248 = load i32, ptr %15, align 4, !tbaa !5
  %249 = load i32, ptr %16, align 4, !tbaa !5
  %250 = load i32, ptr %17, align 4, !tbaa !5
  %251 = load i32, ptr %18, align 4, !tbaa !5
  %252 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %243, ptr noundef %245, ptr noundef %247, i32 noundef %248, i32 noundef %249, i32 noundef %250, i32 noundef %251)
  %253 = load i32, ptr %15, align 4, !tbaa !5
  %254 = load i32, ptr %16, align 4, !tbaa !5
  %255 = load i32, ptr %17, align 4, !tbaa !5
  %256 = load i32, ptr %18, align 4, !tbaa !5
  %257 = load i32, ptr %13, align 4, !tbaa !5
  %258 = load i32, ptr %12, align 4, !tbaa !5
  %259 = load i32, ptr %11, align 4, !tbaa !5
  %260 = call i32 @test_dropout_bwd(i32 noundef %253, i32 noundef %254, i32 noundef %255, i32 noundef %256, i32 noundef %257, i32 noundef %258, i32 noundef %259)
  store i32 %260, ptr %19, align 4, !tbaa !5
  br label %266

261:                                              ; preds = %237
  %262 = load ptr, ptr %5, align 8, !tbaa !9
  %263 = getelementptr inbounds ptr, ptr %262, i64 0
  %264 = load ptr, ptr %263, align 8, !tbaa !9
  %265 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %264)
  call void @exit(i32 noundef -1) #9
  unreachable

266:                                              ; preds = %241
  br label %267

267:                                              ; preds = %266, %216
  br label %273

268:                                              ; preds = %209, %206
  %269 = load ptr, ptr %5, align 8, !tbaa !9
  %270 = getelementptr inbounds ptr, ptr %269, i64 0
  %271 = load ptr, ptr %270, align 8, !tbaa !9
  %272 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %271)
  call void @exit(i32 noundef -1) #9
  unreachable

273:                                              ; preds = %267
  %274 = load i32, ptr %19, align 4, !tbaa !5
  %275 = icmp eq i32 %274, 0
  br i1 %275, label %276, label %279

276:                                              ; preds = %273
  %277 = load i32, ptr @is_reference_kernel, align 4, !tbaa !5
  %278 = call i32 @libxsmm_return_success_code(i32 noundef %277)
  br label %281

279:                                              ; preds = %273
  %280 = load i32, ptr %19, align 4, !tbaa !5
  br label %281

281:                                              ; preds = %279, %276
  %282 = phi i32 [ %278, %276 ], [ %280, %279 ]
  store i32 %282, ptr %19, align 4, !tbaa !5
  %283 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %283, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %284

284:                                              ; preds = %281, %127
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %285 = load i32, ptr %3, align 4
  ret i32 %285
}

; 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 ptr @getenv(ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

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

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

declare void @libxsmm_init() #4

declare i32 @libxsmm_get_target_archid() #4

declare i32 @libxsmm_cpuid_vlen32(i32 noundef) #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @char_to_libxsmm_datatype(ptr noundef) #6

declare ptr @libxsmm_get_typename(i32 noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @test_dropout_fwd(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @test_dropout_bwd(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #6

attributes #0 = { 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 = { 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 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@is_reference_kernel = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [125 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [140 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_return_success_code(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = tail call ptr @getenv(ptr noundef nonnull @.str) #8
  %4 = icmp eq ptr %3, null
  br i1 %4, label %.thread133, label %5

5:                                                ; preds = %2
  %6 = tail call i32 @atoi(ptr nocapture noundef %3) #9
  %7 = icmp eq i32 %6, 0
  br label %.thread133

.thread133:                                       ; preds = %5, %2
  %.not124 = phi i1 [ false, %2 ], [ %7, %5 ]
  %.not = icmp eq i32 %0, 9
  br i1 %.not, label %11, label %8

8:                                                ; preds = %.thread133
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %9)
  tail call void @exit(i32 noundef -1) #10
  unreachable

11:                                               ; preds = %.thread133
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = load i8, ptr %13, align 1, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = tail call i32 @atoi(ptr nocapture noundef %16) #9
  %18 = getelementptr inbounds i8, ptr %1, i64 24
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %1, i64 32
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %1, i64 40
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = tail call i32 @atoi(ptr nocapture noundef %23) #9
  %25 = getelementptr inbounds i8, ptr %1, i64 48
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = tail call i32 @atoi(ptr nocapture noundef %26) #9
  %28 = getelementptr inbounds i8, ptr %1, i64 56
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = tail call i32 @atoi(ptr nocapture noundef %29) #9
  %31 = getelementptr inbounds i8, ptr %1, i64 64
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = tail call i32 @atoi(ptr nocapture noundef %32) #9
  tail call void @libxsmm_init() #8
  br i1 %.not124, label %40, label %34

34:                                               ; preds = %11
  %35 = tail call i32 @libxsmm_get_target_archid() #8
  %36 = tail call i32 @libxsmm_cpuid_vlen32(i32 noundef %35) #8
  %37 = shl nsw i32 %36, 2
  %38 = tail call i32 @llvm.smin.i32(i32 %24, i32 %37)
  %39 = tail call i32 @llvm.smin.i32(i32 %27, i32 %37)
  br label %40

40:                                               ; preds = %34, %11
  %.0122 = phi i32 [ %39, %34 ], [ %27, %11 ]
  %.0121 = phi i32 [ %38, %34 ], [ %24, %11 ]
  %41 = icmp eq i8 %14, 66
  %42 = icmp eq i32 %17, 0
  %or.cond = select i1 %41, i1 %42, i1 false
  br i1 %or.cond, label %43, label %45

43:                                               ; preds = %40
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %93

45:                                               ; preds = %40
  %46 = tail call i32 @char_to_libxsmm_datatype(ptr noundef %19)
  %47 = tail call i32 @char_to_libxsmm_datatype(ptr noundef %21)
  %48 = icmp eq i32 %46, 1
  %49 = icmp eq i32 %47, 1
  %or.cond3 = select i1 %48, i1 %49, i1 false
  br i1 %or.cond3, label %67, label %50

50:                                               ; preds = %45
  %51 = icmp eq i32 %46, 2
  %52 = icmp eq i32 %47, 2
  %53 = add i32 %47, -1
  %54 = icmp ult i32 %53, 2
  %or.cond125 = select i1 %51, i1 %54, i1 false
  %or.cond9 = select i1 %48, i1 %52, i1 false
  %or.cond126 = select i1 %or.cond125, i1 true, i1 %or.cond9
  br i1 %or.cond126, label %67, label %55

55:                                               ; preds = %50
  %56 = icmp eq i32 %46, 3
  %57 = icmp eq i32 %47, 3
  %58 = or i1 %57, %49
  %or.cond127 = select i1 %56, i1 %58, i1 false
  %or.cond15 = select i1 %48, i1 %57, i1 false
  %or.cond128 = select i1 %or.cond127, i1 true, i1 %or.cond15
  br i1 %or.cond128, label %67, label %59

59:                                               ; preds = %55
  %60 = icmp eq i32 %46, 4
  %61 = icmp eq i32 %47, 4
  %62 = or i1 %61, %49
  %or.cond129 = select i1 %60, i1 %62, i1 false
  %or.cond21 = select i1 %48, i1 %61, i1 false
  %or.cond130 = select i1 %or.cond129, i1 true, i1 %or.cond21
  br i1 %or.cond130, label %67, label %63

63:                                               ; preds = %59
  %64 = icmp eq i32 %46, 5
  %65 = icmp eq i32 %47, 5
  %66 = or i1 %65, %49
  %or.cond131 = select i1 %64, i1 %66, i1 false
  %or.cond27 = select i1 %48, i1 %65, i1 false
  %or.cond132 = select i1 %or.cond131, i1 true, i1 %or.cond27
  br i1 %or.cond132, label %67, label %85

67:                                               ; preds = %63, %59, %55, %50, %45
  %68 = icmp eq i8 %14, 70
  br i1 %68, label %69, label %75

69:                                               ; preds = %67
  %70 = tail call ptr @libxsmm_get_typename(i32 noundef %46) #8
  %71 = tail call ptr @libxsmm_get_typename(i32 noundef %47) #8
  %72 = tail call ptr @libxsmm_get_typename(i32 noundef 1) #8
  %73 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %70, ptr noundef %71, ptr noundef %72, i32 noundef %.0121, i32 noundef %.0122, i32 noundef %30, i32 noundef %33)
  %74 = tail call i32 @test_dropout_fwd(i32 noundef %17, i32 noundef %.0121, i32 noundef %.0122, i32 noundef %30, i32 noundef %33, i32 noundef %46, i32 noundef %47, i32 noundef 1)
  br label %88

75:                                               ; preds = %67
  br i1 %41, label %76, label %82

76:                                               ; preds = %75
  %77 = tail call ptr @libxsmm_get_typename(i32 noundef %46) #8
  %78 = tail call ptr @libxsmm_get_typename(i32 noundef %47) #8
  %79 = tail call ptr @libxsmm_get_typename(i32 noundef 1) #8
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %77, ptr noundef %78, ptr noundef %79, i32 noundef %.0121, i32 noundef %.0122, i32 noundef %30, i32 noundef %33)
  %81 = tail call i32 @test_dropout_bwd(i32 noundef %.0121, i32 noundef %.0122, i32 noundef %30, i32 noundef %33, i32 noundef %46, i32 noundef %47, i32 noundef 1)
  br label %88

82:                                               ; preds = %75
  %83 = load ptr, ptr %1, align 8, !tbaa !5
  %84 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %83)
  tail call void @exit(i32 noundef -1) #10
  unreachable

85:                                               ; preds = %63
  %86 = load ptr, ptr %1, align 8, !tbaa !5
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %86)
  tail call void @exit(i32 noundef -1) #10
  unreachable

88:                                               ; preds = %69, %76
  %.0120 = phi i32 [ %74, %69 ], [ %81, %76 ]
  %89 = icmp eq i32 %.0120, 0
  br i1 %89, label %90, label %93

90:                                               ; preds = %88
  %91 = load i32, ptr @is_reference_kernel, align 4, !tbaa !10
  %92 = tail call i32 @libxsmm_return_success_code(i32 noundef %91)
  br label %93

93:                                               ; preds = %90, %88, %43
  %.0 = phi i32 [ 1, %43 ], [ %92, %90 ], [ %.0120, %88 ]
  ret i32 %.0
}

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #2

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

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

declare void @libxsmm_init() local_unnamed_addr #5

declare i32 @libxsmm_get_target_archid() local_unnamed_addr #5

declare i32 @libxsmm_cpuid_vlen32(i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @char_to_libxsmm_datatype(ptr noundef) local_unnamed_addr #6

declare ptr @libxsmm_get_typename(i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @test_dropout_fwd(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @test_dropout_bwd(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #7

attributes #0 = { 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 = { nofree nounwind memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 #5 = { "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 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { 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/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass