; LLVM IR from interpretml/interpret :: shared/libebm (compute_accessors)

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

@.str = external hidden unnamed_addr constant [91 x i8], align 1
@__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_ = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_ = external hidden unnamed_addr constant [148 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [102 x i8], align 1
@g_traceLevel = external global i32, align 4
@_ZZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_E13LOG__sMessage = external hidden constant [39 x i8], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = icmp ne ptr null, %17
  br i1 %18, label %22, label %19

19:                                               ; preds = %5
  invoke void @LogAssertFailure(i64 noundef 170, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef @.str.1)
          to label %20 unwind label %130

20:                                               ; preds = %19
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str, i32 noundef 170, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #6
  unreachable

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %5
  %23 = phi i1 [ true, %5 ], [ false, %21 ]
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = icmp ne ptr null, %24
  br i1 %25, label %29, label %26

26:                                               ; preds = %22
  invoke void @LogAssertFailure(i64 noundef 171, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef @.str.3)
          to label %27 unwind label %130

27:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str, i32 noundef 171, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #6
  unreachable

28:                                               ; No predecessors!
  br label %29

29:                                               ; preds = %28, %22
  %30 = phi i1 [ true, %22 ], [ false, %28 ]
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %31, i32 0, i32 3
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = icmp eq ptr null, %33
  br i1 %34, label %38, label %35

35:                                               ; preds = %29
  invoke void @LogAssertFailure(i64 noundef 172, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef @.str.5)
          to label %36 unwind label %130

36:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str, i32 noundef 172, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #6
  unreachable

37:                                               ; No predecessors!
  br label %38

38:                                               ; preds = %37, %29
  %39 = phi i1 [ true, %29 ], [ false, %37 ]
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %40, i32 0, i32 20
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = icmp eq ptr null, %42
  br i1 %43, label %47, label %44

44:                                               ; preds = %38
  invoke void @LogAssertFailure(i64 noundef 173, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef @.str.7)
          to label %45 unwind label %130

45:                                               ; preds = %44
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str, i32 noundef 173, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #6
  unreachable

46:                                               ; No predecessors!
  br label %47

47:                                               ; preds = %46, %38
  %48 = phi i1 [ true, %38 ], [ false, %46 ]
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = icmp ne ptr null, %49
  br i1 %50, label %57, label %51

51:                                               ; preds = %47
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %57, label %54

54:                                               ; preds = %51
  invoke void @LogAssertFailure(i64 noundef 175, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef @.str.9)
          to label %55 unwind label %130

55:                                               ; preds = %54
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str, i32 noundef 175, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #6
  unreachable

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56, %51, %47
  %58 = phi i1 [ true, %51 ], [ true, %47 ], [ false, %56 ]
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = icmp eq ptr null, %59
  br i1 %60, label %69, label %61

61:                                               ; preds = %57
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %62, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = icmp eq ptr null, %64
  br i1 %65, label %69, label %66

66:                                               ; preds = %61
  invoke void @LogAssertFailure(i64 noundef 176, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef @.str.11)
          to label %67 unwind label %130

67:                                               ; preds = %66
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str, i32 noundef 176, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #6
  unreachable

68:                                               ; No predecessors!
  br label %69

69:                                               ; preds = %68, %61, %57
  %70 = phi i1 [ true, %61 ], [ true, %57 ], [ false, %68 ]
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = icmp eq ptr null, %71
  br i1 %72, label %81, label %73

73:                                               ; preds = %69
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %74, i32 0, i32 20
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  %77 = icmp eq ptr null, %76
  br i1 %77, label %81, label %78

78:                                               ; preds = %73
  invoke void @LogAssertFailure(i64 noundef 177, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef @.str.13)
          to label %79 unwind label %130

79:                                               ; preds = %78
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str, i32 noundef 177, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #6
  unreachable

80:                                               ; No predecessors!
  br label %81

81:                                               ; preds = %80, %73, %69
  %82 = phi i1 [ true, %73 ], [ true, %69 ], [ false, %80 ]
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = icmp eq ptr null, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %81
  store i32 -15, ptr %6, align 4
  br label %128

86:                                               ; preds = %81
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = invoke ptr @SkipWhitespace(ptr noundef %87)
          to label %89 unwind label %130

89:                                               ; preds = %86
  store ptr %88, ptr %8, align 8, !tbaa !5
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i8, ptr %90, align 1, !tbaa !16
  %92 = sext i8 %91 to i32
  %93 = icmp eq i32 0, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %89
  store i32 -15, ptr %6, align 4
  br label %128

95:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = call i64 @strlen(ptr noundef %97) #8
  %99 = getelementptr inbounds i8, ptr %96, i64 %98
  store ptr %99, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = invoke i32 @CreateObjective_Cpu_64(ptr noundef %100, ptr noundef %101, ptr noundef %102, ptr noundef %103)
          to label %105 unwind label %130

105:                                              ; preds = %95
  store i32 %104, ptr %13, align 4, !tbaa !9
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = icmp ne i32 0, %106
  br i1 %107, label %108, label %110

108:                                              ; preds = %105
  %109 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %109, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %127

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %111, i32 0, i32 19
  %113 = load i32, ptr %112, align 8, !tbaa !17
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = and i32 %113, %114
  store i32 %115, ptr %15, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %110
  br label %117

117:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 3, ptr %16, align 4, !tbaa !9
  %118 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %119 = icmp sle i32 3, %118
  br i1 %119, label %120, label %122

120:                                              ; preds = %117
  invoke void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef @_ZZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_E13LOG__sMessage)
          to label %121 unwind label %130

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  store i32 0, ptr %6, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %127

127:                                              ; preds = %126, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %128

128:                                              ; preds = %127, %94, %85
  %129 = load i32, ptr %6, align 4
  ret i32 %129

130:                                              ; preds = %120, %95, %86, %78, %66, %54, %44, %35, %26, %19
  %131 = landingpad { ptr, i32 }
          catch ptr null
  %132 = extractvalue { ptr, i32 } %131, 0
  call void @__clang_call_terminate(ptr %132) #6
  unreachable
}

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare ptr @SkipWhitespace(ptr noundef) #1

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

declare i32 @CreateObjective_Cpu_64(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @InteralLogWithoutArguments(i32 noundef, ptr noundef) #1

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

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" }
attributes #1 = { "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 #2 = { noinline noreturn nounwind uwtable "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 = { noreturn nounwind "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind willreturn memory(read) "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 #6 = { noreturn nounwind }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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, !6, i64 24}
!12 = !{!"_ZTS16ObjectiveWrapper", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !10, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !10, i64 144, !6, i64 152}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 152}
!16 = !{!7, !7, i64 0}
!17 = !{!12, !10, 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"

@.str = external hidden unnamed_addr constant [91 x i8], align 1
@__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_ = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_ = external hidden unnamed_addr constant [148 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [102 x i8], align 1
@g_traceLevel = external local_unnamed_addr global i32, align 4
@_ZZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_E13LOG__sMessage = external hidden constant [39 x i8], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef readonly %4) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %6, label %8

6:                                                ; preds = %5
  invoke void @LogAssertFailure(i64 noundef 170, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef nonnull @.str.1)
          to label %7 unwind label %58

7:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, i32 noundef 170, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #5
  unreachable

8:                                                ; preds = %5
  %.not30 = icmp eq ptr %3, null
  br i1 %.not30, label %9, label %11

9:                                                ; preds = %8
  invoke void @LogAssertFailure(i64 noundef 171, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef nonnull @.str.3)
          to label %10 unwind label %58

10:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #5
  unreachable

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %3, i64 24
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %17, label %15

15:                                               ; preds = %11
  invoke void @LogAssertFailure(i64 noundef 172, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef nonnull @.str.5)
          to label %16 unwind label %58

16:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str, i32 noundef 172, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #5
  unreachable

17:                                               ; preds = %11
  %18 = getelementptr inbounds i8, ptr %3, i64 152
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  %20 = icmp eq ptr %19, null
  br i1 %20, label %23, label %21

21:                                               ; preds = %17
  invoke void @LogAssertFailure(i64 noundef 173, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef nonnull @.str.7)
          to label %22 unwind label %58

22:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str, i32 noundef 173, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #5
  unreachable

23:                                               ; preds = %17
  %24 = icmp ne ptr %4, null
  %25 = icmp eq i32 %2, 0
  %or.cond = or i1 %25, %24
  br i1 %or.cond, label %28, label %26

26:                                               ; preds = %23
  invoke void @LogAssertFailure(i64 noundef 175, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef nonnull @.str.9)
          to label %27 unwind label %58

27:                                               ; preds = %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str, i32 noundef 175, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #5
  unreachable

28:                                               ; preds = %23
  %29 = icmp eq ptr %4, null
  br i1 %29, label %.critedge, label %30

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %4, i64 24
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %36, label %34

34:                                               ; preds = %30
  invoke void @LogAssertFailure(i64 noundef 176, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef nonnull @.str.11)
          to label %35 unwind label %58

35:                                               ; preds = %34
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str, i32 noundef 176, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #5
  unreachable

36:                                               ; preds = %30
  %37 = getelementptr inbounds i8, ptr %4, i64 152
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = icmp eq ptr %38, null
  br i1 %39, label %.critedge, label %40

40:                                               ; preds = %36
  invoke void @LogAssertFailure(i64 noundef 177, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_, ptr noundef nonnull @.str.13)
          to label %41 unwind label %58

41:                                               ; preds = %40
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str, i32 noundef 177, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_) #5
  unreachable

.critedge:                                        ; preds = %28, %36
  %42 = icmp eq ptr %1, null
  br i1 %42, label %57, label %43

43:                                               ; preds = %.critedge
  %44 = invoke ptr @SkipWhitespace(ptr noundef nonnull %1)
          to label %45 unwind label %58

45:                                               ; preds = %43
  %46 = load i8, ptr %44, align 1, !tbaa !14
  %47 = icmp eq i8 %46, 0
  br i1 %47, label %57, label %48

48:                                               ; preds = %45
  %49 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %44) #6
  %50 = getelementptr inbounds i8, ptr %44, i64 %49
  %51 = invoke i32 @CreateObjective_Cpu_64(ptr noundef nonnull %0, ptr noundef nonnull %44, ptr noundef nonnull %50, ptr noundef nonnull %3)
          to label %52 unwind label %58

52:                                               ; preds = %48
  %.not31 = icmp eq i32 %51, 0
  br i1 %.not31, label %53, label %57

53:                                               ; preds = %52
  %54 = load i32, ptr @g_traceLevel, align 4, !tbaa !15
  %55 = icmp sgt i32 %54, 2
  br i1 %55, label %56, label %57

56:                                               ; preds = %53
  invoke void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef nonnull @_ZZN14NAMESPACE_MAIN12GetObjectiveEPK6ConfigPKciP16ObjectiveWrapperS6_E13LOG__sMessage)
          to label %57 unwind label %58

57:                                               ; preds = %52, %56, %53, %45, %.critedge
  %.1 = phi i32 [ -15, %.critedge ], [ -15, %45 ], [ %51, %52 ], [ 0, %56 ], [ 0, %53 ]
  ret i32 %.1

58:                                               ; preds = %56, %48, %43, %40, %34, %26, %21, %15, %9, %6
  %59 = landingpad { ptr, i32 }
          catch ptr null
  %60 = extractvalue { ptr, i32 } %59, 0
  tail call void @__clang_call_terminate(ptr %60) #5
  unreachable
}

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare ptr @SkipWhitespace(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

declare i32 @CreateObjective_Cpu_64(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @InteralLogWithoutArguments(i32 noundef, ptr noundef) local_unnamed_addr #1

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" }
attributes #1 = { "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 #2 = { noinline noreturn nounwind uwtable "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 = { noreturn nounwind "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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #5 = { noreturn nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 24}
!6 = !{!"_ZTS16ObjectiveWrapper", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !10, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !10, i64 144, !7, i64 152}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 152}
!14 = !{!8, !8, i64 0}
!15 = !{!10, !10, i64 0}


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