; LLVM IR from tsotchke/quantum_rng :: tests (comprehensive_test)

; 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"

%struct.test_result_t = type { ptr, i32, ptr }
%struct.statistical_results = type { double, double, double, double, [4 x double], double, double }

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @test_init_free(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

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

declare i32 @qrng_init(ptr noundef, ptr noundef, i64 noundef) #2

declare void @qrng_free(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @test_reseed(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_bytes_generation(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_uint64_distribution(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_double_distribution(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_entanglement(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_error_handling(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_entropy(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_memory_safety(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_state_measurement(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_version_info(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) #0

; Function Attrs: nounwind uwtable
define dso_local void @run_comprehensive_tests() #0 {
  %1 = alloca [11 x %struct.test_result_t], align 16
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.statistical_results, align 8
  call void @llvm.lifetime.start.p0(i64 264, ptr %1) #3
  call void @test_init_free(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %1)
  %7 = getelementptr inbounds %struct.test_result_t, ptr %1, i64 1
  call void @test_reseed(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %7)
  %8 = getelementptr inbounds %struct.test_result_t, ptr %1, i64 2
  call void @test_bytes_generation(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %8)
  %9 = getelementptr inbounds %struct.test_result_t, ptr %1, i64 3
  call void @test_uint64_distribution(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %9)
  %10 = getelementptr inbounds %struct.test_result_t, ptr %1, i64 4
  call void @test_double_distribution(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %10)
  %11 = getelementptr inbounds %struct.test_result_t, ptr %1, i64 5
  call void @test_entanglement(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %11)
  %12 = getelementptr inbounds %struct.test_result_t, ptr %1, i64 6
  call void @test_error_handling(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %12)
  %13 = getelementptr inbounds %struct.test_result_t, ptr %1, i64 7
  call void @test_entropy(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %13)
  %14 = getelementptr inbounds %struct.test_result_t, ptr %1, i64 8
  call void @test_memory_safety(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %14)
  %15 = getelementptr inbounds %struct.test_result_t, ptr %1, i64 9
  call void @test_state_measurement(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %15)
  %16 = getelementptr inbounds %struct.test_result_t, ptr %1, i64 10
  call void @test_version_info(ptr dead_on_unwind writable sret(%struct.test_result_t) align 8 %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 11, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !5
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str.35)
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %65, %0
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %68

24:                                               ; preds = %19
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [11 x %struct.test_result_t], ptr %1, i64 0, i64 %26
  %28 = getelementptr inbounds %struct.test_result_t, ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.37, ptr noundef %29)
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [11 x %struct.test_result_t], ptr %1, i64 0, i64 %32
  %34 = getelementptr inbounds %struct.test_result_t, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 8, !tbaa !12
  %36 = icmp ne i32 %35, 0
  %37 = zext i1 %36 to i64
  %38 = select i1 %36, ptr @.str.39, ptr @.str.40
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, ptr noundef %38)
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [11 x %struct.test_result_t], ptr %1, i64 0, i64 %41
  %43 = getelementptr inbounds %struct.test_result_t, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 8, !tbaa !12
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %53, label %46

46:                                               ; preds = %24
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [11 x %struct.test_result_t], ptr %1, i64 0, i64 %48
  %50 = getelementptr inbounds %struct.test_result_t, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.41, ptr noundef %51)
  br label %53

53:                                               ; preds = %46, %24
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [11 x %struct.test_result_t], ptr %1, i64 0, i64 %56
  %58 = getelementptr inbounds %struct.test_result_t, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 8, !tbaa !12
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %64

61:                                               ; preds = %53
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %3, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %61, %53
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %4, align 4, !tbaa !5
  br label %19, !llvm.loop !14

68:                                               ; preds = %23
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.43)
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.44)
  %71 = load i32, ptr %3, align 4, !tbaa !5
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = sitofp i32 %73 to double
  %75 = fmul double 1.000000e+02, %74
  %76 = load i32, ptr %2, align 4, !tbaa !5
  %77 = sitofp i32 %76 to double
  %78 = fdiv double %75, %77
  %79 = call i32 (ptr, ...) @printf(ptr noundef @.str.45, i32 noundef %71, i32 noundef %72, double noundef %78)
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.46)
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.47)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %82 = call i32 @qrng_init(ptr noundef %5, ptr noundef @.str, i64 noundef 23)
  call void @llvm.lifetime.start.p0(i64 80, ptr %6) #3
  %83 = load ptr, ptr %5, align 8, !tbaa !16
  call void @run_statistical_suite(ptr dead_on_unwind writable sret(%struct.statistical_results) align 8 %6, ptr noundef %83, i64 noundef 10000000)
  call void @print_statistical_results(ptr noundef %6)
  %84 = load ptr, ptr %5, align 8, !tbaa !16
  call void @qrng_free(ptr noundef %84)
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 264, ptr %1) #3
  ret void
}

declare i32 @printf(ptr noundef, ...) #2

declare void @run_statistical_suite(ptr dead_on_unwind writable sret(%struct.statistical_results) align 8, ptr noundef, i64 noundef) #2

declare void @print_statistical_results(ptr noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !11, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!11, !11, i64 0}


; 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"

%struct.test_result_t = type { ptr, i32, ptr }
%struct.statistical_results = type { double, double, double, double, [4 x double], double, double }

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @test_init_free(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) 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

declare i32 @qrng_init(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @qrng_free(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @test_reseed(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_bytes_generation(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_uint64_distribution(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_double_distribution(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_entanglement(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_error_handling(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_entropy(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_memory_safety(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_state_measurement(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @test_version_info(ptr dead_on_unwind noalias writable sret(%struct.test_result_t) align 8) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @run_comprehensive_tests() local_unnamed_addr #0 {
  %1 = alloca [11 x %struct.test_result_t], align 16
  %2 = alloca ptr, align 8
  %3 = alloca %struct.statistical_results, align 8
  call void @llvm.lifetime.start.p0(i64 264, ptr nonnull %1) #5
  call void @test_init_free(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %1)
  %4 = getelementptr inbounds i8, ptr %1, i64 24
  call void @test_reseed(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %4)
  %5 = getelementptr inbounds i8, ptr %1, i64 48
  call void @test_bytes_generation(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %5)
  %6 = getelementptr inbounds i8, ptr %1, i64 72
  call void @test_uint64_distribution(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %6)
  %7 = getelementptr inbounds i8, ptr %1, i64 96
  call void @test_double_distribution(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %7)
  %8 = getelementptr inbounds i8, ptr %1, i64 120
  call void @test_entanglement(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %8)
  %9 = getelementptr inbounds i8, ptr %1, i64 144
  call void @test_error_handling(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %9)
  %10 = getelementptr inbounds i8, ptr %1, i64 168
  call void @test_entropy(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %10)
  %11 = getelementptr inbounds i8, ptr %1, i64 192
  call void @test_memory_safety(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %11)
  %12 = getelementptr inbounds i8, ptr %1, i64 216
  call void @test_state_measurement(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %12)
  %13 = getelementptr inbounds i8, ptr %1, i64 240
  call void @test_version_info(ptr dead_on_unwind nonnull writable sret(%struct.test_result_t) align 8 %13)
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35)
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36)
  %16 = load ptr, ptr %1, align 16, !tbaa !5
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %16)
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %.not = icmp eq i32 %19, 0
  %20 = select i1 %.not, ptr @.str.40, ptr @.str.39
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %20)
  %22 = load i32, ptr %18, align 8, !tbaa !11
  %.not14 = icmp eq i32 %22, 0
  br i1 %.not14, label %23, label %27

23:                                               ; preds = %0
  %24 = getelementptr inbounds i8, ptr %1, i64 16
  %25 = load ptr, ptr %24, align 16, !tbaa !12
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %25)
  br label %27

27:                                               ; preds = %23, %0
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %29 = load <4 x i32>, ptr %18, align 8
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %30)
  %32 = getelementptr inbounds i8, ptr %1, i64 32
  %33 = load i32, ptr %32, align 16, !tbaa !11
  %.not.1 = icmp eq i32 %33, 0
  %34 = select i1 %.not.1, ptr @.str.40, ptr @.str.39
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %34)
  %36 = load i32, ptr %32, align 16, !tbaa !11
  %.not14.1 = icmp eq i32 %36, 0
  br i1 %.not14.1, label %37, label %41

37:                                               ; preds = %27
  %38 = getelementptr inbounds i8, ptr %1, i64 40
  %39 = load ptr, ptr %38, align 8, !tbaa !12
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %39)
  br label %41

41:                                               ; preds = %37, %27
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %43 = load i32, ptr %32, align 16, !tbaa !11
  %44 = load ptr, ptr %5, align 16, !tbaa !5
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %44)
  %46 = getelementptr inbounds i8, ptr %1, i64 56
  %47 = load i32, ptr %46, align 8, !tbaa !11
  %.not.2 = icmp eq i32 %47, 0
  %48 = select i1 %.not.2, ptr @.str.40, ptr @.str.39
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %48)
  %50 = load i32, ptr %46, align 8, !tbaa !11
  %.not14.2 = icmp eq i32 %50, 0
  br i1 %.not14.2, label %51, label %55

51:                                               ; preds = %41
  %52 = getelementptr inbounds i8, ptr %1, i64 64
  %53 = load ptr, ptr %52, align 16, !tbaa !12
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %53)
  br label %55

55:                                               ; preds = %51, %41
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %57 = load i32, ptr %46, align 8, !tbaa !11
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %58)
  %60 = getelementptr inbounds i8, ptr %1, i64 80
  %61 = load i32, ptr %60, align 16, !tbaa !11
  %.not.3 = icmp eq i32 %61, 0
  %62 = select i1 %.not.3, ptr @.str.40, ptr @.str.39
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %62)
  %64 = load i32, ptr %60, align 16, !tbaa !11
  %.not14.3 = icmp eq i32 %64, 0
  br i1 %.not14.3, label %65, label %69

65:                                               ; preds = %55
  %66 = getelementptr inbounds i8, ptr %1, i64 88
  %67 = load ptr, ptr %66, align 8, !tbaa !12
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %67)
  br label %69

69:                                               ; preds = %65, %55
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %71 = load i32, ptr %60, align 16, !tbaa !11
  %72 = load ptr, ptr %7, align 16, !tbaa !5
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %72)
  %74 = getelementptr inbounds i8, ptr %1, i64 104
  %75 = load i32, ptr %74, align 8, !tbaa !11
  %.not.4 = icmp eq i32 %75, 0
  %76 = select i1 %.not.4, ptr @.str.40, ptr @.str.39
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %76)
  %78 = load i32, ptr %74, align 8, !tbaa !11
  %.not14.4 = icmp eq i32 %78, 0
  br i1 %.not14.4, label %79, label %83

79:                                               ; preds = %69
  %80 = getelementptr inbounds i8, ptr %1, i64 112
  %81 = load ptr, ptr %80, align 16, !tbaa !12
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %81)
  br label %83

83:                                               ; preds = %79, %69
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %85 = load i32, ptr %74, align 8, !tbaa !11
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %86)
  %88 = getelementptr inbounds i8, ptr %1, i64 128
  %89 = load i32, ptr %88, align 16, !tbaa !11
  %.not.5 = icmp eq i32 %89, 0
  %90 = select i1 %.not.5, ptr @.str.40, ptr @.str.39
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %90)
  %92 = load i32, ptr %88, align 16, !tbaa !11
  %.not14.5 = icmp eq i32 %92, 0
  br i1 %.not14.5, label %93, label %97

93:                                               ; preds = %83
  %94 = getelementptr inbounds i8, ptr %1, i64 136
  %95 = load ptr, ptr %94, align 8, !tbaa !12
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %95)
  br label %97

97:                                               ; preds = %93, %83
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %99 = load i32, ptr %88, align 16, !tbaa !11
  %100 = load ptr, ptr %9, align 16, !tbaa !5
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %100)
  %102 = getelementptr inbounds i8, ptr %1, i64 152
  %103 = load i32, ptr %102, align 8, !tbaa !11
  %.not.6 = icmp eq i32 %103, 0
  %104 = select i1 %.not.6, ptr @.str.40, ptr @.str.39
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %104)
  %106 = load i32, ptr %102, align 8, !tbaa !11
  %.not14.6 = icmp eq i32 %106, 0
  br i1 %.not14.6, label %107, label %111

107:                                              ; preds = %97
  %108 = getelementptr inbounds i8, ptr %1, i64 160
  %109 = load ptr, ptr %108, align 16, !tbaa !12
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %109)
  br label %111

111:                                              ; preds = %107, %97
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %113 = load i32, ptr %102, align 8, !tbaa !11
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %114)
  %116 = getelementptr inbounds i8, ptr %1, i64 176
  %117 = load i32, ptr %116, align 16, !tbaa !11
  %.not.7 = icmp eq i32 %117, 0
  %118 = select i1 %.not.7, ptr @.str.40, ptr @.str.39
  %119 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %118)
  %120 = load i32, ptr %116, align 16, !tbaa !11
  %.not14.7 = icmp eq i32 %120, 0
  br i1 %.not14.7, label %121, label %125

121:                                              ; preds = %111
  %122 = getelementptr inbounds i8, ptr %1, i64 184
  %123 = load ptr, ptr %122, align 8, !tbaa !12
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %123)
  br label %125

125:                                              ; preds = %121, %111
  %126 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %127 = load i32, ptr %116, align 16, !tbaa !11
  %128 = load ptr, ptr %11, align 16, !tbaa !5
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %128)
  %130 = getelementptr inbounds i8, ptr %1, i64 200
  %131 = load i32, ptr %130, align 8, !tbaa !11
  %.not.8 = icmp eq i32 %131, 0
  %132 = select i1 %.not.8, ptr @.str.40, ptr @.str.39
  %133 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %132)
  %134 = load i32, ptr %130, align 8, !tbaa !11
  %.not14.8 = icmp eq i32 %134, 0
  br i1 %.not14.8, label %135, label %139

135:                                              ; preds = %125
  %136 = getelementptr inbounds i8, ptr %1, i64 208
  %137 = load ptr, ptr %136, align 16, !tbaa !12
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %137)
  br label %139

139:                                              ; preds = %135, %125
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %141 = load i32, ptr %130, align 8, !tbaa !11
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %142)
  %144 = getelementptr inbounds i8, ptr %1, i64 224
  %145 = load i32, ptr %144, align 16, !tbaa !11
  %.not.9 = icmp eq i32 %145, 0
  %146 = select i1 %.not.9, ptr @.str.40, ptr @.str.39
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %146)
  %148 = load i32, ptr %144, align 16, !tbaa !11
  %.not14.9 = icmp eq i32 %148, 0
  br i1 %.not14.9, label %149, label %153

149:                                              ; preds = %139
  %150 = getelementptr inbounds i8, ptr %1, i64 232
  %151 = load ptr, ptr %150, align 8, !tbaa !12
  %152 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %151)
  br label %153

153:                                              ; preds = %149, %139
  %154 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %155 = load i32, ptr %144, align 16, !tbaa !11
  %156 = load ptr, ptr %13, align 16, !tbaa !5
  %157 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %156)
  %158 = getelementptr inbounds i8, ptr %1, i64 248
  %159 = load i32, ptr %158, align 8, !tbaa !11
  %.not.10 = icmp eq i32 %159, 0
  %160 = select i1 %.not.10, ptr @.str.40, ptr @.str.39
  %161 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %160)
  %162 = load i32, ptr %158, align 8, !tbaa !11
  %.not14.10 = icmp eq i32 %162, 0
  br i1 %.not14.10, label %163, label %167

163:                                              ; preds = %153
  %164 = getelementptr inbounds i8, ptr %1, i64 256
  %165 = load ptr, ptr %164, align 16, !tbaa !12
  %166 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef %165)
  br label %167

167:                                              ; preds = %163, %153
  %168 = shufflevector <4 x i32> %29, <4 x i32> poison, <8 x i32> <i32 0, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
  %169 = insertelement <8 x i32> %168, i32 %43, i64 1
  %170 = insertelement <8 x i32> %169, i32 %57, i64 2
  %171 = insertelement <8 x i32> %170, i32 %71, i64 3
  %172 = insertelement <8 x i32> %171, i32 %85, i64 4
  %173 = insertelement <8 x i32> %172, i32 %99, i64 5
  %174 = insertelement <8 x i32> %173, i32 %113, i64 6
  %175 = insertelement <8 x i32> %174, i32 %127, i64 7
  %176 = icmp ne <8 x i32> %175, zeroinitializer
  %.not15.8 = icmp ne i32 %141, 0
  %177 = zext i1 %.not15.8 to i32
  %.not15.9 = icmp ne i32 %155, 0
  %178 = zext i1 %.not15.9 to i32
  %179 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %180 = load i32, ptr %158, align 8, !tbaa !11
  %.not15.10 = icmp ne i32 %180, 0
  %181 = zext i1 %.not15.10 to i32
  %182 = bitcast <8 x i1> %176 to i8
  %183 = call range(i8 0, 9) i8 @llvm.ctpop.i8(i8 %182)
  %184 = zext nneg i8 %183 to i32
  %op.rdx = add nuw nsw i32 %184, %177
  %op.rdx19 = add nuw nsw i32 %178, %181
  %op.rdx20 = add nuw nsw i32 %op.rdx, %op.rdx19
  %185 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.43)
  %186 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.44)
  %187 = mul nuw nsw i32 %op.rdx20, 100
  %188 = uitofp nneg i32 %187 to double
  %189 = fdiv double %188, 1.100000e+01
  %190 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45, i32 noundef %op.rdx20, i32 noundef 11, double noundef %189)
  %191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.46)
  %192 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %193 = call i32 @qrng_init(ptr noundef nonnull %2, ptr noundef nonnull @.str, i64 noundef 23) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #5
  %194 = load ptr, ptr %2, align 8, !tbaa !13
  call void @run_statistical_suite(ptr dead_on_unwind nonnull writable sret(%struct.statistical_results) align 8 %3, ptr noundef %194, i64 noundef 10000000) #5
  call void @print_statistical_results(ptr noundef nonnull %3) #5
  %195 = load ptr, ptr %2, align 8, !tbaa !13
  call void @qrng_free(ptr noundef %195) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 264, ptr nonnull %1) #5
  ret void
}

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

declare void @run_statistical_suite(ptr dead_on_unwind writable sret(%struct.statistical_results) align 8, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @print_statistical_results(ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.ctpop.i8(i8) #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !7, i64 16}
!13 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass