; LLVM IR from tangjz/acm-icpc :: hdu (5745)

; 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::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [1563 x i64] }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@pos = external dso_local global [27 x %"class.std::bitset"], align 16
@f = external dso_local global [3 x %"class.std::bitset"], align 16
@str = external dso_local global [100003 x i8], align 16
@pat = external dso_local global [5003 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %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 %"class.std::bitset", align 8
  %9 = alloca %"class.std::bitset", align 8
  %10 = alloca %"class.std::bitset", align 8
  %11 = alloca %"class.std::bitset", align 8
  %12 = alloca %"class.std::bitset", align 8
  %13 = alloca %"class.std::bitset", align 8
  %14 = alloca %"class.std::bitset", align 8
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %17

17:                                               ; preds = %140, %0
  %18 = load i32, ptr @t, align 4, !tbaa !5
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr @t, align 4, !tbaa !5
  %20 = icmp ne i32 %18, 0
  br i1 %20, label %21, label %142

21:                                               ; preds = %17
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m, ptr noundef getelementptr inbounds (i8, ptr @str, i64 1), ptr noundef getelementptr inbounds (i8, ptr @pat, i64 1))
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %32, %21
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 26
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %35

27:                                               ; preds = %23
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [27 x %"class.std::bitset"], ptr @pos, i64 0, i64 %29
  %31 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) %30) #7
  br label %32

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

35:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %54, %35
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = load i32, ptr @n, align 4, !tbaa !5
  %39 = icmp sle i32 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %57

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100003 x i8], ptr @str, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %46 = sext i8 %45 to i32
  %47 = sub nsw i32 %46, 97
  store i32 %47, ptr %4, align 4, !tbaa !5
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [27 x %"class.std::bitset"], ptr @pos, i64 0, i64 %49
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(12504) %50, i64 noundef %52, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %54

54:                                               ; preds = %41
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %3, align 4, !tbaa !5
  br label %36, !llvm.loop !12

57:                                               ; preds = %40
  %58 = load i32, ptr @m, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [5003 x i8], ptr @pat, i64 0, i64 %60
  store i8 123, ptr %61, align 1, !tbaa !11
  store i8 123, ptr @pat, align 16, !tbaa !11
  %62 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE3setEv(ptr noundef nonnull align 8 dereferenceable(12504) @f) #7
  %63 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds ([3 x %"class.std::bitset"], ptr @f, i64 0, i64 1)) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %102, %57
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = load i32, ptr @m, align 4, !tbaa !5
  %67 = icmp sle i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %105

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 12504, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr %9) #7
  call void @_ZNKSt6bitsetILm100001EElsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %9, ptr noundef nonnull align 8 dereferenceable(12504) @f, i64 noundef 1) #7
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [5003 x i8], ptr @pat, i64 0, i64 %72
  %74 = load i8, ptr %73, align 1, !tbaa !11
  %75 = sext i8 %74 to i32
  %76 = sub nsw i32 %75, 97
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [27 x %"class.std::bitset"], ptr @pos, i64 0, i64 %77
  call void @_ZStanILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %8, ptr noundef nonnull align 8 dereferenceable(12504) %9, ptr noundef nonnull align 8 dereferenceable(12504) %78) #7
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %80
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %81, ptr align 8 %8, i64 12504, i1 false)
  call void @llvm.lifetime.end.p0(i64 12504, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr %12) #7
  call void @_ZNKSt6bitsetILm100001EElsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %12, ptr noundef nonnull align 8 dereferenceable(12504) @f, i64 noundef 1) #7
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [5003 x i8], ptr @pat, i64 0, i64 %83
  %85 = load i8, ptr %84, align 1, !tbaa !11
  %86 = sext i8 %85 to i32
  %87 = sub nsw i32 %86, 97
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [27 x %"class.std::bitset"], ptr @pos, i64 0, i64 %88
  call void @_ZStanILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %11, ptr noundef nonnull align 8 dereferenceable(12504) %12, ptr noundef nonnull align 8 dereferenceable(12504) %89) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr %14) #7
  %90 = load i32, ptr %5, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %91
  call void @_ZNKSt6bitsetILm100001EElsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %14, ptr noundef nonnull align 8 dereferenceable(12504) %92, i64 noundef 1) #7
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = sub nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [5003 x i8], ptr @pat, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !11
  %98 = sext i8 %97 to i32
  %99 = sub nsw i32 %98, 97
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [27 x %"class.std::bitset"], ptr @pos, i64 0, i64 %100
  call void @_ZStanILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %13, ptr noundef nonnull align 8 dereferenceable(12504) %14, ptr noundef nonnull align 8 dereferenceable(12504) %101) #7
  call void @_ZStorILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %10, ptr noundef nonnull align 8 dereferenceable(12504) %11, ptr noundef nonnull align 8 dereferenceable(12504) %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @f, ptr align 8 %10, i64 12504, i1 false)
  call void @llvm.lifetime.end.p0(i64 12504, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %10) #7
  br label %102

102:                                              ; preds = %69
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !5
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) #7
  br label %64, !llvm.loop !13

105:                                              ; preds = %68
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %107
  %109 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504) @f, ptr noundef nonnull align 8 dereferenceable(12504) %108) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %137, %105
  %111 = load i32, ptr %15, align 4, !tbaa !5
  %112 = load i32, ptr @n, align 4, !tbaa !5
  %113 = icmp sle i32 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %140

115:                                              ; preds = %110
  %116 = load i32, ptr %15, align 4, !tbaa !5
  %117 = load i32, ptr @m, align 4, !tbaa !5
  %118 = add nsw i32 %116, %117
  %119 = sub nsw i32 %118, 1
  %120 = load i32, ptr @n, align 4, !tbaa !5
  %121 = icmp sle i32 %119, %120
  br i1 %121, label %122, label %129

122:                                              ; preds = %115
  %123 = load i32, ptr %15, align 4, !tbaa !5
  %124 = load i32, ptr @m, align 4, !tbaa !5
  %125 = add nsw i32 %123, %124
  %126 = sub nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = call noundef zeroext i1 @_ZNKSt6bitsetILm100001EE4testEm(ptr noundef nonnull align 8 dereferenceable(12504) @f, i64 noundef %127)
  br label %129

129:                                              ; preds = %122, %115
  %130 = phi i1 [ false, %115 ], [ %128, %122 ]
  %131 = zext i1 %130 to i32
  %132 = add nsw i32 48, %131
  %133 = trunc i32 %132 to i8
  %134 = load i32, ptr %15, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100003 x i8], ptr @str, i64 0, i64 %135
  store i8 %133, ptr %136, align 1, !tbaa !11
  br label %137

137:                                              ; preds = %129
  %138 = load i32, ptr %15, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %15, align 4, !tbaa !5
  br label %110, !llvm.loop !14

140:                                              ; preds = %114
  %141 = call i32 @puts(ptr noundef getelementptr inbounds (i8, ptr @str, i64 1))
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %17, !llvm.loop !15

142:                                              ; preds = %17
  ret i32 0
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef, i1 noundef zeroext) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStanILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(12504), ptr noundef nonnull align 8 dereferenceable(12504)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6bitsetILm100001EElsEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStorILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(12504), ptr noundef nonnull align 8 dereferenceable(12504)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504), ptr noundef nonnull align 8 dereferenceable(12504)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm100001EE4testEm(ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) #4 align 2

declare i32 @puts(ptr noundef) #1

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !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::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [1563 x i64] }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@pos = external dso_local global [27 x %"class.std::bitset"], align 16
@f = external dso_local global [3 x %"class.std::bitset"], align 16
@str = external dso_local global [100003 x i8], align 16
@pat = external dso_local global [5003 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::bitset", align 8
  %4 = alloca %"class.std::bitset", align 8
  %5 = alloca %"class.std::bitset", align 8
  %6 = alloca %"class.std::bitset", align 8
  %7 = alloca %"class.std::bitset", align 8
  %8 = alloca %"class.std::bitset", align 8
  %9 = alloca %"class.std::bitset", align 8
  %10 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %11 = load i32, ptr @t, align 4, !tbaa !5
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr @t, align 4, !tbaa !5
  %.not40 = icmp eq i32 %11, 0
  br i1 %.not40, label %._crit_edge43, label %.lr.ph42

.lr.ph42:                                         ; preds = %0, %._crit_edge39
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 1), ptr noundef nonnull getelementptr inbounds (i8, ptr @pat, i64 1))
  %14 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) @pos) #7
  %15 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 12504)) #7
  %16 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 25008)) #7
  %17 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 37512)) #7
  %18 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 50016)) #7
  %19 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 62520)) #7
  %20 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 75024)) #7
  %21 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 87528)) #7
  %22 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 100032)) #7
  %23 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 112536)) #7
  %24 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 125040)) #7
  %25 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 137544)) #7
  %26 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 150048)) #7
  %27 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 162552)) #7
  %28 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 175056)) #7
  %29 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 187560)) #7
  %30 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 200064)) #7
  %31 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 212568)) #7
  %32 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 225072)) #7
  %33 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 237576)) #7
  %34 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 250080)) #7
  %35 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 262584)) #7
  %36 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 275088)) #7
  %37 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 287592)) #7
  %38 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 300096)) #7
  %39 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @pos, i64 312600)) #7
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %.not2328 = icmp slt i32 %40, 1
  br i1 %.not2328, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph42
  %41 = load i32, ptr @m, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [5003 x i8], ptr @pat, i64 0, i64 %43
  store i8 123, ptr %44, align 1, !tbaa !9
  store i8 123, ptr @pat, align 16, !tbaa !9
  %45 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE3setEv(ptr noundef nonnull align 8 dereferenceable(12504) @f) #7
  %46 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(12504) getelementptr inbounds (i8, ptr @f, i64 12504)) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 1, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 2, ptr %2, align 4, !tbaa !5
  %47 = load i32, ptr @m, align 4, !tbaa !5
  %.not2430 = icmp slt i32 %47, 1
  br i1 %.not2430, label %._crit_edge34, label %.lr.ph33

.lr.ph:                                           ; preds = %.lr.ph42, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph42 ]
  %48 = getelementptr inbounds [100003 x i8], ptr @str, i64 0, i64 %indvars.iv
  %49 = load i8, ptr %48, align 1, !tbaa !9
  %50 = sext i8 %49 to i64
  %51 = add nsw i64 %50, -97
  %52 = getelementptr inbounds [27 x %"class.std::bitset"], ptr @pos, i64 0, i64 %51
  %53 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(12504) %52, i64 noundef %indvars.iv, i1 noundef zeroext true)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %54 = load i32, ptr @n, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %.not23.not = icmp slt i64 %indvars.iv, %55
  br i1 %.not23.not, label %.lr.ph, label %._crit_edge, !llvm.loop !10

._crit_edge34.loopexit:                           ; preds = %.lr.ph33
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge34

._crit_edge34:                                    ; preds = %._crit_edge34.loopexit, %._crit_edge
  %56 = phi i32 [ %.pre, %._crit_edge34.loopexit ], [ 1, %._crit_edge ]
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %57
  %59 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504) @f, ptr noundef nonnull align 8 dereferenceable(12504) %58) #7
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %.not2535 = icmp slt i32 %60, 1
  br i1 %.not2535, label %._crit_edge39, label %.lr.ph38.preheader

.lr.ph38.preheader:                               ; preds = %._crit_edge34
  %.pre53 = load i32, ptr @m, align 4, !tbaa !5
  br label %.lr.ph38

.lr.ph33:                                         ; preds = %._crit_edge, %.lr.ph33
  %indvars.iv46 = phi i64 [ %indvars.iv.next47, %.lr.ph33 ], [ 1, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %4) #7
  call void @_ZNKSt6bitsetILm100001EElsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %4, ptr noundef nonnull align 8 dereferenceable(12504) @f, i64 noundef 1) #7
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %61 = getelementptr inbounds [5003 x i8], ptr @pat, i64 0, i64 %indvars.iv.next47
  %62 = load i8, ptr %61, align 1, !tbaa !9
  %63 = sext i8 %62 to i64
  %64 = add nsw i64 %63, -97
  %65 = getelementptr inbounds [27 x %"class.std::bitset"], ptr @pos, i64 0, i64 %64
  call void @_ZStanILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %3, ptr noundef nonnull align 8 dereferenceable(12504) %4, ptr noundef nonnull align 8 dereferenceable(12504) %65) #7
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12504) %68, ptr noundef nonnull align 8 dereferenceable(12504) %3, i64 12504, i1 false)
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %7) #7
  call void @_ZNKSt6bitsetILm100001EElsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %7, ptr noundef nonnull align 8 dereferenceable(12504) @f, i64 noundef 1) #7
  %69 = getelementptr inbounds [5003 x i8], ptr @pat, i64 0, i64 %indvars.iv46
  %70 = load i8, ptr %69, align 1, !tbaa !9
  %71 = sext i8 %70 to i64
  %72 = add nsw i64 %71, -97
  %73 = getelementptr inbounds [27 x %"class.std::bitset"], ptr @pos, i64 0, i64 %72
  call void @_ZStanILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %6, ptr noundef nonnull align 8 dereferenceable(12504) %7, ptr noundef nonnull align 8 dereferenceable(12504) %73) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %9) #7
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %75
  call void @_ZNKSt6bitsetILm100001EElsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %9, ptr noundef nonnull align 8 dereferenceable(12504) %76, i64 noundef 1) #7
  %77 = add nsw i64 %indvars.iv46, -1
  %78 = getelementptr inbounds [5003 x i8], ptr @pat, i64 0, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !9
  %80 = sext i8 %79 to i64
  %81 = add nsw i64 %80, -97
  %82 = getelementptr inbounds [27 x %"class.std::bitset"], ptr @pos, i64 0, i64 %81
  call void @_ZStanILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %8, ptr noundef nonnull align 8 dereferenceable(12504) %9, ptr noundef nonnull align 8 dereferenceable(12504) %82) #7
  call void @_ZStorILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %5, ptr noundef nonnull align 8 dereferenceable(12504) %6, ptr noundef nonnull align 8 dereferenceable(12504) %8) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(12504) @f, ptr noundef nonnull align 8 dereferenceable(12504) %5, i64 12504, i1 false)
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %5) #7
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2) #7
  %83 = load i32, ptr @m, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %.not24.not = icmp slt i64 %indvars.iv46, %84
  br i1 %.not24.not, label %.lr.ph33, label %._crit_edge34.loopexit, !llvm.loop !12

._crit_edge39:                                    ; preds = %.thread, %._crit_edge34
  %85 = call i32 @puts(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @str, i64 1))
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %86 = load i32, ptr @t, align 4, !tbaa !5
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %86, 0
  br i1 %.not, label %._crit_edge43, label %.lr.ph42, !llvm.loop !13

.lr.ph38:                                         ; preds = %.lr.ph38.preheader, %.thread
  %88 = phi i32 [ %60, %.lr.ph38.preheader ], [ %96, %.thread ]
  %89 = phi i32 [ %.pre53, %.lr.ph38.preheader ], [ %97, %.thread ]
  %indvars.iv49 = phi i64 [ 1, %.lr.ph38.preheader ], [ %indvars.iv.next50, %.thread ]
  %90 = trunc i64 %indvars.iv49 to i32
  %91 = add i32 %90, -1
  %92 = add i32 %91, %89
  %.not26 = icmp sgt i32 %92, %88
  br i1 %.not26, label %.thread, label %93

93:                                               ; preds = %.lr.ph38
  %94 = sext i32 %92 to i64
  %95 = call noundef zeroext i1 @_ZNKSt6bitsetILm100001EE4testEm(ptr noundef nonnull align 8 dereferenceable(12504) @f, i64 noundef %94)
  %spec.select = select i1 %95, i8 49, i8 48
  %.pre52 = load i32, ptr @m, align 4, !tbaa !5
  %.pre54 = load i32, ptr @n, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %93, %.lr.ph38
  %96 = phi i32 [ %88, %.lr.ph38 ], [ %.pre54, %93 ]
  %97 = phi i32 [ %89, %.lr.ph38 ], [ %.pre52, %93 ]
  %98 = phi i8 [ 48, %.lr.ph38 ], [ %spec.select, %93 ]
  %99 = getelementptr inbounds [100003 x i8], ptr @str, i64 0, i64 %indvars.iv49
  store i8 %98, ptr %99, align 1, !tbaa !9
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %100 = sext i32 %96 to i64
  %.not25.not = icmp slt i64 %indvars.iv49, %100
  br i1 %.not25.not, label %.lr.ph38, label %._crit_edge39, !llvm.loop !14

._crit_edge43:                                    ; preds = %._crit_edge39, %0
  ret i32 0
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef, i1 noundef zeroext) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStanILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(12504), ptr noundef nonnull align 8 dereferenceable(12504)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6bitsetILm100001EElsEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStorILm100001EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(12504), ptr noundef nonnull align 8 dereferenceable(12504)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm100001EE4testEm(ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #1

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 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 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass