; LLVM IR from siconos/siconos :: externals/lbl/metis4/coarsen.ll_ (Coarsen2Way)

; 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.controldef = type { i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, %struct.workspacedef, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%struct.workspacedef = type { ptr, i32, i32, ptr, ptr, i32, ptr, ptr }
%struct.graphdef = type { ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1

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

12:                                               ; preds = %2
  %13 = call double @__seconds()
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.controldef, ptr %14, i32 0, i32 16
  %16 = load double, ptr %15, align 8, !tbaa !15
  %17 = fsub double %16, %13
  store double %17, ptr %15, align 8, !tbaa !15
  br label %18

18:                                               ; preds = %12, %2
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %19, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.controldef, ptr %20, i32 0, i32 2
  %22 = load i32, ptr %21, align 8, !tbaa !16
  %23 = icmp sgt i32 %22, 20
  br i1 %23, label %24, label %29

24:                                               ; preds = %18
  store i32 1, ptr %5, align 4, !tbaa !17
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.controldef, ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 8, !tbaa !16
  %28 = sub nsw i32 %27, 20
  store i32 %28, ptr %26, align 8, !tbaa !16
  br label %30

29:                                               ; preds = %18
  store i32 0, ptr %5, align 4, !tbaa !17
  br label %30

30:                                               ; preds = %29, %24
  br label %31

31:                                               ; preds = %148, %30
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.controldef, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = and i32 %34, 4
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %69

37:                                               ; preds = %31
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.graphdef, ptr %38, i32 0, i32 2
  %40 = load i32, ptr %39, align 8, !tbaa !18
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.graphdef, ptr %41, i32 0, i32 3
  %43 = load i32, ptr %42, align 4, !tbaa !20
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.controldef, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !21
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.controldef, ptr %47, i32 0, i32 5
  %49 = load i32, ptr %48, align 4, !tbaa !22
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.graphdef, ptr %50, i32 0, i32 5
  %52 = load ptr, ptr %51, align 8, !tbaa !23
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %62

54:                                               ; preds = %37
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.graphdef, ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !18
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.graphdef, ptr %58, i32 0, i32 5
  %60 = load ptr, ptr %59, align 8, !tbaa !23
  %61 = call i32 @__idxsum(i32 noundef %57, ptr noundef %60)
  br label %66

62:                                               ; preds = %37
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.graphdef, ptr %63, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !18
  br label %66

66:                                               ; preds = %62, %54
  %67 = phi i32 [ %61, %54 ], [ %65, %62 ]
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %40, i32 noundef %43, i32 noundef %46, i32 noundef %49, i32 noundef %67)
  br label %69

69:                                               ; preds = %66, %31
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.graphdef, ptr %70, i32 0, i32 8
  %72 = load ptr, ptr %71, align 8, !tbaa !24
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %109

74:                                               ; preds = %69
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.controldef, ptr %75, i32 0, i32 2
  %77 = load i32, ptr %76, align 8, !tbaa !16
  switch i32 %77, label %104 [
    i32 1, label %78
    i32 2, label %81
    i32 3, label %91
    i32 4, label %101
  ]

78:                                               ; preds = %74
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  call void @__Match_RM(ptr noundef %79, ptr noundef %80)
  br label %108

81:                                               ; preds = %74
  %82 = load i32, ptr %5, align 4, !tbaa !17
  %83 = icmp slt i32 %82, 1
  br i1 %83, label %84, label %87

84:                                               ; preds = %81
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  call void @__Match_RM(ptr noundef %85, ptr noundef %86)
  br label %90

87:                                               ; preds = %81
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  call void @__Match_HEM(ptr noundef %88, ptr noundef %89)
  br label %90

90:                                               ; preds = %87, %84
  br label %108

91:                                               ; preds = %74
  %92 = load i32, ptr %5, align 4, !tbaa !17
  %93 = icmp slt i32 %92, 1
  br i1 %93, label %94, label %97

94:                                               ; preds = %91
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  call void @__Match_RM(ptr noundef %95, ptr noundef %96)
  br label %100

97:                                               ; preds = %91
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  call void @__Match_SHEM(ptr noundef %98, ptr noundef %99)
  br label %100

100:                                              ; preds = %97, %94
  br label %108

101:                                              ; preds = %74
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  call void @__Match_SHEM(ptr noundef %102, ptr noundef %103)
  br label %108

104:                                              ; preds = %74
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.controldef, ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 8, !tbaa !16
  call void (ptr, ...) @__errexit(ptr noundef @.str.1, i32 noundef %107)
  br label %108

108:                                              ; preds = %104, %101, %100, %90, %78
  br label %112

109:                                              ; preds = %69
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  call void @__Match_RM_NVW(ptr noundef %110, ptr noundef %111)
  br label %112

112:                                              ; preds = %109, %108
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.graphdef, ptr %113, i32 0, i32 27
  %115 = load ptr, ptr %114, align 8, !tbaa !25
  store ptr %115, ptr %6, align 8, !tbaa !5
  %116 = load i32, ptr %5, align 4, !tbaa !17
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %5, align 4, !tbaa !17
  br label %118

118:                                              ; preds = %112
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.graphdef, ptr %119, i32 0, i32 2
  %121 = load i32, ptr %120, align 8, !tbaa !18
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.controldef, ptr %122, i32 0, i32 0
  %124 = load i32, ptr %123, align 8, !tbaa !21
  %125 = icmp sgt i32 %121, %124
  br i1 %125, label %126, label %148

126:                                              ; preds = %118
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.graphdef, ptr %127, i32 0, i32 2
  %129 = load i32, ptr %128, align 8, !tbaa !18
  %130 = sitofp i32 %129 to double
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.graphdef, ptr %131, i32 0, i32 28
  %133 = load ptr, ptr %132, align 8, !tbaa !26
  %134 = getelementptr inbounds %struct.graphdef, ptr %133, i32 0, i32 2
  %135 = load i32, ptr %134, align 8, !tbaa !18
  %136 = sitofp i32 %135 to double
  %137 = fmul double 9.000000e-01, %136
  %138 = fcmp olt double %130, %137
  br i1 %138, label %139, label %148

139:                                              ; preds = %126
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.graphdef, ptr %140, i32 0, i32 3
  %142 = load i32, ptr %141, align 4, !tbaa !20
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.graphdef, ptr %143, i32 0, i32 2
  %145 = load i32, ptr %144, align 8, !tbaa !18
  %146 = sdiv i32 %145, 2
  %147 = icmp sgt i32 %142, %146
  br label %148

148:                                              ; preds = %139, %126, %118
  %149 = phi i1 [ false, %126 ], [ false, %118 ], [ %147, %139 ]
  br i1 %149, label %31, label %150, !llvm.loop !27

150:                                              ; preds = %148
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.controldef, ptr %151, i32 0, i32 1
  %153 = load i32, ptr %152, align 4, !tbaa !9
  %154 = and i32 %153, 4
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %188

156:                                              ; preds = %150
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.graphdef, ptr %157, i32 0, i32 2
  %159 = load i32, ptr %158, align 8, !tbaa !18
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.graphdef, ptr %160, i32 0, i32 3
  %162 = load i32, ptr %161, align 4, !tbaa !20
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.controldef, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 8, !tbaa !21
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.controldef, ptr %166, i32 0, i32 5
  %168 = load i32, ptr %167, align 4, !tbaa !22
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.graphdef, ptr %169, i32 0, i32 5
  %171 = load ptr, ptr %170, align 8, !tbaa !23
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %181

173:                                              ; preds = %156
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.graphdef, ptr %174, i32 0, i32 2
  %176 = load i32, ptr %175, align 8, !tbaa !18
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.graphdef, ptr %177, i32 0, i32 5
  %179 = load ptr, ptr %178, align 8, !tbaa !23
  %180 = call i32 @__idxsum(i32 noundef %176, ptr noundef %179)
  br label %185

181:                                              ; preds = %156
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.graphdef, ptr %182, i32 0, i32 2
  %184 = load i32, ptr %183, align 8, !tbaa !18
  br label %185

185:                                              ; preds = %181, %173
  %186 = phi i32 [ %180, %173 ], [ %184, %181 ]
  %187 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %159, i32 noundef %162, i32 noundef %165, i32 noundef %168, i32 noundef %186)
  br label %188

188:                                              ; preds = %185, %150
  %189 = load ptr, ptr %3, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.controldef, ptr %189, i32 0, i32 1
  %191 = load i32, ptr %190, align 4, !tbaa !9
  %192 = and i32 %191, 1
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %200

194:                                              ; preds = %188
  %195 = call double @__seconds()
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.controldef, ptr %196, i32 0, i32 16
  %198 = load double, ptr %197, align 8, !tbaa !15
  %199 = fadd double %198, %195
  store double %199, ptr %197, align 8, !tbaa !15
  br label %200

200:                                              ; preds = %194, %188
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret ptr %201
}

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

declare double @__seconds() #2

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

declare i32 @__idxsum(i32 noundef, ptr noundef) #2

declare void @__Match_RM(ptr noundef, ptr noundef) #2

declare void @__Match_HEM(ptr noundef, ptr noundef) #2

declare void @__Match_SHEM(ptr noundef, ptr noundef) #2

declare void @__errexit(ptr noundef, ...) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 }

!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, !11, i64 4}
!10 = !{!"controldef", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !13, i64 48, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"workspacedef", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !11, i64 32, !6, i64 40, !6, i64 48}
!14 = !{!"double", !7, i64 0}
!15 = !{!10, !14, i64 136}
!16 = !{!10, !11, i64 8}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !11, i64 16}
!19 = !{!"graphdef", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !6, i64 96, !6, i64 104, !11, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !11, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208}
!20 = !{!19, !11, i64 20}
!21 = !{!10, !11, i64 0}
!22 = !{!10, !11, i64 20}
!23 = !{!19, !6, i64 32}
!24 = !{!19, !6, i64 56}
!25 = !{!19, !6, i64 200}
!26 = !{!19, !6, i64 208}
!27 = distinct !{!27, !28}
!28 = !{!"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 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @__Coarsen2Way(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 4
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = and i32 %4, 1
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %11, label %6

6:                                                ; preds = %2
  %7 = tail call double @__seconds() #3
  %8 = getelementptr inbounds i8, ptr %0, i64 136
  %9 = load double, ptr %8, align 8, !tbaa !14
  %10 = fsub double %9, %7
  store double %10, ptr %8, align 8, !tbaa !14
  br label %11

11:                                               ; preds = %6, %2
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !15
  %14 = icmp sgt i32 %13, 20
  br i1 %14, label %15, label %17

15:                                               ; preds = %11
  %16 = add nsw i32 %13, -20
  store i32 %16, ptr %12, align 8, !tbaa !15
  br label %17

17:                                               ; preds = %11, %15
  %.052 = phi i32 [ 1, %15 ], [ 0, %11 ]
  %18 = getelementptr inbounds i8, ptr %0, i64 20
  br label %19

19:                                               ; preds = %70, %17
  %.1 = phi i32 [ %.052, %17 ], [ %56, %70 ]
  %.0 = phi ptr [ %1, %17 ], [ %55, %70 ]
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = and i32 %20, 4
  %.not57 = icmp eq i32 %21, 0
  br i1 %.not57, label %36, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %.0, i64 16
  %24 = load i32, ptr %23, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %.0, i64 20
  %26 = load i32, ptr %25, align 4, !tbaa !18
  %27 = load i32, ptr %0, align 8, !tbaa !19
  %28 = load i32, ptr %18, align 4, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %.0, i64 32
  %30 = load ptr, ptr %29, align 8, !tbaa !21
  %.not58 = icmp eq ptr %30, null
  br i1 %.not58, label %33, label %31

31:                                               ; preds = %22
  %32 = tail call i32 @__idxsum(i32 noundef %24, ptr noundef nonnull %30) #3
  br label %33

33:                                               ; preds = %22, %31
  %34 = phi i32 [ %32, %31 ], [ %24, %22 ]
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %24, i32 noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %34)
  br label %36

36:                                               ; preds = %33, %19
  %37 = getelementptr inbounds i8, ptr %.0, i64 56
  %38 = load ptr, ptr %37, align 8, !tbaa !22
  %.not59 = icmp eq ptr %38, null
  br i1 %.not59, label %52, label %39

39:                                               ; preds = %36
  %40 = load i32, ptr %12, align 8, !tbaa !15
  switch i32 %40, label %51 [
    i32 1, label %41
    i32 2, label %42
    i32 3, label %46
    i32 4, label %50
  ]

41:                                               ; preds = %39
  tail call void @__Match_RM(ptr noundef nonnull %0, ptr noundef nonnull %.0) #3
  br label %53

42:                                               ; preds = %39
  %43 = icmp eq i32 %.1, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %42
  tail call void @__Match_RM(ptr noundef nonnull %0, ptr noundef nonnull %.0) #3
  br label %53

45:                                               ; preds = %42
  tail call void @__Match_HEM(ptr noundef nonnull %0, ptr noundef nonnull %.0) #3
  br label %53

46:                                               ; preds = %39
  %47 = icmp eq i32 %.1, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %46
  tail call void @__Match_RM(ptr noundef nonnull %0, ptr noundef nonnull %.0) #3
  br label %53

49:                                               ; preds = %46
  tail call void @__Match_SHEM(ptr noundef nonnull %0, ptr noundef nonnull %.0) #3
  br label %53

50:                                               ; preds = %39
  tail call void @__Match_SHEM(ptr noundef nonnull %0, ptr noundef nonnull %.0) #3
  br label %53

51:                                               ; preds = %39
  tail call void (ptr, ...) @__errexit(ptr noundef nonnull @.str.1, i32 noundef %40) #3
  br label %53

52:                                               ; preds = %36
  tail call void @__Match_RM_NVW(ptr noundef nonnull %0, ptr noundef nonnull %.0) #3
  br label %53

53:                                               ; preds = %41, %50, %51, %45, %44, %49, %48, %52
  %54 = getelementptr inbounds i8, ptr %.0, i64 200
  %55 = load ptr, ptr %54, align 8, !tbaa !23
  %56 = add nuw nsw i32 %.1, 1
  %57 = getelementptr inbounds i8, ptr %55, i64 16
  %58 = load i32, ptr %57, align 8, !tbaa !16
  %59 = load i32, ptr %0, align 8, !tbaa !19
  %60 = icmp sgt i32 %58, %59
  br i1 %60, label %61, label %.critedge

61:                                               ; preds = %53
  %62 = sitofp i32 %58 to double
  %63 = getelementptr inbounds i8, ptr %55, i64 208
  %64 = load ptr, ptr %63, align 8, !tbaa !24
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %66 = load i32, ptr %65, align 8, !tbaa !16
  %67 = sitofp i32 %66 to double
  %68 = fmul double %67, 9.000000e-01
  %69 = fcmp ogt double %68, %62
  br i1 %69, label %70, label %.critedge

70:                                               ; preds = %61
  %71 = getelementptr inbounds i8, ptr %55, i64 20
  %72 = load i32, ptr %71, align 4, !tbaa !18
  %73 = sdiv i32 %58, 2
  %74 = icmp sgt i32 %72, %73
  br i1 %74, label %19, label %.critedge, !llvm.loop !25

.critedge:                                        ; preds = %61, %53, %70
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = and i32 %75, 4
  %.not60 = icmp eq i32 %76, 0
  br i1 %.not60, label %88, label %77

77:                                               ; preds = %.critedge
  %78 = getelementptr inbounds i8, ptr %55, i64 20
  %79 = load i32, ptr %78, align 4, !tbaa !18
  %80 = load i32, ptr %18, align 4, !tbaa !20
  %81 = getelementptr inbounds i8, ptr %55, i64 32
  %82 = load ptr, ptr %81, align 8, !tbaa !21
  %.not61 = icmp eq ptr %82, null
  br i1 %.not61, label %85, label %83

83:                                               ; preds = %77
  %84 = tail call i32 @__idxsum(i32 noundef %58, ptr noundef nonnull %82) #3
  br label %85

85:                                               ; preds = %77, %83
  %86 = phi i32 [ %84, %83 ], [ %58, %77 ]
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %58, i32 noundef %79, i32 noundef %59, i32 noundef %80, i32 noundef %86)
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %85, %.critedge
  %89 = phi i32 [ %.pre, %85 ], [ %75, %.critedge ]
  %90 = and i32 %89, 1
  %.not62 = icmp eq i32 %90, 0
  br i1 %.not62, label %96, label %91

91:                                               ; preds = %88
  %92 = tail call double @__seconds() #3
  %93 = getelementptr inbounds i8, ptr %0, i64 136
  %94 = load double, ptr %93, align 8, !tbaa !14
  %95 = fadd double %92, %94
  store double %95, ptr %93, align 8, !tbaa !14
  br label %96

96:                                               ; preds = %91, %88
  ret ptr %55
}

declare double @__seconds() local_unnamed_addr #1

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

declare i32 @__idxsum(i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @__Match_RM(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @__Match_HEM(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @__Match_SHEM(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @__errexit(ptr noundef, ...) local_unnamed_addr #1

declare void @__Match_RM_NVW(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 }

!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, !7, i64 4}
!6 = !{!"controldef", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !11, i64 48, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"workspacedef", !12, i64 0, !7, i64 8, !7, i64 12, !12, i64 16, !12, i64 24, !7, i64 32, !12, i64 40, !12, i64 48}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!6, !13, i64 136}
!15 = !{!6, !7, i64 8}
!16 = !{!17, !7, i64 16}
!17 = !{!"graphdef", !12, i64 0, !12, i64 8, !7, i64 16, !7, i64 20, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !7, i64 88, !7, i64 92, !12, i64 96, !12, i64 104, !7, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !7, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208}
!18 = !{!17, !7, i64 20}
!19 = !{!6, !7, i64 0}
!20 = !{!6, !7, i64 20}
!21 = !{!17, !12, i64 32}
!22 = !{!17, !12, i64 56}
!23 = !{!17, !12, i64 200}
!24 = !{!17, !12, i64 208}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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