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

; 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_generator44BigRepeatCountLiteralLengthCodesConfigurator8generateEv(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 i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"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
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #7
  %14 = call noundef i32 @_ZNK12gz_generator16TestConfigurator10get_m_seedEv(ptr noundef nonnull align 8 dereferenceable(384) %13)
  call void @_ZN3qpl4test6randomC2Eddj(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %14)
  call void @llvm.lifetime.start.p0(i64 72, ptr %10) #7
  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) %13)
  %15 = call noundef float @_ZN3qpl4test11random_basecvfEv(ptr noundef nonnull align 8 dereferenceable(72) %10)
  %16 = fcmp ogt float 2.500000e-01, %15
  call void @llvm.lifetime.end.p0(i64 72, ptr %10) #7
  br i1 %16, label %17, label %20

17:                                               ; preds = %1
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 1.000000e+00, double noundef 8.000000e+00)
  %18 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  store i32 %18, ptr %4, 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)
  %19 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  store i32 %19, ptr %6, align 4, !tbaa !9
  store i32 284, ptr %7, align 4, !tbaa !9
  br label %22

20:                                               ; preds = %1
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 3.000000e+00, double noundef 1.380000e+02)
  %21 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  store i32 %21, ptr %6, align 4, !tbaa !9
  store i32 285, ptr %7, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %20, %17
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #7
  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) %13)
  %23 = call noundef float @_ZN3qpl4test11random_basecvfEv(ptr noundef nonnull align 8 dereferenceable(72) %11)
  %24 = fcmp ogt float 5.000000e-01, %23
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #7
  br i1 %24, label %25, label %31

25:                                               ; preds = %22
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = sub i32 287, %26
  %28 = uitofp i32 %27 to double
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = uitofp i32 %29 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef %28, double noundef %30)
  br label %44

31:                                               ; preds = %22
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = sub i32 287, %32
  %34 = icmp ugt i32 245, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  br label %39

36:                                               ; preds = %31
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = sub i32 287, %37
  br label %39

39:                                               ; preds = %36, %35
  %40 = phi i32 [ 245, %35 ], [ %38, %36 ]
  %41 = uitofp i32 %40 to double
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = uitofp i32 %42 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef %41, double noundef %43)
  br label %44

44:                                               ; preds = %39, %25
  %45 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  store i32 %45, ptr %5, align 4, !tbaa !9
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = add i32 %46, %47
  %49 = zext i32 %48 to i64
  %50 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %49, i64 4)
  %51 = extractvalue { i64, i1 } %50, 1
  %52 = extractvalue { i64, i1 } %50, 0
  %53 = select i1 %51, i64 -1, i64 %52
  %54 = call noalias noundef nonnull ptr @_Znam(i64 noundef %53) #8
  store ptr %54, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %9, double noundef 9.000000e+00, double noundef 1.500000e+01)
  %55 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %55, ptr %12, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %66, %44
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = load i32, ptr %5, align 4, !tbaa !9
  %59 = icmp ult i32 %57, %58
  br i1 %59, label %60, label %69

60:                                               ; preds = %56
  %61 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %9)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds i32, ptr %62, i64 %64
  store i32 %61, ptr %65, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %60
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = add i32 %67, 1
  store i32 %68, ptr %12, align 4, !tbaa !9
  br label %56, !llvm.loop !11

69:                                               ; preds = %56
  %70 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %70, ptr %12, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %83, %69
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = load i32, ptr %5, align 4, !tbaa !9
  %74 = load i32, ptr %6, align 4, !tbaa !9
  %75 = add i32 %73, %74
  %76 = icmp ult i32 %72, %75
  br i1 %76, label %77, label %86

77:                                               ; preds = %71
  %78 = load i32, ptr %4, align 4, !tbaa !9
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %79, i64 %81
  store i32 %78, ptr %82, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %77
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = add i32 %84, 1
  store i32 %85, ptr %12, align 4, !tbaa !9
  br label %71, !llvm.loop !13

86:                                               ; preds = %71
  %87 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %87, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @_ZN12gz_generator16TestConfigurator19declareDynamicBlockEv(ptr noundef nonnull align 8 dereferenceable(384) %13)
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN12gz_generator16TestConfigurator18declareVectorTokenENS0_15VectorTokenTypeEPKjj(ptr noundef nonnull align 8 dereferenceable(384) %13, i8 noundef zeroext 1, ptr noundef %88, i32 noundef %89)
  call void @_ZN12gz_generator16TestConfigurator14declareLiteralEj(ptr noundef nonnull align 8 dereferenceable(384) %13, i32 noundef 0)
  call void @_ZN12gz_generator16TestConfigurator16writeRandomBlockEv(ptr noundef nonnull align 8 dereferenceable(384) %13)
  call void @_ZN12gz_generator16TestConfigurator18declareFinishBlockEv(ptr noundef nonnull align 8 dereferenceable(384) %13)
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = icmp eq ptr %90, null
  br i1 %91, label %93, label %92

92:                                               ; preds = %86
  call void @_ZdaPv(ptr noundef %90) #9
  br label %93

93:                                               ; preds = %92, %86
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  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: 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)) #3

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

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

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

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

declare void @_ZN12gz_generator16TestConfigurator14declareLiteralEj(ptr noundef nonnull align 8 dereferenceable(384), i32 noundef) #3

declare void @_ZN12gz_generator16TestConfigurator16writeRandomBlockEv(ptr noundef nonnull align 8 dereferenceable(384)) #3

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #6

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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_generator44BigRepeatCountLiteralLengthCodesConfigurator8generateEv(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) #7
  %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)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #7
  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)
  %6 = call noundef float @_ZN3qpl4test11random_basecvfEv(ptr noundef nonnull align 8 dereferenceable(72) %3)
  %7 = fcmp olt float %6, 2.500000e-01
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #7
  br i1 %7, label %8, label %10

8:                                                ; preds = %1
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 1.000000e+00, double noundef 8.000000e+00)
  %9 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 4.000000e+00, double noundef 7.000000e+00)
  br label %11

10:                                               ; preds = %1
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 3.000000e+00, double noundef 1.380000e+02)
  br label %11

11:                                               ; preds = %10, %8
  %.027 = phi i32 [ %9, %8 ], [ 0, %10 ]
  %.025 = phi double [ 2.840000e+02, %8 ], [ 2.850000e+02, %10 ]
  %12 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #7
  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)
  %13 = call noundef float @_ZN3qpl4test11random_basecvfEv(ptr noundef nonnull align 8 dereferenceable(72) %4)
  %14 = fcmp olt float %13, 5.000000e-01
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #7
  %15 = sub i32 287, %12
  %16 = call i32 @llvm.umax.i32(i32 %15, i32 245)
  %.sink39 = select i1 %14, i32 %15, i32 %16
  %17 = uitofp i32 %.sink39 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef %17, double noundef %.025)
  %18 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  %19 = add i32 %18, %12
  %20 = zext i32 %19 to i64
  %21 = shl nuw nsw i64 %20, 2
  %22 = call noalias noundef nonnull ptr @_Znam(i64 noundef %21) #8
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %2, double noundef 9.000000e+00, double noundef 1.500000e+01)
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %11
  %wide.trip.count = zext i32 %18 to i64
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %11
  %23 = icmp ult i32 %18, %19
  br i1 %23, label %.lr.ph30.preheader, label %._crit_edge

.lr.ph30.preheader:                               ; preds = %.preheader
  %24 = zext i32 %18 to i64
  %25 = sub nsw i64 %20, %24
  %min.iters.check = icmp ult i64 %25, 8
  br i1 %min.iters.check, label %.lr.ph30.preheader40, label %vector.ph

.lr.ph30.preheader40:                             ; preds = %middle.block, %.lr.ph30.preheader
  %indvars.iv34.ph = phi i64 [ %24, %.lr.ph30.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph30

vector.ph:                                        ; preds = %.lr.ph30.preheader
  %n.vec = and i64 %25, -8
  %ind.end = add nsw i64 %n.vec, %24
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.027, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep = getelementptr i32, ptr %22, i64 %24
  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
  %26 = 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 %26, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %27 = icmp eq i64 %index.next, %n.vec
  br i1 %27, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %25, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph30.preheader40

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %28 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  %29 = getelementptr inbounds i32, ptr %22, i64 %indvars.iv
  store i32 %28, ptr %29, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !13

.lr.ph30:                                         ; preds = %.lr.ph30.preheader40, %.lr.ph30
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %.lr.ph30 ], [ %indvars.iv34.ph, %.lr.ph30.preheader40 ]
  %30 = getelementptr inbounds i32, ptr %22, i64 %indvars.iv34
  store i32 %.027, ptr %30, align 4, !tbaa !5
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 1
  %exitcond38.not = icmp eq i64 %indvars.iv.next35, %20
  br i1 %exitcond38.not, label %._crit_edge, label %.lr.ph30, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph30, %middle.block, %.preheader
  %.1.lcssa = phi i32 [ %18, %.preheader ], [ %19, %middle.block ], [ %19, %.lr.ph30 ]
  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 %22, i32 noundef %.1.lcssa)
  call void @_ZN12gz_generator16TestConfigurator14declareLiteralEj(ptr noundef nonnull align 8 dereferenceable(384) %0, i32 noundef 0)
  call void @_ZN12gz_generator16TestConfigurator16writeRandomBlockEv(ptr noundef nonnull align 8 dereferenceable(384) %0)
  call void @_ZN12gz_generator16TestConfigurator18declareFinishBlockEv(ptr noundef nonnull align 8 dereferenceable(384) %0)
  call void @_ZdaPv(ptr noundef nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %2) #7
  ret i32 0
}

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

; Function Attrs: mustprogress 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: 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 #3

; 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 #3

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

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

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

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

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

declare void @_ZN12gz_generator16TestConfigurator16writeRandomBlockEv(ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #3

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

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

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 = { "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 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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}
!14 = distinct !{!14, !10, !12, !11}


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