; LLVM IR from JonathanSalwan/Triton :: src/misc/ir_test_suite (ir)

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

; Function Attrs: nounwind uwtable
define dso_local void @init(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  %18 = getelementptr inbounds i32, ptr %17, i64 0
  store i32 286331153, ptr %18, align 4, !tbaa !9
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  %20 = getelementptr inbounds i32, ptr %19, i64 1
  store i32 572662306, ptr %20, align 4, !tbaa !9
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = getelementptr inbounds i32, ptr %21, i64 2
  store i32 858993459, ptr %22, align 4, !tbaa !9
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds i32, ptr %23, i64 3
  store i32 1145324612, ptr %24, align 4, !tbaa !9
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds i32, ptr %25, i64 0
  store i32 -774778415, ptr %26, align 4, !tbaa !9
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = getelementptr inbounds i32, ptr %27, i64 1
  store i32 -1, ptr %28, align 4, !tbaa !9
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = getelementptr inbounds i32, ptr %29, i64 2
  store i32 21845, ptr %30, align 4, !tbaa !9
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds i32, ptr %31, i64 3
  store i32 -2147450880, ptr %32, align 4, !tbaa !9
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = getelementptr inbounds i32, ptr %33, i64 0
  store i32 -774778415, ptr %34, align 4, !tbaa !9
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds i32, ptr %35, i64 1
  store i32 305419896, ptr %36, align 4, !tbaa !9
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds i32, ptr %37, i64 2
  store i32 1435537493, ptr %38, align 4, !tbaa !9
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = getelementptr inbounds i32, ptr %39, i64 3
  store i32 1141969220, ptr %40, align 4, !tbaa !9
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds i32, ptr %41, i64 0
  store i32 -1968526678, ptr %42, align 4, !tbaa !9
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = getelementptr inbounds i32, ptr %43, i64 1
  store i32 -1950630981, ptr %44, align 4, !tbaa !9
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = getelementptr inbounds i32, ptr %45, i64 2
  store i32 305419896, ptr %46, align 4, !tbaa !9
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = getelementptr inbounds i32, ptr %47, i64 3
  store i32 -19088744, ptr %48, align 4, !tbaa !9
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = getelementptr inbounds i32, ptr %49, i64 0
  store i32 327681, ptr %50, align 4, !tbaa !9
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = getelementptr inbounds i32, ptr %51, i64 1
  store i32 720906, ptr %52, align 4, !tbaa !9
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = getelementptr inbounds i32, ptr %53, i64 2
  store i32 16646166, ptr %54, align 4, !tbaa !9
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = getelementptr inbounds i32, ptr %55, i64 3
  store i32 16777471, ptr %56, align 4, !tbaa !9
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = getelementptr inbounds i32, ptr %57, i64 0
  store i32 286331153, ptr %58, align 4, !tbaa !9
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  %60 = getelementptr inbounds i32, ptr %59, i64 1
  store i32 572662306, ptr %60, align 4, !tbaa !9
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = getelementptr inbounds i32, ptr %61, i64 2
  store i32 858993459, ptr %62, align 4, !tbaa !9
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = getelementptr inbounds i32, ptr %63, i64 3
  store i32 -2147450880, ptr %64, align 4, !tbaa !9
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = getelementptr inbounds i32, ptr %65, i64 4
  store i32 1, ptr %66, align 4, !tbaa !9
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = getelementptr inbounds i32, ptr %67, i64 5
  store i32 1717986918, ptr %68, align 4, !tbaa !9
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = getelementptr inbounds i32, ptr %69, i64 6
  store i32 2004318071, ptr %70, align 4, !tbaa !9
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds i32, ptr %71, i64 7
  store i32 -2004318072, ptr %72, align 4, !tbaa !9
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = getelementptr inbounds i32, ptr %73, i64 0
  store i32 302055425, ptr %74, align 4, !tbaa !9
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  %76 = getelementptr inbounds i32, ptr %75, i64 1
  store i32 32766, ptr %76, align 4, !tbaa !9
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds i32, ptr %77, i64 2
  store i32 305419896, ptr %78, align 4, !tbaa !9
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = getelementptr inbounds i32, ptr %79, i64 3
  store i32 4369, ptr %80, align 4, !tbaa !9
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = getelementptr inbounds i32, ptr %81, i64 4
  store i32 16842973, ptr %82, align 4, !tbaa !9
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  %84 = getelementptr inbounds i32, ptr %83, i64 5
  store i32 -2004331179, ptr %84, align 4, !tbaa !9
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = getelementptr inbounds i32, ptr %85, i64 6
  store i32 -1873442638, ptr %86, align 4, !tbaa !9
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = getelementptr inbounds i32, ptr %87, i64 7
  store i32 8738, ptr %88, align 4, !tbaa !9
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = getelementptr inbounds i32, ptr %89, i64 0
  store i32 0, ptr %90, align 4, !tbaa !9
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  %92 = getelementptr inbounds i32, ptr %91, i64 1
  store i32 0, ptr %92, align 4, !tbaa !9
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  %94 = getelementptr inbounds i32, ptr %93, i64 2
  store i32 0, ptr %94, align 4, !tbaa !9
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = getelementptr inbounds i32, ptr %95, i64 3
  store i32 0, ptr %96, align 4, !tbaa !9
  ret void
}

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

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, 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"

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local void @init(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef writeonly %7) local_unnamed_addr #0 {
  store <4 x i32> <i32 286331153, i32 572662306, i32 858993459, i32 1145324612>, ptr %0, align 4, !tbaa !5
  store <4 x i32> <i32 -774778415, i32 -1, i32 21845, i32 -2147450880>, ptr %1, align 4, !tbaa !5
  store <4 x i32> <i32 -774778415, i32 305419896, i32 1435537493, i32 1141969220>, ptr %2, align 4, !tbaa !5
  store <4 x i32> <i32 -1968526678, i32 -1950630981, i32 305419896, i32 -19088744>, ptr %3, align 4, !tbaa !5
  store <4 x i32> <i32 327681, i32 720906, i32 16646166, i32 16777471>, ptr %4, align 4, !tbaa !5
  store <4 x i32> <i32 286331153, i32 572662306, i32 858993459, i32 -2147450880>, ptr %5, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %5, i64 16
  store <4 x i32> <i32 1, i32 1717986918, i32 2004318071, i32 -2004318072>, ptr %9, align 4, !tbaa !5
  store <4 x i32> <i32 302055425, i32 32766, i32 305419896, i32 4369>, ptr %6, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %6, i64 16
  store <4 x i32> <i32 16842973, i32 -2004331179, i32 -1873442638, i32 8738>, ptr %10, align 4, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %7, i8 0, i64 16, i1 false)
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) 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 nounwind willreturn memory(argmem: write) }

!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"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,TailCallElimPass