; LLVM IR from siconos/siconos :: externals/lbl/src (ma27_lib)

; 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.Ma27_Data = type { i32, i32, [31 x i32], [21 x i32], [6 x double], ptr, ptr, ptr, i32, ptr, ptr, i32, i32, double, i32, ptr, i32, ptr, ptr, i8, ptr }

@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [59 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @Process_Error_Code(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @MA27_Factorize(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.Ma27_Data, ptr %11, i32 0, i32 20
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %20

15:                                               ; preds = %2
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.Ma27_Data, ptr %16, i32 0, i32 20
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.3) #5
  br label %20

20:                                               ; preds = %15, %2
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.Ma27_Data, ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 4, !tbaa !14
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.Ma27_Data, ptr %25, i32 0, i32 15
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  call void @cblas_dcopy(i32 noundef %23, ptr noundef %24, i32 noundef 1, ptr noundef %27, i32 noundef 1)
  br label %28

28:                                               ; preds = %211, %20
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = icmp ne i32 %29, 0
  %31 = xor i1 %30, true
  br i1 %31, label %32, label %212

32:                                               ; preds = %28
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.Ma27_Data, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.Ma27_Data, ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.Ma27_Data, ptr %37, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.Ma27_Data, ptr %40, i32 0, i32 6
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.Ma27_Data, ptr %43, i32 0, i32 15
  %45 = load ptr, ptr %44, align 8, !tbaa !15
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Ma27_Data, ptr %46, i32 0, i32 14
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.Ma27_Data, ptr %48, i32 0, i32 7
  %50 = load ptr, ptr %49, align 8, !tbaa !18
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.Ma27_Data, ptr %51, i32 0, i32 8
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.Ma27_Data, ptr %53, i32 0, i32 9
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.Ma27_Data, ptr %56, i32 0, i32 11
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.Ma27_Data, ptr %58, i32 0, i32 16
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.Ma27_Data, ptr %60, i32 0, i32 10
  %62 = load ptr, ptr %61, align 8, !tbaa !20
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.Ma27_Data, ptr %63, i32 0, i32 2
  %65 = getelementptr inbounds [31 x i32], ptr %64, i64 0, i64 0
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.Ma27_Data, ptr %66, i32 0, i32 4
  %68 = getelementptr inbounds [6 x double], ptr %67, i64 0, i64 0
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.Ma27_Data, ptr %69, i32 0, i32 3
  %71 = getelementptr inbounds [21 x i32], ptr %70, i64 0, i64 0
  call void @ma27bd_(ptr noundef %34, ptr noundef %36, ptr noundef %39, ptr noundef %42, ptr noundef %45, ptr noundef %47, ptr noundef %50, ptr noundef %52, ptr noundef %55, ptr noundef %57, ptr noundef %59, ptr noundef %62, ptr noundef %65, ptr noundef %68, ptr noundef %71)
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Ma27_Data, ptr %72, i32 0, i32 3
  %74 = getelementptr inbounds [21 x i32], ptr %73, i64 0, i64 0
  %75 = load i32, ptr %74, align 4, !tbaa !9
  store i32 %75, ptr %7, align 4, !tbaa !9
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.Ma27_Data, ptr %76, i32 0, i32 4
  %78 = getelementptr inbounds [6 x double], ptr %77, i64 0, i64 0
  %79 = load double, ptr %78, align 8, !tbaa !21
  store double %79, ptr %8, align 8, !tbaa !21
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %83, label %82

82:                                               ; preds = %32
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %211

83:                                               ; preds = %32
  %84 = load i32, ptr %7, align 4, !tbaa !9
  %85 = icmp eq i32 %84, 3
  br i1 %85, label %89, label %86

86:                                               ; preds = %83
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = icmp eq i32 %87, -5
  br i1 %88, label %89, label %184

89:                                               ; preds = %86, %83
  %90 = load double, ptr %8, align 8, !tbaa !21
  %91 = fcmp ole double %90, 5.000000e-01
  br i1 %91, label %92, label %184

92:                                               ; preds = %89
  %93 = load double, ptr %8, align 8, !tbaa !21
  %94 = fcmp oeq double %93, 0.000000e+00
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  store double 0x3EB0C6F7A0B5ED8D, ptr %8, align 8, !tbaa !21
  br label %168

96:                                               ; preds = %92
  %97 = load double, ptr %8, align 8, !tbaa !21
  %98 = fmul double 1.000000e+02, %97
  %99 = call double @llvm.maxnum.f64(double -5.000000e-01, double %98)
  %100 = call double @llvm.minnum.f64(double 5.000000e-01, double %99)
  store double %100, ptr %9, align 8, !tbaa !21
  %101 = load double, ptr %9, align 8, !tbaa !21
  %102 = load double, ptr %8, align 8, !tbaa !21
  %103 = fcmp oeq double %101, %102
  br i1 %103, label %104, label %167

104:                                              ; preds = %96
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.Ma27_Data, ptr %105, i32 0, i32 20
  %107 = load ptr, ptr %106, align 8, !tbaa !11
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %114

109:                                              ; preds = %104
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.Ma27_Data, ptr %110, i32 0, i32 20
  %112 = load ptr, ptr %111, align 8, !tbaa !11
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.4) #5
  br label %114

114:                                              ; preds = %109, %104
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.Ma27_Data, ptr %115, i32 0, i32 20
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %127

119:                                              ; preds = %114
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Ma27_Data, ptr %120, i32 0, i32 20
  %122 = load ptr, ptr %121, align 8, !tbaa !11
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.Ma27_Data, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !22
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.5, i32 noundef %125) #5
  br label %127

127:                                              ; preds = %119, %114
  %128 = load i32, ptr %7, align 4, !tbaa !9
  %129 = icmp eq i32 %128, 3
  br i1 %129, label %130, label %152

130:                                              ; preds = %127
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.Ma27_Data, ptr %131, i32 0, i32 20
  %133 = load ptr, ptr %132, align 8, !tbaa !11
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %140

135:                                              ; preds = %130
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.Ma27_Data, ptr %136, i32 0, i32 20
  %138 = load ptr, ptr %137, align 8, !tbaa !11
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.6) #5
  br label %151

140:                                              ; preds = %130
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Ma27_Data, ptr %141, i32 0, i32 20
  %143 = load ptr, ptr %142, align 8, !tbaa !11
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %150

145:                                              ; preds = %140
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.Ma27_Data, ptr %146, i32 0, i32 20
  %148 = load ptr, ptr %147, align 8, !tbaa !11
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.7) #5
  br label %150

150:                                              ; preds = %145, %140
  br label %151

151:                                              ; preds = %150, %135
  br label %152

152:                                              ; preds = %151, %127
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.Ma27_Data, ptr %153, i32 0, i32 20
  %155 = load ptr, ptr %154, align 8, !tbaa !11
  %156 = icmp ne ptr %155, null
  br i1 %156, label %157, label %166

157:                                              ; preds = %152
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.Ma27_Data, ptr %158, i32 0, i32 20
  %160 = load ptr, ptr %159, align 8, !tbaa !11
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.Ma27_Data, ptr %161, i32 0, i32 3
  %163 = getelementptr inbounds [21 x i32], ptr %162, i64 0, i64 1
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.8, i32 noundef %164) #5
  br label %166

166:                                              ; preds = %157, %152
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %266

167:                                              ; preds = %96
  br label %168

168:                                              ; preds = %167, %95
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.Ma27_Data, ptr %169, i32 0, i32 20
  %171 = load ptr, ptr %170, align 8, !tbaa !11
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %179

173:                                              ; preds = %168
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.Ma27_Data, ptr %174, i32 0, i32 20
  %176 = load ptr, ptr %175, align 8, !tbaa !11
  %177 = load double, ptr %9, align 8, !tbaa !21
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.9, double noundef %177) #5
  br label %179

179:                                              ; preds = %173, %168
  %180 = load double, ptr %9, align 8, !tbaa !21
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.Ma27_Data, ptr %181, i32 0, i32 4
  %183 = getelementptr inbounds [6 x double], ptr %182, i64 0, i64 0
  store double %180, ptr %183, align 8, !tbaa !21
  br label %210

184:                                              ; preds = %89, %86
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = load i32, ptr %7, align 4, !tbaa !9
  %187 = call i32 @Process_Error_Code(ptr noundef %185, i32 noundef %186)
  store i32 %187, ptr %7, align 4, !tbaa !9
  %188 = load i32, ptr %7, align 4, !tbaa !9
  %189 = icmp eq i32 %188, -4
  br i1 %189, label %190, label %198

190:                                              ; preds = %184
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.Ma27_Data, ptr %191, i32 0, i32 1
  %193 = load i32, ptr %192, align 4, !tbaa !14
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.Ma27_Data, ptr %195, i32 0, i32 15
  %197 = load ptr, ptr %196, align 8, !tbaa !15
  call void @cblas_dcopy(i32 noundef %193, ptr noundef %194, i32 noundef 1, ptr noundef %197, i32 noundef 1)
  br label %198

198:                                              ; preds = %190, %184
  %199 = load i32, ptr %7, align 4, !tbaa !9
  %200 = icmp slt i32 %199, 0
  br i1 %200, label %201, label %209

201:                                              ; preds = %198
  %202 = load i32, ptr %7, align 4, !tbaa !9
  %203 = icmp ne i32 %202, -3
  br i1 %203, label %204, label %209

204:                                              ; preds = %201
  %205 = load i32, ptr %7, align 4, !tbaa !9
  %206 = icmp ne i32 %205, -4
  br i1 %206, label %207, label %209

207:                                              ; preds = %204
  %208 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %208, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %266

209:                                              ; preds = %204, %201, %198
  br label %210

210:                                              ; preds = %209, %179
  br label %211

211:                                              ; preds = %210, %82
  br label %28, !llvm.loop !23

212:                                              ; preds = %28
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.Ma27_Data, ptr %213, i32 0, i32 20
  %215 = load ptr, ptr %214, align 8, !tbaa !11
  %216 = icmp ne ptr %215, null
  br i1 %216, label %217, label %226

217:                                              ; preds = %212
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.Ma27_Data, ptr %218, i32 0, i32 20
  %220 = load ptr, ptr %219, align 8, !tbaa !11
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.Ma27_Data, ptr %221, i32 0, i32 3
  %223 = getelementptr inbounds [21 x i32], ptr %222, i64 0, i64 13
  %224 = load i32, ptr %223, align 4, !tbaa !9
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef @.str.10, i32 noundef %224) #5
  br label %226

226:                                              ; preds = %217, %212
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.Ma27_Data, ptr %227, i32 0, i32 20
  %229 = load ptr, ptr %228, align 8, !tbaa !11
  %230 = icmp ne ptr %229, null
  br i1 %230, label %231, label %255

231:                                              ; preds = %226
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.Ma27_Data, ptr %232, i32 0, i32 20
  %234 = load ptr, ptr %233, align 8, !tbaa !11
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.Ma27_Data, ptr %235, i32 0, i32 3
  %237 = getelementptr inbounds [21 x i32], ptr %236, i64 0, i64 7
  %238 = load i32, ptr %237, align 4, !tbaa !9
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.Ma27_Data, ptr %239, i32 0, i32 3
  %241 = getelementptr inbounds [21 x i32], ptr %240, i64 0, i64 7
  %242 = load i32, ptr %241, align 4, !tbaa !9
  %243 = sitofp i32 %242 to double
  %244 = fmul double 1.000000e+02, %243
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.Ma27_Data, ptr %245, i32 0, i32 0
  %247 = load i32, ptr %246, align 8, !tbaa !22
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.Ma27_Data, ptr %248, i32 0, i32 0
  %250 = load i32, ptr %249, align 8, !tbaa !22
  %251 = mul nsw i32 %247, %250
  %252 = sitofp i32 %251 to double
  %253 = fdiv double %244, %252
  %254 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.11, i32 noundef %238, double noundef %253) #5
  br label %255

255:                                              ; preds = %231, %226
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.Ma27_Data, ptr %256, i32 0, i32 20
  %258 = load ptr, ptr %257, align 8, !tbaa !11
  %259 = icmp ne ptr %258, null
  br i1 %259, label %260, label %265

260:                                              ; preds = %255
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.Ma27_Data, ptr %261, i32 0, i32 20
  %263 = load ptr, ptr %262, align 8, !tbaa !11
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef @.str.1) #5
  br label %265

265:                                              ; preds = %260, %255
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %266

266:                                              ; preds = %265, %207, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %267 = load i32, ptr %3, align 4
  ret i32 %267
}

declare void @cblas_dcopy(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

declare void @ma27bd_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.maxnum.f64(double, double) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.minnum.f64(double, double) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 376}
!12 = !{!"Ma27_Data", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 132, !7, i64 216, !6, i64 264, !6, i64 272, !6, i64 280, !10, i64 288, !6, i64 296, !6, i64 304, !10, i64 312, !10, i64 316, !13, i64 320, !10, i64 328, !6, i64 336, !10, i64 344, !6, i64 352, !6, i64 360, !7, i64 368, !6, i64 376}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !10, i64 4}
!15 = !{!12, !6, i64 336}
!16 = !{!12, !6, i64 264}
!17 = !{!12, !6, i64 272}
!18 = !{!12, !6, i64 280}
!19 = !{!12, !6, i64 296}
!20 = !{!12, !6, i64 304}
!21 = !{!13, !13, i64 0}
!22 = !{!12, !10, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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

@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [59 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @Process_Error_Code(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -2147483648, 1) i32 @MA27_Factorize(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 376
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %7, label %5

5:                                                ; preds = %2
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.3) #4
  br label %7

7:                                                ; preds = %5, %2
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %0, i64 336
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  tail call void @cblas_dcopy(i32 noundef %9, ptr noundef %1, i32 noundef 1, ptr noundef %11, i32 noundef 1) #4
  %12 = getelementptr inbounds i8, ptr %0, i64 264
  %13 = getelementptr inbounds i8, ptr %0, i64 272
  %14 = getelementptr inbounds i8, ptr %0, i64 328
  %15 = getelementptr inbounds i8, ptr %0, i64 280
  %16 = getelementptr inbounds i8, ptr %0, i64 288
  %17 = getelementptr inbounds i8, ptr %0, i64 296
  %18 = getelementptr inbounds i8, ptr %0, i64 312
  %19 = getelementptr inbounds i8, ptr %0, i64 344
  %20 = getelementptr inbounds i8, ptr %0, i64 304
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = getelementptr inbounds i8, ptr %0, i64 216
  %23 = getelementptr inbounds i8, ptr %0, i64 132
  br label %.outer

.outer:                                           ; preds = %63, %7
  %.0118.ph = phi double [ %.1, %63 ], [ undef, %7 ]
  br label %24

24:                                               ; preds = %.backedge, %.outer
  %25 = load ptr, ptr %12, align 8, !tbaa !14
  %26 = load ptr, ptr %13, align 8, !tbaa !15
  %27 = load ptr, ptr %10, align 8, !tbaa !13
  %28 = load ptr, ptr %15, align 8, !tbaa !16
  %29 = load ptr, ptr %17, align 8, !tbaa !17
  %30 = load ptr, ptr %20, align 8, !tbaa !18
  tail call void @ma27bd_(ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef nonnull %14, ptr noundef %28, ptr noundef nonnull %16, ptr noundef %29, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef %30, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %23) #4
  %31 = load i32, ptr %23, align 4, !tbaa !19
  %.not98.not = icmp eq i32 %31, 0
  br i1 %.not98.not, label %73, label %32

32:                                               ; preds = %24
  %33 = load double, ptr %22, align 8, !tbaa !20
  %34 = icmp eq i32 %31, 3
  %35 = icmp eq i32 %31, -5
  %or.cond = or i1 %34, %35
  %36 = fcmp ole double %33, 5.000000e-01
  %or.cond3 = select i1 %or.cond, i1 %36, i1 false
  br i1 %or.cond3, label %37, label %64

37:                                               ; preds = %32
  %38 = fcmp oeq double %33, 0.000000e+00
  br i1 %38, label %59, label %39

39:                                               ; preds = %37
  %40 = fmul double %33, 1.000000e+02
  %41 = tail call double @llvm.maxnum.f64(double %40, double -5.000000e-01)
  %42 = tail call double @llvm.minnum.f64(double %41, double 5.000000e-01)
  %43 = fcmp oeq double %42, %33
  br i1 %43, label %44, label %59

44:                                               ; preds = %39
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %.not99 = icmp eq ptr %45, null
  br i1 %.not99, label %.thread, label %46

46:                                               ; preds = %44
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %45, ptr noundef nonnull @.str.4) #4
  %.pr = load ptr, ptr %3, align 8, !tbaa !5
  %.not100 = icmp eq ptr %.pr, null
  br i1 %.not100, label %.thread, label %48

48:                                               ; preds = %46
  %49 = load i32, ptr %0, align 8, !tbaa !21
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %.pr, ptr noundef nonnull @.str.5, i32 noundef %49) #4
  %.pr105.pre121.pre = load ptr, ptr %3, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %44, %48, %46
  %.pr105.pre121 = phi ptr [ null, %44 ], [ %.pr105.pre121.pre, %48 ], [ null, %46 ]
  br i1 %34, label %51, label %54

51:                                               ; preds = %.thread
  %.not101 = icmp eq ptr %.pr105.pre121, null
  br i1 %.not101, label %.thread106, label %52

52:                                               ; preds = %51
  %53 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %.pr105.pre121, ptr noundef nonnull @.str.6) #4
  %.pr105.pre = load ptr, ptr %3, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %52, %.thread
  %.pr105 = phi ptr [ %.pr105.pre, %52 ], [ %.pr105.pre121, %.thread ]
  %.not102 = icmp eq ptr %.pr105, null
  br i1 %.not102, label %.thread106, label %55

55:                                               ; preds = %54
  %56 = getelementptr inbounds i8, ptr %0, i64 136
  %57 = load i32, ptr %56, align 4, !tbaa !19
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %.pr105, ptr noundef nonnull @.str.8, i32 noundef %57) #4
  br label %.thread106

59:                                               ; preds = %37, %39
  %.1 = phi double [ %42, %39 ], [ %.0118.ph, %37 ]
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %.not103 = icmp eq ptr %60, null
  br i1 %.not103, label %63, label %61

61:                                               ; preds = %59
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %60, ptr noundef nonnull @.str.9, double noundef %.1) #4
  br label %63

63:                                               ; preds = %61, %59
  store double %.1, ptr %22, align 8, !tbaa !20
  br label %.outer

64:                                               ; preds = %32
  %65 = tail call i32 @Process_Error_Code(ptr noundef nonnull %0, i32 noundef %31)
  %66 = icmp eq i32 %65, -4
  br i1 %66, label %.thread108, label %69

.thread108:                                       ; preds = %64
  %67 = load i32, ptr %8, align 4, !tbaa !12
  %68 = load ptr, ptr %10, align 8, !tbaa !13
  tail call void @cblas_dcopy(i32 noundef %67, ptr noundef %1, i32 noundef 1, ptr noundef %68, i32 noundef 1) #4
  br label %.backedge

.backedge:                                        ; preds = %.thread108, %69
  br label %24

69:                                               ; preds = %64
  %70 = icmp slt i32 %65, 0
  %71 = and i32 %65, -2
  %72 = icmp ne i32 %71, -4
  %or.cond7 = and i1 %70, %72
  br i1 %or.cond7, label %.thread106, label %.backedge

73:                                               ; preds = %24
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %.not95 = icmp eq ptr %74, null
  br i1 %.not95, label %.thread106, label %75

75:                                               ; preds = %73
  %76 = getelementptr inbounds i8, ptr %0, i64 184
  %77 = load i32, ptr %76, align 4, !tbaa !19
  %78 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %74, ptr noundef nonnull @.str.10, i32 noundef %77) #4
  %.pr110 = load ptr, ptr %3, align 8, !tbaa !5
  %.not96 = icmp eq ptr %.pr110, null
  br i1 %.not96, label %.thread106, label %79

79:                                               ; preds = %75
  %80 = getelementptr inbounds i8, ptr %0, i64 160
  %81 = load i32, ptr %80, align 4, !tbaa !19
  %82 = sitofp i32 %81 to double
  %83 = fmul double %82, 1.000000e+02
  %84 = load i32, ptr %0, align 8, !tbaa !21
  %85 = mul nsw i32 %84, %84
  %86 = uitofp nneg i32 %85 to double
  %87 = fdiv double %83, %86
  %88 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %.pr110, ptr noundef nonnull @.str.11, i32 noundef %81, double noundef %87) #4
  %.pr113 = load ptr, ptr %3, align 8, !tbaa !5
  %.not97 = icmp eq ptr %.pr113, null
  br i1 %.not97, label %.thread106, label %89

89:                                               ; preds = %79
  %90 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %.pr113, ptr noundef nonnull @.str.1) #4
  br label %.thread106

.thread106:                                       ; preds = %69, %73, %75, %51, %79, %89, %54, %55
  %.079 = phi i32 [ -2, %55 ], [ -2, %54 ], [ 0, %89 ], [ 0, %79 ], [ -2, %51 ], [ 0, %75 ], [ 0, %73 ], [ %65, %69 ]
  ret i32 %.079
}

declare void @cblas_dcopy(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @ma27bd_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.maxnum.f64(double, double) #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.minnum.f64(double, double) #3

attributes #0 = { 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 #1 = { 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 #2 = { "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !10, i64 376}
!6 = !{!"Ma27_Data", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 132, !8, i64 216, !10, i64 264, !10, i64 272, !10, i64 280, !7, i64 288, !10, i64 296, !10, i64 304, !7, i64 312, !7, i64 316, !11, i64 320, !7, i64 328, !10, i64 336, !7, i64 344, !10, i64 352, !10, i64 360, !8, i64 368, !10, i64 376}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !10, i64 336}
!14 = !{!6, !10, i64 264}
!15 = !{!6, !10, i64 272}
!16 = !{!6, !10, i64 280}
!17 = !{!6, !10, i64 296}
!18 = !{!6, !10, i64 304}
!19 = !{!7, !7, i64 0}
!20 = !{!11, !11, i64 0}
!21 = !{!6, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass