; LLVM IR from microsoft/Multiverso :: Applications/WordEmbedding/src/util.ll (ZN13wordembedding6OptionC2Ev)

; 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.wordembedding::Option" = type <{ ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, [2 x i8], float, [4 x i8], i64, i32, i32, i32, i32, i32, i32, i64, i64, float, [4 x i8] }>

@.str = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN13wordembedding6OptionC2Ev(ptr noundef nonnull align 8 dereferenceable(108) %0) unnamed_addr #0 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  %4 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 0
  store ptr null, ptr %4, align 8, !tbaa !9
  %5 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 1
  store ptr null, ptr %5, align 8, !tbaa !15
  %6 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 2
  store ptr null, ptr %6, align 8, !tbaa !16
  %7 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 3
  store ptr null, ptr %7, align 8, !tbaa !17
  %8 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 4
  store ptr @.str, ptr %8, align 8, !tbaa !18
  %9 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 5
  store i8 0, ptr %9, align 8, !tbaa !19
  %10 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 18
  store i32 5, ptr %10, align 4, !tbaa !20
  %11 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 6
  store i8 0, ptr %11, align 1, !tbaa !21
  %12 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 12
  store float 0.000000e+00, ptr %12, align 8, !tbaa !22
  %13 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 7
  store i8 1, ptr %13, align 2, !tbaa !23
  %14 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 15
  store i32 100, ptr %14, align 8, !tbaa !24
  %15 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 16
  store i32 1, ptr %15, align 4, !tbaa !25
  %16 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 17
  store i32 5, ptr %16, align 8, !tbaa !26
  %17 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 19
  store i32 5, ptr %17, align 8, !tbaa !27
  %18 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 14
  store i64 1000000, ptr %18, align 8, !tbaa !28
  %19 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 23
  store float 0x3F999999A0000000, ptr %19, align 8, !tbaa !29
  %20 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 20
  store i32 1, ptr %20, align 4, !tbaa !30
  %21 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 8
  store i8 0, ptr %21, align 1, !tbaa !31
  %22 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 10
  store i8 1, ptr %22, align 1, !tbaa !32
  %23 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 21
  store i64 0, ptr %23, align 8, !tbaa !33
  %24 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 22
  store i64 8000000000, ptr %24, align 8, !tbaa !34
  %25 = getelementptr inbounds %"struct.wordembedding::Option", ptr %3, i32 0, i32 9
  store i8 0, ptr %25, align 4, !tbaa !35
  ret void
}

attributes #0 = { 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" }

!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, !6, i64 0}
!10 = !{!"_ZTSN13wordembedding6OptionE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !11, i64 41, !11, i64 42, !11, i64 43, !11, i64 44, !11, i64 45, !12, i64 48, !13, i64 56, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !13, i64 88, !13, i64 96, !12, i64 104}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!10, !6, i64 8}
!16 = !{!10, !6, i64 16}
!17 = !{!10, !6, i64 24}
!18 = !{!10, !6, i64 32}
!19 = !{!10, !11, i64 40}
!20 = !{!10, !14, i64 76}
!21 = !{!10, !11, i64 41}
!22 = !{!10, !12, i64 48}
!23 = !{!10, !11, i64 42}
!24 = !{!10, !14, i64 64}
!25 = !{!10, !14, i64 68}
!26 = !{!10, !14, i64 72}
!27 = !{!10, !14, i64 80}
!28 = !{!10, !13, i64 56}
!29 = !{!10, !12, i64 104}
!30 = !{!10, !14, i64 84}
!31 = !{!10, !11, i64 43}
!32 = !{!10, !11, i64 45}
!33 = !{!10, !13, i64 88}
!34 = !{!10, !13, i64 96}
!35 = !{!10, !11, i64 44}


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

@.str = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local void @_ZN13wordembedding6OptionC2Ev(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(108) %0) unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 0, i64 32, i1 false)
  store ptr @.str, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  store i8 0, ptr %3, align 8, !tbaa !14
  %4 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 5, ptr %4, align 4, !tbaa !15
  %5 = getelementptr inbounds i8, ptr %0, i64 41
  store i8 0, ptr %5, align 1, !tbaa !16
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  store float 0.000000e+00, ptr %6, align 8, !tbaa !17
  %7 = getelementptr inbounds i8, ptr %0, i64 42
  store i8 1, ptr %7, align 2, !tbaa !18
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 100, ptr %8, align 8, !tbaa !19
  %9 = getelementptr inbounds i8, ptr %0, i64 68
  store i32 1, ptr %9, align 4, !tbaa !20
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 5, ptr %10, align 8, !tbaa !21
  %11 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 5, ptr %11, align 8, !tbaa !22
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 1000000, ptr %12, align 8, !tbaa !23
  %13 = getelementptr inbounds i8, ptr %0, i64 104
  store float 0x3F999999A0000000, ptr %13, align 8, !tbaa !24
  %14 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 1, ptr %14, align 4, !tbaa !25
  %15 = getelementptr inbounds i8, ptr %0, i64 43
  store i8 0, ptr %15, align 1, !tbaa !26
  %16 = getelementptr inbounds i8, ptr %0, i64 45
  store i8 1, ptr %16, align 1, !tbaa !27
  %17 = getelementptr inbounds i8, ptr %0, i64 88
  store i64 0, ptr %17, align 8, !tbaa !28
  %18 = getelementptr inbounds i8, ptr %0, i64 96
  store i64 8000000000, ptr %18, align 8, !tbaa !29
  %19 = getelementptr inbounds i8, ptr %0, i64 44
  store i8 0, ptr %19, align 4, !tbaa !30
  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, !7, i64 32}
!6 = !{!"_ZTSN13wordembedding6OptionE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 41, !10, i64 42, !10, i64 43, !10, i64 44, !10, i64 45, !11, i64 48, !12, i64 56, !13, i64 64, !13, i64 68, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !12, i64 88, !12, i64 96, !11, i64 104}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!6, !10, i64 40}
!15 = !{!6, !13, i64 76}
!16 = !{!6, !10, i64 41}
!17 = !{!6, !11, i64 48}
!18 = !{!6, !10, i64 42}
!19 = !{!6, !13, i64 64}
!20 = !{!6, !13, i64 68}
!21 = !{!6, !13, i64 72}
!22 = !{!6, !13, i64 80}
!23 = !{!6, !12, i64 56}
!24 = !{!6, !11, i64 104}
!25 = !{!6, !13, i64 84}
!26 = !{!6, !10, i64 43}
!27 = !{!6, !10, i64 45}
!28 = !{!6, !12, i64 88}
!29 = !{!6, !12, i64 96}
!30 = !{!6, !10, i64 44}


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