; LLVM IR from intel/qpl :: tools/utils/generators/configurators (configurator)

; 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 }
%"class.gz_generator::TestConfigurator" = type { %"class.gz_generator::ITestConfigurator", %"class.std::unique_ptr", i32, %"class.qpl::test::random", %"class.qpl::test::random", %"class.qpl::test::random", %"class.qpl::test::random", %"class.qpl::test::random" }
%"class.gz_generator::ITestConfigurator" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK12gz_generator16TestConfigurator26makeRandomLengthCodesTableEPjjh(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3) #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.qpl::test::random", align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i8 %3, ptr %8, align 1, !tbaa !11
  %15 = load ptr, ptr %5, align 8
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds i32, ptr %16, i64 0
  store i32 1, ptr %17, align 4, !tbaa !9
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds i32, ptr %18, i64 1
  store i32 1, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 2, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %12) #3
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = uitofp i32 %20 to double
  %22 = getelementptr inbounds %"class.gz_generator::TestConfigurator", ptr %15, i32 0, i32 2
  %23 = load i32, ptr %22, align 8, !tbaa !12
  call void @_ZN3qpl4test6randomC2Eddj(ptr noundef nonnull align 8 dereferenceable(72) %12, double noundef 0.000000e+00, double noundef %21, i32 noundef %23)
  br label %24

24:                                               ; preds = %71, %4
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = load i32, ptr %11, align 4, !tbaa !9
  %27 = add i32 %25, %26
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = icmp ult i32 %27, %28
  br i1 %29, label %30, label %72

30:                                               ; preds = %24
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = sub i32 %31, 1
  %33 = uitofp i32 %32 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %12, double noundef 0.000000e+00, double noundef %33)
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  %34 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %12)
  %35 = trunc i32 %34 to i8
  store i8 %35, ptr %13, align 1, !tbaa !11
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load i8, ptr %13, align 1, !tbaa !11
  %38 = zext i8 %37 to i64
  %39 = getelementptr inbounds i32, ptr %36, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = add i32 %40, 1
  store i32 %41, ptr %9, align 4, !tbaa !9
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = load i8, ptr %8, align 1, !tbaa !11
  %44 = zext i8 %43 to i32
  %45 = icmp ult i32 %42, %44
  br i1 %45, label %46, label %58

46:                                               ; preds = %30
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load i8, ptr %13, align 1, !tbaa !11
  %50 = zext i8 %49 to i64
  %51 = getelementptr inbounds i32, ptr %48, i64 %50
  store i32 %47, ptr %51, align 4, !tbaa !9
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = add i32 %54, 1
  store i32 %55, ptr %10, align 4, !tbaa !9
  %56 = zext i32 %54 to i64
  %57 = getelementptr inbounds i32, ptr %53, i64 %56
  store i32 %52, ptr %57, align 4, !tbaa !9
  br label %71

58:                                               ; preds = %30
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = add i32 %60, -1
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %59, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load i8, ptr %13, align 1, !tbaa !11
  %67 = zext i8 %66 to i64
  %68 = getelementptr inbounds i32, ptr %65, i64 %67
  store i32 %64, ptr %68, align 4, !tbaa !9
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = add i32 %69, 2
  store i32 %70, ptr %11, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %58, %46
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  br label %24, !llvm.loop !24

72:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %87, %72
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = load i32, ptr %11, align 4, !tbaa !9
  %76 = icmp ult i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %90

78:                                               ; preds = %73
  %79 = load i8, ptr %8, align 1, !tbaa !11
  %80 = zext i8 %79 to i32
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = add i32 %82, %83
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds i32, ptr %81, i64 %85
  store i32 %80, ptr %86, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %78
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = add i32 %88, 1
  store i32 %89, ptr %14, align 4, !tbaa !9
  br label %73, !llvm.loop !26

90:                                               ; preds = %77
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = load i32, ptr %7, align 4, !tbaa !9
  %93 = getelementptr inbounds %"class.gz_generator::TestConfigurator", ptr %15, i32 0, i32 2
  %94 = load i32, ptr %93, align 8, !tbaa !12
  call void @_ZN12gz_generator13CommonMethods11shuffle_32uEPjjj(ptr noundef %91, i32 noundef %92, i32 noundef %94)
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = add i32 %95, %96
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret i32 %97
}

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

declare void @_ZN12gz_generator13CommonMethods11shuffle_32uEPjjj(ptr noundef, i32 noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 16}
!13 = !{!"_ZTSN12gz_generator16TestConfiguratorE", !14, i64 0, !15, i64 8, !10, i64 16, !21, i64 24, !21, i64 96, !21, i64 168, !21, i64 240, !21, i64 312}
!14 = !{!"_ZTSN12gz_generator17ITestConfiguratorE"}
!15 = !{!"_ZTSSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_dataINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_ELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_implINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EE", !18, i64 0}
!18 = !{!"_ZTSSt5tupleIJPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEE", !19, i64 0}
!19 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm0EPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEELb0EE", !6, i64 0}
!21 = !{!"_ZTSN3qpl4test6randomE", !22, i64 0}
!22 = !{!"_ZTSN3qpl4test11random_baseE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !23, i64 40, !23, i64 48, !23, i64 56, !23, i64 64}
!23 = !{!"double", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK12gz_generator16TestConfigurator26makeRandomLengthCodesTableEPjjh(ptr nocapture noundef nonnull readonly align 8 dereferenceable(384) %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3) local_unnamed_addr #2 align 2 {
  %5 = alloca %"class.qpl::test::random", align 8
  store i32 1, ptr %1, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #3
  %7 = uitofp i32 %2 to double
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load i32, ptr %8, align 8, !tbaa !9
  call void @_ZN3qpl4test6randomC2Eddj(ptr noundef nonnull align 8 dereferenceable(72) %5, double noundef 0.000000e+00, double noundef %7, i32 noundef %9)
  %10 = icmp ugt i32 %2, 2
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %11 = zext i8 %3 to i32
  br label %31

.preheader:                                       ; preds = %50
  %.not = icmp eq i32 %.1, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph44

.lr.ph44:                                         ; preds = %.preheader
  %12 = zext i8 %3 to i32
  %wide.trip.count = zext i32 %.1 to i64
  %min.iters.check = icmp ult i32 %.1, 16
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.scevcheck, %.lr.ph44
  %indvars.iv.ph = phi i64 [ 0, %vector.scevcheck ], [ 0, %.lr.ph44 ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %13 = trunc nuw i64 %indvars.iv.prol to i32
  %14 = add i32 %.135, %13
  %15 = zext i32 %14 to i64
  %16 = getelementptr inbounds i32, ptr %1, i64 %15
  store i32 %12, ptr %16, align 4, !tbaa !5
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !22

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %17 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %18 = icmp ugt i64 %17, -4
  br i1 %18, label %._crit_edge, label %scalar.ph

vector.scevcheck:                                 ; preds = %.lr.ph44
  %19 = add nsw i64 %wide.trip.count, -1
  %20 = trunc i64 %19 to i32
  %21 = xor i32 %.135, -1
  %22 = icmp ult i32 %21, %20
  %23 = icmp ugt i64 %19, 4294967295
  %24 = or i1 %22, %23
  br i1 %24, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.scevcheck
  %n.vec = and i64 %wide.trip.count, 4294967288
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %12, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %25 = trunc i64 %index to i32
  %26 = add i32 %.135, %25
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds i32, ptr %1, i64 %27
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  store <4 x i32> %broadcast.splat, ptr %28, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat, ptr %29, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %30 = icmp eq i64 %index.next, %n.vec
  br i1 %30, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

31:                                               ; preds = %.lr.ph, %50
  %.03340 = phi i32 [ 0, %.lr.ph ], [ %.1, %50 ]
  %.03439 = phi i32 [ 2, %.lr.ph ], [ %.135, %50 ]
  %32 = add i32 %.03439, -1
  %33 = uitofp i32 %32 to double
  call void @_ZN3qpl4test6random9set_rangeEdd(ptr noundef nonnull align 8 dereferenceable(72) %5, double noundef 0.000000e+00, double noundef %33)
  %34 = call noundef i32 @_ZN3qpl4test11random_basecvjEv(ptr noundef nonnull align 8 dereferenceable(72) %5)
  %35 = and i32 %34, 255
  %36 = zext nneg i32 %35 to i64
  %37 = getelementptr inbounds i32, ptr %1, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = add i32 %38, 1
  %40 = icmp ult i32 %39, %11
  br i1 %40, label %41, label %45

41:                                               ; preds = %31
  store i32 %39, ptr %37, align 4, !tbaa !5
  %42 = add i32 %.03439, 1
  %43 = zext i32 %.03439 to i64
  %44 = getelementptr inbounds i32, ptr %1, i64 %43
  store i32 %39, ptr %44, align 4, !tbaa !5
  br label %50

45:                                               ; preds = %31
  %46 = zext i32 %32 to i64
  %47 = getelementptr inbounds i32, ptr %1, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  store i32 %48, ptr %37, align 4, !tbaa !5
  %49 = add i32 %.03340, 2
  br label %50

50:                                               ; preds = %45, %41
  %.135 = phi i32 [ %42, %41 ], [ %32, %45 ]
  %.1 = phi i32 [ %.03340, %41 ], [ %49, %45 ]
  %51 = add i32 %.1, %.135
  %52 = icmp ult i32 %51, %2
  br i1 %52, label %31, label %.preheader, !llvm.loop !28

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %4, %.preheader
  %.lcssa51 = phi i32 [ %51, %.preheader ], [ 2, %4 ], [ %51, %middle.block ], [ %51, %scalar.ph ], [ %51, %scalar.ph.prol.loopexit ]
  %53 = load i32, ptr %8, align 8, !tbaa !9
  call void @_ZN12gz_generator13CommonMethods11shuffle_32uEPjjj(ptr noundef nonnull %1, i32 noundef %2, i32 noundef %53)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #3
  ret i32 %.lcssa51

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %54 = trunc nuw i64 %indvars.iv to i32
  %55 = add i32 %.135, %54
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds i32, ptr %1, i64 %56
  store i32 %12, ptr %57, align 4, !tbaa !5
  %58 = trunc i64 %indvars.iv to i32
  %59 = add i32 %58, 1
  %60 = add i32 %.135, %59
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %1, i64 %61
  store i32 %12, ptr %62, align 4, !tbaa !5
  %63 = trunc i64 %indvars.iv to i32
  %64 = add i32 %63, 2
  %65 = add i32 %.135, %64
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds i32, ptr %1, i64 %66
  store i32 %12, ptr %67, align 4, !tbaa !5
  %68 = trunc i64 %indvars.iv to i32
  %69 = add i32 %68, 3
  %70 = add i32 %.135, %69
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds i32, ptr %1, i64 %71
  store i32 %12, ptr %72, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !29
}

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

declare void @_ZN12gz_generator13CommonMethods11shuffle_32uEPjjj(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTSN12gz_generator16TestConfiguratorE", !11, i64 0, !12, i64 8, !6, i64 16, !19, i64 24, !19, i64 96, !19, i64 168, !19, i64 240, !19, i64 312}
!11 = !{!"_ZTSN12gz_generator17ITestConfiguratorE"}
!12 = !{!"_ZTSSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_dataINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_ELb1ELb1EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_implINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EE", !15, i64 0}
!15 = !{!"_ZTSSt5tupleIJPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEE", !16, i64 0}
!16 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEE", !17, i64 0}
!17 = !{!"_ZTSSt10_Head_baseILm0EPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEELb0EE", !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTSN3qpl4test6randomE", !20, i64 0}
!20 = !{!"_ZTSN3qpl4test11random_baseE", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !21, i64 40, !21, i64 48, !21, i64 56, !21, i64 64}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !25, !26, !27}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25, !26}


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