; LLVM IR from sympiler/nasoq :: src/nasoq_step.ll (ZN5nasoq9NasoqStep17check_step_statusEi)

; 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::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"struct.nasoq::NasoqStep" = type <{ %"struct.nasoq::Nasoq", i32, i32, i32, i32, i32, [4 x i8], double, double, double, i32, i32, i32, [4 x i8] }>
%"struct.nasoq::Nasoq" = type { %"class.std::__cxx11::basic_string", i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, double, double, double, double, double, double, double, double, double, i32, i32, i32, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, ptr, ptr, ptr, ptr, ptr, ptr, double, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::vector", ptr, i32, i32, i32, i32, i32, i32, i32, i32, ptr, double, double, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.nasoq::qp_info" = type { %"class.std::chrono::time_point", %"class.std::chrono::time_point", %"class.std::chrono::time_point", %"class.std::chrono::time_point", %"class.std::chrono::time_point", %"class.std::chrono::time_point", i8, %"class.std::chrono::duration.3", double, double, double, i32, i32, i32, i32 }
%"class.std::chrono::duration.3" = type { double }

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

declare noundef i32 @_ZN5nasoq5Nasoq12initialize_xEv(ptr noundef nonnull align 8 dereferenceable(624)) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5nasoq9NasoqStep17check_step_statusEi(ptr noundef nonnull align 8 dereferenceable(684) %0, i32 noundef %1) #3 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::chrono::time_point", align 8
  %7 = alloca %"class.std::chrono::time_point", align 8
  %8 = alloca %"class.std::chrono::time_point", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %9 = load ptr, ptr %4, align 8
  %10 = getelementptr inbounds %"struct.nasoq::NasoqStep", ptr %9, i32 0, i32 11
  %11 = load i32, ptr %10, align 4, !tbaa !11
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %20, label %13

13:                                               ; preds = %2
  %14 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 58
  %15 = load i32, ptr %14, align 4, !tbaa !25
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr %14, align 4, !tbaa !25
  %17 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 69
  store i32 4, ptr %17, align 4, !tbaa !26
  %18 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 69
  %19 = load i32, ptr %18, align 4, !tbaa !26
  store i32 %19, ptr %3, align 4
  br label %141

20:                                               ; preds = %2
  call void @_ZN5nasoq5Nasoq18detect_solver_nameEv(ptr noundef nonnull align 8 dereferenceable(624) %9)
  %21 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 68
  %22 = load i32, ptr %21, align 8, !tbaa !27
  %23 = icmp eq i32 %22, 2
  br i1 %23, label %24, label %38

24:                                               ; preds = %20
  %25 = getelementptr inbounds %"struct.nasoq::NasoqStep", ptr %9, i32 0, i32 12
  %26 = load i32, ptr %25, align 8, !tbaa !28
  %27 = icmp slt i32 %26, 4
  br i1 %27, label %28, label %37

28:                                               ; preds = %24
  %29 = getelementptr inbounds %"struct.nasoq::NasoqStep", ptr %9, i32 0, i32 12
  %30 = load i32, ptr %29, align 8, !tbaa !28
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %29, align 8, !tbaa !28
  %32 = call noundef i32 @_ZN5nasoq5Nasoq12initialize_xEv(ptr noundef nonnull align 8 dereferenceable(624) %9)
  %33 = getelementptr inbounds %"struct.nasoq::NasoqStep", ptr %9, i32 0, i32 11
  store i32 0, ptr %33, align 4, !tbaa !11
  %34 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 69
  store i32 4, ptr %34, align 4, !tbaa !26
  %35 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 69
  %36 = load i32, ptr %35, align 4, !tbaa !26
  store i32 %36, ptr %3, align 4
  br label %141

37:                                               ; preds = %24
  br label %38

38:                                               ; preds = %37, %20
  %39 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 38
  %40 = load i32, ptr %39, align 8, !tbaa !29
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %42, label %45

42:                                               ; preds = %38
  %43 = call noundef i32 @_ZN5nasoq5Nasoq12unscale_dataEv(ptr noundef nonnull align 8 dereferenceable(624) %9)
  %44 = call noundef i32 @_ZN5nasoq5Nasoq16unscale_solutionEv(ptr noundef nonnull align 8 dereferenceable(624) %9)
  br label %45

45:                                               ; preds = %42, %38
  %46 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 38
  %47 = load i32, ptr %46, align 8, !tbaa !29
  %48 = icmp slt i32 %47, 0
  br i1 %48, label %49, label %52

49:                                               ; preds = %45
  %50 = call noundef i32 @_ZN5nasoq5Nasoq14unscale_data_2Ev(ptr noundef nonnull align 8 dereferenceable(624) %9)
  %51 = call noundef i32 @_ZN5nasoq5Nasoq18unscale_solution_2Ev(ptr noundef nonnull align 8 dereferenceable(624) %9)
  br label %52

52:                                               ; preds = %49, %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %53 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 71
  %54 = load ptr, ptr %53, align 8, !tbaa !30
  %55 = call i64 @_ZN5nasoq7qp_info3tocEv(ptr noundef nonnull align 8 dereferenceable(104) %54)
  %56 = getelementptr inbounds %"class.std::chrono::time_point", ptr %6, i32 0, i32 0
  %57 = getelementptr inbounds %"class.std::chrono::duration", ptr %56, i32 0, i32 0
  store i64 %55, ptr %57, align 8
  %58 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 71
  %59 = load ptr, ptr %58, align 8, !tbaa !30
  %60 = getelementptr inbounds %"struct.nasoq::qp_info", ptr %59, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %60, ptr align 8 %6, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %61 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 71
  %62 = load ptr, ptr %61, align 8, !tbaa !30
  %63 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 71
  %64 = load ptr, ptr %63, align 8, !tbaa !30
  %65 = getelementptr inbounds %"struct.nasoq::qp_info", ptr %64, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %65, i64 8, i1 false), !tbaa.struct !31
  %66 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 71
  %67 = load ptr, ptr %66, align 8, !tbaa !30
  %68 = getelementptr inbounds %"struct.nasoq::qp_info", ptr %67, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %68, i64 8, i1 false), !tbaa.struct !31
  %69 = getelementptr inbounds %"class.std::chrono::time_point", ptr %7, i32 0, i32 0
  %70 = getelementptr inbounds %"class.std::chrono::duration", ptr %69, i32 0, i32 0
  %71 = load i64, ptr %70, align 8
  %72 = getelementptr inbounds %"class.std::chrono::time_point", ptr %8, i32 0, i32 0
  %73 = getelementptr inbounds %"class.std::chrono::duration", ptr %72, i32 0, i32 0
  %74 = load i64, ptr %73, align 8
  %75 = call noundef double @_ZN5nasoq7qp_info12elapsed_timeENSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEES9_(ptr noundef nonnull align 8 dereferenceable(104) %62, i64 %71, i64 %74)
  %76 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 71
  %77 = load ptr, ptr %76, align 8, !tbaa !30
  %78 = getelementptr inbounds %"struct.nasoq::qp_info", ptr %77, i32 0, i32 8
  store double %75, ptr %78, align 8, !tbaa !33
  call void @_ZN5nasoq5Nasoq18detect_solver_nameEv(ptr noundef nonnull align 8 dereferenceable(624) %9)
  %79 = getelementptr inbounds %"struct.nasoq::NasoqStep", ptr %9, i32 0, i32 11
  %80 = load i32, ptr %79, align 4, !tbaa !11
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %86

82:                                               ; preds = %52
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %82
  store i32 0, ptr %3, align 4
  br label %141

86:                                               ; preds = %82, %52
  %87 = getelementptr inbounds %"struct.nasoq::NasoqStep", ptr %9, i32 0, i32 5
  %88 = load i32, ptr %87, align 8, !tbaa !39
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %94, label %90

90:                                               ; preds = %86
  %91 = getelementptr inbounds %"struct.nasoq::NasoqStep", ptr %9, i32 0, i32 11
  %92 = load i32, ptr %91, align 4, !tbaa !11
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %100

94:                                               ; preds = %90, %86
  %95 = call noundef double @_ZN5nasoq5Nasoq17compute_objectiveEv(ptr noundef nonnull align 8 dereferenceable(624) %9)
  %96 = call noundef double @_ZN5nasoq5Nasoq19constraint_sat_normEv(ptr noundef nonnull align 8 dereferenceable(624) %9)
  %97 = call noundef double @_ZN5nasoq5Nasoq24lagrangian_residual_normEv(ptr noundef nonnull align 8 dereferenceable(624) %9)
  %98 = call noundef double @_ZN5nasoq5Nasoq20complementarity_normEv(ptr noundef nonnull align 8 dereferenceable(624) %9)
  %99 = call noundef double @_ZN5nasoq5Nasoq19non_negativity_normEv(ptr noundef nonnull align 8 dereferenceable(624) %9)
  br label %100

100:                                              ; preds = %94, %90
  %101 = getelementptr inbounds %"struct.nasoq::NasoqStep", ptr %9, i32 0, i32 11
  %102 = load i32, ptr %101, align 4, !tbaa !11
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %136

104:                                              ; preds = %100
  %105 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 78
  %106 = load double, ptr %105, align 8, !tbaa !40
  %107 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 16
  %108 = load double, ptr %107, align 8, !tbaa !41
  %109 = fcmp ole double %106, %108
  br i1 %109, label %110, label %124

110:                                              ; preds = %104
  %111 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 79
  %112 = load double, ptr %111, align 8, !tbaa !42
  %113 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 16
  %114 = load double, ptr %113, align 8, !tbaa !41
  %115 = fcmp ole double %112, %114
  br i1 %115, label %116, label %124

116:                                              ; preds = %110
  %117 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 21
  %118 = load double, ptr %117, align 8, !tbaa !43
  %119 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 16
  %120 = load double, ptr %119, align 8, !tbaa !41
  %121 = fcmp ole double %118, %120
  br i1 %121, label %122, label %124

122:                                              ; preds = %116
  %123 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 69
  store i32 1, ptr %123, align 4, !tbaa !26
  br label %135

124:                                              ; preds = %116, %110, %104
  %125 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 79
  %126 = load double, ptr %125, align 8, !tbaa !42
  %127 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 16
  %128 = load double, ptr %127, align 8, !tbaa !41
  %129 = fcmp ole double %126, %128
  br i1 %129, label %130, label %132

130:                                              ; preds = %124
  %131 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 69
  store i32 2, ptr %131, align 4, !tbaa !26
  br label %134

132:                                              ; preds = %124
  %133 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 69
  store i32 3, ptr %133, align 4, !tbaa !26
  br label %134

134:                                              ; preds = %132, %130
  br label %135

135:                                              ; preds = %134, %122
  br label %138

136:                                              ; preds = %100
  %137 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 69
  store i32 4, ptr %137, align 4, !tbaa !26
  br label %138

138:                                              ; preds = %136, %135
  %139 = getelementptr inbounds %"struct.nasoq::Nasoq", ptr %9, i32 0, i32 69
  %140 = load i32, ptr %139, align 4, !tbaa !26
  store i32 %140, ptr %3, align 4
  br label %141

141:                                              ; preds = %138, %85, %28, %13
  %142 = load i32, ptr %3, align 4
  ret i32 %142
}

declare void @_ZN5nasoq5Nasoq18detect_solver_nameEv(ptr noundef nonnull align 8 dereferenceable(624)) #2

declare noundef i32 @_ZN5nasoq5Nasoq12unscale_dataEv(ptr noundef nonnull align 8 dereferenceable(624)) #2

declare noundef i32 @_ZN5nasoq5Nasoq16unscale_solutionEv(ptr noundef nonnull align 8 dereferenceable(624)) #2

declare noundef i32 @_ZN5nasoq5Nasoq14unscale_data_2Ev(ptr noundef nonnull align 8 dereferenceable(624)) #2

declare noundef i32 @_ZN5nasoq5Nasoq18unscale_solution_2Ev(ptr noundef nonnull align 8 dereferenceable(624)) #2

declare i64 @_ZN5nasoq7qp_info3tocEv(ptr noundef nonnull align 8 dereferenceable(104)) #2

declare noundef double @_ZN5nasoq7qp_info12elapsed_timeENSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEES9_(ptr noundef nonnull align 8 dereferenceable(104), i64, i64) #2

declare noundef double @_ZN5nasoq5Nasoq17compute_objectiveEv(ptr noundef nonnull align 8 dereferenceable(624)) #2

declare noundef double @_ZN5nasoq5Nasoq19constraint_sat_normEv(ptr noundef nonnull align 8 dereferenceable(624)) #2

declare noundef double @_ZN5nasoq5Nasoq24lagrangian_residual_normEv(ptr noundef nonnull align 8 dereferenceable(624)) #2

declare noundef double @_ZN5nasoq5Nasoq20complementarity_normEv(ptr noundef nonnull align 8 dereferenceable(624)) #2

declare noundef double @_ZN5nasoq5Nasoq19non_negativity_normEv(ptr noundef nonnull align 8 dereferenceable(624)) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 676}
!12 = !{!"_ZTSN5nasoq9NasoqStepE", !13, i64 0, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !17, i64 648, !17, i64 656, !17, i64 664, !24, i64 672, !10, i64 676, !10, i64 680}
!13 = !{!"_ZTSN5nasoq5NasoqE", !14, i64 0, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !17, i64 168, !17, i64 176, !17, i64 184, !17, i64 192, !10, i64 200, !10, i64 204, !10, i64 208, !17, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !16, i64 304, !10, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !17, i64 368, !17, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !18, i64 448, !6, i64 472, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !6, i64 512, !17, i64 520, !17, i64 528, !22, i64 536, !23, i64 540, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !17, i64 608, !17, i64 616}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN5nasoq10nasoq_modeE", !7, i64 0}
!23 = !{!"_ZTSN5nasoq12nasoq_statusE", !7, i64 0}
!24 = !{!"_ZTSN5nasoq10solve_typeE", !7, i64 0}
!25 = !{!13, !10, i64 484}
!26 = !{!13, !23, i64 540}
!27 = !{!13, !22, i64 536}
!28 = !{!12, !10, i64 680}
!29 = !{!13, !10, i64 312}
!30 = !{!13, !6, i64 552}
!31 = !{i64 0, i64 8, !32}
!32 = !{!16, !16, i64 0}
!33 = !{!34, !17, i64 64}
!34 = !{!"_ZTSN5nasoq7qp_infoE", !35, i64 0, !35, i64 8, !35, i64 16, !35, i64 24, !35, i64 32, !35, i64 40, !37, i64 48, !38, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100}
!35 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !36, i64 0}
!36 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !16, i64 0}
!37 = !{!"bool", !7, i64 0}
!38 = !{!"_ZTSNSt6chrono8durationIdSt5ratioILl1ELl1EEEE", !17, i64 0}
!39 = !{!12, !10, i64 640}
!40 = !{!13, !17, i64 608}
!41 = !{!13, !17, i64 144}
!42 = !{!13, !17, i64 616}
!43 = !{!13, !17, i64 184}


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

declare noundef i32 @_ZN5nasoq5Nasoq12initialize_xEv(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5nasoq9NasoqStep17check_step_statusEi(ptr noundef nonnull align 8 dereferenceable(684) %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 676
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %5, label %10

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 484
  %7 = load i32, ptr %6, align 4, !tbaa !23
  %8 = add nsw i32 %7, 1
  store i32 %8, ptr %6, align 4, !tbaa !23
  %9 = getelementptr inbounds i8, ptr %0, i64 540
  store i32 4, ptr %9, align 4, !tbaa !24
  br label %78

10:                                               ; preds = %2
  tail call void @_ZN5nasoq5Nasoq18detect_solver_nameEv(ptr noundef nonnull align 8 dereferenceable(624) %0)
  %11 = getelementptr inbounds i8, ptr %0, i64 536
  %12 = load i32, ptr %11, align 8, !tbaa !25
  %13 = icmp eq i32 %12, 2
  br i1 %13, label %14, label %22

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %0, i64 680
  %16 = load i32, ptr %15, align 8, !tbaa !26
  %17 = icmp slt i32 %16, 4
  br i1 %17, label %18, label %22

18:                                               ; preds = %14
  %19 = add nsw i32 %16, 1
  store i32 %19, ptr %15, align 8, !tbaa !26
  %20 = tail call noundef i32 @_ZN5nasoq5Nasoq12initialize_xEv(ptr noundef nonnull align 8 dereferenceable(624) %0)
  store i32 0, ptr %3, align 4, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %0, i64 540
  store i32 4, ptr %21, align 4, !tbaa !24
  br label %78

22:                                               ; preds = %14, %10
  %23 = getelementptr inbounds i8, ptr %0, i64 312
  %24 = load i32, ptr %23, align 8, !tbaa !27
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %26, label %29

26:                                               ; preds = %22
  %27 = tail call noundef i32 @_ZN5nasoq5Nasoq12unscale_dataEv(ptr noundef nonnull align 8 dereferenceable(624) %0)
  %28 = tail call noundef i32 @_ZN5nasoq5Nasoq16unscale_solutionEv(ptr noundef nonnull align 8 dereferenceable(624) %0)
  %.pr = load i32, ptr %23, align 8, !tbaa !27
  br label %29

29:                                               ; preds = %26, %22
  %30 = phi i32 [ %.pr, %26 ], [ %24, %22 ]
  %31 = icmp slt i32 %30, 0
  br i1 %31, label %32, label %35

32:                                               ; preds = %29
  %33 = tail call noundef i32 @_ZN5nasoq5Nasoq14unscale_data_2Ev(ptr noundef nonnull align 8 dereferenceable(624) %0)
  %34 = tail call noundef i32 @_ZN5nasoq5Nasoq18unscale_solution_2Ev(ptr noundef nonnull align 8 dereferenceable(624) %0)
  br label %35

35:                                               ; preds = %32, %29
  %36 = getelementptr inbounds i8, ptr %0, i64 552
  %37 = load ptr, ptr %36, align 8, !tbaa !28
  %38 = tail call i64 @_ZN5nasoq7qp_info3tocEv(ptr noundef nonnull align 8 dereferenceable(104) %37)
  %39 = load ptr, ptr %36, align 8, !tbaa !28
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  store i64 %38, ptr %40, align 8, !tbaa !29
  %.sroa.02.0.copyload = load i64, ptr %39, align 8, !tbaa !29
  %41 = tail call noundef double @_ZN5nasoq7qp_info12elapsed_timeENSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEES9_(ptr noundef nonnull align 8 dereferenceable(104) %39, i64 %.sroa.02.0.copyload, i64 %38)
  %42 = load ptr, ptr %36, align 8, !tbaa !28
  %43 = getelementptr inbounds i8, ptr %42, i64 64
  store double %41, ptr %43, align 8, !tbaa !30
  tail call void @_ZN5nasoq5Nasoq18detect_solver_nameEv(ptr noundef nonnull align 8 dereferenceable(624) %0)
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = icmp ne i32 %44, 0
  %46 = icmp eq i32 %1, 0
  %or.cond = and i1 %46, %45
  br i1 %or.cond, label %78, label %47

47:                                               ; preds = %35
  %48 = getelementptr inbounds i8, ptr %0, i64 640
  %49 = load i32, ptr %48, align 8, !tbaa !36
  %50 = or i32 %49, %44
  %brmerge.not = icmp eq i32 %50, 0
  br i1 %brmerge.not, label %57, label %51

51:                                               ; preds = %47
  %52 = tail call noundef double @_ZN5nasoq5Nasoq17compute_objectiveEv(ptr noundef nonnull align 8 dereferenceable(624) %0)
  %53 = tail call noundef double @_ZN5nasoq5Nasoq19constraint_sat_normEv(ptr noundef nonnull align 8 dereferenceable(624) %0)
  %54 = tail call noundef double @_ZN5nasoq5Nasoq24lagrangian_residual_normEv(ptr noundef nonnull align 8 dereferenceable(624) %0)
  %55 = tail call noundef double @_ZN5nasoq5Nasoq20complementarity_normEv(ptr noundef nonnull align 8 dereferenceable(624) %0)
  %56 = tail call noundef double @_ZN5nasoq5Nasoq19non_negativity_normEv(ptr noundef nonnull align 8 dereferenceable(624) %0)
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %47, %51
  %58 = phi i32 [ %44, %47 ], [ %.pre, %51 ]
  %.not8 = icmp eq i32 %58, 0
  br i1 %.not8, label %76, label %59

59:                                               ; preds = %57
  %60 = getelementptr inbounds i8, ptr %0, i64 608
  %61 = load double, ptr %60, align 8, !tbaa !37
  %62 = getelementptr inbounds i8, ptr %0, i64 144
  %63 = load double, ptr %62, align 8, !tbaa !38
  %64 = fcmp ugt double %61, %63
  %65 = getelementptr inbounds i8, ptr %0, i64 616
  %66 = load double, ptr %65, align 8
  %67 = fcmp ugt double %66, %63
  %or.cond11 = select i1 %64, i1 true, i1 %67
  %68 = getelementptr inbounds i8, ptr %0, i64 184
  %69 = load double, ptr %68, align 8
  %70 = fcmp ugt double %69, %63
  %or.cond14 = select i1 %or.cond11, i1 true, i1 %70
  %71 = getelementptr inbounds i8, ptr %0, i64 540
  br i1 %or.cond14, label %73, label %72

72:                                               ; preds = %59
  store i32 1, ptr %71, align 4, !tbaa !24
  br label %78

73:                                               ; preds = %59
  br i1 %67, label %75, label %74

74:                                               ; preds = %73
  store i32 2, ptr %71, align 4, !tbaa !24
  br label %78

75:                                               ; preds = %73
  store i32 3, ptr %71, align 4, !tbaa !24
  br label %78

76:                                               ; preds = %57
  %77 = getelementptr inbounds i8, ptr %0, i64 540
  store i32 4, ptr %77, align 4, !tbaa !24
  br label %78

78:                                               ; preds = %76, %74, %75, %72, %35, %18, %5
  %.0 = phi i32 [ 4, %18 ], [ 4, %5 ], [ 0, %35 ], [ 1, %72 ], [ 3, %75 ], [ 2, %74 ], [ 4, %76 ]
  ret i32 %.0
}

declare void @_ZN5nasoq5Nasoq18detect_solver_nameEv(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

declare noundef i32 @_ZN5nasoq5Nasoq12unscale_dataEv(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

declare noundef i32 @_ZN5nasoq5Nasoq16unscale_solutionEv(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

declare noundef i32 @_ZN5nasoq5Nasoq14unscale_data_2Ev(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

declare noundef i32 @_ZN5nasoq5Nasoq18unscale_solution_2Ev(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

declare i64 @_ZN5nasoq7qp_info3tocEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #0

declare noundef double @_ZN5nasoq7qp_info12elapsed_timeENSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEES9_(ptr noundef nonnull align 8 dereferenceable(104), i64, i64) local_unnamed_addr #0

declare noundef double @_ZN5nasoq5Nasoq17compute_objectiveEv(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

declare noundef double @_ZN5nasoq5Nasoq19constraint_sat_normEv(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

declare noundef double @_ZN5nasoq5Nasoq24lagrangian_residual_normEv(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

declare noundef double @_ZN5nasoq5Nasoq20complementarity_normEv(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

declare noundef double @_ZN5nasoq5Nasoq19non_negativity_normEv(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #0

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

!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, !14, i64 676}
!6 = !{!"_ZTSN5nasoq9NasoqStepE", !7, i64 0, !14, i64 624, !14, i64 628, !14, i64 632, !14, i64 636, !14, i64 640, !15, i64 648, !15, i64 656, !15, i64 664, !22, i64 672, !14, i64 676, !14, i64 680}
!7 = !{!"_ZTSN5nasoq5NasoqE", !8, i64 0, !14, i64 32, !14, i64 36, !14, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !14, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !14, i64 200, !14, i64 204, !14, i64 208, !15, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !13, i64 304, !14, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !15, i64 368, !15, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !16, i64 448, !10, i64 472, !14, i64 480, !14, i64 484, !14, i64 488, !14, i64 492, !14, i64 496, !14, i64 500, !14, i64 504, !14, i64 508, !10, i64 512, !15, i64 520, !15, i64 528, !20, i64 536, !21, i64 540, !10, i64 544, !10, i64 552, !10, i64 560, !10, i64 568, !10, i64 576, !10, i64 584, !10, i64 592, !10, i64 600, !15, i64 608, !15, i64 616}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !9, i64 0, !13, i64 8, !11, i64 16}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"int", !11, i64 0}
!15 = !{!"double", !11, i64 0}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!20 = !{!"_ZTSN5nasoq10nasoq_modeE", !11, i64 0}
!21 = !{!"_ZTSN5nasoq12nasoq_statusE", !11, i64 0}
!22 = !{!"_ZTSN5nasoq10solve_typeE", !11, i64 0}
!23 = !{!7, !14, i64 484}
!24 = !{!7, !21, i64 540}
!25 = !{!7, !20, i64 536}
!26 = !{!6, !14, i64 680}
!27 = !{!7, !14, i64 312}
!28 = !{!7, !10, i64 552}
!29 = !{!13, !13, i64 0}
!30 = !{!31, !15, i64 64}
!31 = !{!"_ZTSN5nasoq7qp_infoE", !32, i64 0, !32, i64 8, !32, i64 16, !32, i64 24, !32, i64 32, !32, i64 40, !34, i64 48, !35, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !14, i64 88, !14, i64 92, !14, i64 96, !14, i64 100}
!32 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !33, i64 0}
!33 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !13, i64 0}
!34 = !{!"bool", !11, i64 0}
!35 = !{!"_ZTSNSt6chrono8durationIdSt5ratioILl1ELl1EEEE", !15, i64 0}
!36 = !{!6, !14, i64 640}
!37 = !{!7, !15, i64 608}
!38 = !{!7, !15, i64 144}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass