; LLVM IR from kazunetakahashi/atcoder :: 2019/0119_ddcc2019-machine (A)

; 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 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }

@XST = external dso_local global i64, align 8
@YST = external dso_local global i64, align 8
@XA = external dso_local global i64, align 8
@YA = external dso_local global i64, align 8
@XB = external dso_local global i64, align 8
@YB = external dso_local global i64, align 8
@XE = external dso_local global i64, align 8
@YE = external dso_local global i64, align 8
@XP = external dso_local global i64, align 8
@XSP = external dso_local global i64, align 8
@XAS = external dso_local global i64, align 8
@XDS = external dso_local global i64, align 8
@YP = external dso_local global i64, align 8
@YSP = external dso_local global i64, align 8
@YAS = external dso_local global i64, align 8
@YDS = external dso_local global i64, align 8
@AS = external dso_local global i64, align 8
@BS = external dso_local global i64, align 8
@ES = external dso_local global i64, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZL2dx = external hidden constant [4 x i32], align 16
@_ZL2dy = external hidden constant [4 x i32], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5flushv() #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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
  store i32 0, ptr %1, align 4
  %7 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, double noundef 0x405DF61C81195EE5)
  %8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @XST)
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) @YST)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) @XA)
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) @YA)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) @XB)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) @YB)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) @XE)
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) @YE)
  store i64 1000, ptr @YDS, align 8, !tbaa !5
  store i64 1000, ptr @YAS, align 8, !tbaa !5
  store i64 1000, ptr @XDS, align 8, !tbaa !5
  store i64 1000, ptr @XAS, align 8, !tbaa !5
  store i64 500, ptr @YSP, align 8, !tbaa !5
  store i64 500, ptr @XSP, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %145, %0
  %18 = load i32, ptr %2, align 4, !tbaa !9
  %19 = icmp slt i32 %18, 100
  br i1 %19, label %21, label %20

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

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

22:                                               ; preds = %58, %21
  %23 = load i32, ptr %4, align 4, !tbaa !9
  %24 = icmp slt i32 %23, 4
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  store i32 5, ptr %3, align 4
  br label %61

26:                                               ; preds = %22
  %27 = load i64, ptr @XA, align 8, !tbaa !5
  %28 = load i32, ptr %4, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [4 x i32], ptr @_ZL2dx, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !9
  %32 = load i32, ptr %2, align 4, !tbaa !9
  %33 = mul nsw i32 %31, %32
  %34 = sext i32 %33 to i64
  %35 = add nsw i64 %27, %34
  store i64 %35, ptr @XP, align 8, !tbaa !5
  %36 = load i64, ptr @YA, align 8, !tbaa !5
  %37 = load i32, ptr %4, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [4 x i32], ptr @_ZL2dy, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = load i32, ptr %2, align 4, !tbaa !9
  %42 = mul nsw i32 %40, %41
  %43 = sext i32 %42 to i64
  %44 = add nsw i64 %36, %43
  store i64 %44, ptr @YP, align 8, !tbaa !5
  %45 = load i64, ptr @XP, align 8, !tbaa !5
  %46 = icmp sle i64 0, %45
  br i1 %46, label %47, label %57

47:                                               ; preds = %26
  %48 = load i64, ptr @XP, align 8, !tbaa !5
  %49 = icmp sle i64 %48, 900
  br i1 %49, label %50, label %57

50:                                               ; preds = %47
  %51 = load i64, ptr @YP, align 8, !tbaa !5
  %52 = icmp sle i64 0, %51
  br i1 %52, label %53, label %57

53:                                               ; preds = %50
  %54 = load i64, ptr @YP, align 8, !tbaa !5
  %55 = icmp sle i64 %54, 900
  br i1 %55, label %56, label %57

56:                                               ; preds = %53
  store i32 5, ptr %3, align 4
  br label %61

57:                                               ; preds = %53, %50, %47, %26
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %4, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %4, align 4, !tbaa !9
  br label %22, !llvm.loop !11

61:                                               ; preds = %56, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %62

62:                                               ; preds = %61
  store i64 0, ptr @ES, align 8, !tbaa !5
  store i64 0, ptr @BS, align 8, !tbaa !5
  store i64 0, ptr @AS, align 8, !tbaa !5
  store i64 1333, ptr @AS, align 8, !tbaa !5
  call void @_Z5flushv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %99, %62
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = icmp slt i32 %64, 4
  br i1 %65, label %67, label %66

66:                                               ; preds = %63
  store i32 8, ptr %3, align 4
  br label %102

67:                                               ; preds = %63
  %68 = load i64, ptr @XB, align 8, !tbaa !5
  %69 = load i32, ptr %5, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [4 x i32], ptr @_ZL2dx, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = load i32, ptr %2, align 4, !tbaa !9
  %74 = mul nsw i32 %72, %73
  %75 = sext i32 %74 to i64
  %76 = add nsw i64 %68, %75
  store i64 %76, ptr @XP, align 8, !tbaa !5
  %77 = load i64, ptr @YB, align 8, !tbaa !5
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [4 x i32], ptr @_ZL2dy, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = load i32, ptr %2, align 4, !tbaa !9
  %83 = mul nsw i32 %81, %82
  %84 = sext i32 %83 to i64
  %85 = add nsw i64 %77, %84
  store i64 %85, ptr @YP, align 8, !tbaa !5
  %86 = load i64, ptr @XP, align 8, !tbaa !5
  %87 = icmp sle i64 0, %86
  br i1 %87, label %88, label %98

88:                                               ; preds = %67
  %89 = load i64, ptr @XP, align 8, !tbaa !5
  %90 = icmp sle i64 %89, 900
  br i1 %90, label %91, label %98

91:                                               ; preds = %88
  %92 = load i64, ptr @YP, align 8, !tbaa !5
  %93 = icmp sle i64 0, %92
  br i1 %93, label %94, label %98

94:                                               ; preds = %91
  %95 = load i64, ptr @YP, align 8, !tbaa !5
  %96 = icmp sle i64 %95, 900
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  store i32 8, ptr %3, align 4
  br label %102

98:                                               ; preds = %94, %91, %88, %67
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %5, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %5, align 4, !tbaa !9
  br label %63, !llvm.loop !13

102:                                              ; preds = %97, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %103

103:                                              ; preds = %102
  store i64 0, ptr @ES, align 8, !tbaa !5
  store i64 0, ptr @BS, align 8, !tbaa !5
  store i64 0, ptr @AS, align 8, !tbaa !5
  store i64 1333, ptr @BS, align 8, !tbaa !5
  call void @_Z5flushv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %140, %103
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = icmp slt i32 %105, 4
  br i1 %106, label %108, label %107

107:                                              ; preds = %104
  store i32 11, ptr %3, align 4
  br label %143

108:                                              ; preds = %104
  %109 = load i64, ptr @XE, align 8, !tbaa !5
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [4 x i32], ptr @_ZL2dx, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = load i32, ptr %2, align 4, !tbaa !9
  %115 = mul nsw i32 %113, %114
  %116 = sext i32 %115 to i64
  %117 = add nsw i64 %109, %116
  store i64 %117, ptr @XP, align 8, !tbaa !5
  %118 = load i64, ptr @YE, align 8, !tbaa !5
  %119 = load i32, ptr %6, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [4 x i32], ptr @_ZL2dy, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = load i32, ptr %2, align 4, !tbaa !9
  %124 = mul nsw i32 %122, %123
  %125 = sext i32 %124 to i64
  %126 = add nsw i64 %118, %125
  store i64 %126, ptr @YP, align 8, !tbaa !5
  %127 = load i64, ptr @XP, align 8, !tbaa !5
  %128 = icmp sle i64 0, %127
  br i1 %128, label %129, label %139

129:                                              ; preds = %108
  %130 = load i64, ptr @XP, align 8, !tbaa !5
  %131 = icmp sle i64 %130, 900
  br i1 %131, label %132, label %139

132:                                              ; preds = %129
  %133 = load i64, ptr @YP, align 8, !tbaa !5
  %134 = icmp sle i64 0, %133
  br i1 %134, label %135, label %139

135:                                              ; preds = %132
  %136 = load i64, ptr @YP, align 8, !tbaa !5
  %137 = icmp sle i64 %136, 900
  br i1 %137, label %138, label %139

138:                                              ; preds = %135
  store i32 11, ptr %3, align 4
  br label %143

139:                                              ; preds = %135, %132, %129, %108
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %6, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %6, align 4, !tbaa !9
  br label %104, !llvm.loop !14

143:                                              ; preds = %138, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %144

144:                                              ; preds = %143
  store i64 0, ptr @ES, align 8, !tbaa !5
  store i64 0, ptr @BS, align 8, !tbaa !5
  store i64 0, ptr @AS, align 8, !tbaa !5
  store i64 2666, ptr @ES, align 8, !tbaa !5
  call void @_Z5flushv()
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %2, align 4, !tbaa !9
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %2, align 4, !tbaa !9
  br label %17, !llvm.loop !15

148:                                              ; preds = %20
  %149 = load i32, ptr %1, align 4
  ret i32 %149
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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


; 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 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }

@XST = external dso_local global i64, align 8
@YST = external dso_local global i64, align 8
@XA = external dso_local global i64, align 8
@YA = external dso_local global i64, align 8
@XB = external dso_local global i64, align 8
@YB = external dso_local global i64, align 8
@XE = external dso_local global i64, align 8
@YE = external dso_local global i64, align 8
@XP = external dso_local local_unnamed_addr global i64, align 8
@XSP = external dso_local local_unnamed_addr global i64, align 8
@XAS = external dso_local local_unnamed_addr global i64, align 8
@XDS = external dso_local local_unnamed_addr global i64, align 8
@YP = external dso_local local_unnamed_addr global i64, align 8
@YSP = external dso_local local_unnamed_addr global i64, align 8
@YAS = external dso_local local_unnamed_addr global i64, align 8
@YDS = external dso_local local_unnamed_addr global i64, align 8
@AS = external dso_local local_unnamed_addr global i64, align 8
@BS = external dso_local local_unnamed_addr global i64, align 8
@ES = external dso_local local_unnamed_addr global i64, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZL2dx = external hidden local_unnamed_addr constant [4 x i32], align 16
@_ZL2dy = external hidden local_unnamed_addr constant [4 x i32], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5flushv() local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, double noundef 0x405DF61C81195EE5)
  %2 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @XST)
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(8) @YST)
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) @XA)
  %6 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) @YA)
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) @XB)
  %8 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) @YB)
  %9 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(8) @XE)
  %10 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) @YE)
  store i64 1000, ptr @YDS, align 8, !tbaa !5
  store i64 1000, ptr @YAS, align 8, !tbaa !5
  store i64 1000, ptr @XDS, align 8, !tbaa !5
  store i64 1000, ptr @XAS, align 8, !tbaa !5
  store i64 500, ptr @YSP, align 8, !tbaa !5
  store i64 500, ptr @XSP, align 8, !tbaa !5
  %11 = load i32, ptr @_ZL2dx, align 16, !tbaa !9
  %12 = load i32, ptr @_ZL2dy, align 16, !tbaa !9
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 4), align 4
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 4), align 4
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 8), align 8
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 8), align 8
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 12), align 4
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 12), align 4
  %19 = load i32, ptr @_ZL2dx, align 16
  %20 = load i32, ptr @_ZL2dy, align 16
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 4), align 4
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 4), align 4
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 8), align 8
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 8), align 8
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 12), align 4
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 12), align 4
  %27 = load i32, ptr @_ZL2dx, align 16
  %28 = load i32, ptr @_ZL2dy, align 16
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 4), align 4
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 4), align 4
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 8), align 8
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 8), align 8
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 12), align 4
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 12), align 4
  br label %.preheader

.preheader:                                       ; preds = %0, %134
  %.04049 = phi i32 [ 1, %0 ], [ %135, %134 ]
  %35 = load i64, ptr @XA, align 8, !tbaa !5
  %36 = load i64, ptr @YA, align 8, !tbaa !5
  %37 = mul nsw i32 %11, %.04049
  %38 = sext i32 %37 to i64
  %39 = add nsw i64 %35, %38
  %40 = mul nsw i32 %12, %.04049
  %41 = sext i32 %40 to i64
  %42 = add nsw i64 %36, %41
  %or.cond = icmp ugt i64 %39, 900
  %43 = icmp ugt i64 %42, 900
  %or.cond5.not53 = select i1 %or.cond, i1 true, i1 %43
  br i1 %or.cond5.not53, label %45, label %68, !llvm.loop !11

44:                                               ; preds = %134
  ret i32 0

45:                                               ; preds = %.preheader
  %46 = mul nsw i32 %13, %.04049
  %47 = sext i32 %46 to i64
  %48 = add nsw i64 %35, %47
  %49 = mul nsw i32 %14, %.04049
  %50 = sext i32 %49 to i64
  %51 = add nsw i64 %36, %50
  %or.cond.1 = icmp ugt i64 %48, 900
  %52 = icmp ugt i64 %51, 900
  %or.cond5.not53.1 = select i1 %or.cond.1, i1 true, i1 %52
  br i1 %or.cond5.not53.1, label %53, label %68, !llvm.loop !11

53:                                               ; preds = %45
  %54 = mul nsw i32 %15, %.04049
  %55 = sext i32 %54 to i64
  %56 = add nsw i64 %35, %55
  %57 = mul nsw i32 %16, %.04049
  %58 = sext i32 %57 to i64
  %59 = add nsw i64 %36, %58
  %or.cond.2 = icmp ugt i64 %56, 900
  %60 = icmp ugt i64 %59, 900
  %or.cond5.not53.2 = select i1 %or.cond.2, i1 true, i1 %60
  br i1 %or.cond5.not53.2, label %61, label %68, !llvm.loop !11

61:                                               ; preds = %53
  %62 = mul nsw i32 %17, %.04049
  %63 = sext i32 %62 to i64
  %64 = add nsw i64 %35, %63
  %65 = mul nsw i32 %18, %.04049
  %66 = sext i32 %65 to i64
  %67 = add nsw i64 %36, %66
  br label %68

68:                                               ; preds = %61, %53, %45, %.preheader
  %.lcssa78 = phi i64 [ %39, %.preheader ], [ %48, %45 ], [ %56, %53 ], [ %64, %61 ]
  %.lcssa = phi i64 [ %42, %.preheader ], [ %51, %45 ], [ %59, %53 ], [ %67, %61 ]
  store i64 %.lcssa78, ptr @XP, align 8, !tbaa !5
  store i64 %.lcssa, ptr @YP, align 8, !tbaa !5
  store i64 0, ptr @ES, align 8, !tbaa !5
  store i64 0, ptr @BS, align 8, !tbaa !5
  store i64 1333, ptr @AS, align 8, !tbaa !5
  tail call void @_Z5flushv()
  %69 = load i64, ptr @XB, align 8, !tbaa !5
  %70 = load i64, ptr @YB, align 8, !tbaa !5
  %71 = mul nsw i32 %19, %.04049
  %72 = sext i32 %71 to i64
  %73 = add nsw i64 %69, %72
  %74 = mul nsw i32 %20, %.04049
  %75 = sext i32 %74 to i64
  %76 = add nsw i64 %70, %75
  %or.cond7 = icmp ugt i64 %73, 900
  %77 = icmp ugt i64 %76, 900
  %or.cond11.not54 = select i1 %or.cond7, i1 true, i1 %77
  br i1 %or.cond11.not54, label %78, label %101, !llvm.loop !13

78:                                               ; preds = %68
  %79 = mul nsw i32 %21, %.04049
  %80 = sext i32 %79 to i64
  %81 = add nsw i64 %69, %80
  %82 = mul nsw i32 %22, %.04049
  %83 = sext i32 %82 to i64
  %84 = add nsw i64 %70, %83
  %or.cond7.1 = icmp ugt i64 %81, 900
  %85 = icmp ugt i64 %84, 900
  %or.cond11.not54.1 = select i1 %or.cond7.1, i1 true, i1 %85
  br i1 %or.cond11.not54.1, label %86, label %101, !llvm.loop !13

86:                                               ; preds = %78
  %87 = mul nsw i32 %23, %.04049
  %88 = sext i32 %87 to i64
  %89 = add nsw i64 %69, %88
  %90 = mul nsw i32 %24, %.04049
  %91 = sext i32 %90 to i64
  %92 = add nsw i64 %70, %91
  %or.cond7.2 = icmp ugt i64 %89, 900
  %93 = icmp ugt i64 %92, 900
  %or.cond11.not54.2 = select i1 %or.cond7.2, i1 true, i1 %93
  br i1 %or.cond11.not54.2, label %94, label %101, !llvm.loop !13

94:                                               ; preds = %86
  %95 = mul nsw i32 %25, %.04049
  %96 = sext i32 %95 to i64
  %97 = add nsw i64 %69, %96
  %98 = mul nsw i32 %26, %.04049
  %99 = sext i32 %98 to i64
  %100 = add nsw i64 %70, %99
  br label %101

101:                                              ; preds = %94, %86, %78, %68
  %.lcssa80 = phi i64 [ %73, %68 ], [ %81, %78 ], [ %89, %86 ], [ %97, %94 ]
  %.lcssa79 = phi i64 [ %76, %68 ], [ %84, %78 ], [ %92, %86 ], [ %100, %94 ]
  store i64 %.lcssa80, ptr @XP, align 8, !tbaa !5
  store i64 %.lcssa79, ptr @YP, align 8, !tbaa !5
  store i64 0, ptr @ES, align 8, !tbaa !5
  store i64 0, ptr @AS, align 8, !tbaa !5
  store i64 1333, ptr @BS, align 8, !tbaa !5
  tail call void @_Z5flushv()
  %102 = load i64, ptr @XE, align 8, !tbaa !5
  %103 = load i64, ptr @YE, align 8, !tbaa !5
  %104 = mul nsw i32 %27, %.04049
  %105 = sext i32 %104 to i64
  %106 = add nsw i64 %102, %105
  %107 = mul nsw i32 %28, %.04049
  %108 = sext i32 %107 to i64
  %109 = add nsw i64 %103, %108
  %or.cond13 = icmp ugt i64 %106, 900
  %110 = icmp ugt i64 %109, 900
  %or.cond17.not55 = select i1 %or.cond13, i1 true, i1 %110
  br i1 %or.cond17.not55, label %111, label %134, !llvm.loop !14

111:                                              ; preds = %101
  %112 = mul nsw i32 %29, %.04049
  %113 = sext i32 %112 to i64
  %114 = add nsw i64 %102, %113
  %115 = mul nsw i32 %30, %.04049
  %116 = sext i32 %115 to i64
  %117 = add nsw i64 %103, %116
  %or.cond13.1 = icmp ugt i64 %114, 900
  %118 = icmp ugt i64 %117, 900
  %or.cond17.not55.1 = select i1 %or.cond13.1, i1 true, i1 %118
  br i1 %or.cond17.not55.1, label %119, label %134, !llvm.loop !14

119:                                              ; preds = %111
  %120 = mul nsw i32 %31, %.04049
  %121 = sext i32 %120 to i64
  %122 = add nsw i64 %102, %121
  %123 = mul nsw i32 %32, %.04049
  %124 = sext i32 %123 to i64
  %125 = add nsw i64 %103, %124
  %or.cond13.2 = icmp ugt i64 %122, 900
  %126 = icmp ugt i64 %125, 900
  %or.cond17.not55.2 = select i1 %or.cond13.2, i1 true, i1 %126
  br i1 %or.cond17.not55.2, label %127, label %134, !llvm.loop !14

127:                                              ; preds = %119
  %128 = mul nsw i32 %33, %.04049
  %129 = sext i32 %128 to i64
  %130 = add nsw i64 %102, %129
  %131 = mul nsw i32 %34, %.04049
  %132 = sext i32 %131 to i64
  %133 = add nsw i64 %103, %132
  br label %134

134:                                              ; preds = %127, %119, %111, %101
  %.lcssa82 = phi i64 [ %106, %101 ], [ %114, %111 ], [ %122, %119 ], [ %130, %127 ]
  %.lcssa81 = phi i64 [ %109, %101 ], [ %117, %111 ], [ %125, %119 ], [ %133, %127 ]
  store i64 %.lcssa82, ptr @XP, align 8, !tbaa !5
  store i64 %.lcssa81, ptr @YP, align 8, !tbaa !5
  store i64 0, ptr @BS, align 8, !tbaa !5
  store i64 0, ptr @AS, align 8, !tbaa !5
  store i64 2666, ptr @ES, align 8, !tbaa !5
  tail call void @_Z5flushv()
  %135 = add nuw nsw i32 %.04049, 1
  %exitcond.not = icmp eq i32 %135, 100
  br i1 %exitcond.not, label %44, label %.preheader, !llvm.loop !15
}

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

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

attributes #0 = { 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 #1 = { 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 #2 = { 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" }

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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