; LLVM IR from tangjz/acm-icpc :: codeforces/complete (235D)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@seq = external dso_local global [3001 x i32], align 16
@idx = external dso_local global [3001 x i32], align 16
@dep = external dso_local global [3001 x i32], align 16
@e = external dso_local global [3001 x %"class.std::vector"], align 16
@vis = external dso_local global [3001 x i8], align 16
@ban = external dso_local global [3001 x i8], align 16
@g = external dso_local global [3001 x [3001 x i32]], align 16
@h = external dso_local global [3001 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3pfsi(i32 noundef) #0

; 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: mustprogress uwtable
declare dso_local noundef i32 @_Z3dfsii(i32 noundef, i32 noundef) #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %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
  %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 double, align 8
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %31, %0
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %34

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %3, ptr noundef %4)
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [3001 x %"class.std::vector"], ptr @e, i64 0, i64 %26
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [3001 x %"class.std::vector"], ptr @e, i64 0, i64 %29
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %31

31:                                               ; preds = %23
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !9

34:                                               ; preds = %22
  %35 = call noundef zeroext i1 @_Z3pfsi(i32 noundef 1)
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = mul i64 %37, 1
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 %38, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %51, %34
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = load i32, ptr @m, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %54

44:                                               ; preds = %39
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [3001 x i8], ptr @ban, i64 0, i64 %49
  store i8 1, ptr %50, align 1, !tbaa !11
  br label %51

51:                                               ; preds = %44
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %5, align 4, !tbaa !5
  br label %39, !llvm.loop !13

54:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %105, %54
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = load i32, ptr @m, align 4, !tbaa !5
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %108

60:                                               ; preds = %55
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [3001 x i32], ptr @idx, i64 0, i64 %66
  store i32 %61, ptr %67, align 4, !tbaa !5
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [3001 x i32], ptr @dep, i64 0, i64 %72
  store i32 0, ptr %73, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = call noundef i32 @_Z3dfsii(i32 noundef %77, i32 noundef -1)
  store i32 %78, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %101, %60
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

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

84:                                               ; preds = %79
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [3001 x [3001 x i32]], ptr @g, i64 0, i64 %89
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [3001 x i32], ptr %90, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = load i32, ptr %9, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = add nsw i32 %99, %94
  store i32 %100, ptr %98, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %84
  %102 = load i32, ptr %9, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %9, align 4, !tbaa !5
  br label %79, !llvm.loop !14

104:                                              ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %6, align 4, !tbaa !5
  br label %55, !llvm.loop !15

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

109:                                              ; preds = %183, %108
  %110 = load i32, ptr %10, align 4, !tbaa !5
  %111 = load i32, ptr @n, align 4, !tbaa !5
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %186

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

115:                                              ; preds = %179, %114
  %116 = load i32, ptr %11, align 4, !tbaa !5
  %117 = load i32, ptr @n, align 4, !tbaa !5
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %182

120:                                              ; preds = %115
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [3001 x i32], ptr @idx, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [3001 x i32], ptr @idx, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = icmp ne i32 %124, %128
  br i1 %129, label %130, label %178

130:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [3001 x i32], ptr @idx, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = load i32, ptr %11, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [3001 x i32], ptr @idx, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = sub nsw i32 %134, %138
  %140 = call i32 @llvm.abs.i32(i32 %139, i1 true)
  store i32 %140, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %141 = load i32, ptr @m, align 4, !tbaa !5
  %142 = load i32, ptr %12, align 4, !tbaa !5
  %143 = sub nsw i32 %141, %142
  store i32 %143, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %144 = load i32, ptr %10, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [3001 x i32], ptr @dep, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = load i32, ptr %11, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [3001 x i32], ptr @dep, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = add nsw i32 %147, %151
  store i32 %152, ptr %14, align 4, !tbaa !5
  %153 = load i32, ptr %12, align 4, !tbaa !5
  %154 = load i32, ptr %14, align 4, !tbaa !5
  %155 = add nsw i32 %153, %154
  %156 = add nsw i32 %155, 1
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %158, align 4, !tbaa !5
  %161 = load i32, ptr %13, align 4, !tbaa !5
  %162 = load i32, ptr %14, align 4, !tbaa !5
  %163 = add nsw i32 %161, %162
  %164 = add nsw i32 %163, 1
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %166, align 4, !tbaa !5
  %169 = load i32, ptr %12, align 4, !tbaa !5
  %170 = load i32, ptr %13, align 4, !tbaa !5
  %171 = add nsw i32 %169, %170
  %172 = load i32, ptr %14, align 4, !tbaa !5
  %173 = add nsw i32 %171, %172
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = add nsw i32 %176, -1
  store i32 %177, ptr %175, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %178

178:                                              ; preds = %130, %120
  br label %179

179:                                              ; preds = %178
  %180 = load i32, ptr %11, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %11, align 4, !tbaa !5
  br label %115, !llvm.loop !16

182:                                              ; preds = %119
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %10, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %10, align 4, !tbaa !5
  br label %109, !llvm.loop !17

186:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store double 0.000000e+00, ptr %15, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %203, %186
  %188 = load i32, ptr %16, align 4, !tbaa !5
  %189 = load i32, ptr @n, align 4, !tbaa !5
  %190 = icmp sle i32 %188, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %187
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %206

192:                                              ; preds = %187
  %193 = load i32, ptr %16, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = sitofp i32 %196 to double
  %198 = load i32, ptr %16, align 4, !tbaa !5
  %199 = sitofp i32 %198 to double
  %200 = fdiv double %197, %199
  %201 = load double, ptr %15, align 8, !tbaa !18
  %202 = fadd double %201, %200
  store double %202, ptr %15, align 8, !tbaa !18
  br label %203

203:                                              ; preds = %192
  %204 = load i32, ptr %16, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %16, align 4, !tbaa !5
  br label %187, !llvm.loop !20

206:                                              ; preds = %191
  %207 = load double, ptr %15, align 8, !tbaa !18
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %207)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %209 = load i32, ptr %1, align 4
  ret i32 %209
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { "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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@seq = external dso_local local_unnamed_addr global [3001 x i32], align 16
@idx = external dso_local local_unnamed_addr global [3001 x i32], align 16
@dep = external dso_local local_unnamed_addr global [3001 x i32], align 16
@e = external dso_local global [3001 x %"class.std::vector"], align 16
@vis = external dso_local local_unnamed_addr global [3001 x i8], align 16
@ban = external dso_local local_unnamed_addr global [3001 x i8], align 16
@g = external dso_local local_unnamed_addr global [3001 x [3001 x i32]], align 16
@h = external dso_local local_unnamed_addr global [3001 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3pfsi(i32 noundef) local_unnamed_addr #0

; 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: mustprogress uwtable
declare dso_local noundef i32 @_Z3dfsii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %6 = call noundef zeroext i1 @_Z3pfsi(i32 noundef 1)
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @vis, i8 0, i64 %8, i1 false)
  %9 = load i32, ptr @m, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph58.preheader, label %.preheader52

.lr.ph58.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %9 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %11 = icmp ult i32 %9, 4
  br i1 %11, label %.preheader53.unr-lcssa, label %.lr.ph58.preheader.new

.lr.ph58.preheader.new:                           ; preds = %.lr.ph58.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph58

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.04255 = phi i32 [ %19, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [3001 x %"class.std::vector"], ptr @e, i64 0, i64 %14
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [3001 x %"class.std::vector"], ptr @e, i64 0, i64 %17
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %19 = add nuw nsw i32 %.04255, 1
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader53.unr-lcssa:                           ; preds = %.lr.ph58, %.lr.ph58.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph58.preheader ], [ %indvars.iv.next.3, %.lr.ph58 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader53, label %.lr.ph58.epil

.lr.ph58.epil:                                    ; preds = %.preheader53.unr-lcssa, %.lr.ph58.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph58.epil ], [ %indvars.iv.unr, %.preheader53.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph58.epil ], [ 0, %.preheader53.unr-lcssa ]
  %22 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %indvars.iv.epil
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [3001 x i8], ptr @ban, i64 0, i64 %24
  store i8 1, ptr %25, align 1, !tbaa !11
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader53, label %.lr.ph58.epil, !llvm.loop !13

.preheader53:                                     ; preds = %.lr.ph58.epil, %.preheader53.unr-lcssa
  br i1 %10, label %.lr.ph64, label %.preheader52

.lr.ph58:                                         ; preds = %.lr.ph58, %.lr.ph58.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph58.preheader.new ], [ %indvars.iv.next.3, %.lr.ph58 ]
  %niter = phi i64 [ 0, %.lr.ph58.preheader.new ], [ %niter.next.3, %.lr.ph58 ]
  %26 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %indvars.iv
  %27 = load i32, ptr %26, align 16, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [3001 x i8], ptr @ban, i64 0, i64 %28
  store i8 1, ptr %29, align 1, !tbaa !11
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %30 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %indvars.iv.next
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [3001 x i8], ptr @ban, i64 0, i64 %32
  store i8 1, ptr %33, align 1, !tbaa !11
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %34 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %indvars.iv.next.1
  %35 = load i32, ptr %34, align 8, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [3001 x i8], ptr @ban, i64 0, i64 %36
  store i8 1, ptr %37, align 1, !tbaa !11
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %38 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %indvars.iv.next.2
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [3001 x i8], ptr @ban, i64 0, i64 %40
  store i8 1, ptr %41, align 1, !tbaa !11
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader53.unr-lcssa, label %.lr.ph58, !llvm.loop !15

.preheader52.loopexit:                            ; preds = %._crit_edge62
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %.preheader52

.preheader52:                                     ; preds = %._crit_edge, %.preheader52.loopexit, %.preheader53
  %42 = phi i32 [ %7, %.preheader53 ], [ %.pre, %.preheader52.loopexit ], [ %7, %._crit_edge ]
  %.lcssa54 = phi i32 [ %9, %.preheader53 ], [ %94, %.preheader52.loopexit ], [ %9, %._crit_edge ]
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.preheader51.lr.ph, label %._crit_edge74

.preheader51.lr.ph:                               ; preds = %.preheader52
  %44 = add i32 %.lcssa54, 1
  %wide.trip.count94 = zext nneg i32 %42 to i64
  br label %.preheader51.us

.preheader51.us:                                  ; preds = %._crit_edge67.us, %.preheader51.lr.ph
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %._crit_edge67.us ], [ 0, %.preheader51.lr.ph ]
  %45 = getelementptr inbounds [3001 x i32], ptr @idx, i64 0, i64 %indvars.iv91
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = getelementptr inbounds [3001 x i32], ptr @dep, i64 0, i64 %indvars.iv91
  br label %48

48:                                               ; preds = %.preheader51.us, %75
  %indvars.iv86 = phi i64 [ 0, %.preheader51.us ], [ %indvars.iv.next87, %75 ]
  %49 = getelementptr inbounds [3001 x i32], ptr @idx, i64 0, i64 %indvars.iv86
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %.not50.us = icmp eq i32 %46, %50
  br i1 %.not50.us, label %75, label %51

51:                                               ; preds = %48
  %52 = sub nsw i32 %46, %50
  %53 = call i32 @llvm.abs.i32(i32 %52, i1 true)
  %54 = load i32, ptr %47, align 4, !tbaa !5
  %55 = getelementptr inbounds [3001 x i32], ptr @dep, i64 0, i64 %indvars.iv86
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = add nsw i32 %56, %54
  %58 = add i32 %57, 1
  %59 = add i32 %58, %53
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %61, align 4, !tbaa !5
  %64 = sub i32 %44, %53
  %65 = add i32 %64, %57
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %67, align 4, !tbaa !5
  %70 = add nsw i32 %57, %.lcssa54
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = add nsw i32 %73, -1
  store i32 %74, ptr %72, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %51, %48
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next87, %wide.trip.count94
  br i1 %exitcond90.not, label %._crit_edge67.us, label %48, !llvm.loop !16

._crit_edge67.us:                                 ; preds = %75
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %exitcond95.not = icmp eq i64 %indvars.iv.next92, %wide.trip.count94
  br i1 %exitcond95.not, label %.lr.ph73.preheader, label %.preheader51.us, !llvm.loop !17

.lr.ph64:                                         ; preds = %.preheader53, %._crit_edge62
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %._crit_edge62 ], [ 0, %.preheader53 ]
  %76 = getelementptr inbounds [3001 x i32], ptr @seq, i64 0, i64 %indvars.iv83
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [3001 x i32], ptr @idx, i64 0, i64 %78
  %80 = trunc nuw nsw i64 %indvars.iv83 to i32
  store i32 %80, ptr %79, align 4, !tbaa !5
  %81 = getelementptr inbounds [3001 x i32], ptr @dep, i64 0, i64 %78
  store i32 0, ptr %81, align 4, !tbaa !5
  %82 = call noundef i32 @_Z3dfsii(i32 noundef %77, i32 noundef -1)
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %.lr.ph61, label %._crit_edge62

.lr.ph61:                                         ; preds = %.lr.ph64
  %84 = load i32, ptr %76, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %wide.trip.count81 = zext nneg i32 %82 to i64
  %min.iters.check = icmp ult i32 %82, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph61
  %indvars.iv78.ph = phi i64 [ 0, %.lr.ph61 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph61
  %n.vec = and i64 %wide.trip.count81, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %86 = getelementptr inbounds [3001 x [3001 x i32]], ptr @g, i64 0, i64 %85, i64 %index
  %87 = getelementptr inbounds i8, ptr %86, i64 16
  %wide.load = load <4 x i32>, ptr %86, align 4, !tbaa !5
  %wide.load104 = load <4 x i32>, ptr %87, align 4, !tbaa !5
  %88 = or disjoint i64 %index, 1
  %89 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %88
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  %wide.load105 = load <4 x i32>, ptr %89, align 4, !tbaa !5
  %wide.load106 = load <4 x i32>, ptr %90, align 4, !tbaa !5
  %91 = add nsw <4 x i32> %wide.load105, %wide.load
  %92 = add nsw <4 x i32> %wide.load106, %wide.load104
  store <4 x i32> %91, ptr %89, align 4, !tbaa !5
  store <4 x i32> %92, ptr %90, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %93 = icmp eq i64 %index.next, %n.vec
  br i1 %93, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count81
  br i1 %cmp.n, label %._crit_edge62, label %scalar.ph.preheader

._crit_edge62:                                    ; preds = %scalar.ph, %middle.block, %.lr.ph64
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %94 = load i32, ptr @m, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = icmp slt i64 %indvars.iv.next84, %95
  br i1 %96, label %.lr.ph64, label %.preheader52.loopexit, !llvm.loop !21

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv78 = phi i64 [ %indvars.iv.next79, %scalar.ph ], [ %indvars.iv78.ph, %scalar.ph.preheader ]
  %97 = getelementptr inbounds [3001 x [3001 x i32]], ptr @g, i64 0, i64 %85, i64 %indvars.iv78
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %99 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %indvars.iv.next79
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = add nsw i32 %100, %98
  store i32 %101, ptr %99, align 4, !tbaa !5
  %exitcond82.not = icmp eq i64 %indvars.iv.next79, %wide.trip.count81
  br i1 %exitcond82.not, label %._crit_edge62, label %scalar.ph, !llvm.loop !22

.lr.ph73.preheader:                               ; preds = %._crit_edge67.us
  %102 = zext nneg i32 %42 to i64
  %xtraiter108 = and i64 %102, 3
  %103 = icmp ult i32 %42, 4
  br i1 %103, label %._crit_edge74.loopexit.unr-lcssa, label %.lr.ph73.preheader.new

.lr.ph73.preheader.new:                           ; preds = %.lr.ph73.preheader
  %unroll_iter112 = and i64 %102, 2147483644
  br label %.lr.ph73

._crit_edge74.loopexit.unr-lcssa:                 ; preds = %.lr.ph73, %.lr.ph73.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph73.preheader ], [ %139, %.lr.ph73 ]
  %indvars.iv96.unr = phi i64 [ 1, %.lr.ph73.preheader ], [ %indvars.iv.next97.3, %.lr.ph73 ]
  %.04171.unr = phi double [ 0.000000e+00, %.lr.ph73.preheader ], [ %139, %.lr.ph73 ]
  %lcmp.mod110.not = icmp eq i64 %xtraiter108, 0
  br i1 %lcmp.mod110.not, label %._crit_edge74, label %.lr.ph73.epil

.lr.ph73.epil:                                    ; preds = %._crit_edge74.loopexit.unr-lcssa, %.lr.ph73.epil
  %indvars.iv96.epil = phi i64 [ %indvars.iv.next97.epil, %.lr.ph73.epil ], [ %indvars.iv96.unr, %._crit_edge74.loopexit.unr-lcssa ]
  %.04171.epil = phi double [ %110, %.lr.ph73.epil ], [ %.04171.unr, %._crit_edge74.loopexit.unr-lcssa ]
  %epil.iter109 = phi i64 [ %epil.iter109.next, %.lr.ph73.epil ], [ 0, %._crit_edge74.loopexit.unr-lcssa ]
  %104 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %indvars.iv96.epil
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = sitofp i32 %105 to double
  %107 = trunc nuw nsw i64 %indvars.iv96.epil to i32
  %108 = uitofp nneg i32 %107 to double
  %109 = fdiv double %106, %108
  %110 = fadd double %.04171.epil, %109
  %indvars.iv.next97.epil = add nuw nsw i64 %indvars.iv96.epil, 1
  %epil.iter109.next = add i64 %epil.iter109, 1
  %epil.iter109.cmp.not = icmp eq i64 %epil.iter109.next, %xtraiter108
  br i1 %epil.iter109.cmp.not, label %._crit_edge74, label %.lr.ph73.epil, !llvm.loop !23

._crit_edge74:                                    ; preds = %._crit_edge74.loopexit.unr-lcssa, %.lr.ph73.epil, %.preheader52
  %.041.lcssa = phi double [ 0.000000e+00, %.preheader52 ], [ %.lcssa.ph, %._crit_edge74.loopexit.unr-lcssa ], [ %110, %.lr.ph73.epil ]
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %.041.lcssa)
  ret i32 0

.lr.ph73:                                         ; preds = %.lr.ph73, %.lr.ph73.preheader.new
  %indvars.iv96 = phi i64 [ 1, %.lr.ph73.preheader.new ], [ %indvars.iv.next97.3, %.lr.ph73 ]
  %.04171 = phi double [ 0.000000e+00, %.lr.ph73.preheader.new ], [ %139, %.lr.ph73 ]
  %niter113 = phi i64 [ 0, %.lr.ph73.preheader.new ], [ %niter113.next.3, %.lr.ph73 ]
  %112 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %indvars.iv96
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = sitofp i32 %113 to double
  %115 = trunc nuw nsw i64 %indvars.iv96 to i32
  %116 = uitofp nneg i32 %115 to double
  %117 = fdiv double %114, %116
  %118 = fadd double %.04171, %117
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %119 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %indvars.iv.next97
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = sitofp i32 %120 to double
  %122 = trunc nuw nsw i64 %indvars.iv.next97 to i32
  %123 = uitofp nneg i32 %122 to double
  %124 = fdiv double %121, %123
  %125 = fadd double %118, %124
  %indvars.iv.next97.1 = add nuw nsw i64 %indvars.iv96, 2
  %126 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %indvars.iv.next97.1
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = sitofp i32 %127 to double
  %129 = trunc nuw nsw i64 %indvars.iv.next97.1 to i32
  %130 = uitofp nneg i32 %129 to double
  %131 = fdiv double %128, %130
  %132 = fadd double %125, %131
  %indvars.iv.next97.2 = add nuw nsw i64 %indvars.iv96, 3
  %133 = getelementptr inbounds [3001 x i32], ptr @h, i64 0, i64 %indvars.iv.next97.2
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = sitofp i32 %134 to double
  %136 = trunc nuw nsw i64 %indvars.iv.next97.2 to i32
  %137 = uitofp nneg i32 %136 to double
  %138 = fdiv double %135, %137
  %139 = fadd double %132, %138
  %indvars.iv.next97.3 = add nuw nsw i64 %indvars.iv96, 4
  %niter113.next.3 = add i64 %niter113, 4
  %niter113.ncmp.3 = icmp eq i64 %niter113.next.3, %unroll_iter112
  br i1 %niter113.ncmp.3, label %._crit_edge74.loopexit.unr-lcssa, label %.lr.ph73, !llvm.loop !24
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10, !20, !19}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !10}


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