; LLVM IR from jgaeddert/liquid-dsp :: sandbox (fecsoft_ldpc_test)

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

@__const.main.p = external hidden unnamed_addr constant [16 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [7 x i8], align 1

; 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 float, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [16 x i8], align 16
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca float, align 4
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  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
  %36 = call i64 @time(ptr noundef null) #7
  %37 = trunc i64 %36 to i32
  call void @srand(i32 noundef %37) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store float -2.000000e+00, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store float 6.000000e+00, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 19, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 2000, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 5, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 16, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 32, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.main.p, i64 16, i1 false)
  %38 = load i32, ptr %12, align 4, !tbaa !5
  %39 = load i32, ptr %11, align 4, !tbaa !5
  %40 = mul i32 %38, %39
  %41 = zext i32 %40 to i64
  %42 = call ptr @llvm.stacksave.p0()
  store ptr %42, ptr %14, align 8
  %43 = alloca i8, i64 %41, align 16
  store i64 %41, ptr %15, align 8
  %44 = load i32, ptr %11, align 4, !tbaa !5
  %45 = load i32, ptr %12, align 4, !tbaa !5
  %46 = mul i32 %44, %45
  %47 = zext i32 %46 to i64
  %48 = alloca i8, i64 %47, align 16
  store i64 %47, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %125, %2
  %50 = load i32, ptr %17, align 4, !tbaa !5
  %51 = load i32, ptr %11, align 4, !tbaa !5
  %52 = icmp ult i32 %50, %51
  br i1 %52, label %53, label %128

53:                                               ; preds = %49
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %121, %53
  %55 = load i32, ptr %18, align 4, !tbaa !5
  %56 = load i32, ptr %11, align 4, !tbaa !5
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %58, label %124

58:                                               ; preds = %54
  %59 = load i32, ptr %17, align 4, !tbaa !5
  %60 = load i32, ptr %18, align 4, !tbaa !5
  %61 = icmp eq i32 %59, %60
  %62 = zext i1 %61 to i64
  %63 = select i1 %61, i32 1, i32 0
  %64 = trunc i32 %63 to i8
  %65 = load i32, ptr %18, align 4, !tbaa !5
  %66 = load i32, ptr %11, align 4, !tbaa !5
  %67 = mul i32 %65, %66
  %68 = load i32, ptr %17, align 4, !tbaa !5
  %69 = add i32 %67, %68
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds i8, ptr %43, i64 %70
  store i8 %64, ptr %71, align 1, !tbaa !13
  %72 = load i32, ptr %17, align 4, !tbaa !5
  %73 = load i32, ptr %18, align 4, !tbaa !5
  %74 = add i32 %72, %73
  %75 = load i32, ptr %11, align 4, !tbaa !5
  %76 = urem i32 %74, %75
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !13
  %80 = load i32, ptr %18, align 4, !tbaa !5
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = mul i32 %80, %81
  %83 = load i32, ptr %17, align 4, !tbaa !5
  %84 = add i32 %82, %83
  %85 = load i32, ptr %11, align 4, !tbaa !5
  %86 = load i32, ptr %11, align 4, !tbaa !5
  %87 = mul i32 %85, %86
  %88 = add i32 %84, %87
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds i8, ptr %43, i64 %89
  store i8 %79, ptr %90, align 1, !tbaa !13
  %91 = load i32, ptr %17, align 4, !tbaa !5
  %92 = load i32, ptr %18, align 4, !tbaa !5
  %93 = icmp eq i32 %91, %92
  %94 = zext i1 %93 to i64
  %95 = select i1 %93, i32 1, i32 0
  %96 = trunc i32 %95 to i8
  %97 = load i32, ptr %17, align 4, !tbaa !5
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = mul i32 %97, %98
  %100 = load i32, ptr %18, align 4, !tbaa !5
  %101 = add i32 %99, %100
  %102 = load i32, ptr %11, align 4, !tbaa !5
  %103 = add i32 %101, %102
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %48, i64 %104
  store i8 %96, ptr %105, align 1, !tbaa !13
  %106 = load i32, ptr %17, align 4, !tbaa !5
  %107 = load i32, ptr %18, align 4, !tbaa !5
  %108 = add i32 %106, %107
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = urem i32 %108, %109
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 %111
  %113 = load i8, ptr %112, align 1, !tbaa !13
  %114 = load i32, ptr %17, align 4, !tbaa !5
  %115 = load i32, ptr %12, align 4, !tbaa !5
  %116 = mul i32 %114, %115
  %117 = load i32, ptr %18, align 4, !tbaa !5
  %118 = add i32 %116, %117
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds i8, ptr %48, i64 %119
  store i8 %113, ptr %120, align 1, !tbaa !13
  br label %121

121:                                              ; preds = %58
  %122 = load i32, ptr %18, align 4, !tbaa !5
  %123 = add i32 %122, 1
  store i32 %123, ptr %18, align 4, !tbaa !5
  br label %54, !llvm.loop !14

124:                                              ; preds = %54
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %17, align 4, !tbaa !5
  %127 = add i32 %126, 1
  store i32 %127, ptr %17, align 4, !tbaa !5
  br label %49, !llvm.loop !16

128:                                              ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %129 = load i32, ptr %12, align 4, !tbaa !5
  %130 = load i32, ptr %11, align 4, !tbaa !5
  %131 = call ptr @smatrixb_create_array(ptr noundef %43, i32 noundef %129, i32 noundef %130)
  store ptr %131, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %132 = load i32, ptr %11, align 4, !tbaa !5
  %133 = load i32, ptr %12, align 4, !tbaa !5
  %134 = call ptr @smatrixb_create_array(ptr noundef %48, i32 noundef %132, i32 noundef %133)
  store ptr %134, ptr %20, align 8, !tbaa !9
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %136 = load ptr, ptr %19, align 8, !tbaa !9
  %137 = call i32 @smatrixb_print_expanded(ptr noundef %136)
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %139 = load ptr, ptr %20, align 8, !tbaa !9
  %140 = call i32 @smatrixb_print_expanded(ptr noundef %139)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %141 = load float, ptr %7, align 4, !tbaa !11
  %142 = load float, ptr %6, align 4, !tbaa !11
  %143 = fsub float %141, %142
  %144 = load i32, ptr %8, align 4, !tbaa !5
  %145 = sub i32 %144, 1
  %146 = uitofp i32 %145 to float
  %147 = fdiv float %143, %146
  store float %147, ptr %21, align 4, !tbaa !11
  %148 = load i32, ptr %11, align 4, !tbaa !5
  %149 = zext i32 %148 to i64
  %150 = alloca i8, i64 %149, align 16
  store i64 %149, ptr %22, align 8
  %151 = load i32, ptr %12, align 4, !tbaa !5
  %152 = zext i32 %151 to i64
  %153 = alloca i8, i64 %152, align 16
  store i64 %152, ptr %23, align 8
  %154 = load i32, ptr %12, align 4, !tbaa !5
  %155 = zext i32 %154 to i64
  %156 = alloca { float, float }, i64 %155, align 16
  store i64 %155, ptr %24, align 8
  %157 = load i32, ptr %12, align 4, !tbaa !5
  %158 = zext i32 %157 to i64
  %159 = alloca float, i64 %158, align 16
  store i64 %158, ptr %25, align 8
  %160 = load i32, ptr %12, align 4, !tbaa !5
  %161 = zext i32 %160 to i64
  %162 = alloca i8, i64 %161, align 16
  store i64 %161, ptr %26, align 8
  %163 = load i32, ptr %12, align 4, !tbaa !5
  %164 = zext i32 %163 to i64
  %165 = alloca i8, i64 %164, align 16
  store i64 %164, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %166 = load i32, ptr %8, align 4, !tbaa !5
  %167 = zext i32 %166 to i64
  %168 = alloca i32, i64 %167, align 16
  store i64 %167, ptr %30, align 8
  %169 = load i32, ptr %8, align 4, !tbaa !5
  %170 = zext i32 %169 to i64
  %171 = alloca i32, i64 %170, align 16
  store i64 %170, ptr %31, align 8
  %172 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.7)
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %366, %128
  %174 = load i32, ptr %29, align 4, !tbaa !5
  %175 = load i32, ptr %8, align 4, !tbaa !5
  %176 = icmp ult i32 %174, %175
  br i1 %176, label %177, label %369

177:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %178 = load float, ptr %6, align 4, !tbaa !11
  %179 = load i32, ptr %29, align 4, !tbaa !5
  %180 = uitofp i32 %179 to float
  %181 = load float, ptr %21, align 4, !tbaa !11
  %182 = call float @llvm.fmuladd.f32(float %180, float %181, float %178)
  store float %182, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %183 = load float, ptr %32, align 4, !tbaa !11
  %184 = fneg float %183
  %185 = fdiv float %184, 2.000000e+01
  %186 = call float @powf(float noundef 1.000000e+01, float noundef %185) #7
  store float %186, ptr %33, align 4, !tbaa !11
  %187 = load i32, ptr %29, align 4, !tbaa !5
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds i32, ptr %168, i64 %188
  store i32 0, ptr %189, align 4, !tbaa !5
  %190 = load i32, ptr %29, align 4, !tbaa !5
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds i32, ptr %171, i64 %191
  store i32 0, ptr %192, align 4, !tbaa !5
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %193

193:                                              ; preds = %336, %177
  %194 = load i32, ptr %28, align 4, !tbaa !5
  %195 = load i32, ptr %9, align 4, !tbaa !5
  %196 = icmp ult i32 %194, %195
  br i1 %196, label %197, label %339

197:                                              ; preds = %193
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %209, %197
  %199 = load i32, ptr %17, align 4, !tbaa !5
  %200 = load i32, ptr %11, align 4, !tbaa !5
  %201 = icmp ult i32 %199, %200
  br i1 %201, label %202, label %212

202:                                              ; preds = %198
  %203 = call i32 @rand() #7
  %204 = srem i32 %203, 2
  %205 = trunc i32 %204 to i8
  %206 = load i32, ptr %17, align 4, !tbaa !5
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds i8, ptr %150, i64 %207
  store i8 %205, ptr %208, align 1, !tbaa !13
  br label %209

209:                                              ; preds = %202
  %210 = load i32, ptr %17, align 4, !tbaa !5
  %211 = add i32 %210, 1
  store i32 %211, ptr %17, align 4, !tbaa !5
  br label %198, !llvm.loop !17

212:                                              ; preds = %198
  %213 = load ptr, ptr %19, align 8, !tbaa !9
  %214 = call i32 @smatrixb_vmul(ptr noundef %213, ptr noundef %150, ptr noundef %153)
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %275, %212
  %216 = load i32, ptr %17, align 4, !tbaa !5
  %217 = load i32, ptr %12, align 4, !tbaa !5
  %218 = icmp ult i32 %216, %217
  br i1 %218, label %219, label %278

219:                                              ; preds = %215
  %220 = load i32, ptr %17, align 4, !tbaa !5
  %221 = zext i32 %220 to i64
  %222 = getelementptr inbounds i8, ptr %153, i64 %221
  %223 = load i8, ptr %222, align 1, !tbaa !13
  %224 = zext i8 %223 to i32
  %225 = icmp ne i32 %224, 0
  %226 = zext i1 %225 to i64
  %227 = select i1 %225, float -1.000000e+00, float 1.000000e+00
  %228 = load i32, ptr %17, align 4, !tbaa !5
  %229 = zext i32 %228 to i64
  %230 = getelementptr inbounds { float, float }, ptr %156, i64 %229
  %231 = getelementptr inbounds { float, float }, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds { float, float }, ptr %230, i32 0, i32 1
  store float %227, ptr %231, align 8
  store float 0.000000e+00, ptr %232, align 4
  %233 = load float, ptr %33, align 4, !tbaa !11
  %234 = call float (...) @randnf()
  %235 = call float (...) @randnf()
  %236 = fmul float 0.000000e+00, %235
  %237 = fmul float 1.000000e+00, %235
  %238 = fadd float %234, %236
  %239 = fmul float %233, %238
  %240 = fmul float %233, %237
  %241 = fpext float %239 to double
  %242 = fpext float %240 to double
  %243 = fmul double %241, 0x3FE6A09E667F3BCD
  %244 = fmul double %242, 0x3FE6A09E667F3BCD
  %245 = load i32, ptr %17, align 4, !tbaa !5
  %246 = zext i32 %245 to i64
  %247 = getelementptr inbounds { float, float }, ptr %156, i64 %246
  %248 = getelementptr inbounds { float, float }, ptr %247, i32 0, i32 0
  %249 = load float, ptr %248, align 8
  %250 = getelementptr inbounds { float, float }, ptr %247, i32 0, i32 1
  %251 = load float, ptr %250, align 4
  %252 = fpext float %249 to double
  %253 = fpext float %251 to double
  %254 = fadd double %252, %243
  %255 = fadd double %253, %244
  %256 = fptrunc double %254 to float
  %257 = fptrunc double %255 to float
  %258 = getelementptr inbounds { float, float }, ptr %247, i32 0, i32 0
  %259 = getelementptr inbounds { float, float }, ptr %247, i32 0, i32 1
  store float %256, ptr %258, align 8
  store float %257, ptr %259, align 4
  %260 = load i32, ptr %17, align 4, !tbaa !5
  %261 = zext i32 %260 to i64
  %262 = getelementptr inbounds { float, float }, ptr %156, i64 %261
  %263 = getelementptr inbounds { float, float }, ptr %262, i32 0, i32 0
  %264 = load float, ptr %263, align 8
  %265 = getelementptr inbounds { float, float }, ptr %262, i32 0, i32 1
  %266 = load float, ptr %265, align 4
  %267 = fmul float 1.000000e+00, %264
  %268 = load float, ptr %33, align 4, !tbaa !11
  %269 = load float, ptr %33, align 4, !tbaa !11
  %270 = fmul float %268, %269
  %271 = fdiv float %267, %270
  %272 = load i32, ptr %17, align 4, !tbaa !5
  %273 = zext i32 %272 to i64
  %274 = getelementptr inbounds float, ptr %159, i64 %273
  store float %271, ptr %274, align 4, !tbaa !11
  br label %275

275:                                              ; preds = %219
  %276 = load i32, ptr %17, align 4, !tbaa !5
  %277 = add i32 %276, 1
  store i32 %277, ptr %17, align 4, !tbaa !5
  br label %215, !llvm.loop !18

278:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %279 = load i32, ptr %11, align 4, !tbaa !5
  %280 = load i32, ptr %12, align 4, !tbaa !5
  %281 = load ptr, ptr %20, align 8, !tbaa !9
  %282 = load i32, ptr %10, align 4, !tbaa !5
  %283 = call i32 @fec_sumproduct(i32 noundef %279, i32 noundef %280, ptr noundef %281, ptr noundef %159, ptr noundef %162, i32 noundef %282)
  store i32 %283, ptr %34, align 4, !tbaa !5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %284

284:                                              ; preds = %296, %278
  %285 = load i32, ptr %17, align 4, !tbaa !5
  %286 = load i32, ptr %11, align 4, !tbaa !5
  %287 = icmp ult i32 %285, %286
  br i1 %287, label %288, label %299

288:                                              ; preds = %284
  %289 = load i32, ptr %17, align 4, !tbaa !5
  %290 = zext i32 %289 to i64
  %291 = getelementptr inbounds i8, ptr %162, i64 %290
  %292 = load i8, ptr %291, align 1, !tbaa !13
  %293 = load i32, ptr %17, align 4, !tbaa !5
  %294 = zext i32 %293 to i64
  %295 = getelementptr inbounds i8, ptr %165, i64 %294
  store i8 %292, ptr %295, align 1, !tbaa !13
  br label %296

296:                                              ; preds = %288
  %297 = load i32, ptr %17, align 4, !tbaa !5
  %298 = add i32 %297, 1
  store i32 %298, ptr %17, align 4, !tbaa !5
  br label %284, !llvm.loop !19

299:                                              ; preds = %284
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %300

300:                                              ; preds = %323, %299
  %301 = load i32, ptr %17, align 4, !tbaa !5
  %302 = load i32, ptr %11, align 4, !tbaa !5
  %303 = icmp ult i32 %301, %302
  br i1 %303, label %304, label %326

304:                                              ; preds = %300
  %305 = load i32, ptr %17, align 4, !tbaa !5
  %306 = zext i32 %305 to i64
  %307 = getelementptr inbounds i8, ptr %165, i64 %306
  %308 = load i8, ptr %307, align 1, !tbaa !13
  %309 = zext i8 %308 to i32
  %310 = load i32, ptr %17, align 4, !tbaa !5
  %311 = zext i32 %310 to i64
  %312 = getelementptr inbounds i8, ptr %150, i64 %311
  %313 = load i8, ptr %312, align 1, !tbaa !13
  %314 = zext i8 %313 to i32
  %315 = icmp eq i32 %309, %314
  %316 = zext i1 %315 to i64
  %317 = select i1 %315, i32 0, i32 1
  %318 = load i32, ptr %29, align 4, !tbaa !5
  %319 = zext i32 %318 to i64
  %320 = getelementptr inbounds i32, ptr %168, i64 %319
  %321 = load i32, ptr %320, align 4, !tbaa !5
  %322 = add i32 %321, %317
  store i32 %322, ptr %320, align 4, !tbaa !5
  br label %323

323:                                              ; preds = %304
  %324 = load i32, ptr %17, align 4, !tbaa !5
  %325 = add i32 %324, 1
  store i32 %325, ptr %17, align 4, !tbaa !5
  br label %300, !llvm.loop !20

326:                                              ; preds = %300
  %327 = load i32, ptr %34, align 4, !tbaa !5
  %328 = icmp ne i32 %327, 0
  %329 = zext i1 %328 to i64
  %330 = select i1 %328, i32 0, i32 1
  %331 = load i32, ptr %29, align 4, !tbaa !5
  %332 = zext i32 %331 to i64
  %333 = getelementptr inbounds i32, ptr %171, i64 %332
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = add i32 %334, %330
  store i32 %335, ptr %333, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %336

336:                                              ; preds = %326
  %337 = load i32, ptr %28, align 4, !tbaa !5
  %338 = add i32 %337, 1
  store i32 %338, ptr %28, align 4, !tbaa !5
  br label %193, !llvm.loop !21

339:                                              ; preds = %193
  %340 = load float, ptr %32, align 4, !tbaa !11
  %341 = fpext float %340 to double
  %342 = load i32, ptr %11, align 4, !tbaa !5
  %343 = load i32, ptr %9, align 4, !tbaa !5
  %344 = mul i32 %342, %343
  %345 = load i32, ptr %29, align 4, !tbaa !5
  %346 = zext i32 %345 to i64
  %347 = getelementptr inbounds i32, ptr %168, i64 %346
  %348 = load i32, ptr %347, align 4, !tbaa !5
  %349 = load i32, ptr %29, align 4, !tbaa !5
  %350 = zext i32 %349 to i64
  %351 = getelementptr inbounds i32, ptr %168, i64 %350
  %352 = load i32, ptr %351, align 4, !tbaa !5
  %353 = uitofp i32 %352 to float
  %354 = load i32, ptr %9, align 4, !tbaa !5
  %355 = load i32, ptr %11, align 4, !tbaa !5
  %356 = mul i32 %354, %355
  %357 = uitofp i32 %356 to float
  %358 = fdiv float %353, %357
  %359 = fpext float %358 to double
  %360 = load float, ptr %33, align 4, !tbaa !11
  %361 = fdiv float 1.000000e+00, %360
  %362 = call float @erfcf(float noundef %361) #7
  %363 = fmul float 5.000000e-01, %362
  %364 = fpext float %363 to double
  %365 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %341, i32 noundef %344, i32 noundef %348, double noundef %359, double noundef %364)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %366

366:                                              ; preds = %339
  %367 = load i32, ptr %29, align 4, !tbaa !5
  %368 = add i32 %367, 1
  store i32 %368, ptr %29, align 4, !tbaa !5
  br label %173, !llvm.loop !22

369:                                              ; preds = %173
  %370 = load ptr, ptr %20, align 8, !tbaa !9
  %371 = call i32 @smatrixb_destroy(ptr noundef %370)
  %372 = load ptr, ptr %19, align 8, !tbaa !9
  %373 = call i32 @smatrixb_destroy(ptr noundef %372)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %374 = call noalias ptr @fopen(ptr noundef @.str.9, ptr noundef @.str.10)
  store ptr %374, ptr %35, align 8, !tbaa !9
  %375 = load ptr, ptr %35, align 8, !tbaa !9
  %376 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %375, ptr noundef @.str.11, ptr noundef @.str.9) #7
  %377 = load ptr, ptr %35, align 8, !tbaa !9
  %378 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %377, ptr noundef @.str.12) #7
  %379 = load ptr, ptr %35, align 8, !tbaa !9
  %380 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %379, ptr noundef @.str.13) #7
  %381 = load ptr, ptr %35, align 8, !tbaa !9
  %382 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %381, ptr noundef @.str.14) #7
  %383 = load ptr, ptr %35, align 8, !tbaa !9
  %384 = load i32, ptr %11, align 4, !tbaa !5
  %385 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %383, ptr noundef @.str.15, i32 noundef %384) #7
  %386 = load ptr, ptr %35, align 8, !tbaa !9
  %387 = load i32, ptr %12, align 4, !tbaa !5
  %388 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %386, ptr noundef @.str.16, i32 noundef %387) #7
  %389 = load ptr, ptr %35, align 8, !tbaa !9
  %390 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %389, ptr noundef @.str.17) #7
  %391 = load ptr, ptr %35, align 8, !tbaa !9
  %392 = load i32, ptr %8, align 4, !tbaa !5
  %393 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %391, ptr noundef @.str.18, i32 noundef %392) #7
  %394 = load ptr, ptr %35, align 8, !tbaa !9
  %395 = load i32, ptr %9, align 4, !tbaa !5
  %396 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %394, ptr noundef @.str.19, i32 noundef %395) #7
  %397 = load ptr, ptr %35, align 8, !tbaa !9
  %398 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %397, ptr noundef @.str.20) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %399

399:                                              ; preds = %430, %369
  %400 = load i32, ptr %17, align 4, !tbaa !5
  %401 = load i32, ptr %8, align 4, !tbaa !5
  %402 = icmp ult i32 %400, %401
  br i1 %402, label %403, label %433

403:                                              ; preds = %399
  %404 = load ptr, ptr %35, align 8, !tbaa !9
  %405 = load i32, ptr %17, align 4, !tbaa !5
  %406 = add i32 %405, 1
  %407 = load float, ptr %6, align 4, !tbaa !11
  %408 = load i32, ptr %17, align 4, !tbaa !5
  %409 = uitofp i32 %408 to float
  %410 = load float, ptr %21, align 4, !tbaa !11
  %411 = call float @llvm.fmuladd.f32(float %409, float %410, float %407)
  %412 = fpext float %411 to double
  %413 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %404, ptr noundef @.str.21, i32 noundef %406, double noundef %412) #7
  %414 = load ptr, ptr %35, align 8, !tbaa !9
  %415 = load i32, ptr %17, align 4, !tbaa !5
  %416 = add i32 %415, 1
  %417 = load i32, ptr %17, align 4, !tbaa !5
  %418 = zext i32 %417 to i64
  %419 = getelementptr inbounds i32, ptr %168, i64 %418
  %420 = load i32, ptr %419, align 4, !tbaa !5
  %421 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %414, ptr noundef @.str.22, i32 noundef %416, i32 noundef %420) #7
  %422 = load ptr, ptr %35, align 8, !tbaa !9
  %423 = load i32, ptr %17, align 4, !tbaa !5
  %424 = add i32 %423, 1
  %425 = load i32, ptr %17, align 4, !tbaa !5
  %426 = zext i32 %425 to i64
  %427 = getelementptr inbounds i32, ptr %171, i64 %426
  %428 = load i32, ptr %427, align 4, !tbaa !5
  %429 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %422, ptr noundef @.str.23, i32 noundef %424, i32 noundef %428) #7
  br label %430

430:                                              ; preds = %403
  %431 = load i32, ptr %17, align 4, !tbaa !5
  %432 = add i32 %431, 1
  store i32 %432, ptr %17, align 4, !tbaa !5
  br label %399, !llvm.loop !23

433:                                              ; preds = %399
  %434 = load ptr, ptr %35, align 8, !tbaa !9
  %435 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %434, ptr noundef @.str.24) #7
  %436 = load ptr, ptr %35, align 8, !tbaa !9
  %437 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %436, ptr noundef @.str.25) #7
  %438 = load ptr, ptr %35, align 8, !tbaa !9
  %439 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %438, ptr noundef @.str.12) #7
  %440 = load ptr, ptr %35, align 8, !tbaa !9
  %441 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %440, ptr noundef @.str.26) #7
  %442 = load ptr, ptr %35, align 8, !tbaa !9
  %443 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %442, ptr noundef @.str.27) #7
  %444 = load ptr, ptr %35, align 8, !tbaa !9
  %445 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %444, ptr noundef @.str.28) #7
  %446 = load ptr, ptr %35, align 8, !tbaa !9
  %447 = load float, ptr %6, align 4, !tbaa !11
  %448 = fpext float %447 to double
  %449 = load float, ptr %7, align 4, !tbaa !11
  %450 = fpext float %449 to double
  %451 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %446, ptr noundef @.str.29, double noundef %448, double noundef %450) #7
  %452 = load ptr, ptr %35, align 8, !tbaa !9
  %453 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %452, ptr noundef @.str.30) #7
  %454 = load ptr, ptr %35, align 8, !tbaa !9
  %455 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %454, ptr noundef @.str.31) #7
  %456 = load ptr, ptr %35, align 8, !tbaa !9
  %457 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %456, ptr noundef @.str.32) #7
  %458 = load ptr, ptr %35, align 8, !tbaa !9
  %459 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %458, ptr noundef @.str.33) #7
  %460 = load ptr, ptr %35, align 8, !tbaa !9
  %461 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %460, ptr noundef @.str.34) #7
  %462 = load ptr, ptr %35, align 8, !tbaa !9
  %463 = call i32 @fclose(ptr noundef %462)
  %464 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, ptr noundef @.str.9)
  %465 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #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 %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, 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
  %466 = load ptr, ptr %14, align 8
  call void @llvm.stackrestore.p0(ptr %466)
  call void @llvm.lifetime.end.p0(i64 16, 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 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %467 = load i32, ptr %3, align 4
  ret i32 %467
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #1

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #1

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

declare ptr @smatrixb_create_array(ptr noundef, i32 noundef, i32 noundef) #5

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

declare i32 @smatrixb_print_expanded(ptr noundef) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #1

; Function Attrs: nounwind
declare i32 @rand() #1

declare i32 @smatrixb_vmul(ptr noundef, ptr noundef, ptr noundef) #5

declare float @randnf(...) #5

declare i32 @fec_sumproduct(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #5

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

; Function Attrs: nounwind
declare float @erfcf(float noundef) #1

declare i32 @smatrixb_destroy(ptr noundef) #5

declare noalias ptr @fopen(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

declare i32 @fclose(ptr noundef) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}


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

@__const.main.p = external hidden unnamed_addr constant [16 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = tail call i64 @time(ptr noundef null) #8
  %4 = trunc i64 %3 to i32
  tail call void @srand(i32 noundef %4) #8
  %5 = alloca [512 x i8], align 16
  %6 = alloca [512 x i8], align 16
  br label %.preheader156

.preheader156:                                    ; preds = %2, %24
  %indvars.iv167 = phi i64 [ 0, %2 ], [ %indvars.iv.next168, %24 ]
  %7 = shl nuw nsw i64 %indvars.iv167, 5
  br label %8

8:                                                ; preds = %.preheader156, %8
  %indvars.iv = phi i64 [ 0, %.preheader156 ], [ %indvars.iv.next, %8 ]
  %9 = icmp eq i64 %indvars.iv167, %indvars.iv
  %10 = zext i1 %9 to i8
  %11 = shl nuw nsw i64 %indvars.iv, 4
  %12 = add nuw nsw i64 %11, %indvars.iv167
  %13 = getelementptr inbounds i8, ptr %5, i64 %12
  store i8 %10, ptr %13, align 1, !tbaa !5
  %14 = add nuw nsw i64 %indvars.iv, %indvars.iv167
  %15 = and i64 %14, 15
  %16 = getelementptr inbounds [16 x i8], ptr @__const.main.p, i64 0, i64 %15
  %17 = load i8, ptr %16, align 1, !tbaa !5
  %18 = or disjoint i64 %12, 256
  %19 = getelementptr inbounds i8, ptr %5, i64 %18
  store i8 %17, ptr %19, align 1, !tbaa !5
  %20 = add nuw nsw i64 %indvars.iv, %7
  %21 = or disjoint i64 %20, 16
  %22 = getelementptr inbounds i8, ptr %6, i64 %21
  store i8 %10, ptr %22, align 1, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %6, i64 %20
  store i8 %17, ptr %23, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 16
  br i1 %exitcond.not, label %24, label %8, !llvm.loop !8

24:                                               ; preds = %8
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %exitcond170.not = icmp eq i64 %indvars.iv.next168, 16
  br i1 %exitcond170.not, label %25, label %.preheader156, !llvm.loop !10

25:                                               ; preds = %24
  %26 = call ptr @smatrixb_create_array(ptr noundef nonnull %5, i32 noundef 32, i32 noundef 16) #8
  %27 = call ptr @smatrixb_create_array(ptr noundef nonnull %6, i32 noundef 16, i32 noundef 32) #8
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %29 = call i32 @smatrixb_print_expanded(ptr noundef %26) #8
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %31 = call i32 @smatrixb_print_expanded(ptr noundef %27) #8
  %32 = alloca [16 x i8], align 16
  %33 = alloca [32 x i8], align 16
  %34 = alloca [32 x float], align 16
  %35 = alloca [32 x i8], align 16
  %36 = alloca [32 x i8], align 16
  %37 = alloca [19 x i32], align 16
  %38 = alloca [19 x i32], align 16
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7)
  %40 = getelementptr inbounds i8, ptr %32, i64 1
  %41 = getelementptr inbounds i8, ptr %32, i64 2
  %42 = getelementptr inbounds i8, ptr %32, i64 3
  %43 = getelementptr inbounds i8, ptr %32, i64 4
  %44 = getelementptr inbounds i8, ptr %32, i64 5
  %45 = getelementptr inbounds i8, ptr %32, i64 6
  %46 = getelementptr inbounds i8, ptr %32, i64 7
  %47 = getelementptr inbounds i8, ptr %32, i64 8
  %48 = getelementptr inbounds i8, ptr %32, i64 9
  %49 = getelementptr inbounds i8, ptr %32, i64 10
  %50 = getelementptr inbounds i8, ptr %32, i64 11
  %51 = getelementptr inbounds i8, ptr %32, i64 12
  %52 = getelementptr inbounds i8, ptr %32, i64 13
  %53 = getelementptr inbounds i8, ptr %32, i64 14
  %54 = getelementptr inbounds i8, ptr %32, i64 15
  br label %55

55:                                               ; preds = %25, %139
  %indvars.iv187 = phi i64 [ 0, %25 ], [ %indvars.iv.next188, %139 ]
  %56 = trunc nuw nsw i64 %indvars.iv187 to i32
  %57 = uitofp nneg i32 %56 to float
  %58 = call float @llvm.fmuladd.f32(float %57, float 0x3FDC71C720000000, float -2.000000e+00)
  %59 = fdiv float %58, -2.000000e+01
  %60 = call float @powf(float noundef 1.000000e+01, float noundef %59) #8
  %61 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv187
  store i32 0, ptr %61, align 4, !tbaa !11
  %62 = getelementptr inbounds i32, ptr %38, i64 %indvars.iv187
  store i32 0, ptr %62, align 4, !tbaa !11
  %63 = fmul float %60, %60
  br label %.preheader155

.preheader155:                                    ; preds = %55, %.preheader
  %.promoted = phi i32 [ 0, %55 ], [ %op.rdx, %.preheader ]
  %.0152163 = phi i32 [ 0, %55 ], [ %138, %.preheader ]
  %64 = call i32 @rand() #8
  %65 = srem i32 %64, 2
  %66 = trunc nsw i32 %65 to i8
  store i8 %66, ptr %32, align 16, !tbaa !5
  %67 = call i32 @rand() #8
  %68 = srem i32 %67, 2
  %69 = trunc nsw i32 %68 to i8
  store i8 %69, ptr %40, align 1, !tbaa !5
  %70 = call i32 @rand() #8
  %71 = srem i32 %70, 2
  %72 = trunc nsw i32 %71 to i8
  store i8 %72, ptr %41, align 2, !tbaa !5
  %73 = call i32 @rand() #8
  %74 = srem i32 %73, 2
  %75 = trunc nsw i32 %74 to i8
  store i8 %75, ptr %42, align 1, !tbaa !5
  %76 = call i32 @rand() #8
  %77 = srem i32 %76, 2
  %78 = trunc nsw i32 %77 to i8
  store i8 %78, ptr %43, align 4, !tbaa !5
  %79 = call i32 @rand() #8
  %80 = srem i32 %79, 2
  %81 = trunc nsw i32 %80 to i8
  store i8 %81, ptr %44, align 1, !tbaa !5
  %82 = call i32 @rand() #8
  %83 = srem i32 %82, 2
  %84 = trunc nsw i32 %83 to i8
  store i8 %84, ptr %45, align 2, !tbaa !5
  %85 = call i32 @rand() #8
  %86 = srem i32 %85, 2
  %87 = trunc nsw i32 %86 to i8
  store i8 %87, ptr %46, align 1, !tbaa !5
  %88 = call i32 @rand() #8
  %89 = srem i32 %88, 2
  %90 = trunc nsw i32 %89 to i8
  store i8 %90, ptr %47, align 8, !tbaa !5
  %91 = call i32 @rand() #8
  %92 = srem i32 %91, 2
  %93 = trunc nsw i32 %92 to i8
  store i8 %93, ptr %48, align 1, !tbaa !5
  %94 = call i32 @rand() #8
  %95 = srem i32 %94, 2
  %96 = trunc nsw i32 %95 to i8
  store i8 %96, ptr %49, align 2, !tbaa !5
  %97 = call i32 @rand() #8
  %98 = srem i32 %97, 2
  %99 = trunc nsw i32 %98 to i8
  store i8 %99, ptr %50, align 1, !tbaa !5
  %100 = call i32 @rand() #8
  %101 = srem i32 %100, 2
  %102 = trunc nsw i32 %101 to i8
  store i8 %102, ptr %51, align 4, !tbaa !5
  %103 = call i32 @rand() #8
  %104 = srem i32 %103, 2
  %105 = trunc nsw i32 %104 to i8
  store i8 %105, ptr %52, align 1, !tbaa !5
  %106 = call i32 @rand() #8
  %107 = srem i32 %106, 2
  %108 = trunc nsw i32 %107 to i8
  store i8 %108, ptr %53, align 2, !tbaa !5
  %109 = call i32 @rand() #8
  %110 = srem i32 %109, 2
  %111 = trunc nsw i32 %110 to i8
  store i8 %111, ptr %54, align 1, !tbaa !5
  %112 = call i32 @smatrixb_vmul(ptr noundef %26, ptr noundef nonnull %32, ptr noundef nonnull %33) #8
  br label %113

113:                                              ; preds = %.preheader155, %113
  %indvars.iv175 = phi i64 [ 0, %.preheader155 ], [ %indvars.iv.next176, %113 ]
  %114 = getelementptr inbounds i8, ptr %33, i64 %indvars.iv175
  %115 = load i8, ptr %114, align 1, !tbaa !5
  %.not154 = icmp eq i8 %115, 0
  %116 = call float (...) @randnf() #8
  %117 = call float (...) @randnf() #8
  %118 = fmul float %117, 0.000000e+00
  %119 = fadd float %116, %118
  %120 = fmul float %60, %119
  %121 = fpext float %120 to double
  %122 = fmul double %121, 0x3FE6A09E667F3BCD
  %123 = select i1 %.not154, double 1.000000e+00, double -1.000000e+00
  %124 = fadd double %123, %122
  %125 = fptrunc double %124 to float
  %126 = fdiv float %125, %63
  %127 = getelementptr inbounds float, ptr %34, i64 %indvars.iv175
  store float %126, ptr %127, align 4, !tbaa !13
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %exitcond178.not = icmp eq i64 %indvars.iv.next176, 32
  br i1 %exitcond178.not, label %.preheader, label %113, !llvm.loop !15

.preheader:                                       ; preds = %113
  %128 = call i32 @fec_sumproduct(i32 noundef 16, i32 noundef 32, ptr noundef %27, ptr noundef nonnull %34, ptr noundef nonnull %35, i32 noundef 5) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %36, ptr noundef nonnull align 16 dereferenceable(16) %35, i64 16, i1 false), !tbaa !5
  %129 = load <16 x i8>, ptr %36, align 16, !tbaa !5
  %130 = load <16 x i8>, ptr %32, align 16, !tbaa !5
  %131 = icmp ne <16 x i8> %129, %130
  %132 = bitcast <16 x i1> %131 to i16
  %133 = call range(i16 0, 17) i16 @llvm.ctpop.i16(i16 %132)
  %134 = zext nneg i16 %133 to i32
  %op.rdx = add i32 %.promoted, %134
  store i32 %op.rdx, ptr %61, align 4, !tbaa !11
  %.not = icmp eq i32 %128, 0
  %135 = zext i1 %.not to i32
  %136 = load i32, ptr %62, align 4, !tbaa !11
  %137 = add i32 %136, %135
  store i32 %137, ptr %62, align 4, !tbaa !11
  %138 = add nuw nsw i32 %.0152163, 1
  %exitcond186.not = icmp eq i32 %138, 2000
  br i1 %exitcond186.not, label %139, label %.preheader155, !llvm.loop !16

139:                                              ; preds = %.preheader
  %140 = fpext float %58 to double
  %141 = uitofp i32 %op.rdx to float
  %142 = fdiv float %141, 3.200000e+04
  %143 = fpext float %142 to double
  %144 = fdiv float 1.000000e+00, %60
  %145 = call float @erfcf(float noundef %144) #8
  %146 = fmul float %145, 5.000000e-01
  %147 = fpext float %146 to double
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %140, i32 noundef 32000, i32 noundef %op.rdx, double noundef %143, double noundef %147)
  %indvars.iv.next188 = add nuw nsw i64 %indvars.iv187, 1
  %exitcond190.not = icmp eq i64 %indvars.iv.next188, 19
  br i1 %exitcond190.not, label %149, label %55, !llvm.loop !17

149:                                              ; preds = %139
  %150 = call i32 @smatrixb_destroy(ptr noundef %27) #8
  %151 = call i32 @smatrixb_destroy(ptr noundef %26) #8
  %152 = call noalias ptr @fopen(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10)
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.9) #8
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.12) #8
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.13) #8
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.14) #8
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.15, i32 noundef 16) #8
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.16, i32 noundef 32) #8
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.17) #8
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.18, i32 noundef 19) #8
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.19, i32 noundef 2000) #8
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.20) #8
  br label %163

163:                                              ; preds = %149, %163
  %indvars.iv191 = phi i64 [ 0, %149 ], [ %indvars.iv.next192, %163 ]
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %164 = trunc nuw nsw i64 %indvars.iv191 to i32
  %165 = uitofp nneg i32 %164 to float
  %166 = call float @llvm.fmuladd.f32(float %165, float 0x3FDC71C720000000, float -2.000000e+00)
  %167 = fpext float %166 to double
  %168 = trunc nuw nsw i64 %indvars.iv.next192 to i32
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.21, i32 noundef %168, double noundef %167) #8
  %170 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv191
  %171 = load i32, ptr %170, align 4, !tbaa !11
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.22, i32 noundef %168, i32 noundef %171) #8
  %173 = getelementptr inbounds i32, ptr %38, i64 %indvars.iv191
  %174 = load i32, ptr %173, align 4, !tbaa !11
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.23, i32 noundef %168, i32 noundef %174) #8
  %exitcond194.not = icmp eq i64 %indvars.iv.next192, 19
  br i1 %exitcond194.not, label %176, label %163, !llvm.loop !18

176:                                              ; preds = %163
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.24) #8
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.25) #8
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.12) #8
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.26) #8
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.27) #8
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.28) #8
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.29, double noundef -2.000000e+00, double noundef 6.000000e+00) #8
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.30) #8
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.31) #8
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.32) #8
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.33) #8
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.34) #8
  %189 = call i32 @fclose(ptr noundef %152)
  %190 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, ptr noundef nonnull @.str.9)
  %191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36)
  ret i32 0
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress 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) #2

declare ptr @smatrixb_create_array(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @smatrixb_print_expanded(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @powf(float noundef, float noundef) local_unnamed_addr #6

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #1

declare i32 @smatrixb_vmul(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare float @randnf(...) local_unnamed_addr #3

declare i32 @fec_sumproduct(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare float @erfcf(float noundef) local_unnamed_addr #1

declare i32 @smatrixb_destroy(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.ctpop.i16(i16) #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 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { mustprogress nofree nounwind willreturn memory(write) "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 }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !6, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !6, i64 0}
!15 = distinct !{!15, !9}
!16 = distinct !{!16, !9}
!17 = distinct !{!17, !9}
!18 = distinct !{!18, !9}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass