; LLVM IR from intel/qpl :: tools/utils/generators/configurators/rfc1951_stream/break_header_configurators/_345597bd (generator35StradingCodeLengthCodesConfigurator8generateEv)

; 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.qpl::test::random" = type { %"class.qpl::test::random_base" }
%"class.qpl::test::random_base" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12gz_generator35StradingCodeLengthCodesConfigurator8generateEv(ptr noundef nonnull align 8 dereferenceable(384) %0) unnamed_addr #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.qpl::test::random", align 8
  %10 = alloca %"class.qpl::test::random", align 8
  %11 = alloca %"class.qpl::test::random", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #6
  %15 = call noundef i32 @_ZNK12gz_generator16TestConfigurator10get_m_seedEv(ptr noundef nonnull align 8 dereferenceable(384) %14)
  call void @_ZN3qpl4test6randomC2Eddj(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %15)
  %16 = call noalias noundef nonnull ptr @_Znam(i64 noundef 1144) #7
  store ptr %16, ptr %3, align 8, !tbaa !5
  %17 = call noalias noundef nonnull ptr @_Znam(i64 noundef 120) #7
  store ptr %17, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call noundef i32 @_ZNK12gz_generator16TestConfigurator26makeRandomLengthCodesTableEPjjh(ptr noundef nonnull align 8 dereferenceable(384) %14, ptr noundef %18, i32 noundef 286, i8 noundef zeroext 14)
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call noundef i32 @_ZNK12gz_generator16TestConfigurator26makeRandomLengthCodesTableEPjjh(ptr noundef nonnull align 8 dereferenceable(384) %14, ptr noundef %20, i32 noundef 30, i8 noundef zeroext 14)
  call void @llvm.lifetime.start.p0(i64 72, ptr %10) #6
  call void @_ZNK12gz_generator16TestConfigurator12get_m_randomEv(ptr dead_on_unwind writable sret(%"class.qpl::test::random") align 8 %10, ptr noundef nonnull align 8 dereferenceable(384) %14)
  %22 = call noundef float @_ZN3qpl4test11random_basecvfEv(ptr noundef nonnull align 8 dereferenceable(72) %10)
  %23 = fcmp olt float %22, 0x3FD51EB860000000
  call void @llvm.lifetime.end.p0(i64 72, ptr %10) #6
  br i1 %23, label %24, label %30

24:                                               ; preds = %1
  store i32 15, ptr %5, align 4, !tbaa !9
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 4.000000e+00, double noundef 7.000000e+00)
  %25 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  store i32 %25, ptr %6, align 4, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = sub i32 %26, 1
  %28 = uitofp i32 %27 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 2.000000e+00, double noundef %28)
  %29 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  store i32 %29, ptr %7, align 4, !tbaa !9
  br label %57

30:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #6
  call void @_ZNK12gz_generator16TestConfigurator12get_m_randomEv(ptr dead_on_unwind writable sret(%"class.qpl::test::random") align 8 %11, ptr noundef nonnull align 8 dereferenceable(384) %14)
  %31 = call noundef float @_ZN3qpl4test11random_basecvfEv(ptr noundef nonnull align 8 dereferenceable(72) %11)
  %32 = fcmp olt float %31, 5.000000e-01
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #6
  br i1 %32, label %33, label %39

33:                                               ; preds = %30
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 3.000000e+00, double noundef 1.000000e+01)
  %34 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  store i32 %34, ptr %6, align 4, !tbaa !9
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = sub i32 %35, 1
  %37 = uitofp i32 %36 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 1.000000e+00, double noundef %37)
  %38 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  store i32 %38, ptr %7, align 4, !tbaa !9
  br label %56

39:                                               ; preds = %30
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 1.100000e+01, double noundef 1.380000e+02)
  %40 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  store i32 %40, ptr %6, align 4, !tbaa !9
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = sub i32 %41, 1
  %43 = uitofp i32 %42 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 1.000000e+00, double noundef %43)
  %44 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  store i32 %44, ptr %7, align 4, !tbaa !9
  %45 = load i32, ptr %6, align 4, !tbaa !9
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = sub i32 %45, %46
  %48 = icmp ugt i32 %47, 29
  br i1 %48, label %49, label %52

49:                                               ; preds = %39
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = sub i32 %50, 29
  br label %54

52:                                               ; preds = %39
  %53 = load i32, ptr %7, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %52, %49
  %55 = phi i32 [ %51, %49 ], [ %53, %52 ]
  store i32 %55, ptr %7, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %54, %33
  br label %57

57:                                               ; preds = %56, %24
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = sub i32 %58, %59
  store i32 %60, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sub i32 286, %61
  store i32 %62, ptr %12, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %73, %57
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = icmp ult i32 %64, 286
  br i1 %65, label %67, label %66

66:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %76

67:                                               ; preds = %63
  %68 = load i32, ptr %5, align 4, !tbaa !9
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds i32, ptr %69, i64 %71
  store i32 %68, ptr %72, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %67
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = add i32 %74, 1
  store i32 %75, ptr %12, align 4, !tbaa !9
  br label %63, !llvm.loop !11

76:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %88, %76
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = icmp ult i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %91

82:                                               ; preds = %77
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %84, i64 %86
  store i32 %83, ptr %87, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %82
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = add i32 %89, 1
  store i32 %90, ptr %13, align 4, !tbaa !9
  br label %77, !llvm.loop !13

91:                                               ; preds = %81
  call void @_ZN12gz_generator16TestConfigurator19declareDynamicBlockEv(ptr noundef nonnull align 8 dereferenceable(384) %14)
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384) %14, i8 noundef zeroext 1, ptr noundef %92, i32 noundef 286)
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds i32, ptr %93, i64 256
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %91
  br label %102

98:                                               ; preds = %91
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds i32, ptr %99, i64 256
  %101 = load i32, ptr %100, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %98, %97
  %103 = phi i32 [ 15, %97 ], [ %101, %98 ]
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds i32, ptr %104, i64 256
  store i32 %103, ptr %105, align 4, !tbaa !9
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384) %14, i8 noundef zeroext 0, ptr noundef %106, i32 noundef 286)
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384) %14, i8 noundef zeroext 3, ptr noundef %107, i32 noundef 30)
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384) %14, i8 noundef zeroext 2, ptr noundef %108, i32 noundef 30)
  call void @_ZN12gz_generator16TestConfigurator16declareTestTokenEj(ptr noundef nonnull align 8 dereferenceable(384) %14, i32 noundef 1)
  call void @_ZN12gz_generator16TestConfigurator23writeRandomHuffmanBlockEj(ptr noundef nonnull align 8 dereferenceable(384) %14, i32 noundef 1)
  call void @_ZN12gz_generator16TestConfigurator18declareFinishBlockEv(ptr noundef nonnull align 8 dereferenceable(384) %14)
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = icmp eq ptr %109, null
  br i1 %110, label %112, label %111

111:                                              ; preds = %102
  call void @_ZdaPv(ptr noundef %109) #8
  br label %112

112:                                              ; preds = %111, %102
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = icmp eq ptr %113, null
  br i1 %114, label %116, label %115

115:                                              ; preds = %112
  call void @_ZdaPv(ptr noundef %113) #8
  br label %116

116:                                              ; preds = %115, %112
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret i32 0
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3qpl4test6randomC2Eddj(ptr noundef nonnull align 8 dereferenceable(72), double noundef, double noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

declare noundef i32 @_ZNK12gz_generator16TestConfigurator26makeRandomLengthCodesTableEPjjh(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef, i32 noundef, i8 noundef zeroext) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK12gz_generator16TestConfigurator12get_m_randomEv(ptr dead_on_unwind noalias writable sret(%"class.qpl::test::random") align 8, ptr noundef nonnull align 8 dereferenceable(384)) #2 align 2

declare noundef float @_ZN3qpl4test11random_basecvfEv(ptr noundef nonnull align 8 dereferenceable(72)) #4

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

declare void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72), double noundef, double noundef) #4

declare noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72)) #4

declare void @_ZN12gz_generator16TestConfigurator19declareDynamicBlockEv(ptr noundef nonnull align 8 dereferenceable(384)) #4

declare void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384), i8 noundef zeroext, ptr noundef, i32 noundef) #4

declare void @_ZN12gz_generator16TestConfigurator16declareTestTokenEj(ptr noundef nonnull align 8 dereferenceable(384), i32 noundef) #4

declare void @_ZN12gz_generator16TestConfigurator23writeRandomHuffmanBlockEj(ptr noundef nonnull align 8 dereferenceable(384), i32 noundef) #4

declare void @_ZN12gz_generator16TestConfigurator18declareFinishBlockEv(ptr noundef nonnull align 8 dereferenceable(384)) #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #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 = { 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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin 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 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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.qpl::test::random" = type { %"class.qpl::test::random_base" }
%"class.qpl::test::random_base" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12gz_generator35StradingCodeLengthCodesConfigurator8generateEv(ptr noundef nonnull align 8 dereferenceable(384) %0) unnamed_addr #0 align 2 {
  %2 = alloca %"class.qpl::test::random", align 8
  %3 = alloca %"class.qpl::test::random", align 8
  %4 = alloca %"class.qpl::test::random", align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %2) #6
  %5 = tail call noundef i32 @_ZNK12gz_generator16TestConfigurator10get_m_seedEv(ptr noundef nonnull align 8 dereferenceable(384) %0)
  call void @_ZN3qpl4test6randomC2Eddj(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %5)
  %6 = call noalias noundef nonnull dereferenceable(1144) ptr @_Znam(i64 noundef 1144) #7
  %7 = call noalias noundef nonnull dereferenceable(120) ptr @_Znam(i64 noundef 120) #7
  %8 = call noundef i32 @_ZNK12gz_generator16TestConfigurator26makeRandomLengthCodesTableEPjjh(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull %6, i32 noundef 286, i8 noundef zeroext 14)
  %9 = call noundef i32 @_ZNK12gz_generator16TestConfigurator26makeRandomLengthCodesTableEPjjh(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull %7, i32 noundef 30, i8 noundef zeroext 14)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #6
  call void @_ZNK12gz_generator16TestConfigurator12get_m_randomEv(ptr dead_on_unwind nonnull writable sret(%"class.qpl::test::random") align 8 %3, ptr noundef nonnull align 8 dereferenceable(384) %0)
  %10 = call noundef float @_ZN3qpl4test11random_basecvfEv(ptr noundef nonnull align 8 dereferenceable(72) %3)
  %11 = fcmp olt float %10, 0x3FD51EB860000000
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #6
  br i1 %11, label %12, label %17

12:                                               ; preds = %1
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 4.000000e+00, double noundef 7.000000e+00)
  %13 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  %14 = add i32 %13, -1
  %15 = uitofp i32 %14 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 2.000000e+00, double noundef %15)
  %16 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  br label %34

17:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #6
  call void @_ZNK12gz_generator16TestConfigurator12get_m_randomEv(ptr dead_on_unwind nonnull writable sret(%"class.qpl::test::random") align 8 %4, ptr noundef nonnull align 8 dereferenceable(384) %0)
  %18 = call noundef float @_ZN3qpl4test11random_basecvfEv(ptr noundef nonnull align 8 dereferenceable(72) %4)
  %19 = fcmp olt float %18, 5.000000e-01
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #6
  br i1 %19, label %20, label %25

20:                                               ; preds = %17
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 3.000000e+00, double noundef 1.000000e+01)
  %21 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  %22 = add i32 %21, -1
  %23 = uitofp i32 %22 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 1.000000e+00, double noundef %23)
  %24 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  br label %34

25:                                               ; preds = %17
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 1.100000e+01, double noundef 1.380000e+02)
  %26 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  %27 = add i32 %26, -1
  %28 = uitofp i32 %27 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 1.000000e+00, double noundef %28)
  %29 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  %30 = sub i32 %26, %29
  %31 = icmp ugt i32 %30, 29
  %32 = add i32 %26, -29
  %33 = select i1 %31, i32 %32, i32 %29
  br label %34

34:                                               ; preds = %20, %25, %12
  %.035 = phi i32 [ 15, %12 ], [ 0, %20 ], [ 0, %25 ]
  %.034 = phi i32 [ %13, %12 ], [ %21, %20 ], [ %26, %25 ]
  %.033 = phi i32 [ %16, %12 ], [ %24, %20 ], [ %33, %25 ]
  %35 = sub i32 %.034, %.033
  %36 = sub i32 286, %.033
  %37 = icmp ult i32 %36, 286
  br i1 %37, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %34
  %38 = zext nneg i32 %36 to i64
  %39 = sub i32 287, %.033
  %40 = zext i32 %39 to i64
  %41 = sub nsw i64 287, %40
  %min.iters.check = icmp ult i64 %41, 16
  br i1 %min.iters.check, label %.lr.ph.preheader59, label %vector.scevcheck

.lr.ph.preheader59:                               ; preds = %middle.block, %vector.scevcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ %38, %vector.scevcheck ], [ %38, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

vector.scevcheck:                                 ; preds = %.lr.ph.preheader
  %42 = sub i32 287, %.033
  %43 = zext i32 %42 to i64
  %44 = sub nsw i64 286, %43
  %45 = trunc i64 %44 to i32
  %46 = add i32 %.033, -288
  %47 = icmp ult i32 %46, %45
  %48 = icmp ugt i64 %44, 4294967295
  %49 = or i1 %47, %48
  br i1 %49, label %.lr.ph.preheader59, label %vector.ph

vector.ph:                                        ; preds = %vector.scevcheck
  %n.vec = and i64 %41, -8
  %ind.end = add nsw i64 %n.vec, %38
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.035, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep = getelementptr i32, ptr %6, i64 %38
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %gep = getelementptr i32, ptr %invariant.gep, i64 %index
  %50 = getelementptr inbounds i8, ptr %gep, i64 16
  store <4 x i32> %broadcast.splat, ptr %gep, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat, ptr %50, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %51 = icmp eq i64 %index.next, %n.vec
  br i1 %51, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %41, %n.vec
  br i1 %cmp.n, label %.preheader, label %.lr.ph.preheader59

.preheader:                                       ; preds = %.lr.ph, %middle.block, %34
  %.not = icmp eq i32 %.034, %.033
  br i1 %.not, label %._crit_edge, label %.lr.ph39.preheader

.lr.ph39.preheader:                               ; preds = %.preheader
  %wide.trip.count = zext i32 %35 to i64
  %min.iters.check47 = icmp ult i32 %35, 8
  br i1 %min.iters.check47, label %.lr.ph39.preheader58, label %vector.ph48

.lr.ph39.preheader58:                             ; preds = %middle.block45, %.lr.ph39.preheader
  %indvars.iv41.ph = phi i64 [ 0, %.lr.ph39.preheader ], [ %n.vec50, %middle.block45 ]
  br label %.lr.ph39

vector.ph48:                                      ; preds = %.lr.ph39.preheader
  %n.vec50 = and i64 %wide.trip.count, 4294967288
  %broadcast.splatinsert54 = insertelement <4 x i32> poison, i32 %.035, i64 0
  %broadcast.splat55 = shufflevector <4 x i32> %broadcast.splatinsert54, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body52

vector.body52:                                    ; preds = %vector.body52, %vector.ph48
  %index53 = phi i64 [ 0, %vector.ph48 ], [ %index.next56, %vector.body52 ]
  %52 = getelementptr inbounds i32, ptr %7, i64 %index53
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  store <4 x i32> %broadcast.splat55, ptr %52, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat55, ptr %53, align 4, !tbaa !5
  %index.next56 = add nuw i64 %index53, 8
  %54 = icmp eq i64 %index.next56, %n.vec50
  br i1 %54, label %middle.block45, label %vector.body52, !llvm.loop !13

middle.block45:                                   ; preds = %vector.body52
  %cmp.n57 = icmp eq i64 %n.vec50, %wide.trip.count
  br i1 %cmp.n57, label %._crit_edge, label %.lr.ph39.preheader58

.lr.ph:                                           ; preds = %.lr.ph.preheader59, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader59 ]
  %55 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  store i32 %.035, ptr %55, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %56 = and i64 %indvars.iv.next, 4294967295
  %exitcond.not = icmp eq i64 %56, 286
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph39, %middle.block45, %.preheader
  call void @_ZN12gz_generator16TestConfigurator19declareDynamicBlockEv(ptr noundef nonnull align 8 dereferenceable(384) %0)
  call void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384) %0, i8 noundef zeroext 1, ptr noundef nonnull %6, i32 noundef 286)
  %57 = getelementptr inbounds i8, ptr %6, i64 1024
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp eq i32 %58, 0
  %spec.select = select i1 %59, i32 15, i32 %58
  store i32 %spec.select, ptr %57, align 4, !tbaa !5
  call void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384) %0, i8 noundef zeroext 0, ptr noundef nonnull %6, i32 noundef 286)
  call void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384) %0, i8 noundef zeroext 3, ptr noundef nonnull %7, i32 noundef 30)
  call void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384) %0, i8 noundef zeroext 2, ptr noundef nonnull %7, i32 noundef 30)
  call void @_ZN12gz_generator16TestConfigurator16declareTestTokenEj(ptr noundef nonnull align 8 dereferenceable(384) %0, i32 noundef 1)
  call void @_ZN12gz_generator16TestConfigurator23writeRandomHuffmanBlockEj(ptr noundef nonnull align 8 dereferenceable(384) %0, i32 noundef 1)
  call void @_ZN12gz_generator16TestConfigurator18declareFinishBlockEv(ptr noundef nonnull align 8 dereferenceable(384) %0)
  call void @_ZdaPv(ptr noundef nonnull %6) #8
  call void @_ZdaPv(ptr noundef nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %2) #6
  ret i32 0

.lr.ph39:                                         ; preds = %.lr.ph39.preheader58, %.lr.ph39
  %indvars.iv41 = phi i64 [ %indvars.iv.next42, %.lr.ph39 ], [ %indvars.iv41.ph, %.lr.ph39.preheader58 ]
  %60 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv41
  store i32 %.035, ptr %60, align 4, !tbaa !5
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %exitcond44.not = icmp eq i64 %indvars.iv.next42, %wide.trip.count
  br i1 %exitcond44.not, label %._crit_edge, label %.lr.ph39, !llvm.loop !15
}

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK12gz_generator16TestConfigurator10get_m_seedEv(ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3qpl4test6randomC2Eddj(ptr noundef nonnull align 8 dereferenceable(72), double noundef, double noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

declare noundef i32 @_ZNK12gz_generator16TestConfigurator26makeRandomLengthCodesTableEPjjh(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK12gz_generator16TestConfigurator12get_m_randomEv(ptr dead_on_unwind noalias writable sret(%"class.qpl::test::random") align 8, ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #2 align 2

declare noundef float @_ZN3qpl4test11random_basecvfEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

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

declare void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72), double noundef, double noundef) local_unnamed_addr #4

declare noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

declare void @_ZN12gz_generator16TestConfigurator19declareDynamicBlockEv(ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #4

declare void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384), i8 noundef zeroext, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12gz_generator16TestConfigurator16declareTestTokenEj(ptr noundef nonnull align 8 dereferenceable(384), i32 noundef) local_unnamed_addr #4

declare void @_ZN12gz_generator16TestConfigurator23writeRandomHuffmanBlockEj(ptr noundef nonnull align 8 dereferenceable(384), i32 noundef) local_unnamed_addr #4

declare void @_ZN12gz_generator16TestConfigurator18declareFinishBlockEv(ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin 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 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !11, !12}
!14 = distinct !{!14, !10, !11}
!15 = distinct !{!15, !10, !12, !11}


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