; LLVM IR from siconos/siconos :: externals/lbl/src (ma57_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.Ma57_Data = type { i32, i32, [21 x i32], [6 x double], [41 x i32], [21 x double], ptr, ptr, i32, ptr, ptr, ptr, i32, ptr, i32, i32, i32, ptr, i32, ptr, i32, i32, ptr, ptr, i8, i32, i32, ptr }

@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [15 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

declare ptr @LBL_Calloc(i32 noundef, i64 noundef) #1

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

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

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

declare void @LBL_Free_Object(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @Ma57_Factorize(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %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 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 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.Ma57_Data, ptr %14, i32 0, i32 27
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %23

18:                                               ; preds = %2
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.Ma57_Data, ptr %19, i32 0, i32 27
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.5) #5
  br label %23

23:                                               ; preds = %18, %2
  br label %24

24:                                               ; preds = %222, %23
  %25 = load i32, ptr %11, align 4, !tbaa !9
  %26 = icmp ne i32 %25, 0
  %27 = xor i1 %26, true
  br i1 %27, label %28, label %223

28:                                               ; preds = %24
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.Ma57_Data, ptr %29, i32 0, i32 27
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %38

33:                                               ; preds = %28
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.Ma57_Data, ptr %34, i32 0, i32 27
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.6) #5
  br label %38

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

80:                                               ; preds = %38
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %222

81:                                               ; preds = %38
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = call i32 @Process_Error_Code(ptr noundef %82, i32 noundef %83)
  store i32 %84, ptr %12, align 4, !tbaa !9
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = icmp eq i32 %85, -3
  br i1 %86, label %90, label %87

87:                                               ; preds = %81
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 10
  br i1 %89, label %90, label %149

90:                                               ; preds = %87, %81
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = icmp eq i32 %91, 10
  br i1 %92, label %93, label %97

93:                                               ; preds = %90
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.Ma57_Data, ptr %94, i32 0, i32 12
  %96 = load i32, ptr %95, align 8, !tbaa !17
  br label %102

97:                                               ; preds = %90
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Ma57_Data, ptr %98, i32 0, i32 4
  %100 = getelementptr inbounds [41 x i32], ptr %99, i64 0, i64 16
  %101 = load i32, ptr %100, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %97, %93
  %103 = phi i32 [ %96, %93 ], [ %101, %97 ]
  store i32 %103, ptr %8, align 4, !tbaa !9
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = sitofp i32 %104 to double
  %106 = fmul double 1.200000e+00, %105
  %107 = call double @llvm.ceil.f64(double %106)
  %108 = fptosi double %107 to i32
  store i32 %108, ptr %8, align 4, !tbaa !9
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.Ma57_Data, ptr %109, i32 0, i32 27
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %119

113:                                              ; preds = %102
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.Ma57_Data, ptr %114, i32 0, i32 27
  %116 = load ptr, ptr %115, align 8, !tbaa !11
  %117 = load i32, ptr %8, align 4, !tbaa !9
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.7, i32 noundef %117) #5
  br label %119

119:                                              ; preds = %113, %102
  %120 = load i32, ptr %8, align 4, !tbaa !9
  %121 = call ptr @LBL_Calloc(i32 noundef %120, i64 noundef 8)
  store ptr %121, ptr %6, align 8, !tbaa !5
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.Ma57_Data, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.Ma57_Data, ptr %124, i32 0, i32 9
  %126 = load ptr, ptr %125, align 8, !tbaa !15
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.Ma57_Data, ptr %127, i32 0, i32 11
  %129 = load ptr, ptr %128, align 8, !tbaa !13
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Ma57_Data, ptr %130, i32 0, i32 12
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.Ma57_Data, ptr %133, i32 0, i32 13
  %135 = load ptr, ptr %134, align 8, !tbaa !14
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.Ma57_Data, ptr %136, i32 0, i32 14
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.Ma57_Data, ptr %138, i32 0, i32 4
  %140 = getelementptr inbounds [41 x i32], ptr %139, i64 0, i64 0
  call void @ma57ed_(ptr noundef %123, ptr noundef %10, ptr noundef %126, ptr noundef %129, ptr noundef %131, ptr noundef %132, ptr noundef %8, ptr noundef %135, ptr noundef %137, ptr noundef null, ptr noundef %10, ptr noundef %140)
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Ma57_Data, ptr %141, i32 0, i32 11
  call void @LBL_Free_Object(ptr noundef %142)
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.Ma57_Data, ptr %144, i32 0, i32 11
  store ptr %143, ptr %145, align 8, !tbaa !13
  store ptr null, ptr %6, align 8, !tbaa !5
  %146 = load i32, ptr %8, align 4, !tbaa !9
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.Ma57_Data, ptr %147, i32 0, i32 12
  store i32 %146, ptr %148, align 8, !tbaa !17
  br label %221

149:                                              ; preds = %87
  %150 = load i32, ptr %12, align 4, !tbaa !9
  %151 = icmp eq i32 %150, -4
  br i1 %151, label %155, label %152

152:                                              ; preds = %149
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = icmp eq i32 %153, 11
  br i1 %154, label %155, label %214

155:                                              ; preds = %152, %149
  %156 = load i32, ptr %12, align 4, !tbaa !9
  %157 = icmp eq i32 %156, 11
  br i1 %157, label %158, label %162

158:                                              ; preds = %155
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.Ma57_Data, ptr %159, i32 0, i32 14
  %161 = load i32, ptr %160, align 8, !tbaa !18
  br label %167

162:                                              ; preds = %155
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.Ma57_Data, ptr %163, i32 0, i32 4
  %165 = getelementptr inbounds [41 x i32], ptr %164, i64 0, i64 17
  %166 = load i32, ptr %165, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %162, %158
  %168 = phi i32 [ %161, %158 ], [ %166, %162 ]
  store i32 %168, ptr %8, align 4, !tbaa !9
  %169 = load i32, ptr %8, align 4, !tbaa !9
  %170 = sitofp i32 %169 to double
  %171 = fmul double 1.200000e+00, %170
  %172 = call double @llvm.ceil.f64(double %171)
  %173 = fptosi double %172 to i32
  store i32 %173, ptr %8, align 4, !tbaa !9
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.Ma57_Data, ptr %174, i32 0, i32 27
  %176 = load ptr, ptr %175, align 8, !tbaa !11
  %177 = icmp ne ptr %176, null
  br i1 %177, label %178, label %184

178:                                              ; preds = %167
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.Ma57_Data, ptr %179, i32 0, i32 27
  %181 = load ptr, ptr %180, align 8, !tbaa !11
  %182 = load i32, ptr %8, align 4, !tbaa !9
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.8, i32 noundef %182) #5
  br label %184

184:                                              ; preds = %178, %167
  %185 = load i32, ptr %8, align 4, !tbaa !9
  %186 = call ptr @LBL_Calloc(i32 noundef %185, i64 noundef 4)
  store ptr %186, ptr %7, align 8, !tbaa !5
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.Ma57_Data, ptr %187, i32 0, i32 0
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.Ma57_Data, ptr %189, i32 0, i32 9
  %191 = load ptr, ptr %190, align 8, !tbaa !15
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.Ma57_Data, ptr %192, i32 0, i32 11
  %194 = load ptr, ptr %193, align 8, !tbaa !13
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.Ma57_Data, ptr %195, i32 0, i32 12
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.Ma57_Data, ptr %197, i32 0, i32 13
  %199 = load ptr, ptr %198, align 8, !tbaa !14
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.Ma57_Data, ptr %200, i32 0, i32 14
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.Ma57_Data, ptr %203, i32 0, i32 4
  %205 = getelementptr inbounds [41 x i32], ptr %204, i64 0, i64 0
  call void @ma57ed_(ptr noundef %188, ptr noundef %9, ptr noundef %191, ptr noundef %194, ptr noundef %196, ptr noundef null, ptr noundef %10, ptr noundef %199, ptr noundef %201, ptr noundef %202, ptr noundef %8, ptr noundef %205)
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.Ma57_Data, ptr %206, i32 0, i32 13
  call void @LBL_Free_Object(ptr noundef %207)
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.Ma57_Data, ptr %209, i32 0, i32 13
  store ptr %208, ptr %210, align 8, !tbaa !14
  store ptr null, ptr %7, align 8, !tbaa !5
  %211 = load i32, ptr %8, align 4, !tbaa !9
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.Ma57_Data, ptr %212, i32 0, i32 14
  store i32 %211, ptr %213, align 8, !tbaa !18
  br label %220

214:                                              ; preds = %152
  store i32 1, ptr %11, align 4, !tbaa !9
  %215 = load i32, ptr %12, align 4, !tbaa !9
  %216 = icmp slt i32 %215, 0
  br i1 %216, label %217, label %219

217:                                              ; preds = %214
  %218 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %218, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %298

219:                                              ; preds = %214
  br label %220

220:                                              ; preds = %219, %184
  br label %221

221:                                              ; preds = %220, %119
  br label %222

222:                                              ; preds = %221, %80
  br label %24, !llvm.loop !19

223:                                              ; preds = %24
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.Ma57_Data, ptr %224, i32 0, i32 27
  %226 = load ptr, ptr %225, align 8, !tbaa !11
  %227 = icmp ne ptr %226, null
  br i1 %227, label %228, label %233

228:                                              ; preds = %223
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.Ma57_Data, ptr %229, i32 0, i32 27
  %231 = load ptr, ptr %230, align 8, !tbaa !11
  %232 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %231, ptr noundef @.str.9) #5
  br label %233

233:                                              ; preds = %228, %223
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.Ma57_Data, ptr %234, i32 0, i32 27
  %236 = load ptr, ptr %235, align 8, !tbaa !11
  %237 = icmp ne ptr %236, null
  br i1 %237, label %238, label %251

238:                                              ; preds = %233
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.Ma57_Data, ptr %239, i32 0, i32 27
  %241 = load ptr, ptr %240, align 8, !tbaa !11
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.Ma57_Data, ptr %242, i32 0, i32 4
  %244 = getelementptr inbounds [41 x i32], ptr %243, i64 0, i64 21
  %245 = load i32, ptr %244, align 4, !tbaa !9
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.Ma57_Data, ptr %246, i32 0, i32 4
  %248 = getelementptr inbounds [41 x i32], ptr %247, i64 0, i64 26
  %249 = load i32, ptr %248, align 8, !tbaa !9
  %250 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %241, ptr noundef @.str.10, ptr noundef @.str.11, i32 noundef %245, ptr noundef @.str.12, i32 noundef %249) #5
  br label %251

251:                                              ; preds = %238, %233
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.Ma57_Data, ptr %252, i32 0, i32 27
  %254 = load ptr, ptr %253, align 8, !tbaa !11
  %255 = icmp ne ptr %254, null
  br i1 %255, label %256, label %269

256:                                              ; preds = %251
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.Ma57_Data, ptr %257, i32 0, i32 27
  %259 = load ptr, ptr %258, align 8, !tbaa !11
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.Ma57_Data, ptr %260, i32 0, i32 4
  %262 = getelementptr inbounds [41 x i32], ptr %261, i64 0, i64 23
  %263 = load i32, ptr %262, align 4, !tbaa !9
  %264 = load ptr, ptr %4, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.Ma57_Data, ptr %264, i32 0, i32 4
  %266 = getelementptr inbounds [41 x i32], ptr %265, i64 0, i64 13
  %267 = load i32, ptr %266, align 4, !tbaa !9
  %268 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef @.str.13, ptr noundef @.str.14, i32 noundef %263, ptr noundef @.str.15, i32 noundef %267) #5
  br label %269

269:                                              ; preds = %256, %251
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.Ma57_Data, ptr %270, i32 0, i32 27
  %272 = load ptr, ptr %271, align 8, !tbaa !11
  %273 = icmp ne ptr %272, null
  br i1 %273, label %274, label %287

274:                                              ; preds = %269
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.Ma57_Data, ptr %275, i32 0, i32 27
  %277 = load ptr, ptr %276, align 8, !tbaa !11
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.Ma57_Data, ptr %278, i32 0, i32 4
  %280 = getelementptr inbounds [41 x i32], ptr %279, i64 0, i64 24
  %281 = load i32, ptr %280, align 8, !tbaa !9
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.Ma57_Data, ptr %282, i32 0, i32 4
  %284 = getelementptr inbounds [41 x i32], ptr %283, i64 0, i64 25
  %285 = load i32, ptr %284, align 4, !tbaa !9
  %286 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %277, ptr noundef @.str.13, ptr noundef @.str.16, i32 noundef %281, ptr noundef @.str.17, i32 noundef %285) #5
  br label %287

287:                                              ; preds = %274, %269
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.Ma57_Data, ptr %288, i32 0, i32 27
  %290 = load ptr, ptr %289, align 8, !tbaa !11
  %291 = icmp ne ptr %290, null
  br i1 %291, label %292, label %297

292:                                              ; preds = %287
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.Ma57_Data, ptr %293, i32 0, i32 27
  %295 = load ptr, ptr %294, align 8, !tbaa !11
  %296 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %295, ptr noundef @.str.18) #5
  br label %297

297:                                              ; preds = %292, %287
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %298

298:                                              ; preds = %297, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %299 = load i32, ptr %3, align 4
  ret i32 %299
}

declare void @ma57bd_(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) #1

declare void @ma57ed_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 "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 = { 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 #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 624}
!12 = !{!"Ma57_Data", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 96, !7, i64 144, !7, i64 312, !6, i64 480, !6, i64 488, !10, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !10, i64 528, !6, i64 536, !10, i64 544, !10, i64 548, !10, i64 552, !6, i64 560, !10, i64 568, !6, i64 576, !10, i64 584, !10, i64 588, !6, i64 592, !6, i64 600, !7, i64 608, !10, i64 612, !10, i64 616, !6, i64 624}
!13 = !{!12, !6, i64 520}
!14 = !{!12, !6, i64 536}
!15 = !{!12, !6, i64 504}
!16 = !{!12, !6, i64 512}
!17 = !{!12, !10, i64 528}
!18 = !{!12, !10, i64 544}
!19 = distinct !{!19, !20}
!20 = !{!"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.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [15 x i8], align 1

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

declare ptr @LBL_Calloc(i32 noundef, i64 noundef) local_unnamed_addr #1

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

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

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

declare void @LBL_Free_Object(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -2147483648, 1) i32 @Ma57_Factorize(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 624
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %10, label %8

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

10:                                               ; preds = %8, %2
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = getelementptr inbounds i8, ptr %0, i64 520
  %13 = getelementptr inbounds i8, ptr %0, i64 528
  %14 = getelementptr inbounds i8, ptr %0, i64 536
  %15 = getelementptr inbounds i8, ptr %0, i64 544
  %16 = getelementptr inbounds i8, ptr %0, i64 496
  %17 = getelementptr inbounds i8, ptr %0, i64 504
  %18 = getelementptr inbounds i8, ptr %0, i64 512
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = getelementptr inbounds i8, ptr %0, i64 96
  %21 = getelementptr inbounds i8, ptr %0, i64 144
  %22 = getelementptr inbounds i8, ptr %0, i64 312
  %23 = getelementptr inbounds i8, ptr %0, i64 212
  %24 = getelementptr inbounds i8, ptr %0, i64 208
  br label %25

25:                                               ; preds = %.backedge, %10
  %26 = load ptr, ptr %6, align 8, !tbaa !9
  %.not100 = icmp eq ptr %26, null
  br i1 %.not100, label %29, label %27

27:                                               ; preds = %25
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %26, ptr noundef nonnull @.str.6) #5
  br label %29

29:                                               ; preds = %27, %25
  %30 = load ptr, ptr %12, align 8, !tbaa !12
  %31 = load ptr, ptr %14, align 8, !tbaa !13
  %32 = load ptr, ptr %17, align 8, !tbaa !14
  %33 = load ptr, ptr %18, align 8, !tbaa !15
  call void @ma57bd_(ptr noundef nonnull %0, ptr noundef nonnull %11, ptr noundef %1, ptr noundef %30, ptr noundef nonnull %13, ptr noundef %31, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef %32, ptr noundef %33, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22) #5
  %34 = load i32, ptr %21, align 8, !tbaa !5
  %.not101 = icmp eq i32 %34, 0
  br i1 %.not101, label %.loopexit, label %35

35:                                               ; preds = %29
  %36 = call i32 @Process_Error_Code(ptr noundef nonnull %0, i32 noundef %34)
  switch i32 %36, label %71 [
    i32 10, label %38
    i32 -3, label %37
    i32 11, label %55
    i32 -4, label %54
  ]

37:                                               ; preds = %35
  br label %38

38:                                               ; preds = %35, %37
  %.in103 = phi ptr [ %24, %37 ], [ %13, %35 ]
  %39 = load i32, ptr %.in103, align 8, !tbaa !5
  %40 = sitofp i32 %39 to double
  %41 = fmul double %40, 1.200000e+00
  %42 = call double @llvm.ceil.f64(double %41)
  %43 = fptosi double %42 to i32
  store i32 %43, ptr %3, align 4, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !9
  %.not104 = icmp eq ptr %44, null
  br i1 %.not104, label %47, label %45

45:                                               ; preds = %38
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %44, ptr noundef nonnull @.str.7, i32 noundef %43) #5
  %.pre118 = load i32, ptr %3, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %45, %38
  %48 = phi i32 [ %.pre118, %45 ], [ %43, %38 ]
  %49 = call ptr @LBL_Calloc(i32 noundef %48, i64 noundef 8) #5
  %50 = load ptr, ptr %17, align 8, !tbaa !14
  %51 = load ptr, ptr %12, align 8, !tbaa !12
  %52 = load ptr, ptr %14, align 8, !tbaa !13
  call void @ma57ed_(ptr noundef nonnull %0, ptr noundef nonnull %5, ptr noundef %50, ptr noundef %51, ptr noundef nonnull %13, ptr noundef %49, ptr noundef nonnull %3, ptr noundef %52, ptr noundef nonnull %15, ptr noundef null, ptr noundef nonnull %5, ptr noundef nonnull %21) #5
  call void @LBL_Free_Object(ptr noundef nonnull %12) #5
  store ptr %49, ptr %12, align 8, !tbaa !12
  %53 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %53, ptr %13, align 8, !tbaa !16
  br label %.backedge

.backedge:                                        ; preds = %47, %64
  br label %25, !llvm.loop !17

54:                                               ; preds = %35
  br label %55

55:                                               ; preds = %35, %54
  %.in = phi ptr [ %23, %54 ], [ %15, %35 ]
  %56 = load i32, ptr %.in, align 4, !tbaa !5
  %57 = sitofp i32 %56 to double
  %58 = fmul double %57, 1.200000e+00
  %59 = call double @llvm.ceil.f64(double %58)
  %60 = fptosi double %59 to i32
  store i32 %60, ptr %3, align 4, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !9
  %.not102 = icmp eq ptr %61, null
  br i1 %.not102, label %64, label %62

62:                                               ; preds = %55
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %61, ptr noundef nonnull @.str.8, i32 noundef %60) #5
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %62, %55
  %65 = phi i32 [ %.pre, %62 ], [ %60, %55 ]
  %66 = call ptr @LBL_Calloc(i32 noundef %65, i64 noundef 4) #5
  %67 = load ptr, ptr %17, align 8, !tbaa !14
  %68 = load ptr, ptr %12, align 8, !tbaa !12
  %69 = load ptr, ptr %14, align 8, !tbaa !13
  call void @ma57ed_(ptr noundef nonnull %0, ptr noundef nonnull %4, ptr noundef %67, ptr noundef %68, ptr noundef nonnull %13, ptr noundef null, ptr noundef nonnull %5, ptr noundef %69, ptr noundef nonnull %15, ptr noundef %66, ptr noundef nonnull %3, ptr noundef nonnull %21) #5
  call void @LBL_Free_Object(ptr noundef nonnull %14) #5
  store ptr %66, ptr %14, align 8, !tbaa !13
  %70 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %70, ptr %15, align 8, !tbaa !19
  br label %.backedge

71:                                               ; preds = %35
  %72 = icmp slt i32 %36, 0
  br i1 %72, label %.thread114, label %.loopexit

.loopexit:                                        ; preds = %29, %71
  %73 = load ptr, ptr %6, align 8, !tbaa !9
  %.not95 = icmp eq ptr %73, null
  br i1 %.not95, label %.thread114, label %74

74:                                               ; preds = %.loopexit
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %73, ptr noundef nonnull @.str.9) #5
  %.pr = load ptr, ptr %6, align 8, !tbaa !9
  %.not96 = icmp eq ptr %.pr, null
  br i1 %.not96, label %.thread114, label %76

76:                                               ; preds = %74
  %77 = getelementptr inbounds i8, ptr %0, i64 228
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %0, i64 248
  %80 = load i32, ptr %79, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %.pr, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11, i32 noundef %78, ptr noundef nonnull @.str.12, i32 noundef %80) #5
  %.pr106 = load ptr, ptr %6, align 8, !tbaa !9
  %.not97 = icmp eq ptr %.pr106, null
  br i1 %.not97, label %.thread114, label %.thread107

.thread107:                                       ; preds = %76
  %82 = getelementptr inbounds i8, ptr %0, i64 236
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %0, i64 196
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %.pr106, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14, i32 noundef %83, ptr noundef nonnull @.str.15, i32 noundef %85) #5
  %.pr109.pr = load ptr, ptr %6, align 8, !tbaa !9
  %.not98 = icmp eq ptr %.pr109.pr, null
  br i1 %.not98, label %.thread114, label %87

87:                                               ; preds = %.thread107
  %88 = getelementptr inbounds i8, ptr %0, i64 240
  %89 = load i32, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %0, i64 244
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %.pr109.pr, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.16, i32 noundef %89, ptr noundef nonnull @.str.17, i32 noundef %91) #5
  %.pr112 = load ptr, ptr %6, align 8, !tbaa !9
  %.not99 = icmp eq ptr %.pr112, null
  br i1 %.not99, label %.thread114, label %93

93:                                               ; preds = %87
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %.pr112, ptr noundef nonnull @.str.18) #5
  br label %.thread114

.thread114:                                       ; preds = %71, %74, %.loopexit, %76, %.thread107, %87, %93
  %.082 = phi i32 [ 0, %93 ], [ 0, %87 ], [ 0, %.thread107 ], [ 0, %76 ], [ 0, %.loopexit ], [ 0, %74 ], [ %36, %71 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  ret i32 %.082
}

declare void @ma57bd_(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 #1

declare void @ma57ed_(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 #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #4 = { mustprogress 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 624}
!10 = !{!"Ma57_Data", !6, i64 0, !6, i64 4, !7, i64 8, !7, i64 96, !7, i64 144, !7, i64 312, !11, i64 480, !11, i64 488, !6, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !6, i64 528, !11, i64 536, !6, i64 544, !6, i64 548, !6, i64 552, !11, i64 560, !6, i64 568, !11, i64 576, !6, i64 584, !6, i64 588, !11, i64 592, !11, i64 600, !7, i64 608, !6, i64 612, !6, i64 616, !11, i64 624}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 520}
!13 = !{!10, !11, i64 536}
!14 = !{!10, !11, i64 504}
!15 = !{!10, !11, i64 512}
!16 = !{!10, !6, i64 528}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!10, !6, i64 544}


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