; LLVM IR from ADJA/algos :: Graphs (FloydWarshall)

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

@n = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@d = external dso_local global [55 x [55 x i32]], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @s, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %48, %0
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = icmp sle i32 %10, %11
  br i1 %12, label %14, label %13

13:                                               ; preds = %9
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %51

14:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %44, %14
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %18 = icmp sle i32 %16, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %47

20:                                               ; preds = %15
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %22
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [55 x i32], ptr %23, i64 0, i64 %25
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %26)
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %29
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [55 x i32], ptr %30, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = icmp eq i32 %34, -1
  br i1 %35, label %36, label %43

36:                                               ; preds = %20
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %38
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [55 x i32], ptr %39, i64 0, i64 %41
  store i32 1000000000, ptr %42, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %36, %20
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %4, align 4, !tbaa !5
  br label %15, !llvm.loop !9

47:                                               ; preds = %19
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %2, align 4, !tbaa !5
  br label %9, !llvm.loop !11

51:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %124, %51
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = load i32, ptr @n, align 4, !tbaa !5
  %55 = icmp sle i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %127

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %120, %57
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = icmp sle i32 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %123

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %116, %63
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = load i32, ptr @n, align 4, !tbaa !5
  %67 = icmp sle i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %119

69:                                               ; preds = %64
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %71
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [55 x i32], ptr %72, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = load i32, ptr %5, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %78
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [55 x i32], ptr %79, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = add nsw i32 %76, %83
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %86
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [55 x i32], ptr %87, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = icmp slt i32 %84, %91
  br i1 %92, label %93, label %115

93:                                               ; preds = %69
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %95
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [55 x i32], ptr %96, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %102
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [55 x i32], ptr %103, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = add nsw i32 %100, %107
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %110
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [55 x i32], ptr %111, i64 0, i64 %113
  store i32 %108, ptr %114, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %93, %69
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %7, align 4, !tbaa !5
  br label %64, !llvm.loop !12

119:                                              ; preds = %68
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %6, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %6, align 4, !tbaa !5
  br label %58, !llvm.loop !13

123:                                              ; preds = %62
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %5, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %5, align 4, !tbaa !5
  br label %52, !llvm.loop !14

127:                                              ; preds = %56
  %128 = load i32, ptr @s, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %129
  %131 = load i32, ptr @t, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [55 x i32], ptr %130, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = icmp eq i32 %134, 1000000000
  br i1 %135, label %136, label %138

136:                                              ; preds = %127
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %147

138:                                              ; preds = %127
  %139 = load i32, ptr @s, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %140
  %142 = load i32, ptr @t, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [55 x i32], ptr %141, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %145)
  br label %147

147:                                              ; preds = %138, %136
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

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

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

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

attributes #0 = { mustprogress norecurse 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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

@n = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@d = external dso_local global [55 x [55 x i32]], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @s, ptr noundef nonnull @t)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.not43 = icmp slt i32 %2, 1
  br i1 %.not43, label %._crit_edge54, label %.preheader40

.preheader40:                                     ; preds = %0, %._crit_edge
  %3 = phi i32 [ %15, %._crit_edge ], [ %2, %0 ]
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %._crit_edge ], [ 1, %0 ]
  %.not3741 = icmp slt i32 %3, 1
  br i1 %.not3741, label %.preheader40.._crit_edge_crit_edge, label %.lr.ph

.preheader40.._crit_edge_crit_edge:               ; preds = %.preheader40
  %.pre = sext i32 %3 to i64
  br label %._crit_edge

.preheader39:                                     ; preds = %._crit_edge
  %.not3452 = icmp slt i32 %15, 1
  br i1 %.not3452, label %._crit_edge54, label %.preheader38.preheader

.preheader38.preheader:                           ; preds = %.preheader39
  %4 = add nuw i32 %15, 1
  %wide.trip.count72 = zext i32 %4 to i64
  %5 = mul nuw nsw i64 %wide.trip.count72, 224
  %scevgep = getelementptr i8, ptr getelementptr (i8, ptr @d, i64 -220), i64 %5
  %6 = mul nuw nsw i64 %wide.trip.count72, 220
  %7 = shl nuw nsw i64 %wide.trip.count72, 2
  %8 = zext nneg i32 %15 to i64
  %9 = zext nneg i32 %15 to i64
  %10 = getelementptr i8, ptr @d, i64 %6
  %11 = getelementptr i8, ptr %10, i64 -212
  %12 = getelementptr i8, ptr @d, i64 %7
  %13 = getelementptr i8, ptr %12, i64 220
  %min.iters.check = icmp ult i32 %15, 8
  %n.vec = and i64 %8, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %n.vec, %8
  %14 = and i32 %15, 1
  %lcmp.mod.not = icmp eq i32 %14, 0
  br label %.preheader38

._crit_edge:                                      ; preds = %21, %.preheader40.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader40.._crit_edge_crit_edge ], [ %23, %21 ]
  %15 = phi i32 [ %3, %.preheader40.._crit_edge_crit_edge ], [ %22, %21 ]
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %.not.not = icmp slt i64 %indvars.iv58, %.pre-phi
  br i1 %.not.not, label %.preheader40, label %.preheader39, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader40, %21
  %indvars.iv = phi i64 [ %indvars.iv.next, %21 ], [ 1, %.preheader40 ]
  %16 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv58, i64 %indvars.iv
  %17 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %16)
  %18 = load i32, ptr %16, align 4, !tbaa !5
  %19 = icmp eq i32 %18, -1
  br i1 %19, label %20, label %21

20:                                               ; preds = %.lr.ph
  store i32 1000000000, ptr %16, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %.lr.ph, %20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %.not37.not = icmp slt i64 %indvars.iv, %23
  br i1 %.not37.not, label %.lr.ph, label %._crit_edge, !llvm.loop !12

.preheader38:                                     ; preds = %.preheader38.preheader, %._crit_edge51.split
  %indvar = phi i64 [ 0, %.preheader38.preheader ], [ %indvar.next, %._crit_edge51.split ]
  %indvars.iv69 = phi i64 [ 1, %.preheader38.preheader ], [ %indvars.iv.next70, %._crit_edge51.split ]
  %24 = shl nuw nsw i64 %indvar, 2
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @d, i64 224), i64 %24
  %scevgep81 = getelementptr i8, ptr %11, i64 %24
  %25 = mul nuw nsw i64 %indvar, 220
  %gep110 = getelementptr i8, ptr getelementptr (i8, ptr @d, i64 224), i64 %25
  %scevgep83 = getelementptr i8, ptr %13, i64 %25
  %bound0 = icmp ugt ptr %scevgep81, getelementptr inbounds (i8, ptr @d, i64 224)
  %bound1 = icmp ult ptr %gep, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound084 = icmp ugt ptr %scevgep83, getelementptr inbounds (i8, ptr @d, i64 224)
  %bound185 = icmp ult ptr %gep110, %scevgep
  %found.conflict86 = and i1 %bound084, %bound185
  %conflict.rdx = or i1 %found.conflict, %found.conflict86
  br label %.preheader

._crit_edge54:                                    ; preds = %._crit_edge51.split, %0, %.preheader39
  %26 = load i32, ptr @s, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = load i32, ptr @t, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %27, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = icmp eq i32 %31, 1000000000
  br i1 %32, label %101, label %103

.preheader:                                       ; preds = %.preheader38, %._crit_edge48
  %indvars.iv64 = phi i64 [ 1, %.preheader38 ], [ %indvars.iv.next65, %._crit_edge48 ]
  %33 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %indvars.iv69
  %brmerge = select i1 %min.iters.check, i1 true, i1 %conflict.rdx
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %.preheader, %middle.block
  %indvars.iv61.ph = phi i64 [ 1, %.preheader ], [ %ind.end, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv69, i64 %indvars.iv61.ph
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = add nsw i32 %36, %34
  %38 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %indvars.iv61.ph
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = icmp slt i32 %37, %39
  br i1 %40, label %41, label %scalar.ph.prol.loopexit.unr-lcssa

41:                                               ; preds = %scalar.ph.prol
  store i32 %37, ptr %38, align 4, !tbaa !5
  br label %scalar.ph.prol.loopexit.unr-lcssa

scalar.ph.prol.loopexit.unr-lcssa:                ; preds = %41, %scalar.ph.prol
  %indvars.iv.next62.prol = add nuw nsw i64 %indvars.iv61.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol.loopexit.unr-lcssa, %scalar.ph.preheader
  %indvars.iv61.unr = phi i64 [ %indvars.iv61.ph, %scalar.ph.preheader ], [ %indvars.iv.next62.prol, %scalar.ph.prol.loopexit.unr-lcssa ]
  %42 = icmp eq i64 %indvars.iv61.ph, %9
  br i1 %42, label %._crit_edge48, label %scalar.ph

vector.ph:                                        ; preds = %.preheader
  %43 = load i32, ptr %33, align 4, !tbaa !5, !alias.scope !13
  %broadcast.splatinsert88 = insertelement <4 x i32> poison, i32 %43, i64 0
  %broadcast.splat89 = shufflevector <4 x i32> %broadcast.splatinsert88, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %pred.store.continue105, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %pred.store.continue105 ]
  %offset.idx = or disjoint i64 %index, 1
  %44 = or disjoint i64 %index, 5
  %45 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv69, i64 %offset.idx
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %wide.load = load <4 x i32>, ptr %45, align 4, !tbaa !5, !alias.scope !16
  %wide.load87 = load <4 x i32>, ptr %46, align 4, !tbaa !5, !alias.scope !16
  %47 = add nsw <4 x i32> %wide.load, %broadcast.splat89
  %48 = add nsw <4 x i32> %wide.load87, %broadcast.splat89
  %49 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %offset.idx
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %wide.load90 = load <4 x i32>, ptr %49, align 4, !tbaa !5, !alias.scope !18, !noalias !20
  %wide.load91 = load <4 x i32>, ptr %50, align 4, !tbaa !5, !alias.scope !18, !noalias !20
  %51 = icmp slt <4 x i32> %47, %wide.load90
  %52 = icmp slt <4 x i32> %48, %wide.load91
  %53 = extractelement <4 x i1> %51, i64 0
  br i1 %53, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %54 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %offset.idx
  %55 = extractelement <4 x i32> %47, i64 0
  store i32 %55, ptr %54, align 4, !tbaa !5, !alias.scope !18, !noalias !20
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %56 = extractelement <4 x i1> %51, i64 1
  br i1 %56, label %pred.store.if92, label %pred.store.continue93

pred.store.if92:                                  ; preds = %pred.store.continue
  %57 = or disjoint i64 %index, 2
  %58 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %57
  %59 = extractelement <4 x i32> %47, i64 1
  store i32 %59, ptr %58, align 4, !tbaa !5, !alias.scope !18, !noalias !20
  br label %pred.store.continue93

pred.store.continue93:                            ; preds = %pred.store.if92, %pred.store.continue
  %60 = extractelement <4 x i1> %51, i64 2
  br i1 %60, label %pred.store.if94, label %pred.store.continue95

pred.store.if94:                                  ; preds = %pred.store.continue93
  %61 = or disjoint i64 %index, 3
  %62 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %61
  %63 = extractelement <4 x i32> %47, i64 2
  store i32 %63, ptr %62, align 4, !tbaa !5, !alias.scope !18, !noalias !20
  br label %pred.store.continue95

pred.store.continue95:                            ; preds = %pred.store.if94, %pred.store.continue93
  %64 = extractelement <4 x i1> %51, i64 3
  br i1 %64, label %pred.store.if96, label %pred.store.continue97

pred.store.if96:                                  ; preds = %pred.store.continue95
  %65 = or disjoint i64 %index, 4
  %66 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %65
  %67 = extractelement <4 x i32> %47, i64 3
  store i32 %67, ptr %66, align 4, !tbaa !5, !alias.scope !18, !noalias !20
  br label %pred.store.continue97

pred.store.continue97:                            ; preds = %pred.store.if96, %pred.store.continue95
  %68 = extractelement <4 x i1> %52, i64 0
  br i1 %68, label %pred.store.if98, label %pred.store.continue99

pred.store.if98:                                  ; preds = %pred.store.continue97
  %69 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %44
  %70 = extractelement <4 x i32> %48, i64 0
  store i32 %70, ptr %69, align 4, !tbaa !5, !alias.scope !18, !noalias !20
  br label %pred.store.continue99

pred.store.continue99:                            ; preds = %pred.store.if98, %pred.store.continue97
  %71 = extractelement <4 x i1> %52, i64 1
  br i1 %71, label %pred.store.if100, label %pred.store.continue101

pred.store.if100:                                 ; preds = %pred.store.continue99
  %72 = or disjoint i64 %index, 6
  %73 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %72
  %74 = extractelement <4 x i32> %48, i64 1
  store i32 %74, ptr %73, align 4, !tbaa !5, !alias.scope !18, !noalias !20
  br label %pred.store.continue101

pred.store.continue101:                           ; preds = %pred.store.if100, %pred.store.continue99
  %75 = extractelement <4 x i1> %52, i64 2
  br i1 %75, label %pred.store.if102, label %pred.store.continue103

pred.store.if102:                                 ; preds = %pred.store.continue101
  %76 = or disjoint i64 %index, 7
  %77 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %76
  %78 = extractelement <4 x i32> %48, i64 2
  store i32 %78, ptr %77, align 4, !tbaa !5, !alias.scope !18, !noalias !20
  br label %pred.store.continue103

pred.store.continue103:                           ; preds = %pred.store.if102, %pred.store.continue101
  %79 = extractelement <4 x i1> %52, i64 3
  br i1 %79, label %pred.store.if104, label %pred.store.continue105

pred.store.if104:                                 ; preds = %pred.store.continue103
  %80 = add i64 %index, 8
  %81 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %80
  %82 = extractelement <4 x i32> %48, i64 3
  store i32 %82, ptr %81, align 4, !tbaa !5, !alias.scope !18, !noalias !20
  br label %pred.store.continue105

pred.store.continue105:                           ; preds = %pred.store.if104, %pred.store.continue103
  %index.next = add nuw i64 %index, 8
  %83 = icmp eq i64 %index.next, %n.vec
  br i1 %83, label %middle.block, label %vector.body, !llvm.loop !21

middle.block:                                     ; preds = %pred.store.continue105
  br i1 %cmp.n, label %._crit_edge48, label %scalar.ph.preheader

._crit_edge51.split:                              ; preds = %._crit_edge48
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next70, %wide.trip.count72
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond73.not, label %._crit_edge54, label %.preheader38, !llvm.loop !24

._crit_edge48:                                    ; preds = %scalar.ph.prol.loopexit, %100, %middle.block
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %wide.trip.count72
  br i1 %exitcond68.not, label %._crit_edge51.split, label %.preheader, !llvm.loop !25

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %100
  %indvars.iv61 = phi i64 [ %indvars.iv.next62.1, %100 ], [ %indvars.iv61.unr, %scalar.ph.prol.loopexit ]
  %84 = load i32, ptr %33, align 4, !tbaa !5
  %85 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv69, i64 %indvars.iv61
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add nsw i32 %86, %84
  %88 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %indvars.iv61
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = icmp slt i32 %87, %89
  br i1 %90, label %91, label %scalar.ph.1

91:                                               ; preds = %scalar.ph
  store i32 %87, ptr %88, align 4, !tbaa !5
  br label %scalar.ph.1

scalar.ph.1:                                      ; preds = %scalar.ph, %91
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %92 = load i32, ptr %33, align 4, !tbaa !5
  %93 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv69, i64 %indvars.iv.next62
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = add nsw i32 %94, %92
  %96 = getelementptr inbounds [55 x [55 x i32]], ptr @d, i64 0, i64 %indvars.iv64, i64 %indvars.iv.next62
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = icmp slt i32 %95, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %scalar.ph.1
  store i32 %95, ptr %96, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %99, %scalar.ph.1
  %indvars.iv.next62.1 = add nuw nsw i64 %indvars.iv61, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next62.1, %wide.trip.count72
  br i1 %exitcond.not.1, label %._crit_edge48, label %scalar.ph, !llvm.loop !26

101:                                              ; preds = %._crit_edge54
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %105

103:                                              ; preds = %._crit_edge54
  %104 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %31)
  br label %105

105:                                              ; preds = %103, %101
  ret i32 0
}

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

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

attributes #0 = { mustprogress nofree norecurse 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 = { 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" }

!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++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = !{!14}
!14 = distinct !{!14, !15}
!15 = distinct !{!15, !"LVerDomain"}
!16 = !{!17}
!17 = distinct !{!17, !15}
!18 = !{!19}
!19 = distinct !{!19, !15}
!20 = !{!14, !17}
!21 = distinct !{!21, !10, !22, !23}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10, !22}


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