; LLVM IR from ERGO-Code/HiGHS :: src/lp_data/HighsInfo.ll (ZN9HighsInfo10invalidateEv)

; 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.HighsInfoStruct = type { i8, i64, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, i32, double, double, i32, double, double, double, double, double }

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN9HighsInfo10invalidateEv(ptr noundef nonnull align 8 dereferenceable(184) %0) #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 i8, ptr %3, i64 8
  %5 = getelementptr inbounds %struct.HighsInfoStruct, ptr %4, i32 0, i32 0
  store i8 0, ptr %5, align 8, !tbaa !9
  %6 = getelementptr inbounds i8, ptr %3, i64 8
  %7 = getelementptr inbounds %struct.HighsInfoStruct, ptr %6, i32 0, i32 1
  store i64 -1, ptr %7, align 8, !tbaa !15
  %8 = getelementptr inbounds i8, ptr %3, i64 8
  %9 = getelementptr inbounds %struct.HighsInfoStruct, ptr %8, i32 0, i32 2
  store i32 -1, ptr %9, align 8, !tbaa !16
  %10 = getelementptr inbounds i8, ptr %3, i64 8
  %11 = getelementptr inbounds %struct.HighsInfoStruct, ptr %10, i32 0, i32 3
  store i32 -1, ptr %11, align 4, !tbaa !17
  %12 = getelementptr inbounds i8, ptr %3, i64 8
  %13 = getelementptr inbounds %struct.HighsInfoStruct, ptr %12, i32 0, i32 4
  store i32 -1, ptr %13, align 8, !tbaa !18
  %14 = getelementptr inbounds i8, ptr %3, i64 8
  %15 = getelementptr inbounds %struct.HighsInfoStruct, ptr %14, i32 0, i32 5
  store i32 -1, ptr %15, align 4, !tbaa !19
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  %17 = getelementptr inbounds %struct.HighsInfoStruct, ptr %16, i32 0, i32 6
  store i32 -1, ptr %17, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %3, i64 8
  %19 = getelementptr inbounds %struct.HighsInfoStruct, ptr %18, i32 0, i32 7
  store i32 0, ptr %19, align 4, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %3, i64 8
  %21 = getelementptr inbounds %struct.HighsInfoStruct, ptr %20, i32 0, i32 8
  store i32 0, ptr %21, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %3, i64 8
  %23 = getelementptr inbounds %struct.HighsInfoStruct, ptr %22, i32 0, i32 9
  store i32 0, ptr %23, align 4, !tbaa !23
  %24 = getelementptr inbounds i8, ptr %3, i64 8
  %25 = getelementptr inbounds %struct.HighsInfoStruct, ptr %24, i32 0, i32 10
  store double 0.000000e+00, ptr %25, align 8, !tbaa !24
  %26 = getelementptr inbounds i8, ptr %3, i64 8
  %27 = getelementptr inbounds %struct.HighsInfoStruct, ptr %26, i32 0, i32 11
  store double 0.000000e+00, ptr %27, align 8, !tbaa !25
  %28 = getelementptr inbounds i8, ptr %3, i64 8
  %29 = getelementptr inbounds %struct.HighsInfoStruct, ptr %28, i32 0, i32 12
  store double 0x7FF0000000000000, ptr %29, align 8, !tbaa !26
  %30 = getelementptr inbounds i8, ptr %3, i64 8
  %31 = getelementptr inbounds %struct.HighsInfoStruct, ptr %30, i32 0, i32 13
  store double 0x7FF0000000000000, ptr %31, align 8, !tbaa !27
  %32 = getelementptr inbounds i8, ptr %3, i64 8
  %33 = getelementptr inbounds %struct.HighsInfoStruct, ptr %32, i32 0, i32 14
  store i32 -1, ptr %33, align 8, !tbaa !28
  %34 = getelementptr inbounds i8, ptr %3, i64 8
  %35 = getelementptr inbounds %struct.HighsInfoStruct, ptr %34, i32 0, i32 15
  store double 0x7FF0000000000000, ptr %35, align 8, !tbaa !29
  %36 = getelementptr inbounds i8, ptr %3, i64 8
  %37 = getelementptr inbounds %struct.HighsInfoStruct, ptr %36, i32 0, i32 16
  store double 0x7FF0000000000000, ptr %37, align 8, !tbaa !30
  %38 = getelementptr inbounds i8, ptr %3, i64 8
  %39 = getelementptr inbounds %struct.HighsInfoStruct, ptr %38, i32 0, i32 17
  store i32 -1, ptr %39, align 8, !tbaa !31
  %40 = getelementptr inbounds i8, ptr %3, i64 8
  %41 = getelementptr inbounds %struct.HighsInfoStruct, ptr %40, i32 0, i32 18
  store double 0x7FF0000000000000, ptr %41, align 8, !tbaa !32
  %42 = getelementptr inbounds i8, ptr %3, i64 8
  %43 = getelementptr inbounds %struct.HighsInfoStruct, ptr %42, i32 0, i32 19
  store double 0x7FF0000000000000, ptr %43, align 8, !tbaa !33
  %44 = getelementptr inbounds i8, ptr %3, i64 8
  %45 = getelementptr inbounds %struct.HighsInfoStruct, ptr %44, i32 0, i32 20
  store double 0x7FF0000000000000, ptr %45, align 8, !tbaa !34
  %46 = getelementptr inbounds i8, ptr %3, i64 8
  %47 = getelementptr inbounds %struct.HighsInfoStruct, ptr %46, i32 0, i32 21
  store double 0x7FF0000000000000, ptr %47, align 8, !tbaa !35
  %48 = getelementptr inbounds i8, ptr %3, i64 8
  %49 = getelementptr inbounds %struct.HighsInfoStruct, ptr %48, i32 0, i32 22
  store double 0xFFF0000000000000, ptr %49, align 8, !tbaa !36
  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, !11, i64 0}
!10 = !{!"_ZTS15HighsInfoStruct", !11, i64 0, !12, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !13, i64 80, !14, i64 88, !14, i64 96, !13, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!10, !12, i64 8}
!16 = !{!10, !13, i64 16}
!17 = !{!10, !13, i64 20}
!18 = !{!10, !13, i64 24}
!19 = !{!10, !13, i64 28}
!20 = !{!10, !13, i64 32}
!21 = !{!10, !13, i64 36}
!22 = !{!10, !13, i64 40}
!23 = !{!10, !13, i64 44}
!24 = !{!10, !14, i64 48}
!25 = !{!10, !14, i64 56}
!26 = !{!10, !14, i64 64}
!27 = !{!10, !14, i64 72}
!28 = !{!10, !13, i64 80}
!29 = !{!10, !14, i64 88}
!30 = !{!10, !14, i64 96}
!31 = !{!10, !13, i64 104}
!32 = !{!10, !14, i64 112}
!33 = !{!10, !14, i64 120}
!34 = !{!10, !14, i64 128}
!35 = !{!10, !14, i64 136}
!36 = !{!10, !14, i64 144}


; 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 @_ZN9HighsInfo10invalidateEv(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(184) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  store i8 0, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = getelementptr inbounds i8, ptr %0, i64 44
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(28) %3, i8 -1, i64 28, i1 false)
  %5 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(28) %4, i8 0, i64 28, i1 false)
  store <2 x double> <double 0x7FF0000000000000, double 0x7FF0000000000000>, ptr %5, align 8, !tbaa !13
  %6 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 -1, ptr %6, align 8, !tbaa !14
  %7 = getelementptr inbounds i8, ptr %0, i64 96
  store <2 x double> <double 0x7FF0000000000000, double 0x7FF0000000000000>, ptr %7, align 8, !tbaa !13
  %8 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 -1, ptr %8, align 8, !tbaa !15
  %9 = getelementptr inbounds i8, ptr %0, i64 120
  store <2 x double> <double 0x7FF0000000000000, double 0x7FF0000000000000>, ptr %9, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %0, i64 136
  store <2 x double> <double 0x7FF0000000000000, double 0x7FF0000000000000>, ptr %10, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %0, i64 152
  store double 0xFFF0000000000000, ptr %11, align 8, !tbaa !16
  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 0}
!6 = !{!"_ZTS15HighsInfoStruct", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !11, i64 80, !12, i64 88, !12, i64 96, !11, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!6, !11, i64 80}
!15 = !{!6, !11, i64 104}
!16 = !{!6, !12, i64 144}


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