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

; 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 @_Z28resetModelStatusAndHighsInfoR16HighsModelStatusR9HighsInfo(ptr noundef nonnull align 4 dereferenceable(4) %0, ptr noundef nonnull align 8 dereferenceable(184) %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %5 = load ptr, ptr %3, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !9
  %6 = load ptr, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 8
  %8 = getelementptr inbounds %struct.HighsInfoStruct, ptr %7, i32 0, i32 10
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  %11 = getelementptr inbounds %struct.HighsInfoStruct, ptr %10, i32 0, i32 7
  store i32 0, ptr %11, align 4, !tbaa !17
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = getelementptr inbounds %struct.HighsInfoStruct, ptr %13, i32 0, i32 8
  store i32 0, ptr %14, align 8, !tbaa !18
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = getelementptr inbounds %struct.HighsInfoStruct, ptr %16, i32 0, i32 14
  store i32 -1, ptr %17, align 8, !tbaa !19
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = getelementptr inbounds %struct.HighsInfoStruct, ptr %19, i32 0, i32 15
  store double 0x7FF0000000000000, ptr %20, align 8, !tbaa !20
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = getelementptr inbounds %struct.HighsInfoStruct, ptr %22, i32 0, i32 16
  store double 0x7FF0000000000000, ptr %23, align 8, !tbaa !21
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = getelementptr inbounds %struct.HighsInfoStruct, ptr %25, i32 0, i32 17
  store i32 -1, ptr %26, align 8, !tbaa !22
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = getelementptr inbounds %struct.HighsInfoStruct, ptr %28, i32 0, i32 18
  store double 0x7FF0000000000000, ptr %29, align 8, !tbaa !23
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = getelementptr inbounds %struct.HighsInfoStruct, ptr %31, i32 0, i32 19
  store double 0x7FF0000000000000, ptr %32, align 8, !tbaa !24
  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, !10, i64 0}
!10 = !{!"_ZTS16HighsModelStatus", !7, i64 0}
!11 = !{!12, !16, i64 48}
!12 = !{!"_ZTS15HighsInfoStruct", !13, i64 0, !14, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !15, i64 80, !16, i64 88, !16, i64 96, !15, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!12, !15, i64 36}
!18 = !{!12, !15, i64 40}
!19 = !{!12, !15, i64 80}
!20 = !{!12, !16, i64 88}
!21 = !{!12, !16, i64 96}
!22 = !{!12, !15, i64 104}
!23 = !{!12, !16, i64 112}
!24 = !{!12, !16, i64 120}


; 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 @_Z28resetModelStatusAndHighsInfoR16HighsModelStatusR9HighsInfo(ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %0, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(184) %1) local_unnamed_addr #0 {
  store i32 0, ptr %0, align 4, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %1, i64 56
  store double 0.000000e+00, ptr %3, align 8, !tbaa !9
  %4 = getelementptr inbounds i8, ptr %1, i64 44
  store i32 0, ptr %4, align 4, !tbaa !15
  %5 = getelementptr inbounds i8, ptr %1, i64 48
  store i32 0, ptr %5, align 8, !tbaa !16
  %6 = getelementptr inbounds i8, ptr %1, i64 88
  store i32 -1, ptr %6, align 8, !tbaa !17
  %7 = getelementptr inbounds i8, ptr %1, i64 96
  store <2 x double> <double 0x7FF0000000000000, double 0x7FF0000000000000>, ptr %7, align 8, !tbaa !18
  %8 = getelementptr inbounds i8, ptr %1, i64 112
  store i32 -1, ptr %8, align 8, !tbaa !19
  %9 = getelementptr inbounds i8, ptr %1, i64 120
  store <2 x double> <double 0x7FF0000000000000, double 0x7FF0000000000000>, ptr %9, align 8, !tbaa !18
  ret void
}

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

!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 = !{!"_ZTS16HighsModelStatus", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 48}
!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, !13, i64 36}
!16 = !{!10, !13, i64 40}
!17 = !{!10, !13, i64 80}
!18 = !{!14, !14, i64 0}
!19 = !{!10, !13, i64 104}


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