; LLVM IR from t-dillon/tdoku :: src/grid_tools.ll (Z13SamplePuzzlesl)

; 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.std::mersenne_twister_engine.2" = type { [312 x i64], i64 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<unsigned long>::param_type" }
%"struct.std::uniform_int_distribution<unsigned long>::param_type" = type { i64, i64 }

@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZN12_GLOBAL__N_13rngE = external hidden global %"class.std::mersenne_twister_engine.2", align 8
@_ZN12_GLOBAL__N_111random_uintE = external hidden global %"class.std::uniform_int_distribution", align 8
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1

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

declare i32 @printf(ptr noundef, ...) #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
declare dso_local noundef ptr @_Z8MMapFilePKc(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(2504)) #2 align 2

declare void @GetGrid(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13SamplePuzzlesl(i64 noundef %0) #2 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [81 x i8], align 16
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca double, align 8
  store i64 %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %13 = call noundef ptr @_Z8MMapFilePKc(ptr noundef @.str.2)
  store ptr %13, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %14 = call noundef ptr @_Z8MMapFilePKc(ptr noundef @.str.3)
  store ptr %14, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 81, ptr %5) #3
  br label %15

15:                                               ; preds = %58, %1
  %16 = load i64, ptr %2, align 8, !tbaa !5
  %17 = icmp ne i64 %16, 0
  br i1 %17, label %18, label %59

18:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %19 = call noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_(ptr noundef nonnull align 8 dereferenceable(16) @_ZN12_GLOBAL__N_111random_uintE, ptr noundef nonnull align 8 dereferenceable(2504) @_ZN12_GLOBAL__N_13rngE)
  %20 = urem i64 %19, 3546146300288
  store i64 %20, ptr %6, align 8, !tbaa !5
  %21 = load i64, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !9
  %23 = load ptr, ptr %3, align 8, !tbaa !9
  %24 = getelementptr inbounds [81 x i8], ptr %5, i64 0, i64 0
  call void @GetGrid(i64 noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
  %25 = getelementptr inbounds [81 x i8], ptr %5, i64 0, i64 0
  %26 = call zeroext i1 @TdokuMinimize(i1 noundef zeroext false, i1 noundef zeroext true, ptr noundef %25)
  br i1 %26, label %27, label %58

27:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store ptr %5, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %28 = load ptr, ptr %8, align 8, !tbaa !9
  %29 = getelementptr inbounds [81 x i8], ptr %28, i64 0, i64 0
  store ptr %29, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %30 = load ptr, ptr %8, align 8, !tbaa !9
  %31 = getelementptr inbounds [81 x i8], ptr %30, i64 0, i64 0
  %32 = getelementptr inbounds i8, ptr %31, i64 81
  store ptr %32, ptr %10, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %47, %27
  %34 = load ptr, ptr %9, align 8, !tbaa !9
  %35 = load ptr, ptr %10, align 8, !tbaa !9
  %36 = icmp ne ptr %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %50

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #3
  %39 = load ptr, ptr %9, align 8, !tbaa !9
  %40 = load i8, ptr %39, align 1, !tbaa !13
  store i8 %40, ptr %11, align 1, !tbaa !13
  %41 = load i8, ptr %11, align 1, !tbaa !13
  %42 = sext i8 %41 to i32
  %43 = icmp ne i32 %42, 46
  %44 = zext i1 %43 to i32
  %45 = load i32, ptr %7, align 4, !tbaa !11
  %46 = add nsw i32 %45, %44
  store i32 %46, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  br label %47

47:                                               ; preds = %38
  %48 = load ptr, ptr %9, align 8, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %48, i32 1
  store ptr %49, ptr %9, align 8, !tbaa !9
  br label %33

50:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %51 = load i32, ptr %7, align 4, !tbaa !11
  %52 = call noundef double @_ZL14SamplingWeighti(i32 noundef %51)
  store double %52, ptr %12, align 8, !tbaa !14
  %53 = getelementptr inbounds [81 x i8], ptr %5, i64 0, i64 0
  %54 = load double, ptr %12, align 8, !tbaa !14
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %53, double noundef %54)
  %56 = load i64, ptr %2, align 8, !tbaa !5
  %57 = add nsw i64 %56, -1
  store i64 %57, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %58

58:                                               ; preds = %50, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %15, !llvm.loop !16

59:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 81, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

declare zeroext i1 @TdokuMinimize(i1 noundef zeroext, i1 noundef zeroext, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZL14SamplingWeighti(i32 noundef) #2

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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; 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.std::mersenne_twister_engine.2" = type { [312 x i64], i64 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<unsigned long>::param_type" }
%"struct.std::uniform_int_distribution<unsigned long>::param_type" = type { i64, i64 }

@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZN12_GLOBAL__N_13rngE = external hidden global %"class.std::mersenne_twister_engine.2", align 8
@_ZN12_GLOBAL__N_111random_uintE = external hidden global %"class.std::uniform_int_distribution", align 8
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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
declare dso_local noundef ptr @_Z8MMapFilePKc(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(2504)) local_unnamed_addr #2 align 2

declare void @GetGrid(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13SamplePuzzlesl(i64 noundef %0) local_unnamed_addr #2 {
  %2 = alloca [81 x i8], align 16
  %3 = tail call noundef ptr @_Z8MMapFilePKc(ptr noundef nonnull @.str.2)
  %4 = tail call noundef ptr @_Z8MMapFilePKc(ptr noundef nonnull @.str.3)
  call void @llvm.lifetime.start.p0(i64 81, ptr nonnull %2) #5
  %.not19 = icmp eq i64 %0, 0
  br i1 %.not19, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %1
  %5 = getelementptr inbounds i8, ptr %2, i64 4
  %6 = getelementptr inbounds i8, ptr %2, i64 12
  %7 = getelementptr inbounds i8, ptr %2, i64 20
  %8 = getelementptr inbounds i8, ptr %2, i64 28
  %9 = getelementptr inbounds i8, ptr %2, i64 36
  %10 = getelementptr inbounds i8, ptr %2, i64 44
  %11 = getelementptr inbounds i8, ptr %2, i64 52
  %12 = getelementptr inbounds i8, ptr %2, i64 60
  %13 = getelementptr inbounds i8, ptr %2, i64 68
  %14 = getelementptr inbounds i8, ptr %2, i64 76
  %15 = getelementptr inbounds i8, ptr %2, i64 8
  %16 = getelementptr inbounds i8, ptr %2, i64 16
  %17 = getelementptr inbounds i8, ptr %2, i64 24
  %18 = getelementptr inbounds i8, ptr %2, i64 32
  %19 = getelementptr inbounds i8, ptr %2, i64 40
  %20 = getelementptr inbounds i8, ptr %2, i64 48
  %21 = getelementptr inbounds i8, ptr %2, i64 56
  %22 = getelementptr inbounds i8, ptr %2, i64 64
  %23 = getelementptr inbounds i8, ptr %2, i64 72
  %.015.ptr = getelementptr inbounds i8, ptr %2, i64 80
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %93
  %.020 = phi i64 [ %.1, %93 ], [ %0, %.lr.ph.preheader ]
  %24 = call noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_(ptr noundef nonnull align 8 dereferenceable(16) @_ZN12_GLOBAL__N_111random_uintE, ptr noundef nonnull align 8 dereferenceable(2504) @_ZN12_GLOBAL__N_13rngE)
  %25 = urem i64 %24, 3546146300288
  call void @GetGrid(i64 noundef %25, ptr noundef %4, ptr noundef %3, ptr noundef nonnull %2)
  %26 = call zeroext i1 @TdokuMinimize(i1 noundef zeroext false, i1 noundef zeroext true, ptr noundef nonnull %2)
  br i1 %26, label %.preheader, label %93

.preheader:                                       ; preds = %.lr.ph
  %wide.load22 = load <4 x i8>, ptr %5, align 4, !tbaa !5
  %27 = icmp ne <4 x i8> %wide.load22, <i8 46, i8 46, i8 46, i8 46>
  %28 = zext <4 x i1> %27 to <4 x i32>
  %wide.load22.1 = load <4 x i8>, ptr %6, align 4, !tbaa !5
  %29 = icmp ne <4 x i8> %wide.load22.1, <i8 46, i8 46, i8 46, i8 46>
  %30 = zext <4 x i1> %29 to <4 x i32>
  %31 = add nuw nsw <4 x i32> %28, %30
  %wide.load22.2 = load <4 x i8>, ptr %7, align 4, !tbaa !5
  %32 = icmp ne <4 x i8> %wide.load22.2, <i8 46, i8 46, i8 46, i8 46>
  %33 = zext <4 x i1> %32 to <4 x i32>
  %34 = add nuw nsw <4 x i32> %31, %33
  %wide.load22.3 = load <4 x i8>, ptr %8, align 4, !tbaa !5
  %35 = icmp ne <4 x i8> %wide.load22.3, <i8 46, i8 46, i8 46, i8 46>
  %36 = zext <4 x i1> %35 to <4 x i32>
  %37 = add nuw nsw <4 x i32> %34, %36
  %wide.load22.4 = load <4 x i8>, ptr %9, align 4, !tbaa !5
  %38 = icmp ne <4 x i8> %wide.load22.4, <i8 46, i8 46, i8 46, i8 46>
  %39 = zext <4 x i1> %38 to <4 x i32>
  %40 = add nuw nsw <4 x i32> %37, %39
  %wide.load22.5 = load <4 x i8>, ptr %10, align 4, !tbaa !5
  %41 = icmp ne <4 x i8> %wide.load22.5, <i8 46, i8 46, i8 46, i8 46>
  %42 = zext <4 x i1> %41 to <4 x i32>
  %43 = add nuw nsw <4 x i32> %40, %42
  %wide.load22.6 = load <4 x i8>, ptr %11, align 4, !tbaa !5
  %44 = icmp ne <4 x i8> %wide.load22.6, <i8 46, i8 46, i8 46, i8 46>
  %45 = zext <4 x i1> %44 to <4 x i32>
  %46 = add nuw nsw <4 x i32> %43, %45
  %wide.load22.7 = load <4 x i8>, ptr %12, align 4, !tbaa !5
  %47 = icmp ne <4 x i8> %wide.load22.7, <i8 46, i8 46, i8 46, i8 46>
  %48 = zext <4 x i1> %47 to <4 x i32>
  %49 = add <4 x i32> %46, %48
  %wide.load22.8 = load <4 x i8>, ptr %13, align 4, !tbaa !5
  %50 = icmp ne <4 x i8> %wide.load22.8, <i8 46, i8 46, i8 46, i8 46>
  %51 = zext <4 x i1> %50 to <4 x i32>
  %52 = add <4 x i32> %49, %51
  %wide.load22.9 = load <4 x i8>, ptr %14, align 4, !tbaa !5
  %53 = icmp ne <4 x i8> %wide.load22.9, <i8 46, i8 46, i8 46, i8 46>
  %54 = zext <4 x i1> %53 to <4 x i32>
  %55 = add <4 x i32> %52, %54
  %wide.load = load <4 x i8>, ptr %2, align 16, !tbaa !5
  %56 = icmp ne <4 x i8> %wide.load, <i8 46, i8 46, i8 46, i8 46>
  %57 = zext <4 x i1> %56 to <4 x i32>
  %wide.load.1 = load <4 x i8>, ptr %15, align 8, !tbaa !5
  %58 = icmp ne <4 x i8> %wide.load.1, <i8 46, i8 46, i8 46, i8 46>
  %59 = zext <4 x i1> %58 to <4 x i32>
  %60 = add nuw nsw <4 x i32> %57, %59
  %wide.load.2 = load <4 x i8>, ptr %16, align 16, !tbaa !5
  %61 = icmp ne <4 x i8> %wide.load.2, <i8 46, i8 46, i8 46, i8 46>
  %62 = zext <4 x i1> %61 to <4 x i32>
  %63 = add nuw nsw <4 x i32> %60, %62
  %wide.load.3 = load <4 x i8>, ptr %17, align 8, !tbaa !5
  %64 = icmp ne <4 x i8> %wide.load.3, <i8 46, i8 46, i8 46, i8 46>
  %65 = zext <4 x i1> %64 to <4 x i32>
  %66 = add nuw nsw <4 x i32> %63, %65
  %wide.load.4 = load <4 x i8>, ptr %18, align 16, !tbaa !5
  %67 = icmp ne <4 x i8> %wide.load.4, <i8 46, i8 46, i8 46, i8 46>
  %68 = zext <4 x i1> %67 to <4 x i32>
  %69 = add nuw nsw <4 x i32> %66, %68
  %wide.load.5 = load <4 x i8>, ptr %19, align 8, !tbaa !5
  %70 = icmp ne <4 x i8> %wide.load.5, <i8 46, i8 46, i8 46, i8 46>
  %71 = zext <4 x i1> %70 to <4 x i32>
  %72 = add nuw nsw <4 x i32> %69, %71
  %wide.load.6 = load <4 x i8>, ptr %20, align 16, !tbaa !5
  %73 = icmp ne <4 x i8> %wide.load.6, <i8 46, i8 46, i8 46, i8 46>
  %74 = zext <4 x i1> %73 to <4 x i32>
  %75 = add nuw nsw <4 x i32> %72, %74
  %wide.load.7 = load <4 x i8>, ptr %21, align 8, !tbaa !5
  %76 = icmp ne <4 x i8> %wide.load.7, <i8 46, i8 46, i8 46, i8 46>
  %77 = zext <4 x i1> %76 to <4 x i32>
  %78 = add <4 x i32> %75, %77
  %wide.load.8 = load <4 x i8>, ptr %22, align 16, !tbaa !5
  %79 = icmp ne <4 x i8> %wide.load.8, <i8 46, i8 46, i8 46, i8 46>
  %80 = zext <4 x i1> %79 to <4 x i32>
  %81 = add <4 x i32> %78, %80
  %wide.load.9 = load <4 x i8>, ptr %23, align 8, !tbaa !5
  %82 = icmp ne <4 x i8> %wide.load.9, <i8 46, i8 46, i8 46, i8 46>
  %83 = zext <4 x i1> %82 to <4 x i32>
  %84 = add <4 x i32> %81, %83
  %bin.rdx = add <4 x i32> %55, %84
  %85 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %86 = load i8, ptr %.015.ptr, align 16, !tbaa !5
  %87 = icmp ne i8 %86, 46
  %88 = zext i1 %87 to i32
  %89 = add nuw nsw i32 %85, %88
  %90 = call noundef double @_ZL14SamplingWeighti(i32 noundef %89)
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef nonnull %2, double noundef %90)
  %92 = add nsw i64 %.020, -1
  br label %93

93:                                               ; preds = %.preheader, %.lr.ph
  %.1 = phi i64 [ %92, %.preheader ], [ %.020, %.lr.ph ]
  %.not = icmp eq i64 %.1, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %93, %1
  call void @llvm.lifetime.end.p0(i64 81, ptr nonnull %2) #5
  ret void
}

declare zeroext i1 @TdokuMinimize(i1 noundef zeroext, i1 noundef zeroext, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZL14SamplingWeighti(i32 noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


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