; LLVM IR from wangziqi2013/EpochManager :: test/random_gen_test.ll (Z18TestRandRandomnessimb)

; 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.SimpleInt64Random = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, unsigned long>, std::_Select1st<std::pair<const unsigned long, unsigned long>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, unsigned long>, std::_Select1st<std::pair<const unsigned long, unsigned long>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.0" = type { i64, i64 }
%"struct.std::pair.2" = type { double, double }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@stderr = external global ptr, align 8
@stdout = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@__const._Z18TestRandRandomnessimb.r = external hidden unnamed_addr constant %class.SimpleInt64Random, align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._Z18TestRandRandomnessimb = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [43 x i8], align 1

declare void @_Z13PrintTestNamePKc(ptr noundef) #0

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

; Function Attrs: nocallback nofree 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK17SimpleInt64RandomILm10ELm1000EEclEmm(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef, i64 noundef) #3 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

declare i32 @fflush(ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18TestRandRandomnessimb(i32 noundef %0, i64 noundef %1, i1 noundef zeroext %2) #6 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i8, align 1
  %7 = alloca %class.SimpleInt64Random, align 1
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::map", align 8
  %11 = alloca ptr, align 8
  %12 = alloca [256 x i8], align 16
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca %"struct.std::pair.0", align 8
  %19 = alloca i32, align 4
  %20 = alloca { ptr, i8 }, align 8
  %21 = alloca %"struct.std::pair.2", align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %22 = zext i1 %2 to i8
  store i8 %22, ptr %6, align 1, !tbaa !11
  call void @_Z13PrintTestNamePKc(ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const._Z18TestRandRandomnessimb.r, i64 1, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %23

23:                                               ; preds = %131, %3
  %24 = load i64, ptr %8, align 8, !tbaa !9
  %25 = load i64, ptr %5, align 8, !tbaa !9
  %26 = icmp ult i64 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %139

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #9
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  store ptr null, ptr %11, align 8, !tbaa !13
  %29 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %30 = trunc i8 %29 to i1
  %31 = zext i1 %30 to i32
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %50

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 256, ptr %12) #9
  %34 = getelementptr inbounds [256 x i8], ptr %12, i64 0, i64 0
  %35 = load i64, ptr %8, align 8, !tbaa !9
  %36 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %34, ptr noundef @.str.5, i64 noundef %35) #9
  %37 = getelementptr inbounds [256 x i8], ptr %12, i64 0, i64 0
  %38 = invoke noalias ptr @fopen(ptr noundef %37, ptr noundef @.str.6)
          to label %39 unwind label %44

39:                                               ; preds = %33
  store ptr %38, ptr %11, align 8, !tbaa !13
  %40 = load ptr, ptr %11, align 8, !tbaa !13
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  br label %49

43:                                               ; preds = %39
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 83, ptr noundef @__PRETTY_FUNCTION__._Z18TestRandRandomnessimb) #10
  unreachable

44:                                               ; preds = %33
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %13, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 256, ptr %12) #9
  br label %138

48:                                               ; No predecessors!
  br label %49

49:                                               ; preds = %48, %42
  call void @llvm.lifetime.end.p0(i64 256, ptr %12) #9
  br label %50

50:                                               ; preds = %49, %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %94, %50
  %52 = load i32, ptr %15, align 4, !tbaa !5
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %98

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %57 = load i32, ptr %15, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = load i64, ptr %8, align 8, !tbaa !9
  %60 = invoke noundef i64 @_ZNK17SimpleInt64RandomILm10ELm1000EEclEmm(ptr noundef nonnull align 1 dereferenceable(1) %7, i64 noundef %58, i64 noundef %59)
          to label %61 unwind label %70

61:                                               ; preds = %56
  store i64 %60, ptr %16, align 8, !tbaa !9
  %62 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %63 = trunc i8 %62 to i1
  %64 = zext i1 %63 to i32
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %66, label %74

66:                                               ; preds = %61
  %67 = load ptr, ptr %11, align 8, !tbaa !13
  %68 = load i64, ptr %16, align 8, !tbaa !9
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.8, i64 noundef %68) #9
  br label %74

70:                                               ; preds = %56
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %13, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %14, align 4
  br label %97

74:                                               ; preds = %66, %61
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 1, ptr %19, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKmmEC2IRmiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %75 unwind label %89

75:                                               ; preds = %74
  %76 = invoke { ptr, i8 } @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %77 unwind label %89

77:                                               ; preds = %75
  store { ptr, i8 } %76, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %20, i64 9, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  %78 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 1
  %79 = load i8, ptr %78, align 8, !tbaa !17, !range !15, !noundef !16
  %80 = trunc i8 %79 to i1
  %81 = zext i1 %80 to i32
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %93

83:                                               ; preds = %77
  %84 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 0
  %85 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmmEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %84) #9
  %86 = getelementptr inbounds %"struct.std::pair.0", ptr %85, i32 0, i32 1
  %87 = load i64, ptr %86, align 8, !tbaa !20
  %88 = add i64 %87, 1
  store i64 %88, ptr %86, align 8, !tbaa !20
  br label %93

89:                                               ; preds = %75, %74
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %13, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  br label %97

93:                                               ; preds = %83, %77
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %15, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %15, align 4, !tbaa !5
  br label %51, !llvm.loop !22

97:                                               ; preds = %89, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %138

98:                                               ; preds = %55
  %99 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %100 = trunc i8 %99 to i1
  %101 = zext i1 %100 to i32
  %102 = icmp eq i32 %101, 1
  br i1 %102, label %103, label %111

103:                                              ; preds = %98
  %104 = load ptr, ptr %11, align 8, !tbaa !13
  %105 = invoke i32 @fclose(ptr noundef %104)
          to label %106 unwind label %107

106:                                              ; preds = %103
  br label %111

107:                                              ; preds = %103
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %13, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %14, align 4
  br label %138

111:                                              ; preds = %106, %98
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  %112 = invoke { double, double } @_ZL11StandardDevRKSt3mapImmSt4lessImESaISt4pairIKmmEEE(ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %113 unwind label %134

113:                                              ; preds = %111
  %114 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %115 = extractvalue { double, double } %112, 0
  store double %115, ptr %114, align 8
  %116 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %117 = extractvalue { double, double } %112, 1
  store double %117, ptr %116, align 8
  br label %118

118:                                              ; preds = %113
  %119 = load ptr, ptr @stderr, align 8, !tbaa !13
  %120 = load i64, ptr %8, align 8, !tbaa !9
  %121 = getelementptr inbounds %"struct.std::pair.2", ptr %21, i32 0, i32 0
  %122 = load double, ptr %121, align 8, !tbaa !24
  %123 = getelementptr inbounds %"struct.std::pair.2", ptr %21, i32 0, i32 1
  %124 = load double, ptr %123, align 8, !tbaa !27
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str.9, ptr noundef @.str.4, i64 noundef %120, double noundef %122, double noundef %124) #9
  %126 = load ptr, ptr @stdout, align 8, !tbaa !13
  %127 = invoke i32 @fflush(ptr noundef %126)
          to label %128 unwind label %134

128:                                              ; preds = %118
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #9
  br label %131

131:                                              ; preds = %130
  %132 = load i64, ptr %8, align 8, !tbaa !9
  %133 = add i64 %132, 1
  store i64 %133, ptr %8, align 8, !tbaa !9
  br label %23, !llvm.loop !28

134:                                              ; preds = %118, %111
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %13, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  br label %138

138:                                              ; preds = %134, %107, %97, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #9
  br label %140

139:                                              ; preds = %27
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #9
  ret void

140:                                              ; preds = %138
  %141 = load ptr, ptr %13, align 8
  %142 = load i32, ptr %14, align 4
  %143 = insertvalue { ptr, i32 } poison, ptr %141, 0
  %144 = insertvalue { ptr, i32 } %143, i32 %142, 1
  resume { ptr, i32 } %144
}

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

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #5

declare noalias ptr @fopen(ptr noundef, ptr noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

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

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

declare i32 @fclose(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare hidden { double, double } @_ZL11StandardDevRKSt3mapImmSt4lessImESaISt4pairIKmmEEE(ptr noundef nonnull align 8 dereferenceable(48)) #6

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

attributes #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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !12, i64 8}
!18 = !{!"_ZTSSt4pairISt17_Rb_tree_iteratorIS_IKmmEEbE", !19, i64 0, !12, i64 8}
!19 = !{!"_ZTSSt17_Rb_tree_iteratorISt4pairIKmmEE", !14, i64 0}
!20 = !{!21, !10, i64 8}
!21 = !{!"_ZTSSt4pairIKmmE", !10, i64 0, !10, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !26, i64 0}
!25 = !{!"_ZTSSt4pairIddE", !26, i64 0, !26, i64 8}
!26 = !{!"double", !7, i64 0}
!27 = !{!25, !26, i64 8}
!28 = distinct !{!28, !23}


; 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.SimpleInt64Random = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, unsigned long>, std::_Select1st<std::pair<const unsigned long, unsigned long>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, unsigned long>, std::_Select1st<std::pair<const unsigned long, unsigned long>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.0" = type { i64, i64 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@__const._Z18TestRandRandomnessimb.r = external hidden unnamed_addr constant %class.SimpleInt64Random, align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._Z18TestRandRandomnessimb = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [43 x i8], align 1

declare void @_Z13PrintTestNamePKc(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK17SimpleInt64RandomILm10ELm1000EEclEmm(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18TestRandRandomnessimb(i32 noundef %0, i64 noundef %1, i1 noundef zeroext %2) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.SimpleInt64Random, align 1
  %5 = alloca %"class.std::map", align 8
  %6 = alloca [256 x i8], align 16
  %7 = alloca i64, align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %"struct.std::pair.0", align 8
  %10 = alloca i32, align 4
  tail call void @_Z13PrintTestNamePKc(ptr noundef nonnull @.str.4)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  %11 = load i8, ptr @__const._Z18TestRandRandomnessimb.r, align 1
  store i8 %11, ptr %4, align 1
  %.not = icmp eq i64 %1, 0
  br i1 %.not, label %._crit_edge29, label %.lr.ph28

.lr.ph28:                                         ; preds = %3
  %12 = icmp sgt i32 %0, 0
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  br i1 %12, label %.lr.ph28.split.us, label %.lr.ph28.split

.lr.ph28.split.us:                                ; preds = %.lr.ph28
  %wide.trip.count59 = zext nneg i32 %0 to i64
  br i1 %2, label %.lr.ph28.split.us.split.us, label %.lr.ph.us

.lr.ph28.split.us.split.us:                       ; preds = %.lr.ph28.split.us, %15
  %.025.us.us = phi i64 [ %22, %15 ], [ 0, %.lr.ph28.split.us ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %5, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #8
  %13 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %.025.us.us) #8
  %14 = call noalias ptr @fopen(ptr noundef nonnull %6, ptr noundef nonnull @.str.6)
  %.not.us.us = icmp eq ptr %14, null
  br i1 %.not.us.us, label %.split36.us, label %.lr.ph.us.us

.lr.ph.us.us:                                     ; preds = %.lr.ph28.split.us.split.us
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #8
  br label %23

15:                                               ; preds = %._crit_edge.split.us.us.us
  %16 = extractvalue { double, double } %37, 0
  %17 = extractvalue { double, double } %37, 1
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i64 noundef %.025.us.us, double noundef %16, double noundef %17) #9
  %20 = load ptr, ptr @stdout, align 8, !tbaa !5
  %21 = call i32 @fflush(ptr noundef %20)
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  %22 = add nuw i64 %.025.us.us, 1
  %exitcond61.not = icmp eq i64 %22, %1
  br i1 %exitcond61.not, label %._crit_edge29, label %.lr.ph28.split.us.split.us, !llvm.loop !9

23:                                               ; preds = %35, %.lr.ph.us.us
  %indvars.iv56 = phi i64 [ %indvars.iv.next57, %35 ], [ 0, %.lr.ph.us.us ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %24 = call noundef i64 @_ZNK17SimpleInt64RandomILm10ELm1000EEclEmm(ptr noundef nonnull align 1 dereferenceable(1) %4, i64 noundef %indvars.iv56, i64 noundef %.025.us.us)
  store i64 %24, ptr %7, align 8, !tbaa !11
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.8, i64 noundef %24) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  store i32 1, ptr %10, align 4, !tbaa !13
  call void @_ZNSt4pairIKmmEC2IRmiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %26 = invoke { ptr, i8 } @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %27 unwind label %.split.us.split.us.split.us

27:                                               ; preds = %23
  %.fca.0.extract.us.us.us = extractvalue { ptr, i8 } %26, 0
  %.fca.1.extract.us.us.us = extractvalue { ptr, i8 } %26, 1
  store ptr %.fca.0.extract.us.us.us, ptr %8, align 8
  store i8 %.fca.1.extract.us.us.us, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  %28 = and i8 %.fca.1.extract.us.us.us, 1
  %29 = icmp eq i8 %28, 0
  br i1 %29, label %30, label %35

30:                                               ; preds = %27
  %31 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmmEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !15
  %34 = add i64 %33, 1
  store i64 %34, ptr %32, align 8, !tbaa !15
  br label %35

35:                                               ; preds = %30, %27
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond60.not = icmp eq i64 %indvars.iv.next57, %wide.trip.count59
  br i1 %exitcond60.not, label %._crit_edge.split.us.us.us, label %23, !llvm.loop !17

._crit_edge.split.us.us.us:                       ; preds = %35
  %36 = call i32 @fclose(ptr noundef nonnull %14)
  %37 = invoke { double, double } @_ZL11StandardDevRKSt3mapImmSt4lessImESaISt4pairIKmmEEE(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %15 unwind label %.split38.us.split.us

.split38.us.split.us:                             ; preds = %._crit_edge.split.us.us.us
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %.split38.us

.split.us.split.us.split.us:                      ; preds = %23
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %78

.lr.ph.us:                                        ; preds = %.lr.ph28.split.us, %40
  %.025.us = phi i64 [ %47, %40 ], [ 0, %.lr.ph28.split.us ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %5, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  br label %48

40:                                               ; preds = %._crit_edge.split.us33
  %41 = extractvalue { double, double } %60, 0
  %42 = extractvalue { double, double } %60, 1
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i64 noundef %.025.us, double noundef %41, double noundef %42) #9
  %45 = load ptr, ptr @stdout, align 8, !tbaa !5
  %46 = call i32 @fflush(ptr noundef %45)
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  %47 = add nuw i64 %.025.us, 1
  %exitcond55.not = icmp eq i64 %47, %1
  br i1 %exitcond55.not, label %._crit_edge29, label %.lr.ph.us, !llvm.loop !9

48:                                               ; preds = %.lr.ph.us, %59
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %59 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %49 = call noundef i64 @_ZNK17SimpleInt64RandomILm10ELm1000EEclEmm(ptr noundef nonnull align 1 dereferenceable(1) %4, i64 noundef %indvars.iv, i64 noundef %.025.us)
  store i64 %49, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  store i32 1, ptr %10, align 4, !tbaa !13
  call void @_ZNSt4pairIKmmEC2IRmiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %50 = invoke { ptr, i8 } @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %51 unwind label %.split.split.us

51:                                               ; preds = %48
  %.fca.0.extract.us31 = extractvalue { ptr, i8 } %50, 0
  %.fca.1.extract.us32 = extractvalue { ptr, i8 } %50, 1
  store ptr %.fca.0.extract.us31, ptr %8, align 8
  store i8 %.fca.1.extract.us32, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  %52 = and i8 %.fca.1.extract.us32, 1
  %53 = icmp eq i8 %52, 0
  br i1 %53, label %54, label %59

54:                                               ; preds = %51
  %55 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmmEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = load i64, ptr %56, align 8, !tbaa !15
  %58 = add i64 %57, 1
  store i64 %58, ptr %56, align 8, !tbaa !15
  br label %59

59:                                               ; preds = %54, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond54.not = icmp eq i64 %indvars.iv.next, %wide.trip.count59
  br i1 %exitcond54.not, label %._crit_edge.split.us33, label %48, !llvm.loop !17

._crit_edge.split.us33:                           ; preds = %59
  %60 = invoke { double, double } @_ZL11StandardDevRKSt3mapImmSt4lessImESaISt4pairIKmmEEE(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %40 unwind label %.split38.us.split

.split38.us.split:                                ; preds = %._crit_edge.split.us33
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %.split38.us

.split.split.us:                                  ; preds = %48
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %78

.lr.ph28.split:                                   ; preds = %.lr.ph28
  br i1 %2, label %.lr.ph28.split.split.us, label %.lr.ph28.split.split

.lr.ph28.split.split.us:                          ; preds = %.lr.ph28.split, %68
  %.025.us42 = phi i64 [ %75, %68 ], [ 0, %.lr.ph28.split ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %5, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #8
  %63 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %.025.us42) #8
  %64 = call noalias ptr @fopen(ptr noundef nonnull %6, ptr noundef nonnull @.str.6)
  %.not.us43 = icmp eq ptr %64, null
  br i1 %.not.us43, label %.split36.us, label %65

65:                                               ; preds = %.lr.ph28.split.split.us
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #8
  %66 = call i32 @fclose(ptr noundef nonnull %64)
  %67 = invoke { double, double } @_ZL11StandardDevRKSt3mapImmSt4lessImESaISt4pairIKmmEEE(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %68 unwind label %.split38.split.us

68:                                               ; preds = %65
  %69 = extractvalue { double, double } %67, 0
  %70 = extractvalue { double, double } %67, 1
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i64 noundef %.025.us42, double noundef %69, double noundef %70) #9
  %73 = load ptr, ptr @stdout, align 8, !tbaa !5
  %74 = call i32 @fflush(ptr noundef %73)
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  %75 = add nuw i64 %.025.us42, 1
  %exitcond52.not = icmp eq i64 %75, %1
  br i1 %exitcond52.not, label %._crit_edge29, label %.lr.ph28.split.split.us, !llvm.loop !9

.split38.split.us:                                ; preds = %65
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %.split38.us

._crit_edge29:                                    ; preds = %79, %68, %40, %15, %3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  ret void

.lr.ph28.split.split:                             ; preds = %.lr.ph28.split, %79
  %.025 = phi i64 [ %86, %79 ], [ 0, %.lr.ph28.split ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %5, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  %77 = invoke { double, double } @_ZL11StandardDevRKSt3mapImmSt4lessImESaISt4pairIKmmEEE(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %79 unwind label %.split38.split

.split36.us:                                      ; preds = %.lr.ph28.split.split.us, %.lr.ph28.split.us.split.us
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 83, ptr noundef nonnull @__PRETTY_FUNCTION__._Z18TestRandRandomnessimb) #10
  unreachable

78:                                               ; preds = %.split.us.split.us.split.us, %.split.split.us
  %.us-phi = phi { ptr, i32 } [ %62, %.split.split.us ], [ %39, %.split.us.split.us.split.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %.split38.us

79:                                               ; preds = %.lr.ph28.split.split
  %80 = extractvalue { double, double } %77, 0
  %81 = extractvalue { double, double } %77, 1
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i64 noundef %.025, double noundef %80, double noundef %81) #9
  %84 = load ptr, ptr @stdout, align 8, !tbaa !5
  %85 = call i32 @fflush(ptr noundef %84)
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  %86 = add nuw i64 %.025, 1
  %exitcond.not = icmp eq i64 %86, %1
  br i1 %exitcond.not, label %._crit_edge29, label %.lr.ph28.split.split, !llvm.loop !9

.split38.split:                                   ; preds = %.lr.ph28.split.split
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %.split38.us

.split38.us:                                      ; preds = %.split38.us.split.us, %.split38.us.split, %.split38.split.us, %.split38.split, %78
  %.pn = phi { ptr, i32 } [ %.us-phi, %78 ], [ %61, %.split38.us.split ], [ %38, %.split38.us.split.us ], [ %87, %.split38.split ], [ %76, %.split38.split.us ]
  call void @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn
}

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

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapImmSt4lessImESaISt4pairIKmmEEE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden { double, double } @_ZL11StandardDevRKSt3mapImmSt4lessImESaISt4pairIKmmEEE(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #5

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

attributes #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 = { 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 #3 = { noreturn 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 #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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: write) }
attributes #7 = { 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 }
attributes #9 = { cold nounwind }
attributes #10 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !12, i64 8}
!16 = !{!"_ZTSSt4pairIKmmE", !12, i64 0, !12, i64 8}
!17 = distinct !{!17, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass