; LLVM IR from NOAA-PMEL/Ferret :: fer/ccr (EF_InternalUtil)

; 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.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.ExternalFunction = type { ptr, [40 x i8], [128 x i8], i32, i32, ptr }
%struct.ExternalFunctionInternals = type { float, [128 x i8], [40 x i8], [40 x i8], i32, i32, i32, i32, [9 x [6 x i32]], [9 x [6 x i32]], [6 x i32], [6 x i32], [6 x i32], i32, [6 x i32], [6 x %struct.Axis], [9 x [6 x i32]], [9 x [6 x i32]], [9 x [6 x i32]], [9 x i32], [9 x [40 x i8]], [9 x [40 x i8]], [9 x [128 x i8]] }
%struct.Axis = type { i32, i32, i32, i32, i32, double, double, double, [40 x i8] }

@pyefcn_handle = external hidden global ptr, align 8
@sigjumpbuffer = external hidden global [1 x %struct.__jmp_buf_tag], align 16
@jumpbuffer = external hidden global [1 x %struct.__jmp_buf_tag], align 16
@canjump = external hidden global i32, align 4
@stderr = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [14 x i8], align 1
@pyefcn_custom_axes_func = external hidden global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [62 x i8], align 1

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @ef_ptr_from_id_ptr(ptr noundef) #1

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare ptr @dlerror() #2

; Function Attrs: nounwind
declare ptr @dlsym(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind returns_twice
declare i32 @__sigsetjmp(ptr noundef, i32 noundef) #4

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @internal_dlsym(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @efcn_get_custom_axes_(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [40 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca [2048 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #7
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 3, ptr %13, align 4, !tbaa !9
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  call void @EF_store_globals(ptr noundef null, ptr noundef %14, ptr noundef null, ptr noundef null)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call ptr @ef_ptr_from_id_ptr(ptr noundef %15)
  store ptr %16, ptr %7, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %3
  store i32 1, ptr %11, align 4
  br label %147

19:                                               ; preds = %3
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ExternalFunction, ptr %20, i32 0, i32 2
  %22 = getelementptr inbounds [128 x i8], ptr %21, i64 0, i64 0
  %23 = call i32 @strcmp(ptr noundef %22, ptr noundef @.str.15) #8
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %26, label %25

25:                                               ; preds = %19
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %25, %19
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ExternalFunction, ptr %27, i32 0, i32 5
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds %struct.ExternalFunctionInternals, ptr %29, i32 0, i32 4
  %31 = load i32, ptr %30, align 4, !tbaa !13
  %32 = icmp eq i32 %31, 2
  br i1 %32, label %33, label %74

33:                                               ; preds = %26
  %34 = call i32 @EF_Util_setsig(ptr noundef @.str.23)
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %33
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 437, ptr %37, align 4, !tbaa !9
  store i32 1, ptr %11, align 4
  br label %147

38:                                               ; preds = %33
  %39 = call i32 @__sigsetjmp(ptr noundef @sigjumpbuffer, i32 noundef 1) #9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %38
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 437, ptr %42, align 4, !tbaa !9
  store i32 1, ptr %11, align 4
  br label %147

43:                                               ; preds = %38
  %44 = call i32 @_setjmp(ptr noundef @jumpbuffer) #9
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %48

46:                                               ; preds = %43
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 437, ptr %47, align 4, !tbaa !9
  store i32 1, ptr %11, align 4
  br label %147

48:                                               ; preds = %43
  store volatile i32 1, ptr @canjump, align 4, !tbaa !9
  %49 = getelementptr inbounds [40 x i8], ptr %8, i64 0, i64 0
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ExternalFunction, ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds [40 x i8], ptr %51, i64 0, i64 0
  %53 = call ptr @strcpy(ptr noundef %49, ptr noundef %52) #7
  %54 = getelementptr inbounds [40 x i8], ptr %8, i64 0, i64 0
  %55 = call ptr @strcat(ptr noundef %54, ptr noundef @.str.24) #7
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %64, label %58

58:                                               ; preds = %48
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ExternalFunction, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %62 = getelementptr inbounds [40 x i8], ptr %8, i64 0, i64 0
  %63 = call ptr @dlsym(ptr noundef %61, ptr noundef %62) #7
  store ptr %63, ptr %10, align 8, !tbaa !5
  br label %67

64:                                               ; preds = %48
  %65 = getelementptr inbounds [40 x i8], ptr %8, i64 0, i64 0
  %66 = call ptr @internal_dlsym(ptr noundef %65)
  store ptr %66, ptr %10, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %64, %58
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  call void %68(ptr noundef %69)
  %70 = call i32 @EF_Util_ressig(ptr noundef @.str.23)
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %67
  store i32 1, ptr %11, align 4
  br label %147

73:                                               ; preds = %67
  br label %146

74:                                               ; preds = %26
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ExternalFunction, ptr %75, i32 0, i32 5
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = getelementptr inbounds %struct.ExternalFunctionInternals, ptr %77, i32 0, i32 4
  %79 = load i32, ptr %78, align 4, !tbaa !13
  %80 = icmp eq i32 %79, 3
  br i1 %80, label %81, label %136

81:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 2048, ptr %12) #7
  %82 = load ptr, ptr @pyefcn_custom_axes_func, align 8, !tbaa !5
  %83 = icmp eq ptr %82, null
  br i1 %83, label %84, label %102

84:                                               ; preds = %81
  %85 = load ptr, ptr @pyefcn_handle, align 8, !tbaa !5
  %86 = icmp eq ptr %85, null
  br i1 %86, label %87, label %91

87:                                               ; preds = %84
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = call i32 @fputs(ptr noundef @.str.25, ptr noundef %88)
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 437, ptr %90, align 4, !tbaa !9
  store i32 1, ptr %11, align 4
  br label %133

91:                                               ; preds = %84
  %92 = load ptr, ptr @pyefcn_handle, align 8, !tbaa !5
  %93 = call ptr @dlsym(ptr noundef %92, ptr noundef @.str.26) #7
  store ptr %93, ptr @pyefcn_custom_axes_func, align 8, !tbaa !5
  %94 = load ptr, ptr @pyefcn_custom_axes_func, align 8, !tbaa !5
  %95 = icmp eq ptr %94, null
  br i1 %95, label %96, label %101

96:                                               ; preds = %91
  %97 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = call ptr @dlerror() #7
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.27, ptr noundef %98) #7
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 437, ptr %100, align 4, !tbaa !9
  store i32 1, ptr %11, align 4
  br label %133

101:                                              ; preds = %91
  br label %102

102:                                              ; preds = %101, %81
  %103 = call i32 @EF_Util_setsig(ptr noundef @.str.23)
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %102
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 437, ptr %106, align 4, !tbaa !9
  store i32 1, ptr %11, align 4
  br label %133

107:                                              ; preds = %102
  %108 = call i32 @__sigsetjmp(ptr noundef @sigjumpbuffer, i32 noundef 1) #9
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %112

110:                                              ; preds = %107
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 437, ptr %111, align 4, !tbaa !9
  store i32 1, ptr %11, align 4
  br label %133

112:                                              ; preds = %107
  %113 = call i32 @_setjmp(ptr noundef @jumpbuffer) #9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %117

115:                                              ; preds = %112
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 437, ptr %116, align 4, !tbaa !9
  store i32 1, ptr %11, align 4
  br label %133

117:                                              ; preds = %112
  store volatile i32 1, ptr @canjump, align 4, !tbaa !9
  %118 = load ptr, ptr @pyefcn_custom_axes_func, align 8, !tbaa !5
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load i32, ptr %119, align 4, !tbaa !9
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ExternalFunction, ptr %121, i32 0, i32 2
  %123 = getelementptr inbounds [128 x i8], ptr %122, i64 0, i64 0
  %124 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  call void %118(i32 noundef %120, ptr noundef %123, ptr noundef %124)
  %125 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  %126 = call i64 @strlen(ptr noundef %125) #8
  %127 = icmp ugt i64 %126, 0
  br i1 %127, label %128, label %131

128:                                              ; preds = %117
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  call void @ef_err_bail_out_(ptr noundef %129, ptr noundef %130)
  br label %131

131:                                              ; preds = %128, %117
  %132 = call i32 @EF_Util_ressig(ptr noundef @.str.23)
  store i32 0, ptr %11, align 4
  br label %133

133:                                              ; preds = %131, %115, %110, %105, %96, %87
  call void @llvm.lifetime.end.p0(i64 2048, ptr %12) #7
  %134 = load i32, ptr %11, align 4
  switch i32 %134, label %147 [
    i32 0, label %135
  ]

135:                                              ; preds = %133
  br label %145

136:                                              ; preds = %74
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 437, ptr %137, align 4, !tbaa !9
  %138 = load ptr, ptr @stderr, align 8, !tbaa !5
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ExternalFunction, ptr %139, i32 0, i32 5
  %141 = load ptr, ptr %140, align 8, !tbaa !11
  %142 = getelementptr inbounds %struct.ExternalFunctionInternals, ptr %141, i32 0, i32 4
  %143 = load i32, ptr %142, align 4, !tbaa !13
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.28, i32 noundef %143) #7
  br label %145

145:                                              ; preds = %136, %135
  br label %146

146:                                              ; preds = %145, %73
  store i32 1, ptr %11, align 4
  br label %147

147:                                              ; preds = %146, %133, %72, %46, %41, %36, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: nounwind uwtable
declare dso_local void @EF_store_globals(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @fputs(ptr noundef, ptr noundef) #6

; Function Attrs: nounwind uwtable
declare dso_local void @ef_err_bail_out_(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @EF_Util_setsig(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @EF_Util_ressig(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { nounwind returns_twice "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { "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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind returns_twice }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 184}
!12 = !{!"", !6, i64 0, !7, i64 8, !7, i64 48, !10, i64 176, !10, i64 180, !6, i64 184}
!13 = !{!14, !10, i64 212}
!14 = !{!"", !15, i64 0, !7, i64 4, !7, i64 132, !7, i64 172, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !7, i64 228, !7, i64 444, !7, i64 660, !7, i64 684, !7, i64 708, !10, i64 732, !7, i64 736, !7, i64 760, !7, i64 1288, !7, i64 1504, !7, i64 1720, !7, i64 1936, !7, i64 1972, !7, i64 2332, !7, i64 2692}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !6, i64 0}


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

%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@pyefcn_handle = external hidden local_unnamed_addr global ptr, align 8
@sigjumpbuffer = external hidden global [1 x %struct.__jmp_buf_tag], align 16
@jumpbuffer = external hidden global [1 x %struct.__jmp_buf_tag], align 16
@canjump = external hidden global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [14 x i8], align 1
@pyefcn_custom_axes_func = external hidden local_unnamed_addr global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [62 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @ef_ptr_from_id_ptr(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nounwind
declare ptr @dlerror() local_unnamed_addr #3

; Function Attrs: nounwind
declare ptr @dlsym(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind returns_twice
declare i32 @__sigsetjmp(ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare hidden ptr @internal_dlsym(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @efcn_get_custom_axes_(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %4 = alloca [40 x i8], align 16
  %5 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %4, i8 0, i64 40, i1 false)
  store i32 3, ptr %2, align 4, !tbaa !5
  call void @EF_store_globals(ptr noundef null, ptr noundef %1, ptr noundef null, ptr noundef null)
  %6 = call ptr @ef_ptr_from_id_ptr(ptr noundef %0)
  %7 = icmp eq ptr %6, null
  br i1 %7, label %67, label %8

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %6, i64 48
  %10 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.15) #9
  %.not.not = icmp eq i32 %10, 0
  %11 = getelementptr inbounds i8, ptr %6, i64 184
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %12, i64 212
  %14 = load i32, ptr %13, align 4, !tbaa !12
  switch i32 %14, label %63 [
    i32 2, label %15
    i32 3, label %35
  ]

15:                                               ; preds = %8
  %16 = call i32 @EF_Util_setsig(ptr noundef nonnull @.str.23)
  %.not33 = icmp eq i32 %16, 0
  br i1 %.not33, label %18, label %17

17:                                               ; preds = %15
  store i32 437, ptr %2, align 4, !tbaa !5
  br label %67

18:                                               ; preds = %15
  %19 = call i32 @__sigsetjmp(ptr noundef nonnull @sigjumpbuffer, i32 noundef 1) #10
  %.not34 = icmp eq i32 %19, 0
  br i1 %.not34, label %21, label %20

20:                                               ; preds = %18
  store i32 437, ptr %2, align 4, !tbaa !5
  br label %67

21:                                               ; preds = %18
  %22 = call i32 @_setjmp(ptr noundef nonnull @jumpbuffer) #10
  %.not35 = icmp eq i32 %22, 0
  br i1 %.not35, label %24, label %23

23:                                               ; preds = %21
  store i32 437, ptr %2, align 4, !tbaa !5
  br label %67

24:                                               ; preds = %21
  store volatile i32 1, ptr @canjump, align 4, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %6, i64 8
  %26 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) %25) #8
  %27 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.24) #8
  br i1 %.not.not, label %31, label %28

28:                                               ; preds = %24
  %29 = load ptr, ptr %6, align 8, !tbaa !15
  %30 = call ptr @dlsym(ptr noundef %29, ptr noundef nonnull %4) #8
  br label %33

31:                                               ; preds = %24
  %32 = call ptr @internal_dlsym(ptr noundef nonnull %4)
  br label %33

33:                                               ; preds = %31, %28
  %.024 = phi ptr [ %32, %31 ], [ %30, %28 ]
  call void %.024(ptr noundef %0) #8
  %34 = call i32 @EF_Util_ressig(ptr noundef nonnull @.str.23)
  br label %67

35:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #8
  %36 = load ptr, ptr @pyefcn_custom_axes_func, align 8, !tbaa !16
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %51

38:                                               ; preds = %35
  %39 = load ptr, ptr @pyefcn_handle, align 8, !tbaa !16
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %44

41:                                               ; preds = %38
  %42 = load ptr, ptr @stderr, align 8, !tbaa !16
  %43 = call i32 @fputs(ptr noundef nonnull @.str.25, ptr noundef %42) #11
  br label %.critedge

44:                                               ; preds = %38
  %45 = call ptr @dlsym(ptr noundef nonnull %39, ptr noundef nonnull @.str.26) #8
  store ptr %45, ptr @pyefcn_custom_axes_func, align 8, !tbaa !16
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %51

47:                                               ; preds = %44
  %48 = load ptr, ptr @stderr, align 8, !tbaa !16
  %49 = call ptr @dlerror() #8
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.27, ptr noundef %49) #12
  br label %.critedge

51:                                               ; preds = %44, %35
  %52 = call i32 @EF_Util_setsig(ptr noundef nonnull @.str.23)
  %.not29 = icmp eq i32 %52, 0
  br i1 %.not29, label %53, label %.critedge

53:                                               ; preds = %51
  %54 = call i32 @__sigsetjmp(ptr noundef nonnull @sigjumpbuffer, i32 noundef 1) #10
  %.not30 = icmp eq i32 %54, 0
  br i1 %.not30, label %55, label %.critedge

55:                                               ; preds = %53
  %56 = call i32 @_setjmp(ptr noundef nonnull @jumpbuffer) #10
  %.not31 = icmp eq i32 %56, 0
  br i1 %.not31, label %57, label %.critedge

57:                                               ; preds = %55
  store volatile i32 1, ptr @canjump, align 4, !tbaa !5
  %58 = load ptr, ptr @pyefcn_custom_axes_func, align 8, !tbaa !16
  %59 = load i32, ptr %0, align 4, !tbaa !5
  call void %58(i32 noundef %59, ptr noundef nonnull %9, ptr noundef nonnull %5) #8
  %char0 = load i8, ptr %5, align 16
  %.not32 = icmp eq i8 %char0, 0
  br i1 %.not32, label %61, label %60

60:                                               ; preds = %57
  call void @ef_err_bail_out_(ptr noundef nonnull %0, ptr noundef nonnull %5)
  br label %61

61:                                               ; preds = %60, %57
  %62 = call i32 @EF_Util_ressig(ptr noundef nonnull @.str.23)
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #8
  br label %67

63:                                               ; preds = %8
  store i32 437, ptr %2, align 4, !tbaa !5
  %64 = load ptr, ptr @stderr, align 8, !tbaa !16
  %65 = load i32, ptr %13, align 4, !tbaa !12
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.28, i32 noundef %65) #12
  br label %67

.critedge:                                        ; preds = %55, %53, %51, %47, %41
  store i32 437, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #8
  br label %67

67:                                               ; preds = %33, %63, %61, %.critedge, %3, %23, %20, %17
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; Function Attrs: nounwind uwtable
declare dso_local void @EF_store_globals(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare dso_local void @ef_err_bail_out_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @EF_Util_setsig(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @EF_Util_ressig(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 = { nounwind returns_twice "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 = { nofree 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 #6 = { 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind returns_twice }
attributes #11 = { cold }
attributes #12 = { cold 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 184}
!10 = !{!"", !11, i64 0, !7, i64 8, !7, i64 48, !6, i64 176, !6, i64 180, !11, i64 184}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 212}
!13 = !{!"", !14, i64 0, !7, i64 4, !7, i64 132, !7, i64 172, !6, i64 212, !6, i64 216, !6, i64 220, !6, i64 224, !7, i64 228, !7, i64 444, !7, i64 660, !7, i64 684, !7, i64 708, !6, i64 732, !7, i64 736, !7, i64 760, !7, i64 1288, !7, i64 1504, !7, i64 1720, !7, i64 1936, !7, i64 1972, !7, i64 2332, !7, i64 2692}
!14 = !{!"float", !7, i64 0}
!15 = !{!10, !11, i64 0}
!16 = !{!11, !11, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass