; LLVM IR from ROCm/aomp :: test/LLNL/openmp5.0-tests (test_non_rectangular)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [100 x [100 x double]], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 100, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80000, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %45, %2
  %17 = load i32, ptr %8, align 4, !tbaa !5
  %18 = icmp slt i32 %17, 100
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %48

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %32, %20
  %22 = load i32, ptr %10, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 100
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %35

25:                                               ; preds = %21
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [100 x [100 x double]], ptr %7, i64 0, i64 %27
  %29 = load i32, ptr %10, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100 x double], ptr %28, i64 0, i64 %30
  store double 0.000000e+00, ptr %31, align 8, !tbaa !11
  br label %32

32:                                               ; preds = %25
  %33 = load i32, ptr %10, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %10, align 4, !tbaa !5
  br label %21, !llvm.loop !13

35:                                               ; preds = %24
  %36 = load i32, ptr %8, align 4, !tbaa !5
  %37 = mul nsw i32 10, %36
  %38 = sitofp i32 %37 to double
  %39 = load i32, ptr %8, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [100 x [100 x double]], ptr %7, i64 0, i64 %40
  %42 = load i32, ptr %8, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100 x double], ptr %41, i64 0, i64 %43
  store double %38, ptr %44, align 8, !tbaa !11
  br label %45

45:                                               ; preds = %35
  %46 = load i32, ptr %8, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %8, align 4, !tbaa !5
  br label %16, !llvm.loop !15

48:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %76, %48
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = icmp slt i32 %50, 100
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %79

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %54 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %54, ptr %12, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %72, %53
  %56 = load i32, ptr %12, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 100
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %75

59:                                               ; preds = %55
  %60 = load i32, ptr %11, align 4, !tbaa !5
  %61 = load i32, ptr %12, align 4, !tbaa !5
  %62 = add nsw i32 %60, %61
  %63 = sitofp i32 %62 to double
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [100 x [100 x double]], ptr %7, i64 0, i64 %65
  %67 = load i32, ptr %12, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100 x double], ptr %66, i64 0, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = fadd double %70, %63
  store double %71, ptr %69, align 8, !tbaa !11
  br label %72

72:                                               ; preds = %59
  %73 = load i32, ptr %12, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %12, align 4, !tbaa !5
  br label %55, !llvm.loop !16

75:                                               ; preds = %58
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %11, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %11, align 4, !tbaa !5
  br label %49, !llvm.loop !17

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

80:                                               ; preds = %111, %79
  %81 = load i32, ptr %14, align 4, !tbaa !5
  %82 = icmp slt i32 %81, 100
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %114

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %85 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %85, ptr %15, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %107, %84
  %87 = load i32, ptr %15, align 4, !tbaa !5
  %88 = icmp slt i32 %87, 100
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %110

90:                                               ; preds = %86
  %91 = load i32, ptr %14, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100 x [100 x double]], ptr %7, i64 0, i64 %92
  %94 = load i32, ptr %15, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100 x double], ptr %93, i64 0, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = load i32, ptr %15, align 4, !tbaa !5
  %100 = add nsw i32 %98, %99
  %101 = sitofp i32 %100 to double
  %102 = fsub double %97, %101
  %103 = load i32, ptr %13, align 4, !tbaa !5
  %104 = sitofp i32 %103 to double
  %105 = fadd double %104, %102
  %106 = fptosi double %105 to i32
  store i32 %106, ptr %13, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %90
  %108 = load i32, ptr %15, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %15, align 4, !tbaa !5
  br label %86, !llvm.loop !18

110:                                              ; preds = %89
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %14, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %14, align 4, !tbaa !5
  br label %80, !llvm.loop !19

114:                                              ; preds = %83
  %115 = load i32, ptr %13, align 4, !tbaa !5
  %116 = icmp ne i32 %115, 49500
  br i1 %116, label %117, label %125

117:                                              ; preds = %114
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %120 = load i32, ptr %13, align 4, !tbaa !5
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %119, i32 noundef %120)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @.str.2)
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %122, i32 noundef 49500)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef @.str.3)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %127

125:                                              ; preds = %114
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %127

127:                                              ; preds = %125, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 80000, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %128 = load i32, ptr %3, align 4
  ret i32 %128
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress 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 = { "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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [100 x [100 x double]], align 16
  call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %3) #5
  br label %.preheader41

.preheader41:                                     ; preds = %.preheader41, %2
  %indvar = phi i64 [ 0, %2 ], [ %indvar.next.1, %.preheader41 ]
  %4 = mul nuw nsw i64 %indvar, 800
  %scevgep = getelementptr i8, ptr %3, i64 %4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800) %scevgep, i8 0, i64 800, i1 false), !tbaa !5
  %5 = trunc i64 %indvar to i32
  %6 = mul nuw nsw i32 %5, 10
  %7 = uitofp nneg i32 %6 to double
  %8 = getelementptr inbounds [100 x [100 x double]], ptr %3, i64 0, i64 %indvar, i64 %indvar
  store double %7, ptr %8, align 16, !tbaa !5
  %indvar.next = or disjoint i64 %indvar, 1
  %9 = mul nuw nsw i64 %indvar.next, 800
  %scevgep.1 = getelementptr i8, ptr %3, i64 %9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800) %scevgep.1, i8 0, i64 800, i1 false), !tbaa !5
  %10 = trunc i64 %indvar.next to i32
  %11 = mul nuw nsw i32 %10, 10
  %12 = uitofp nneg i32 %11 to double
  %13 = getelementptr inbounds [100 x [100 x double]], ptr %3, i64 0, i64 %indvar.next, i64 %indvar.next
  store double %12, ptr %13, align 8, !tbaa !5
  %indvar.next.1 = add nuw nsw i64 %indvar, 2
  %exitcond.not.1 = icmp eq i64 %indvar.next.1, 100
  br i1 %exitcond.not.1, label %.preheader39, label %.preheader41, !llvm.loop !9

.preheader39:                                     ; preds = %.preheader41, %.loopexit
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 0, %.preheader41 ]
  %14 = sub nsw i64 100, %indvars.iv
  %min.iters.check = icmp ult i64 %14, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader39
  %indvars.iv52.ph = phi i64 [ %indvars.iv, %.preheader39 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.preheader39
  %n.vec = and i64 %14, -4
  %ind.end = add i64 %indvars.iv, %n.vec
  %.splatinsert = insertelement <2 x i64> poison, i64 %indvars.iv, i64 0
  %.splat = shufflevector <2 x i64> %.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  %induction = add nuw <2 x i64> %.splat, <i64 0, i64 1>
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %indvars.iv, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i64> [ %induction, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <2 x i64> %vec.ind, <i64 2, i64 2>
  %offset.idx = add i64 %indvars.iv, %index
  %15 = add nuw nsw <2 x i64> %vec.ind, %broadcast.splat
  %16 = add nuw nsw <2 x i64> %step.add, %broadcast.splat
  %17 = trunc <2 x i64> %15 to <2 x i32>
  %18 = trunc <2 x i64> %16 to <2 x i32>
  %19 = uitofp <2 x i32> %17 to <2 x double>
  %20 = uitofp <2 x i32> %18 to <2 x double>
  %21 = getelementptr inbounds [100 x [100 x double]], ptr %3, i64 0, i64 %indvars.iv, i64 %offset.idx
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %wide.load = load <2 x double>, ptr %21, align 8, !tbaa !5
  %wide.load67 = load <2 x double>, ptr %22, align 8, !tbaa !5
  %23 = fadd <2 x double> %wide.load, %19
  %24 = fadd <2 x double> %wide.load67, %20
  store <2 x double> %23, ptr %21, align 8, !tbaa !5
  store <2 x double> %24, ptr %22, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <2 x i64> %vec.ind, <i64 4, i64 4>
  %25 = icmp eq i64 %index.next, %n.vec
  br i1 %25, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %14, %n.vec
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

.loopexit:                                        ; preds = %scalar.ph, %middle.block
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond57.not = icmp eq i64 %indvars.iv.next, 100
  br i1 %exitcond57.not, label %.preheader, label %.preheader39, !llvm.loop !14

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %scalar.ph ], [ %indvars.iv52.ph, %scalar.ph.preheader ]
  %26 = add nuw nsw i64 %indvars.iv52, %indvars.iv
  %27 = trunc nuw nsw i64 %26 to i32
  %28 = uitofp nneg i32 %27 to double
  %29 = getelementptr inbounds [100 x [100 x double]], ptr %3, i64 0, i64 %indvars.iv, i64 %indvars.iv52
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = fadd double %30, %28
  store double %31, ptr %29, align 8, !tbaa !5
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond55.not = icmp eq i64 %indvars.iv.next53, 100
  br i1 %exitcond55.not, label %.loopexit, label %scalar.ph, !llvm.loop !15

.preheader:                                       ; preds = %.loopexit, %43
  %indvars.iv58 = phi i64 [ %indvars.iv.next59.1, %43 ], [ 0, %.loopexit ]
  %.03248 = phi i32 [ %42, %43 ], [ 0, %.loopexit ]
  br label %44

32:                                               ; preds = %43
  %.not = icmp eq i32 %42, 49500
  br i1 %.not, label %61, label %54

.preheader.1:                                     ; preds = %44
  %indvars.iv.next59 = or disjoint i64 %indvars.iv58, 1
  br label %33

33:                                               ; preds = %33, %.preheader.1
  %indvars.iv60.1 = phi i64 [ %indvars.iv.next59, %.preheader.1 ], [ %indvars.iv.next61.1, %33 ]
  %.146.1 = phi i32 [ %53, %.preheader.1 ], [ %42, %33 ]
  %34 = getelementptr inbounds [100 x [100 x double]], ptr %3, i64 0, i64 %indvars.iv.next59, i64 %indvars.iv60.1
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = add nuw nsw i64 %indvars.iv60.1, %indvars.iv.next59
  %37 = trunc nuw nsw i64 %36 to i32
  %38 = uitofp nneg i32 %37 to double
  %39 = fsub double %35, %38
  %40 = sitofp i32 %.146.1 to double
  %41 = fadd double %39, %40
  %42 = fptosi double %41 to i32
  %indvars.iv.next61.1 = add nuw nsw i64 %indvars.iv60.1, 1
  %exitcond63.not.1 = icmp eq i64 %indvars.iv.next61.1, 100
  br i1 %exitcond63.not.1, label %43, label %33, !llvm.loop !16

43:                                               ; preds = %33
  %indvars.iv.next59.1 = add nuw nsw i64 %indvars.iv58, 2
  %exitcond65.not.1 = icmp eq i64 %indvars.iv.next59.1, 100
  br i1 %exitcond65.not.1, label %32, label %.preheader, !llvm.loop !17

44:                                               ; preds = %.preheader, %44
  %indvars.iv60 = phi i64 [ %indvars.iv58, %.preheader ], [ %indvars.iv.next61, %44 ]
  %.146 = phi i32 [ %.03248, %.preheader ], [ %53, %44 ]
  %45 = getelementptr inbounds [100 x [100 x double]], ptr %3, i64 0, i64 %indvars.iv58, i64 %indvars.iv60
  %46 = load double, ptr %45, align 8, !tbaa !5
  %47 = add nuw nsw i64 %indvars.iv60, %indvars.iv58
  %48 = trunc nuw nsw i64 %47 to i32
  %49 = uitofp nneg i32 %48 to double
  %50 = fsub double %46, %49
  %51 = sitofp i32 %.146 to double
  %52 = fadd double %50, %51
  %53 = fptosi double %52 to i32
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %exitcond63.not = icmp eq i64 %indvars.iv.next61, 100
  br i1 %exitcond63.not, label %.preheader.1, label %44, !llvm.loop !16

54:                                               ; preds = %32
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %56, i32 noundef %42)
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @.str.2)
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %58, i32 noundef 49500)
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @.str.3)
  br label %63

61:                                               ; preds = %32
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  br label %63

63:                                               ; preds = %61, %54
  %.037 = phi i32 [ 1, %54 ], [ 0, %61 ]
  call void @llvm.lifetime.end.p0(i64 80000, ptr nonnull %3) #5
  ret i32 %.037
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress 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 = { "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 nounwind willreturn memory(argmem: write) }
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 = !{!"double", !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, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !13, !12}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass