; LLVM IR from tangjz/acm-icpc :: self_training/2015-09-24/E.ll (Z3dfsii)

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

%struct.Exp = type { i32, [10 x i32], [10 x i8] }
%"struct.std::pair" = type { i32, i32 }

@val = external dso_local global [10 x %struct.Exp], align 16

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z3dfsii(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca %"struct.std::pair", 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 %"struct.std::pair", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair", align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %16
  %18 = getelementptr inbounds %struct.Exp, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !9
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %28, label %21

21:                                               ; preds = %2
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %23
  %25 = getelementptr inbounds %struct.Exp, ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 -1, ptr %6, align 4, !tbaa !5
  %27 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store i64 %27, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %186

28:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = icmp ne i32 %29, 0
  %31 = zext i1 %30 to i64
  %32 = select i1 %30, i32 2147483647, i32 -2147483647
  store i32 %32, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 -1, ptr %8, align 4, !tbaa !5
  %33 = call i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i64 %33, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %182, %28
  %35 = load i32, ptr %10, align 4, !tbaa !5
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %37
  %39 = getelementptr inbounds %struct.Exp, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !9
  %41 = icmp slt i32 %35, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %34
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %185

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %45
  %47 = getelementptr inbounds %struct.Exp, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %10, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [10 x i32], ptr %47, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.Exp, ptr %54, i32 0, i32 2
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [10 x i8], ptr %55, i64 0, i64 %57
  %59 = load i8, ptr %58, align 1, !tbaa !11
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %61
  %63 = getelementptr inbounds %struct.Exp, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %10, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [10 x i32], ptr %63, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = call noundef i32 @_Z4calcici(i32 noundef %51, i8 noundef signext %59, i32 noundef %68)
  store i32 %69, ptr %12, align 4, !tbaa !5
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.Exp, ptr @val, i64 %71
  %73 = getelementptr inbounds %struct.Exp, ptr %72, i64 1
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %struct.Exp, ptr @val, i64 %75
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %76, i64 56, i1 false)
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %79
  %81 = getelementptr inbounds %struct.Exp, ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 8, !tbaa !9
  %83 = add nsw i32 %82, -1
  store i32 %83, ptr %81, align 8, !tbaa !9
  %84 = load i32, ptr %12, align 4, !tbaa !5
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %87
  %89 = getelementptr inbounds %struct.Exp, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [10 x i32], ptr %89, i64 0, i64 %91
  store i32 %84, ptr %92, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %93 = load i32, ptr %10, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %13, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %141, %43
  %96 = load i32, ptr %13, align 4, !tbaa !5
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %98
  %100 = getelementptr inbounds %struct.Exp, ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !9
  %102 = icmp slt i32 %96, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %95
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %144

104:                                              ; preds = %95
  %105 = load i32, ptr %4, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %107
  %109 = getelementptr inbounds %struct.Exp, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %13, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [10 x i32], ptr %109, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %117
  %119 = getelementptr inbounds %struct.Exp, ptr %118, i32 0, i32 1
  %120 = load i32, ptr %13, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [10 x i32], ptr %119, i64 0, i64 %121
  store i32 %114, ptr %122, align 4, !tbaa !5
  %123 = load i32, ptr %4, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %125
  %127 = getelementptr inbounds %struct.Exp, ptr %126, i32 0, i32 2
  %128 = load i32, ptr %13, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [10 x i8], ptr %127, i64 0, i64 %129
  %131 = load i8, ptr %130, align 1, !tbaa !11
  %132 = load i32, ptr %4, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %134
  %136 = getelementptr inbounds %struct.Exp, ptr %135, i32 0, i32 2
  %137 = load i32, ptr %13, align 4, !tbaa !5
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [10 x i8], ptr %136, i64 0, i64 %139
  store i8 %131, ptr %140, align 1, !tbaa !11
  br label %141

141:                                              ; preds = %104
  %142 = load i32, ptr %13, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %13, align 4, !tbaa !5
  br label %95, !llvm.loop !12

144:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %145 = load i32, ptr %4, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  %147 = load i32, ptr %5, align 4, !tbaa !5
  %148 = xor i32 %147, 1
  %149 = call i64 @_Z3dfsii(i32 noundef %146, i32 noundef %148)
  store i64 %149, ptr %14, align 4
  %150 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %151 = load i32, ptr %5, align 4, !tbaa !5
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %165

153:                                              ; preds = %144
  %154 = getelementptr inbounds %"struct.std::pair", ptr %3, i32 0, i32 0
  %155 = load i32, ptr %154, align 4, !tbaa !14
  %156 = getelementptr inbounds %"struct.std::pair", ptr %9, i32 0, i32 0
  %157 = load i32, ptr %156, align 4, !tbaa !14
  %158 = icmp sgt i32 %155, %157
  br i1 %158, label %159, label %165

159:                                              ; preds = %153
  %160 = getelementptr inbounds %"struct.std::pair", ptr %9, i32 0, i32 0
  %161 = load i32, ptr %160, align 4, !tbaa !14
  %162 = getelementptr inbounds %"struct.std::pair", ptr %3, i32 0, i32 0
  store i32 %161, ptr %162, align 4, !tbaa !14
  %163 = load i32, ptr %10, align 4, !tbaa !5
  %164 = getelementptr inbounds %"struct.std::pair", ptr %3, i32 0, i32 1
  store i32 %163, ptr %164, align 4, !tbaa !16
  br label %181

165:                                              ; preds = %153, %144
  %166 = load i32, ptr %5, align 4, !tbaa !5
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %180, label %168

168:                                              ; preds = %165
  %169 = getelementptr inbounds %"struct.std::pair", ptr %3, i32 0, i32 0
  %170 = load i32, ptr %169, align 4, !tbaa !14
  %171 = getelementptr inbounds %"struct.std::pair", ptr %9, i32 0, i32 0
  %172 = load i32, ptr %171, align 4, !tbaa !14
  %173 = icmp slt i32 %170, %172
  br i1 %173, label %174, label %180

174:                                              ; preds = %168
  %175 = getelementptr inbounds %"struct.std::pair", ptr %9, i32 0, i32 0
  %176 = load i32, ptr %175, align 4, !tbaa !14
  %177 = getelementptr inbounds %"struct.std::pair", ptr %3, i32 0, i32 0
  store i32 %176, ptr %177, align 4, !tbaa !14
  %178 = load i32, ptr %10, align 4, !tbaa !5
  %179 = getelementptr inbounds %"struct.std::pair", ptr %3, i32 0, i32 1
  store i32 %178, ptr %179, align 4, !tbaa !16
  br label %180

180:                                              ; preds = %174, %168, %165
  br label %181

181:                                              ; preds = %180, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %182

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

185:                                              ; preds = %42
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %186

186:                                              ; preds = %185, %21
  %187 = load i64, ptr %3, align 4
  ret i64 %187
}

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #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 i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4calcici(i32 noundef, i8 noundef signext, i32 noundef) #3

; 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) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS3Exp", !6, i64 0, !7, i64 4, !7, i64 44}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!16 = !{!15, !6, i64 4}
!17 = distinct !{!17, !13}


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

%struct.Exp = type { i32, [10 x i32], [10 x i8] }
%"struct.std::pair" = type { i32, i32 }

@val = external dso_local global [10 x %struct.Exp], align 16

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z3dfsii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca %"struct.std::pair", align 8
  %8 = sext i32 %0 to i64
  %9 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %8
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %11, label %14

11:                                               ; preds = %2
  %12 = getelementptr inbounds i8, ptr %9, i64 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 -1, ptr %3, align 4, !tbaa !10
  %13 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.sroa.0.0.extract.trunc = trunc i64 %13 to i32
  %.sroa.7.0.extract.shift = lshr i64 %13, 32
  %.sroa.7.0.extract.trunc = trunc nuw i64 %.sroa.7.0.extract.shift to i32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %169

14:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %.not44 = icmp eq i32 %1, 0
  %15 = select i1 %.not44, i32 -2147483647, i32 2147483647
  store i32 %15, ptr %4, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 -1, ptr %5, align 4, !tbaa !10
  %16 = call i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %.sroa.0.0.extract.trunc37 = trunc i64 %16 to i32
  %.sroa.7.0.extract.shift39 = lshr i64 %16, 32
  %.sroa.7.0.extract.trunc40 = trunc nuw i64 %.sroa.7.0.extract.shift39 to i32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %17 = load i32, ptr %9, align 8, !tbaa !5
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph51, label %._crit_edge52

.lr.ph51:                                         ; preds = %14
  %19 = getelementptr inbounds i8, ptr %9, i64 4
  %20 = getelementptr inbounds i8, ptr %9, i64 44
  %21 = getelementptr inbounds i8, ptr %9, i64 56
  %22 = add i32 %0, 1
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [10 x %struct.Exp], ptr @val, i64 0, i64 %23
  %25 = getelementptr inbounds i8, ptr %24, i64 4
  %26 = getelementptr inbounds i8, ptr %24, i64 44
  %27 = xor i32 %1, 1
  %28 = mul nsw i64 %23, 56
  %29 = add nsw i64 %28, 44
  %30 = getelementptr i8, ptr @val, i64 %28
  %scevgep107 = getelementptr i8, ptr %30, i64 43
  %scevgep112 = getelementptr i8, ptr @val, i64 %29
  br i1 %.not44, label %.lr.ph51.split.us.preheader, label %.lr.ph51.split.preheader

.lr.ph51.split.preheader:                         ; preds = %.lr.ph51
  %31 = getelementptr i8, ptr @val, i64 %28
  %32 = getelementptr i8, ptr %31, i64 8
  %33 = getelementptr i8, ptr @val, i64 %28
  %34 = getelementptr i8, ptr %33, i64 12
  %35 = getelementptr i8, ptr @val, i64 %29
  %36 = getelementptr i8, ptr @val, i64 %28
  %37 = getelementptr i8, ptr %36, i64 16
  %38 = getelementptr i8, ptr @val, i64 %28
  %39 = getelementptr i8, ptr %38, i64 45
  br label %.lr.ph51.split

.lr.ph51.split.us.preheader:                      ; preds = %.lr.ph51
  %40 = getelementptr i8, ptr @val, i64 %28
  %41 = getelementptr i8, ptr %40, i64 8
  %42 = getelementptr i8, ptr @val, i64 %28
  %43 = getelementptr i8, ptr %42, i64 12
  %44 = getelementptr i8, ptr @val, i64 %29
  %45 = getelementptr i8, ptr @val, i64 %28
  %46 = getelementptr i8, ptr %45, i64 16
  %47 = getelementptr i8, ptr @val, i64 %28
  %48 = getelementptr i8, ptr %47, i64 45
  br label %.lr.ph51.split.us

.lr.ph51.split.us:                                ; preds = %.lr.ph51.split.us.preheader, %.critedge.us
  %indvars.iv69 = phi i64 [ %indvars.iv.next70, %.critedge.us ], [ 0, %.lr.ph51.split.us.preheader ]
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %.critedge.us ], [ 1, %.lr.ph51.split.us.preheader ]
  %.sroa.7.049.us = phi i32 [ %spec.select45.us, %.critedge.us ], [ %.sroa.7.0.extract.trunc40, %.lr.ph51.split.us.preheader ]
  %.sroa.0.047.us = phi i32 [ %spec.select.us, %.critedge.us ], [ %.sroa.0.0.extract.trunc37, %.lr.ph51.split.us.preheader ]
  %49 = shl nuw nsw i64 %indvars.iv69, 2
  %scevgep103 = getelementptr i8, ptr %41, i64 %49
  %scevgep104 = getelementptr i8, ptr %43, i64 %49
  %scevgep106 = getelementptr i8, ptr %44, i64 %indvars.iv69
  %scevgep109 = getelementptr i8, ptr %46, i64 %49
  %scevgep111 = getelementptr i8, ptr %48, i64 %indvars.iv69
  %50 = getelementptr inbounds [10 x i32], ptr %19, i64 0, i64 %indvars.iv69
  %51 = load i32, ptr %50, align 4, !tbaa !10
  %52 = getelementptr inbounds [10 x i8], ptr %20, i64 0, i64 %indvars.iv69
  %53 = load i8, ptr %52, align 1, !tbaa !11
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %54 = getelementptr inbounds [10 x i32], ptr %19, i64 0, i64 %indvars.iv.next70
  %55 = load i32, ptr %54, align 4, !tbaa !10
  %56 = call noundef i32 @_Z4calcici(i32 noundef %51, i8 noundef signext %53, i32 noundef %55)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(56) %9, i64 56, i1 false)
  %57 = load i32, ptr %24, align 8, !tbaa !5
  %58 = add nsw i32 %57, -1
  store i32 %58, ptr %24, align 8, !tbaa !5
  %59 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv69
  store i32 %56, ptr %59, align 4, !tbaa !10
  %60 = load i32, ptr %9, align 8, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = icmp slt i64 %indvars.iv.next70, %61
  br i1 %62, label %.lr.ph.us.preheader, label %.critedge.us

.lr.ph.us.preheader:                              ; preds = %.lr.ph51.split.us
  %63 = xor i64 %indvars.iv69, -1
  %wide.trip.count67 = zext i32 %60 to i64
  %64 = add nsw i64 %63, %wide.trip.count67
  %min.iters.check135 = icmp ult i64 %64, 16
  br i1 %min.iters.check135, label %.lr.ph.us.preheader151, label %vector.memcheck102

.lr.ph.us.preheader151:                           ; preds = %middle.block133, %vector.memcheck102, %.lr.ph.us.preheader
  %indvars.iv64.ph = phi i64 [ %indvars.iv62, %vector.memcheck102 ], [ %indvars.iv62, %.lr.ph.us.preheader ], [ %ind.end139, %middle.block133 ]
  %65 = sub i64 %wide.trip.count67, %indvars.iv64.ph
  %xtraiter154 = and i64 %65, 1
  %lcmp.mod155.not = icmp eq i64 %xtraiter154, 0
  br i1 %lcmp.mod155.not, label %.lr.ph.us.prol.loopexit, label %.lr.ph.us.prol

.lr.ph.us.prol:                                   ; preds = %.lr.ph.us.preheader151
  %indvars.iv.next65.prol = add nuw nsw i64 %indvars.iv64.ph, 1
  %66 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv.next65.prol
  %67 = load i32, ptr %66, align 4, !tbaa !10
  %68 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv64.ph
  store i32 %67, ptr %68, align 4, !tbaa !10
  %69 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %indvars.iv64.ph
  %70 = load i8, ptr %69, align 1, !tbaa !11
  %71 = add nsw i64 %indvars.iv64.ph, -1
  %72 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %71
  store i8 %70, ptr %72, align 1, !tbaa !11
  br label %.lr.ph.us.prol.loopexit

.lr.ph.us.prol.loopexit:                          ; preds = %.lr.ph.us.prol, %.lr.ph.us.preheader151
  %indvars.iv64.unr = phi i64 [ %indvars.iv64.ph, %.lr.ph.us.preheader151 ], [ %indvars.iv.next65.prol, %.lr.ph.us.prol ]
  %73 = add nsw i64 %wide.trip.count67, -1
  %74 = icmp eq i64 %indvars.iv64.ph, %73
  br i1 %74, label %.critedge.us, label %.lr.ph.us

vector.memcheck102:                               ; preds = %.lr.ph.us.preheader
  %reass.sub150 = sub nsw i64 %wide.trip.count67, %indvars.iv69
  %75 = shl i64 %reass.sub150, 2
  %76 = add i64 %75, -8
  %scevgep105 = getelementptr i8, ptr %scevgep104, i64 %76
  %scevgep108 = getelementptr i8, ptr %scevgep107, i64 %wide.trip.count67
  %scevgep110 = getelementptr i8, ptr %scevgep109, i64 %76
  %scevgep113 = getelementptr i8, ptr %scevgep112, i64 %wide.trip.count67
  %bound0114 = icmp ult ptr %scevgep103, %scevgep108
  %bound1115 = icmp ult ptr %scevgep106, %scevgep105
  %found.conflict116 = and i1 %bound0114, %bound1115
  %bound0117 = icmp ult ptr %scevgep103, %scevgep110
  %bound1118 = icmp ult ptr %scevgep104, %scevgep105
  %found.conflict119 = and i1 %bound0117, %bound1118
  %conflict.rdx120 = or i1 %found.conflict116, %found.conflict119
  %bound0121 = icmp ult ptr %scevgep103, %scevgep113
  %bound1122 = icmp ult ptr %scevgep111, %scevgep105
  %found.conflict123 = and i1 %bound0121, %bound1122
  %conflict.rdx124 = or i1 %conflict.rdx120, %found.conflict123
  %bound0125 = icmp ult ptr %scevgep106, %scevgep110
  %bound1126 = icmp ult ptr %scevgep104, %scevgep108
  %found.conflict127 = and i1 %bound0125, %bound1126
  %conflict.rdx128 = or i1 %conflict.rdx124, %found.conflict127
  %bound0129 = icmp ult ptr %scevgep106, %scevgep113
  %bound1130 = icmp ult ptr %scevgep111, %scevgep108
  %found.conflict131 = and i1 %bound0129, %bound1130
  %conflict.rdx132 = or i1 %conflict.rdx128, %found.conflict131
  br i1 %conflict.rdx132, label %.lr.ph.us.preheader151, label %vector.ph136

vector.ph136:                                     ; preds = %vector.memcheck102
  %n.vec138 = and i64 %64, -8
  %ind.end139 = add i64 %indvars.iv62, %n.vec138
  br label %vector.body141

vector.body141:                                   ; preds = %vector.body141, %vector.ph136
  %index142 = phi i64 [ 0, %vector.ph136 ], [ %index.next148, %vector.body141 ]
  %offset.idx143 = add i64 %indvars.iv62, %index142
  %77 = add nuw nsw i64 %offset.idx143, 1
  %78 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %77
  %79 = getelementptr inbounds i8, ptr %78, i64 16
  %wide.load144 = load <4 x i32>, ptr %78, align 4, !tbaa !10, !alias.scope !12
  %wide.load145 = load <4 x i32>, ptr %79, align 4, !tbaa !10, !alias.scope !12
  %80 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %offset.idx143
  %81 = getelementptr inbounds i8, ptr %80, i64 16
  store <4 x i32> %wide.load144, ptr %80, align 4, !tbaa !10, !alias.scope !15, !noalias !17
  store <4 x i32> %wide.load145, ptr %81, align 4, !tbaa !10, !alias.scope !15, !noalias !17
  %82 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %offset.idx143
  %83 = getelementptr inbounds i8, ptr %82, i64 4
  %wide.load146 = load <4 x i8>, ptr %82, align 1, !tbaa !11, !alias.scope !20
  %wide.load147 = load <4 x i8>, ptr %83, align 1, !tbaa !11, !alias.scope !20
  %84 = add nsw i64 %offset.idx143, -1
  %85 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %84
  %86 = getelementptr inbounds i8, ptr %85, i64 4
  store <4 x i8> %wide.load146, ptr %85, align 1, !tbaa !11, !alias.scope !21, !noalias !22
  store <4 x i8> %wide.load147, ptr %86, align 1, !tbaa !11, !alias.scope !21, !noalias !22
  %index.next148 = add nuw i64 %index142, 8
  %87 = icmp eq i64 %index.next148, %n.vec138
  br i1 %87, label %middle.block133, label %vector.body141, !llvm.loop !23

middle.block133:                                  ; preds = %vector.body141
  %cmp.n149 = icmp eq i64 %64, %n.vec138
  br i1 %cmp.n149, label %.critedge.us, label %.lr.ph.us.preheader151

.critedge.us:                                     ; preds = %.lr.ph.us.prol.loopexit, %.lr.ph.us, %middle.block133, %.lr.ph51.split.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %88 = call i64 @_Z3dfsii(i32 noundef %22, i32 noundef %27)
  store i64 %88, ptr %7, align 8
  %89 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %90 = load i32, ptr %6, align 4, !tbaa !27
  %91 = icmp slt i32 %.sroa.0.047.us, %90
  %spec.select.us = call i32 @llvm.smax.i32(i32 %.sroa.0.047.us, i32 %90)
  %92 = trunc nuw nsw i64 %indvars.iv69 to i32
  %spec.select45.us = select i1 %91, i32 %92, i32 %.sroa.7.049.us
  %93 = load i32, ptr %9, align 8, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = icmp slt i64 %indvars.iv.next70, %94
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  br i1 %95, label %.lr.ph51.split.us, label %._crit_edge52, !llvm.loop !29

.lr.ph.us:                                        ; preds = %.lr.ph.us.prol.loopexit, %.lr.ph.us
  %indvars.iv64 = phi i64 [ %indvars.iv.next65.1, %.lr.ph.us ], [ %indvars.iv64.unr, %.lr.ph.us.prol.loopexit ]
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %96 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv.next65
  %97 = load i32, ptr %96, align 4, !tbaa !10
  %98 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv64
  store i32 %97, ptr %98, align 4, !tbaa !10
  %99 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %indvars.iv64
  %100 = load i8, ptr %99, align 1, !tbaa !11
  %101 = add nsw i64 %indvars.iv64, -1
  %102 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %101
  store i8 %100, ptr %102, align 1, !tbaa !11
  %indvars.iv.next65.1 = add nuw nsw i64 %indvars.iv64, 2
  %103 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv.next65.1
  %104 = load i32, ptr %103, align 4, !tbaa !10
  %105 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv.next65
  store i32 %104, ptr %105, align 4, !tbaa !10
  %106 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %indvars.iv.next65
  %107 = load i8, ptr %106, align 1, !tbaa !11
  %108 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %indvars.iv64
  store i8 %107, ptr %108, align 1, !tbaa !11
  %exitcond68.not.1 = icmp eq i64 %indvars.iv.next65.1, %wide.trip.count67
  br i1 %exitcond68.not.1, label %.critedge.us, label %.lr.ph.us, !llvm.loop !30

._crit_edge52:                                    ; preds = %._crit_edge, %.critedge.us, %14
  %.sroa.0.0.lcssa = phi i32 [ %.sroa.0.0.extract.trunc37, %14 ], [ %spec.select.us, %.critedge.us ], [ %.mux, %._crit_edge ]
  %.sroa.7.0.lcssa = phi i32 [ %.sroa.7.0.extract.trunc40, %14 ], [ %spec.select45.us, %.critedge.us ], [ %.041.mux, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %169

.lr.ph51.split:                                   ; preds = %.lr.ph51.split.preheader, %._crit_edge
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %._crit_edge ], [ 0, %.lr.ph51.split.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 1, %.lr.ph51.split.preheader ]
  %.sroa.7.049 = phi i32 [ %.041.mux, %._crit_edge ], [ %.sroa.7.0.extract.trunc40, %.lr.ph51.split.preheader ]
  %.sroa.0.047 = phi i32 [ %.mux, %._crit_edge ], [ %.sroa.0.0.extract.trunc37, %.lr.ph51.split.preheader ]
  %109 = shl nuw nsw i64 %indvars.iv59, 2
  %scevgep = getelementptr i8, ptr %32, i64 %109
  %scevgep74 = getelementptr i8, ptr %34, i64 %109
  %scevgep76 = getelementptr i8, ptr %35, i64 %indvars.iv59
  %scevgep79 = getelementptr i8, ptr %37, i64 %109
  %scevgep81 = getelementptr i8, ptr %39, i64 %indvars.iv59
  %110 = getelementptr inbounds [10 x i32], ptr %19, i64 0, i64 %indvars.iv59
  %111 = load i32, ptr %110, align 4, !tbaa !10
  %112 = getelementptr inbounds [10 x i8], ptr %20, i64 0, i64 %indvars.iv59
  %113 = load i8, ptr %112, align 1, !tbaa !11
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %114 = getelementptr inbounds [10 x i32], ptr %19, i64 0, i64 %indvars.iv.next60
  %115 = load i32, ptr %114, align 4, !tbaa !10
  %116 = call noundef i32 @_Z4calcici(i32 noundef %111, i8 noundef signext %113, i32 noundef %115)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(56) %9, i64 56, i1 false)
  %117 = load i32, ptr %24, align 8, !tbaa !5
  %118 = add nsw i32 %117, -1
  store i32 %118, ptr %24, align 8, !tbaa !5
  %119 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv59
  store i32 %116, ptr %119, align 4, !tbaa !10
  %120 = load i32, ptr %9, align 8, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = icmp slt i64 %indvars.iv.next60, %121
  br i1 %122, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph51.split
  %123 = xor i64 %indvars.iv59, -1
  %wide.trip.count = zext i32 %120 to i64
  %124 = add nsw i64 %123, %wide.trip.count
  %min.iters.check = icmp ult i64 %124, 16
  br i1 %min.iters.check, label %.lr.ph.preheader152, label %vector.memcheck

.lr.ph.preheader152:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv56.ph = phi i64 [ %indvars.iv, %vector.memcheck ], [ %indvars.iv, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %125 = sub i64 %wide.trip.count, %indvars.iv56.ph
  %xtraiter = and i64 %125, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader152
  %indvars.iv.next57.prol = add nuw nsw i64 %indvars.iv56.ph, 1
  %126 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv.next57.prol
  %127 = load i32, ptr %126, align 4, !tbaa !10
  %128 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv56.ph
  store i32 %127, ptr %128, align 4, !tbaa !10
  %129 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %indvars.iv56.ph
  %130 = load i8, ptr %129, align 1, !tbaa !11
  %131 = add nsw i64 %indvars.iv56.ph, -1
  %132 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %131
  store i8 %130, ptr %132, align 1, !tbaa !11
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader152
  %indvars.iv56.unr = phi i64 [ %indvars.iv56.ph, %.lr.ph.preheader152 ], [ %indvars.iv.next57.prol, %.lr.ph.prol ]
  %133 = add nsw i64 %wide.trip.count, -1
  %134 = icmp eq i64 %indvars.iv56.ph, %133
  br i1 %134, label %._crit_edge, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %reass.sub = sub nsw i64 %wide.trip.count, %indvars.iv59
  %135 = shl i64 %reass.sub, 2
  %136 = add i64 %135, -8
  %scevgep75 = getelementptr i8, ptr %scevgep74, i64 %136
  %scevgep78 = getelementptr i8, ptr %scevgep107, i64 %wide.trip.count
  %scevgep80 = getelementptr i8, ptr %scevgep79, i64 %136
  %scevgep83 = getelementptr i8, ptr %scevgep112, i64 %wide.trip.count
  %bound0 = icmp ult ptr %scevgep, %scevgep78
  %bound1 = icmp ult ptr %scevgep76, %scevgep75
  %found.conflict = and i1 %bound0, %bound1
  %bound084 = icmp ult ptr %scevgep, %scevgep80
  %bound185 = icmp ult ptr %scevgep74, %scevgep75
  %found.conflict86 = and i1 %bound084, %bound185
  %conflict.rdx = or i1 %found.conflict, %found.conflict86
  %bound087 = icmp ult ptr %scevgep, %scevgep83
  %bound188 = icmp ult ptr %scevgep81, %scevgep75
  %found.conflict89 = and i1 %bound087, %bound188
  %conflict.rdx90 = or i1 %conflict.rdx, %found.conflict89
  %bound091 = icmp ult ptr %scevgep76, %scevgep80
  %bound192 = icmp ult ptr %scevgep74, %scevgep78
  %found.conflict93 = and i1 %bound091, %bound192
  %conflict.rdx94 = or i1 %conflict.rdx90, %found.conflict93
  %bound095 = icmp ult ptr %scevgep76, %scevgep83
  %bound196 = icmp ult ptr %scevgep81, %scevgep78
  %found.conflict97 = and i1 %bound095, %bound196
  %conflict.rdx98 = or i1 %conflict.rdx94, %found.conflict97
  br i1 %conflict.rdx98, label %.lr.ph.preheader152, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %124, -8
  %ind.end = add i64 %indvars.iv, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %indvars.iv, %index
  %137 = add nuw nsw i64 %offset.idx, 1
  %138 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %137
  %139 = getelementptr inbounds i8, ptr %138, i64 16
  %wide.load = load <4 x i32>, ptr %138, align 4, !tbaa !10, !alias.scope !31
  %wide.load99 = load <4 x i32>, ptr %139, align 4, !tbaa !10, !alias.scope !31
  %140 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %offset.idx
  %141 = getelementptr inbounds i8, ptr %140, i64 16
  store <4 x i32> %wide.load, ptr %140, align 4, !tbaa !10, !alias.scope !34, !noalias !36
  store <4 x i32> %wide.load99, ptr %141, align 4, !tbaa !10, !alias.scope !34, !noalias !36
  %142 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %offset.idx
  %143 = getelementptr inbounds i8, ptr %142, i64 4
  %wide.load100 = load <4 x i8>, ptr %142, align 1, !tbaa !11, !alias.scope !39
  %wide.load101 = load <4 x i8>, ptr %143, align 1, !tbaa !11, !alias.scope !39
  %144 = add nsw i64 %offset.idx, -1
  %145 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %144
  %146 = getelementptr inbounds i8, ptr %145, i64 4
  store <4 x i8> %wide.load100, ptr %145, align 1, !tbaa !11, !alias.scope !40, !noalias !41
  store <4 x i8> %wide.load101, ptr %146, align 1, !tbaa !11, !alias.scope !40, !noalias !41
  %index.next = add nuw i64 %index, 8
  %147 = icmp eq i64 %index.next, %n.vec
  br i1 %147, label %middle.block, label %vector.body, !llvm.loop !42

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %124, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader152

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %.lr.ph51.split
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %148 = call i64 @_Z3dfsii(i32 noundef %22, i32 noundef %27)
  store i64 %148, ptr %7, align 8
  %149 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %150 = load i32, ptr %6, align 4, !tbaa !27
  %151 = icmp sgt i32 %.sroa.0.047, %150
  %.mux = call i32 @llvm.smin.i32(i32 %.sroa.0.047, i32 %150)
  %152 = trunc nuw nsw i64 %indvars.iv59 to i32
  %.041.mux = select i1 %151, i32 %152, i32 %.sroa.7.049
  %153 = load i32, ptr %9, align 8, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = icmp slt i64 %indvars.iv.next60, %154
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %155, label %.lr.ph51.split, label %._crit_edge52, !llvm.loop !29

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv56 = phi i64 [ %indvars.iv.next57.1, %.lr.ph ], [ %indvars.iv56.unr, %.lr.ph.prol.loopexit ]
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %156 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv.next57
  %157 = load i32, ptr %156, align 4, !tbaa !10
  %158 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv56
  store i32 %157, ptr %158, align 4, !tbaa !10
  %159 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %indvars.iv56
  %160 = load i8, ptr %159, align 1, !tbaa !11
  %161 = add nsw i64 %indvars.iv56, -1
  %162 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %161
  store i8 %160, ptr %162, align 1, !tbaa !11
  %indvars.iv.next57.1 = add nuw nsw i64 %indvars.iv56, 2
  %163 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv.next57.1
  %164 = load i32, ptr %163, align 4, !tbaa !10
  %165 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %indvars.iv.next57
  store i32 %164, ptr %165, align 4, !tbaa !10
  %166 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %indvars.iv.next57
  %167 = load i8, ptr %166, align 1, !tbaa !11
  %168 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 %indvars.iv56
  store i8 %167, ptr %168, align 1, !tbaa !11
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next57.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph, !llvm.loop !43

169:                                              ; preds = %._crit_edge52, %11
  %.sroa.0.2 = phi i32 [ %.sroa.0.0.lcssa, %._crit_edge52 ], [ %.sroa.0.0.extract.trunc, %11 ]
  %.sroa.7.2 = phi i32 [ %.sroa.7.0.lcssa, %._crit_edge52 ], [ %.sroa.7.0.extract.trunc, %11 ]
  %.sroa.7.0.insert.ext = zext i32 %.sroa.7.2 to i64
  %.sroa.7.0.insert.shift = shl nuw i64 %.sroa.7.0.insert.ext, 32
  %.sroa.0.0.insert.ext = zext i32 %.sroa.0.2 to i64
  %.sroa.0.0.insert.insert = or disjoint i64 %.sroa.7.0.insert.shift, %.sroa.0.0.insert.ext
  ret i64 %.sroa.0.0.insert.insert
}

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) 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 i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4calcici(i32 noundef, i8 noundef signext, i32 noundef) local_unnamed_addr #3

; 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) #4

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

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

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

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 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 0}
!6 = !{!"_ZTS3Exp", !7, i64 0, !8, i64 4, !8, i64 44}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!8, !8, i64 0}
!12 = !{!13}
!13 = distinct !{!13, !14}
!14 = distinct !{!14, !"LVerDomain"}
!15 = !{!16}
!16 = distinct !{!16, !14}
!17 = !{!18, !13, !19}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!19}
!21 = !{!18}
!22 = !{!13, !19}
!23 = distinct !{!23, !24, !25, !26}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = !{!28, !7, i64 0}
!28 = !{!"_ZTSSt4pairIiiE", !7, i64 0, !7, i64 4}
!29 = distinct !{!29, !24}
!30 = distinct !{!30, !24, !25}
!31 = !{!32}
!32 = distinct !{!32, !33}
!33 = distinct !{!33, !"LVerDomain"}
!34 = !{!35}
!35 = distinct !{!35, !33}
!36 = !{!37, !32, !38}
!37 = distinct !{!37, !33}
!38 = distinct !{!38, !33}
!39 = !{!38}
!40 = !{!37}
!41 = !{!32, !38}
!42 = distinct !{!42, !24, !25, !26}
!43 = distinct !{!43, !24, !25}


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