; LLVM IR from siconos/siconos :: externals/lbl/metis4/match.ll_ (Match_RM)

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

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

23:                                               ; preds = %2
  %24 = call double @__seconds()
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.controldef, ptr %25, i32 0, i32 14
  %27 = load double, ptr %26, align 8, !tbaa !15
  %28 = fsub double %27, %24
  store double %28, ptr %26, align 8, !tbaa !15
  br label %29

29:                                               ; preds = %23, %2
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.graphdef, ptr %30, i32 0, i32 2
  %32 = load i32, ptr %31, align 8, !tbaa !16
  store i32 %32, ptr %8, align 4, !tbaa !18
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.graphdef, ptr %33, i32 0, i32 4
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  store ptr %35, ptr %11, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.graphdef, ptr %36, i32 0, i32 5
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  store ptr %38, ptr %12, align 8, !tbaa !5
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.graphdef, ptr %39, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !21
  store ptr %41, ptr %13, align 8, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.graphdef, ptr %42, i32 0, i32 8
  %44 = load ptr, ptr %43, align 8, !tbaa !22
  store ptr %44, ptr %14, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.graphdef, ptr %45, i32 0, i32 11
  %47 = load ptr, ptr %46, align 8, !tbaa !23
  store ptr %47, ptr %16, align 8, !tbaa !5
  %48 = load i32, ptr %8, align 4, !tbaa !18
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = load i32, ptr %8, align 4, !tbaa !18
  %51 = call ptr @__idxwspacemalloc(ptr noundef %49, i32 noundef %50)
  %52 = call ptr @__idxset(i32 noundef %48, i32 noundef -1, ptr noundef %51)
  store ptr %52, ptr %15, align 8, !tbaa !5
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = load i32, ptr %8, align 4, !tbaa !18
  %55 = call ptr @__idxwspacemalloc(ptr noundef %53, i32 noundef %54)
  store ptr %55, ptr %17, align 8, !tbaa !5
  %56 = load i32, ptr %8, align 4, !tbaa !18
  %57 = load ptr, ptr %17, align 8, !tbaa !5
  call void @__RandomPermute(i32 noundef %56, ptr noundef %57, i32 noundef 1)
  store i32 0, ptr %9, align 4, !tbaa !18
  store i32 0, ptr %6, align 4, !tbaa !18
  br label %58

58:                                               ; preds = %153, %29
  %59 = load i32, ptr %6, align 4, !tbaa !18
  %60 = load i32, ptr %8, align 4, !tbaa !18
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %62, label %156

62:                                               ; preds = %58
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = load i32, ptr %6, align 4, !tbaa !18
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i32, ptr %63, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !18
  store i32 %67, ptr %5, align 4, !tbaa !18
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = load i32, ptr %5, align 4, !tbaa !18
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i32, ptr %68, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !18
  %73 = icmp eq i32 %72, -1
  br i1 %73, label %74, label %152

74:                                               ; preds = %62
  %75 = load i32, ptr %5, align 4, !tbaa !18
  store i32 %75, ptr %10, align 4, !tbaa !18
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = load i32, ptr %5, align 4, !tbaa !18
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %76, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !18
  store i32 %80, ptr %7, align 4, !tbaa !18
  br label %81

81:                                               ; preds = %128, %74
  %82 = load i32, ptr %7, align 4, !tbaa !18
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load i32, ptr %5, align 4, !tbaa !18
  %85 = add nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %83, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !18
  %89 = icmp slt i32 %82, %88
  br i1 %89, label %90, label %131

90:                                               ; preds = %81
  %91 = load ptr, ptr %15, align 8, !tbaa !5
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = load i32, ptr %7, align 4, !tbaa !18
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %92, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !18
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %91, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !18
  %100 = icmp eq i32 %99, -1
  br i1 %100, label %101, label %127

101:                                              ; preds = %90
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = load i32, ptr %5, align 4, !tbaa !18
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr %102, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !18
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = load i32, ptr %7, align 4, !tbaa !18
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds i32, ptr %108, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !18
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i32, ptr %107, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !18
  %116 = add nsw i32 %106, %115
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.controldef, ptr %117, i32 0, i32 5
  %119 = load i32, ptr %118, align 4, !tbaa !24
  %120 = icmp sle i32 %116, %119
  br i1 %120, label %121, label %127

121:                                              ; preds = %101
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = load i32, ptr %7, align 4, !tbaa !18
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds i32, ptr %122, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !18
  store i32 %126, ptr %10, align 4, !tbaa !18
  br label %131

127:                                              ; preds = %101, %90
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %7, align 4, !tbaa !18
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %7, align 4, !tbaa !18
  br label %81, !llvm.loop !25

131:                                              ; preds = %121, %81
  %132 = load i32, ptr %9, align 4, !tbaa !18
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %9, align 4, !tbaa !18
  %134 = load ptr, ptr %16, align 8, !tbaa !5
  %135 = load i32, ptr %10, align 4, !tbaa !18
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds i32, ptr %134, i64 %136
  store i32 %132, ptr %137, align 4, !tbaa !18
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = load i32, ptr %5, align 4, !tbaa !18
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds i32, ptr %138, i64 %140
  store i32 %132, ptr %141, align 4, !tbaa !18
  %142 = load i32, ptr %10, align 4, !tbaa !18
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = load i32, ptr %5, align 4, !tbaa !18
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %143, i64 %145
  store i32 %142, ptr %146, align 4, !tbaa !18
  %147 = load i32, ptr %5, align 4, !tbaa !18
  %148 = load ptr, ptr %15, align 8, !tbaa !5
  %149 = load i32, ptr %10, align 4, !tbaa !18
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds i32, ptr %148, i64 %150
  store i32 %147, ptr %151, align 4, !tbaa !18
  br label %152

152:                                              ; preds = %131, %62
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %6, align 4, !tbaa !18
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %6, align 4, !tbaa !18
  br label %58, !llvm.loop !27

156:                                              ; preds = %58
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.controldef, ptr %157, i32 0, i32 1
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = and i32 %159, 1
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %168

162:                                              ; preds = %156
  %163 = call double @__seconds()
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.controldef, ptr %164, i32 0, i32 14
  %166 = load double, ptr %165, align 8, !tbaa !15
  %167 = fadd double %166, %163
  store double %167, ptr %165, align 8, !tbaa !15
  br label %168

168:                                              ; preds = %162, %156
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = load i32, ptr %9, align 4, !tbaa !18
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  call void @__CreateCoarseGraph(ptr noundef %169, ptr noundef %170, i32 noundef %171, ptr noundef %172, ptr noundef %173)
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = load i32, ptr %8, align 4, !tbaa !18
  call void @__idxwspacefree(ptr noundef %174, i32 noundef %175)
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = load i32, ptr %8, align 4, !tbaa !18
  call void @__idxwspacefree(ptr noundef %176, i32 noundef %177)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

; 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 ptr @__idxset(i32 noundef, i32 noundef, ptr noundef) #2

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

declare void @__RandomPermute(i32 noundef, ptr noundef, i32 noundef) #2

declare void @__CreateCoarseGraph(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

declare void @__idxwspacefree(ptr noundef, i32 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 120}
!16 = !{!17, !11, i64 16}
!17 = !{!"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}
!18 = !{!11, !11, i64 0}
!19 = !{!17, !6, i64 24}
!20 = !{!17, !6, i64 32}
!21 = !{!17, !6, i64 48}
!22 = !{!17, !6, i64 56}
!23 = !{!17, !6, i64 80}
!24 = !{!10, !11, i64 20}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


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

; Function Attrs: nounwind uwtable
define dso_local void @__Match_RM(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() #2
  %8 = getelementptr inbounds i8, ptr %0, i64 120
  %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 %1, i64 16
  %13 = load i32, ptr %12, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %1, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !17
  %16 = getelementptr inbounds i8, ptr %1, i64 32
  %17 = load ptr, ptr %16, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %1, i64 48
  %19 = load ptr, ptr %18, align 8, !tbaa !19
  %20 = getelementptr inbounds i8, ptr %1, i64 80
  %21 = load ptr, ptr %20, align 8, !tbaa !20
  %22 = tail call ptr @__idxwspacemalloc(ptr noundef nonnull %0, i32 noundef %13) #2
  %23 = tail call ptr @__idxset(i32 noundef %13, i32 noundef -1, ptr noundef %22) #2
  %24 = tail call ptr @__idxwspacemalloc(ptr noundef nonnull %0, i32 noundef %13) #2
  tail call void @__RandomPermute(i32 noundef %13, ptr noundef %24, i32 noundef 1) #2
  %25 = icmp sgt i32 %13, 0
  br i1 %25, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %11
  %26 = getelementptr inbounds i8, ptr %0, i64 20
  %wide.trip.count = zext nneg i32 %13 to i64
  br label %27

27:                                               ; preds = %.lr.ph73, %59
  %indvars.iv77 = phi i64 [ 0, %.lr.ph73 ], [ %indvars.iv.next78, %59 ]
  %.06270 = phi i32 [ 0, %.lr.ph73 ], [ %.1, %59 ]
  %28 = getelementptr inbounds i32, ptr %24, i64 %indvars.iv77
  %29 = load i32, ptr %28, align 4, !tbaa !21
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds i32, ptr %23, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !21
  %33 = icmp eq i32 %32, -1
  br i1 %33, label %34, label %59

34:                                               ; preds = %27
  %35 = getelementptr inbounds i32, ptr %15, i64 %30
  %36 = load i32, ptr %35, align 4, !tbaa !21
  %37 = getelementptr inbounds i32, ptr %17, i64 %30
  %38 = getelementptr i8, ptr %35, i64 4
  %39 = load i32, ptr %38, align 4, !tbaa !21
  %40 = icmp slt i32 %36, %39
  br i1 %40, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %34
  %41 = sext i32 %36 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %54
  %indvars.iv = phi i64 [ %41, %.lr.ph.preheader ], [ %indvars.iv.next, %54 ]
  %42 = getelementptr inbounds i32, ptr %19, i64 %indvars.iv
  %43 = load i32, ptr %42, align 4, !tbaa !21
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i32, ptr %23, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !21
  %47 = icmp eq i32 %46, -1
  br i1 %47, label %48, label %54

48:                                               ; preds = %.lr.ph
  %49 = load i32, ptr %37, align 4, !tbaa !21
  %50 = getelementptr inbounds i32, ptr %17, i64 %44
  %51 = load i32, ptr %50, align 4, !tbaa !21
  %52 = add nsw i32 %51, %49
  %53 = load i32, ptr %26, align 4, !tbaa !22
  %.not66 = icmp sgt i32 %52, %53
  br i1 %.not66, label %54, label %._crit_edge

54:                                               ; preds = %.lr.ph, %48
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %39, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !23

._crit_edge:                                      ; preds = %54, %48, %34
  %.pre-phi = phi i64 [ %30, %34 ], [ %30, %54 ], [ %44, %48 ]
  %.063 = phi i32 [ %29, %34 ], [ %29, %54 ], [ %43, %48 ]
  %55 = add nsw i32 %.06270, 1
  %56 = getelementptr inbounds i32, ptr %21, i64 %.pre-phi
  store i32 %.06270, ptr %56, align 4, !tbaa !21
  %57 = getelementptr inbounds i32, ptr %21, i64 %30
  store i32 %.06270, ptr %57, align 4, !tbaa !21
  store i32 %.063, ptr %31, align 4, !tbaa !21
  %58 = getelementptr inbounds i32, ptr %23, i64 %.pre-phi
  store i32 %29, ptr %58, align 4, !tbaa !21
  br label %59

59:                                               ; preds = %27, %._crit_edge
  %.1 = phi i32 [ %55, %._crit_edge ], [ %.06270, %27 ]
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next78, %wide.trip.count
  br i1 %exitcond80.not, label %._crit_edge74, label %27, !llvm.loop !25

._crit_edge74:                                    ; preds = %59, %11
  %.062.lcssa = phi i32 [ 0, %11 ], [ %.1, %59 ]
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = and i32 %60, 1
  %.not65 = icmp eq i32 %61, 0
  br i1 %.not65, label %67, label %62

62:                                               ; preds = %._crit_edge74
  %63 = tail call double @__seconds() #2
  %64 = getelementptr inbounds i8, ptr %0, i64 120
  %65 = load double, ptr %64, align 8, !tbaa !14
  %66 = fadd double %63, %65
  store double %66, ptr %64, align 8, !tbaa !14
  br label %67

67:                                               ; preds = %62, %._crit_edge74
  tail call void @__CreateCoarseGraph(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %.062.lcssa, ptr noundef %23, ptr noundef %24) #2
  tail call void @__idxwspacefree(ptr noundef nonnull %0, i32 noundef %13) #2
  tail call void @__idxwspacefree(ptr noundef nonnull %0, i32 noundef %13) #2
  ret void
}

declare double @__seconds() local_unnamed_addr #1

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

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

declare void @__RandomPermute(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @__CreateCoarseGraph(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @__idxwspacefree(ptr noundef, i32 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 = { 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 120}
!15 = !{!16, !7, i64 16}
!16 = !{!"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}
!17 = !{!16, !12, i64 24}
!18 = !{!16, !12, i64 32}
!19 = !{!16, !12, i64 48}
!20 = !{!16, !12, i64 80}
!21 = !{!7, !7, i64 0}
!22 = !{!6, !7, i64 20}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


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