; LLVM IR from brpapa/algorithms :: solutions/uva (750)

; 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<Taux, std::allocator<Taux>>::_Vector_impl" }
%"struct.std::_Vector_base<Taux, std::allocator<Taux>>::_Vector_impl" = type { %"struct.std::_Vector_base<Taux, std::allocator<Taux>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Taux, std::allocator<Taux>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Taux = type { [8 x i32] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@validArrangements = external dso_local global %"class.std::vector", align 8
@__const.main.row = external hidden unnamed_addr constant [8 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [8 x i32], align 16
  %3 = alloca i8, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.Taux, 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 ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %struct.Taux, align 4
  %17 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.row, i64 32, i1 false)
  br label %18

18:                                               ; preds = %121, %0
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #8
  store i8 1, ptr %3, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %96, %18
  %20 = load i32, ptr %4, align 4, !tbaa !9
  %21 = icmp slt i32 %20, 8
  br i1 %21, label %22, label %25

22:                                               ; preds = %19
  %23 = load i8, ptr %3, align 1, !tbaa !5, !range !11, !noundef !12
  %24 = trunc i8 %23 to i1
  br label %25

25:                                               ; preds = %22, %19
  %26 = phi i1 [ false, %19 ], [ %24, %22 ]
  br i1 %26, label %28, label %27

27:                                               ; preds = %25
  store i32 4, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %99

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %6, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %92, %28
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = icmp slt i32 %32, 8
  br i1 %33, label %34, label %37

34:                                               ; preds = %31
  %35 = load i8, ptr %3, align 1, !tbaa !5, !range !11, !noundef !12
  %36 = trunc i8 %35 to i1
  br label %37

37:                                               ; preds = %34, %31
  %38 = phi i1 [ false, %31 ], [ %36, %34 ]
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %37
  %41 = load i32, ptr %4, align 4, !tbaa !9
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = sub nsw i32 %41, %42
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %45, label %49

45:                                               ; preds = %40
  %46 = load i32, ptr %4, align 4, !tbaa !9
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = sub nsw i32 %46, %47
  br label %54

49:                                               ; preds = %40
  %50 = load i32, ptr %4, align 4, !tbaa !9
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = sub nsw i32 %50, %51
  %53 = sub nsw i32 0, %52
  br label %54

54:                                               ; preds = %49, %45
  %55 = phi i32 [ %48, %45 ], [ %53, %49 ]
  %56 = load i32, ptr %4, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = load i32, ptr %6, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = sub nsw i32 %59, %63
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %66, label %76

66:                                               ; preds = %54
  %67 = load i32, ptr %4, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = sub nsw i32 %70, %74
  br label %87

76:                                               ; preds = %54
  %77 = load i32, ptr %4, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !9
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !9
  %85 = sub nsw i32 %80, %84
  %86 = sub nsw i32 0, %85
  br label %87

87:                                               ; preds = %76, %66
  %88 = phi i32 [ %75, %66 ], [ %86, %76 ]
  %89 = icmp eq i32 %55, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %87
  store i8 0, ptr %3, align 1, !tbaa !5
  br label %91

91:                                               ; preds = %90, %87
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %6, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %6, align 4, !tbaa !9
  br label %31, !llvm.loop !13

95:                                               ; preds = %39
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %4, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %4, align 4, !tbaa !9
  br label %19, !llvm.loop !15

99:                                               ; preds = %27
  %100 = load i8, ptr %3, align 1, !tbaa !5, !range !11, !noundef !12
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %120

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %103

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

106:                                              ; preds = %103
  store i32 10, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %119

107:                                              ; preds = %103
  %108 = load i32, ptr %8, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = getelementptr inbounds %struct.Taux, ptr %7, i32 0, i32 0
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [8 x i32], ptr %112, i64 0, i64 %114
  store i32 %111, ptr %115, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %107
  %117 = load i32, ptr %8, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %8, align 4, !tbaa !9
  br label %103, !llvm.loop !16

119:                                              ; preds = %106
  call void @_ZNSt6vectorI4TauxSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @validArrangements, ptr noundef nonnull align 4 dereferenceable(32) %7)
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %120

120:                                              ; preds = %119, %99
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #8
  br label %121

121:                                              ; preds = %120
  %122 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 0
  %123 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 0
  %124 = getelementptr inbounds i32, ptr %123, i64 8
  %125 = call noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef %122, ptr noundef %124)
  br i1 %125, label %18, label %126, !llvm.loop !17

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %127 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %9)
  br label %128

128:                                              ; preds = %179, %126
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = add nsw i32 %129, -1
  store i32 %130, ptr %9, align 4, !tbaa !9
  %131 = icmp ne i32 %129, 0
  br i1 %131, label %132, label %185

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %133 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %10, ptr noundef %11)
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = add nsw i32 %134, -1
  store i32 %135, ptr %10, align 4, !tbaa !9
  %136 = load i32, ptr %11, align 4, !tbaa !9
  %137 = add nsw i32 %136, -1
  store i32 %137, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 1, ptr %12, align 4, !tbaa !9
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store ptr @validArrangements, ptr %13, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %139 = call ptr @_ZNSt6vectorI4TauxSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @validArrangements) #8
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %139, ptr %140, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %141 = call ptr @_ZNSt6vectorI4TauxSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @validArrangements) #8
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %141, ptr %142, align 8
  br label %143

143:                                              ; preds = %177, %132
  %144 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4TauxSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br i1 %144, label %146, label %145

145:                                              ; preds = %143
  store i32 15, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %179

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #8
  %147 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4TauxSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %147, i64 32, i1 false), !tbaa.struct !20
  %148 = getelementptr inbounds %struct.Taux, ptr %16, i32 0, i32 0
  %149 = load i32, ptr %11, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [8 x i32], ptr %148, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = load i32, ptr %10, align 4, !tbaa !9
  %154 = icmp eq i32 %152, %153
  br i1 %154, label %155, label %176

155:                                              ; preds = %146
  %156 = load i32, ptr %12, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %12, align 4, !tbaa !9
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %156)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %171, %155
  %160 = load i32, ptr %17, align 4, !tbaa !9
  %161 = icmp slt i32 %160, 8
  br i1 %161, label %163, label %162

162:                                              ; preds = %159
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %174

163:                                              ; preds = %159
  %164 = getelementptr inbounds %struct.Taux, ptr %16, i32 0, i32 0
  %165 = load i32, ptr %17, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [8 x i32], ptr %164, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !9
  %169 = add nsw i32 %168, 1
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %169)
  br label %171

171:                                              ; preds = %163
  %172 = load i32, ptr %17, align 4, !tbaa !9
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %17, align 4, !tbaa !9
  br label %159, !llvm.loop !22

174:                                              ; preds = %162
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %176

176:                                              ; preds = %174, %146
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  br label %177

177:                                              ; preds = %176
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4TauxSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br label %143

179:                                              ; preds = %145
  %180 = load i32, ptr %9, align 4, !tbaa !9
  %181 = icmp sgt i32 %180, 0
  %182 = zext i1 %181 to i64
  %183 = select i1 %181, ptr @.str.5, ptr @.str.7
  %184 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %183)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %128, !llvm.loop !23

185:                                              ; preds = %128
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #8
  %186 = load i32, ptr %1, align 4
  ret i32 %186
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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 void @_ZNSt6vectorI4TauxSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(32)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef, ptr noundef) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI4TauxSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI4TauxSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP4TauxSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4TauxSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4TauxSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { "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 #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{i64 0, i64 32, !21}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Taux, std::allocator<Taux>>::_Vector_impl" }
%"struct.std::_Vector_base<Taux, std::allocator<Taux>>::_Vector_impl" = type { %"struct.std::_Vector_base<Taux, std::allocator<Taux>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Taux, std::allocator<Taux>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Taux = type { [8 x i32] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@validArrangements = external dso_local global %"class.std::vector", align 8
@__const.main.row = external hidden unnamed_addr constant [8 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [8 x i32], align 16
  %2 = alloca %struct.Taux, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %struct.Taux, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %1, ptr noundef nonnull align 16 dereferenceable(32) @__const.main.row, i64 32, i1 false)
  %9 = getelementptr inbounds i8, ptr %1, i64 32
  br label %13

.loopexit:                                        ; preds = %.lr.ph, %30, %42, %54, %66, %78, %90, %13
  %.134.lcssa = phi i8 [ %.03341, %13 ], [ %.2, %.lr.ph ], [ %.2.1, %30 ], [ %.2.2, %42 ], [ %.2.3, %54 ], [ %.2.4, %66 ], [ %.2.5, %78 ], [ %.2.6, %90 ]
  %10 = trunc nuw i8 %.134.lcssa to i1
  %11 = select i1 %14, i1 %10, i1 false
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %11, label %.backedge, label %12

.backedge:                                        ; preds = %.loopexit, %100
  %indvars.iv53.be = phi i64 [ %indvars.iv.next54, %.loopexit ], [ 0, %100 ]
  %indvars.iv.be = phi i64 [ %indvars.iv.next, %.loopexit ], [ 1, %100 ]
  %.03341.be = phi i8 [ %.134.lcssa, %.loopexit ], [ 1, %100 ]
  br label %13, !llvm.loop !5

12:                                               ; preds = %.loopexit
  br i1 %10, label %99, label %100

13:                                               ; preds = %.backedge, %0
  %indvars.iv53 = phi i64 [ 0, %0 ], [ %indvars.iv53.be, %.backedge ]
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.be, %.backedge ]
  %.03341 = phi i8 [ 1, %0 ], [ %.03341.be, %.backedge ]
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %14 = icmp ult i64 %indvars.iv53, 7
  %15 = trunc nuw i8 %.03341 to i1
  %16 = select i1 %14, i1 %15, i1 false
  br i1 %16, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %13
  %17 = getelementptr inbounds [8 x i32], ptr %1, i64 0, i64 %indvars.iv53
  %18 = load i32, ptr %17, align 4, !tbaa !7
  %19 = sub nsw i64 %indvars.iv53, %indvars.iv
  %20 = trunc nsw i64 %19 to i32
  %21 = call i32 @llvm.abs.i32(i32 %20, i1 true)
  %22 = getelementptr inbounds [8 x i32], ptr %1, i64 0, i64 %indvars.iv
  %23 = load i32, ptr %22, align 4, !tbaa !7
  %24 = sub nsw i32 %18, %23
  %25 = call i32 @llvm.abs.i32(i32 %24, i1 true)
  %26 = icmp eq i32 %21, %25
  %.2 = select i1 %26, i8 0, i8 %.03341
  %27 = icmp ult i64 %indvars.iv, 7
  %28 = trunc nuw i8 %.2 to i1
  %29 = select i1 %27, i1 %28, i1 false
  br i1 %29, label %30, label %.loopexit, !llvm.loop !11

30:                                               ; preds = %.lr.ph
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv, 1
  %31 = sub nsw i64 %indvars.iv53, %indvars.iv.next52
  %32 = trunc nsw i64 %31 to i32
  %33 = call i32 @llvm.abs.i32(i32 %32, i1 true)
  %34 = getelementptr inbounds [8 x i32], ptr %1, i64 0, i64 %indvars.iv.next52
  %35 = load i32, ptr %34, align 4, !tbaa !7
  %36 = sub nsw i32 %18, %35
  %37 = call i32 @llvm.abs.i32(i32 %36, i1 true)
  %38 = icmp eq i32 %33, %37
  %.2.1 = select i1 %38, i8 0, i8 %.2
  %39 = icmp ult i64 %indvars.iv, 6
  %40 = trunc nuw i8 %.2.1 to i1
  %41 = select i1 %39, i1 %40, i1 false
  br i1 %41, label %42, label %.loopexit, !llvm.loop !11

42:                                               ; preds = %30
  %indvars.iv.next52.1 = add nuw nsw i64 %indvars.iv, 2
  %43 = sub nsw i64 %indvars.iv53, %indvars.iv.next52.1
  %44 = trunc nsw i64 %43 to i32
  %45 = call i32 @llvm.abs.i32(i32 %44, i1 true)
  %46 = getelementptr inbounds [8 x i32], ptr %1, i64 0, i64 %indvars.iv.next52.1
  %47 = load i32, ptr %46, align 4, !tbaa !7
  %48 = sub nsw i32 %18, %47
  %49 = call i32 @llvm.abs.i32(i32 %48, i1 true)
  %50 = icmp eq i32 %45, %49
  %.2.2 = select i1 %50, i8 0, i8 %.2.1
  %51 = icmp ult i64 %indvars.iv, 5
  %52 = trunc nuw i8 %.2.2 to i1
  %53 = select i1 %51, i1 %52, i1 false
  br i1 %53, label %54, label %.loopexit, !llvm.loop !11

54:                                               ; preds = %42
  %indvars.iv.next52.2 = add nuw nsw i64 %indvars.iv, 3
  %55 = sub nsw i64 %indvars.iv53, %indvars.iv.next52.2
  %56 = trunc nsw i64 %55 to i32
  %57 = call i32 @llvm.abs.i32(i32 %56, i1 true)
  %58 = getelementptr inbounds [8 x i32], ptr %1, i64 0, i64 %indvars.iv.next52.2
  %59 = load i32, ptr %58, align 4, !tbaa !7
  %60 = sub nsw i32 %18, %59
  %61 = call i32 @llvm.abs.i32(i32 %60, i1 true)
  %62 = icmp eq i32 %57, %61
  %.2.3 = select i1 %62, i8 0, i8 %.2.2
  %63 = icmp ult i64 %indvars.iv, 4
  %64 = trunc nuw i8 %.2.3 to i1
  %65 = select i1 %63, i1 %64, i1 false
  br i1 %65, label %66, label %.loopexit, !llvm.loop !11

66:                                               ; preds = %54
  %indvars.iv.next52.3 = or disjoint i64 %indvars.iv, 4
  %67 = sub nsw i64 %indvars.iv53, %indvars.iv.next52.3
  %68 = trunc nsw i64 %67 to i32
  %69 = call i32 @llvm.abs.i32(i32 %68, i1 true)
  %70 = getelementptr inbounds [8 x i32], ptr %1, i64 0, i64 %indvars.iv.next52.3
  %71 = load i32, ptr %70, align 4, !tbaa !7
  %72 = sub nsw i32 %18, %71
  %73 = call i32 @llvm.abs.i32(i32 %72, i1 true)
  %74 = icmp eq i32 %69, %73
  %.2.4 = select i1 %74, i8 0, i8 %.2.3
  %75 = icmp ult i64 %indvars.iv, 3
  %76 = trunc nuw i8 %.2.4 to i1
  %77 = select i1 %75, i1 %76, i1 false
  br i1 %77, label %78, label %.loopexit, !llvm.loop !11

78:                                               ; preds = %66
  %indvars.iv.next52.4 = add nuw nsw i64 %indvars.iv, 5
  %79 = sub nsw i64 %indvars.iv53, %indvars.iv.next52.4
  %80 = trunc nsw i64 %79 to i32
  %81 = call i32 @llvm.abs.i32(i32 %80, i1 true)
  %82 = getelementptr inbounds [8 x i32], ptr %1, i64 0, i64 %indvars.iv.next52.4
  %83 = load i32, ptr %82, align 4, !tbaa !7
  %84 = sub nsw i32 %18, %83
  %85 = call i32 @llvm.abs.i32(i32 %84, i1 true)
  %86 = icmp eq i32 %81, %85
  %.2.5 = select i1 %86, i8 0, i8 %.2.4
  %87 = icmp ult i64 %indvars.iv, 2
  %88 = trunc nuw i8 %.2.5 to i1
  %89 = select i1 %87, i1 %88, i1 false
  br i1 %89, label %90, label %.loopexit, !llvm.loop !11

90:                                               ; preds = %78
  %indvars.iv.next52.5 = or disjoint i64 %indvars.iv, 6
  %91 = sub nsw i64 %indvars.iv53, %indvars.iv.next52.5
  %92 = trunc nsw i64 %91 to i32
  %93 = call i32 @llvm.abs.i32(i32 %92, i1 true)
  %94 = getelementptr inbounds [8 x i32], ptr %1, i64 0, i64 %indvars.iv.next52.5
  %95 = load i32, ptr %94, align 4, !tbaa !7
  %96 = sub nsw i32 %18, %95
  %97 = call i32 @llvm.abs.i32(i32 %96, i1 true)
  %98 = icmp eq i32 %93, %97
  %.2.6 = select i1 %98, i8 0, i8 %.2.5
  br label %.loopexit, !llvm.loop !11

99:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %2, ptr noundef nonnull align 16 dereferenceable(32) %1, i64 32, i1 false), !tbaa !7
  call void @_ZNSt6vectorI4TauxSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @validArrangements, ptr noundef nonnull align 4 dereferenceable(32) %2)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #9
  br label %100

100:                                              ; preds = %99, %12
  %101 = call noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef nonnull %1, ptr noundef nonnull %9)
  br i1 %101, label %.backedge, label %102

102:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  %103 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3)
  %104 = load i32, ptr %3, align 4, !tbaa !7
  %105 = add nsw i32 %104, -1
  store i32 %105, ptr %3, align 4, !tbaa !7
  %.not47 = icmp eq i32 %104, 0
  br i1 %.not47, label %._crit_edge50, label %.lr.ph49.preheader

.lr.ph49.preheader:                               ; preds = %102
  %106 = getelementptr inbounds i8, ptr %8, i64 4
  %107 = getelementptr inbounds i8, ptr %8, i64 8
  %108 = getelementptr inbounds i8, ptr %8, i64 12
  %109 = getelementptr inbounds i8, ptr %8, i64 16
  %110 = getelementptr inbounds i8, ptr %8, i64 20
  %111 = getelementptr inbounds i8, ptr %8, i64 24
  %112 = getelementptr inbounds i8, ptr %8, i64 28
  br label %.lr.ph49

.lr.ph49:                                         ; preds = %.lr.ph49.preheader, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %113 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %114 = load i32, ptr %4, align 4, !tbaa !7
  %115 = add nsw i32 %114, -1
  store i32 %115, ptr %4, align 4, !tbaa !7
  %116 = load i32, ptr %5, align 4, !tbaa !7
  %117 = add nsw i32 %116, -1
  store i32 %117, ptr %5, align 4, !tbaa !7
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %119 = call ptr @_ZNSt6vectorI4TauxSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @validArrangements) #9
  store ptr %119, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %120 = call ptr @_ZNSt6vectorI4TauxSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @validArrangements) #9
  store ptr %120, ptr %7, align 8
  %121 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4TauxSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %121, label %.lr.ph46, label %._crit_edge

._crit_edge:                                      ; preds = %163, %.lr.ph49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %122 = load i32, ptr %3, align 4, !tbaa !7
  %123 = icmp sgt i32 %122, 0
  %124 = select i1 %123, ptr @.str.5, ptr @.str.7
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull %124)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  %126 = load i32, ptr %3, align 4, !tbaa !7
  %127 = add nsw i32 %126, -1
  store i32 %127, ptr %3, align 4, !tbaa !7
  %.not = icmp eq i32 %126, 0
  br i1 %.not, label %._crit_edge50, label %.lr.ph49, !llvm.loop !12

.lr.ph46:                                         ; preds = %.lr.ph49, %163
  %.02945 = phi i32 [ %.1, %163 ], [ 1, %.lr.ph49 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  %128 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4TauxSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %8, ptr noundef nonnull align 4 dereferenceable(32) %128, i64 32, i1 false), !tbaa.struct !13
  %129 = load i32, ptr %5, align 4, !tbaa !7
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !7
  %133 = load i32, ptr %4, align 4, !tbaa !7
  %134 = icmp eq i32 %132, %133
  br i1 %134, label %135, label %163

135:                                              ; preds = %.lr.ph46
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.02945)
  %137 = load i32, ptr %8, align 4, !tbaa !7
  %138 = add nsw i32 %137, 1
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %138)
  %140 = load i32, ptr %106, align 4, !tbaa !7
  %141 = add nsw i32 %140, 1
  %142 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %141)
  %143 = load i32, ptr %107, align 4, !tbaa !7
  %144 = add nsw i32 %143, 1
  %145 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %144)
  %146 = load i32, ptr %108, align 4, !tbaa !7
  %147 = add nsw i32 %146, 1
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %147)
  %149 = load i32, ptr %109, align 4, !tbaa !7
  %150 = add nsw i32 %149, 1
  %151 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %150)
  %152 = load i32, ptr %110, align 4, !tbaa !7
  %153 = add nsw i32 %152, 1
  %154 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %153)
  %155 = load i32, ptr %111, align 4, !tbaa !7
  %156 = add nsw i32 %155, 1
  %157 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %156)
  %158 = load i32, ptr %112, align 4, !tbaa !7
  %159 = add nsw i32 %158, 1
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %159)
  %161 = add nsw i32 %.02945, 1
  %162 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %163

163:                                              ; preds = %135, %.lr.ph46
  %.1 = phi i32 [ %161, %135 ], [ %.02945, %.lr.ph46 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4TauxSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %165 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4TauxSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %165, label %.lr.ph46, label %._crit_edge

._crit_edge50:                                    ; preds = %._crit_edge, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #9
  ret i32 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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 void @_ZNSt6vectorI4TauxSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI4TauxSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI4TauxSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP4TauxSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4TauxSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4TauxSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = !{i64 0, i64 32, !14}
!14 = !{!9, !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass