; 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.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [42 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_Solve(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !9
  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
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.Ma57_Data, ptr %8, i32 0, i32 27
  %10 = load ptr, ptr %9, align 8, !tbaa !11
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %17

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

17:                                               ; preds = %12, %2
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.Ma57_Data, ptr %18, i32 0, i32 15
  store i32 1, ptr %19, align 4, !tbaa !13
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.Ma57_Data, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 8, !tbaa !14
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.Ma57_Data, ptr %23, i32 0, i32 18
  store i32 %22, ptr %24, align 8, !tbaa !15
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.Ma57_Data, ptr %25, i32 0, i32 16
  store i32 1, ptr %26, align 8, !tbaa !16
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.Ma57_Data, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !14
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.Ma57_Data, ptr %30, i32 0, i32 16
  %32 = load i32, ptr %31, align 8, !tbaa !16
  %33 = mul nsw i32 %29, %32
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.Ma57_Data, ptr %34, i32 0, i32 20
  store i32 %33, ptr %35, align 8, !tbaa !17
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.Ma57_Data, ptr %36, i32 0, i32 19
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = icmp ne ptr %38, null
  br i1 %39, label %60, label %40

40:                                               ; preds = %17
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.Ma57_Data, ptr %41, i32 0, i32 27
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %53

45:                                               ; preds = %40
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Ma57_Data, ptr %46, i32 0, i32 27
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Ma57_Data, ptr %49, i32 0, i32 20
  %51 = load i32, ptr %50, align 8, !tbaa !17
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.20, i32 noundef %51) #5
  br label %53

53:                                               ; preds = %45, %40
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Ma57_Data, ptr %54, i32 0, i32 20
  %56 = load i32, ptr %55, align 8, !tbaa !17
  %57 = call ptr @LBL_Calloc(i32 noundef %56, i64 noundef 8)
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.Ma57_Data, ptr %58, i32 0, i32 19
  store ptr %57, ptr %59, align 8, !tbaa !18
  br label %60

60:                                               ; preds = %53, %17
  br label %61

61:                                               ; preds = %154, %60
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  %64 = xor i1 %63, true
  br i1 %64, label %65, label %155

65:                                               ; preds = %61
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.Ma57_Data, ptr %66, i32 0, i32 27
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %75

70:                                               ; preds = %65
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.Ma57_Data, ptr %71, i32 0, i32 27
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.21) #5
  br label %75

75:                                               ; preds = %70, %65
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.Ma57_Data, ptr %76, i32 0, i32 15
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.Ma57_Data, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.Ma57_Data, ptr %80, i32 0, i32 11
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Ma57_Data, ptr %83, i32 0, i32 12
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.Ma57_Data, ptr %85, i32 0, i32 13
  %87 = load ptr, ptr %86, align 8, !tbaa !20
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.Ma57_Data, ptr %88, i32 0, i32 14
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.Ma57_Data, ptr %90, i32 0, i32 16
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.Ma57_Data, ptr %93, i32 0, i32 18
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.Ma57_Data, ptr %95, i32 0, i32 19
  %97 = load ptr, ptr %96, align 8, !tbaa !18
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Ma57_Data, ptr %98, i32 0, i32 20
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.Ma57_Data, ptr %100, i32 0, i32 10
  %102 = load ptr, ptr %101, align 8, !tbaa !21
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.Ma57_Data, ptr %103, i32 0, i32 2
  %105 = getelementptr inbounds [21 x i32], ptr %104, i64 0, i64 0
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Ma57_Data, ptr %106, i32 0, i32 4
  %108 = getelementptr inbounds [41 x i32], ptr %107, i64 0, i64 0
  call void @ma57cd_(ptr noundef %77, ptr noundef %79, ptr noundef %82, ptr noundef %84, ptr noundef %87, ptr noundef %89, ptr noundef %91, ptr noundef %92, ptr noundef %94, ptr noundef %97, ptr noundef %99, ptr noundef %102, ptr noundef %105, ptr noundef %108)
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.Ma57_Data, ptr %109, i32 0, i32 4
  %111 = getelementptr inbounds [41 x i32], ptr %110, i64 0, i64 0
  %112 = load i32, ptr %111, align 8, !tbaa !9
  store i32 %112, ptr %7, align 4, !tbaa !9
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = icmp eq i32 %113, -17
  br i1 %114, label %115, label %146

115:                                              ; preds = %75
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.Ma57_Data, ptr %116, i32 0, i32 19
  call void @LBL_Free_Object(ptr noundef %117)
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.Ma57_Data, ptr %118, i32 0, i32 20
  %120 = load i32, ptr %119, align 8, !tbaa !17
  %121 = sitofp i32 %120 to double
  %122 = fmul double 1.200000e+00, %121
  %123 = call double @llvm.ceil.f64(double %122)
  %124 = fptosi double %123 to i32
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.Ma57_Data, ptr %125, i32 0, i32 20
  store i32 %124, ptr %126, align 8, !tbaa !17
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.Ma57_Data, ptr %127, i32 0, i32 27
  %129 = load ptr, ptr %128, align 8, !tbaa !11
  %130 = icmp ne ptr %129, null
  br i1 %130, label %131, label %139

131:                                              ; preds = %115
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.Ma57_Data, ptr %132, i32 0, i32 27
  %134 = load ptr, ptr %133, align 8, !tbaa !11
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.Ma57_Data, ptr %135, i32 0, i32 20
  %137 = load i32, ptr %136, align 8, !tbaa !17
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.22, i32 noundef %137) #5
  br label %139

139:                                              ; preds = %131, %115
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.Ma57_Data, ptr %140, i32 0, i32 20
  %142 = load i32, ptr %141, align 8, !tbaa !17
  %143 = call ptr @LBL_Calloc(i32 noundef %142, i64 noundef 8)
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.Ma57_Data, ptr %144, i32 0, i32 19
  store ptr %143, ptr %145, align 8, !tbaa !18
  br label %147

146:                                              ; preds = %75
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %146, %139
  %148 = load i32, ptr %7, align 4, !tbaa !9
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %154

150:                                              ; preds = %147
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = load i32, ptr %7, align 4, !tbaa !9
  %153 = call i32 @Process_Error_Code(ptr noundef %151, i32 noundef %152)
  store i32 %153, ptr %7, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %150, %147
  br label %61, !llvm.loop !22

155:                                              ; preds = %61
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.Ma57_Data, ptr %156, i32 0, i32 27
  %158 = load ptr, ptr %157, align 8, !tbaa !11
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %165

160:                                              ; preds = %155
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.Ma57_Data, ptr %161, i32 0, i32 27
  %163 = load ptr, ptr %162, align 8, !tbaa !11
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.2) #5
  br label %165

165:                                              ; preds = %160, %155
  %166 = load i32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret i32 %166
}

declare void @ma57cd_(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

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, !10, i64 548}
!14 = !{!12, !10, i64 0}
!15 = !{!12, !10, i64 568}
!16 = !{!12, !10, i64 552}
!17 = !{!12, !10, i64 584}
!18 = !{!12, !6, i64 576}
!19 = !{!12, !6, i64 520}
!20 = !{!12, !6, i64 536}
!21 = !{!12, !6, i64 512}
!22 = distinct !{!22, !23}
!23 = !{!"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.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

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

declare void @LBL_Free_Object(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @Ma57_Solve(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 624
  %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.19) #4
  br label %7

7:                                                ; preds = %5, %2
  %8 = getelementptr inbounds i8, ptr %0, i64 548
  store i32 1, ptr %8, align 4, !tbaa !11
  %9 = load i32, ptr %0, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %0, i64 568
  store i32 %9, ptr %10, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %0, i64 552
  store i32 1, ptr %11, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %0, i64 584
  store i32 %9, ptr %12, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %0, i64 576
  %14 = load ptr, ptr %13, align 8, !tbaa !16
  %.not56 = icmp eq ptr %14, null
  br i1 %.not56, label %15, label %22

15:                                               ; preds = %7
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %.not57 = icmp eq ptr %16, null
  br i1 %.not57, label %19, label %17

17:                                               ; preds = %15
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str.20, i32 noundef %9) #4
  %.pre = load i32, ptr %12, align 8, !tbaa !15
  br label %19

19:                                               ; preds = %17, %15
  %20 = phi i32 [ %.pre, %17 ], [ %9, %15 ]
  %21 = tail call ptr @LBL_Calloc(i32 noundef %20, i64 noundef 8) #4
  store ptr %21, ptr %13, align 8, !tbaa !16
  br label %22

22:                                               ; preds = %19, %7
  %23 = getelementptr inbounds i8, ptr %0, i64 520
  %24 = getelementptr inbounds i8, ptr %0, i64 528
  %25 = getelementptr inbounds i8, ptr %0, i64 536
  %26 = getelementptr inbounds i8, ptr %0, i64 544
  %27 = getelementptr inbounds i8, ptr %0, i64 512
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = getelementptr inbounds i8, ptr %0, i64 144
  br label %30

30:                                               ; preds = %50, %22
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %.not60 = icmp eq ptr %31, null
  br i1 %.not60, label %34, label %32

32:                                               ; preds = %30
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %31, ptr noundef nonnull @.str.21) #4
  br label %34

34:                                               ; preds = %32, %30
  %35 = load ptr, ptr %23, align 8, !tbaa !17
  %36 = load ptr, ptr %25, align 8, !tbaa !18
  %37 = load ptr, ptr %13, align 8, !tbaa !16
  %38 = load ptr, ptr %27, align 8, !tbaa !19
  tail call void @ma57cd_(ptr noundef nonnull %8, ptr noundef nonnull %0, ptr noundef %35, ptr noundef nonnull %24, ptr noundef %36, ptr noundef nonnull %26, ptr noundef nonnull %11, ptr noundef %1, ptr noundef nonnull %10, ptr noundef %37, ptr noundef nonnull %12, ptr noundef %38, ptr noundef nonnull %28, ptr noundef nonnull %29) #4
  %39 = load i32, ptr %29, align 8, !tbaa !20
  switch i32 %39, label %.thread73 [
    i32 -17, label %41
    i32 0, label %.thread68
  ]

.thread73:                                        ; preds = %34
  %40 = tail call i32 @Process_Error_Code(ptr noundef nonnull %0, i32 noundef %39)
  br label %.thread68

41:                                               ; preds = %34
  tail call void @LBL_Free_Object(ptr noundef nonnull %13) #4
  %42 = load i32, ptr %12, align 8, !tbaa !15
  %43 = sitofp i32 %42 to double
  %44 = fmul double %43, 1.200000e+00
  %45 = tail call double @llvm.ceil.f64(double %44)
  %46 = fptosi double %45 to i32
  store i32 %46, ptr %12, align 8, !tbaa !15
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %.not61 = icmp eq ptr %47, null
  br i1 %.not61, label %50, label %48

48:                                               ; preds = %41
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %47, ptr noundef nonnull @.str.22, i32 noundef %46) #4
  %.pre67 = load i32, ptr %12, align 8, !tbaa !15
  br label %50

50:                                               ; preds = %48, %41
  %51 = phi i32 [ %46, %41 ], [ %.pre67, %48 ]
  %52 = tail call ptr @LBL_Calloc(i32 noundef %51, i64 noundef 8) #4
  store ptr %52, ptr %13, align 8, !tbaa !16
  %53 = tail call i32 @Process_Error_Code(ptr noundef nonnull %0, i32 noundef %39)
  br label %30, !llvm.loop !21

.thread68:                                        ; preds = %34, %.thread73
  %.172 = phi i32 [ %40, %.thread73 ], [ %39, %34 ]
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %.not59 = icmp eq ptr %54, null
  br i1 %.not59, label %57, label %55

55:                                               ; preds = %.thread68
  %56 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %54, ptr noundef nonnull @.str.2) #4
  br label %57

57:                                               ; preds = %55, %.thread68
  ret i32 %.172
}

declare void @ma57cd_(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 #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "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 = { 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 624}
!6 = !{!"Ma57_Data", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 96, !8, i64 144, !8, i64 312, !10, i64 480, !10, i64 488, !7, i64 496, !10, i64 504, !10, i64 512, !10, i64 520, !7, i64 528, !10, i64 536, !7, i64 544, !7, i64 548, !7, i64 552, !10, i64 560, !7, i64 568, !10, i64 576, !7, i64 584, !7, i64 588, !10, i64 592, !10, i64 600, !8, i64 608, !7, i64 612, !7, i64 616, !10, i64 624}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 548}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !7, i64 568}
!14 = !{!6, !7, i64 552}
!15 = !{!6, !7, i64 584}
!16 = !{!6, !10, i64 576}
!17 = !{!6, !10, i64 520}
!18 = !{!6, !10, i64 536}
!19 = !{!6, !10, i64 512}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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