; LLVM IR from ElsevierSoftwareX/SOFTX-D-20-00016 :: GameplayFootball/src/libs/glee/GLee.ll_ (GLeeLink_GL_EXT_fragment_lighting)

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

@GLeeFuncPtr_glFragmentLightModeliEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentLightModelfEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentLightModelivEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentLightModelfvEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentLightiEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentLightfEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentLightivEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentLightfvEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glGetFragmentLightivEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glGetFragmentLightfvEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentMaterialfEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentMaterialiEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentMaterialfvEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentMaterialivEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glFragmentColorMaterialEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glGetFragmentMaterialfvEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glGetFragmentMaterialivEXT = external dso_local global ptr, align 8
@GLeeFuncPtr_glLightEnviEXT = external dso_local global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @__GLeeGetProcAddress(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @__GLeeLink_GL_EXT_fragment_lighting() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #2
  store i32 0, ptr %2, align 4, !tbaa !5
  %4 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.2)
  store ptr %4, ptr @GLeeFuncPtr_glFragmentLightModeliEXT, align 8, !tbaa !9
  %5 = icmp ne ptr %4, null
  br i1 %5, label %6, label %9

6:                                                ; preds = %0
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = add nsw i32 %7, 1
  store i32 %8, ptr %2, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %6, %0
  %10 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.3)
  store ptr %10, ptr @GLeeFuncPtr_glFragmentLightModelfEXT, align 8, !tbaa !9
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %15

12:                                               ; preds = %9
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %2, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %12, %9
  %16 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.4)
  store ptr %16, ptr @GLeeFuncPtr_glFragmentLightModelivEXT, align 8, !tbaa !9
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %21

18:                                               ; preds = %15
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %2, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %18, %15
  %22 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.5)
  store ptr %22, ptr @GLeeFuncPtr_glFragmentLightModelfvEXT, align 8, !tbaa !9
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %27

24:                                               ; preds = %21
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %2, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %24, %21
  %28 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.6)
  store ptr %28, ptr @GLeeFuncPtr_glFragmentLightiEXT, align 8, !tbaa !9
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %33

30:                                               ; preds = %27
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %2, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %30, %27
  %34 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.7)
  store ptr %34, ptr @GLeeFuncPtr_glFragmentLightfEXT, align 8, !tbaa !9
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %2, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %36, %33
  %40 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.8)
  store ptr %40, ptr @GLeeFuncPtr_glFragmentLightivEXT, align 8, !tbaa !9
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %45

42:                                               ; preds = %39
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %2, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %42, %39
  %46 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.9)
  store ptr %46, ptr @GLeeFuncPtr_glFragmentLightfvEXT, align 8, !tbaa !9
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %2, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %48, %45
  %52 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.10)
  store ptr %52, ptr @GLeeFuncPtr_glGetFragmentLightivEXT, align 8, !tbaa !9
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %57

54:                                               ; preds = %51
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %2, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %54, %51
  %58 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.11)
  store ptr %58, ptr @GLeeFuncPtr_glGetFragmentLightfvEXT, align 8, !tbaa !9
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %63

60:                                               ; preds = %57
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %2, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %60, %57
  %64 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.12)
  store ptr %64, ptr @GLeeFuncPtr_glFragmentMaterialfEXT, align 8, !tbaa !9
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %69

66:                                               ; preds = %63
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %2, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %66, %63
  %70 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.13)
  store ptr %70, ptr @GLeeFuncPtr_glFragmentMaterialiEXT, align 8, !tbaa !9
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %75

72:                                               ; preds = %69
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %2, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %72, %69
  %76 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.14)
  store ptr %76, ptr @GLeeFuncPtr_glFragmentMaterialfvEXT, align 8, !tbaa !9
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %2, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %78, %75
  %82 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.15)
  store ptr %82, ptr @GLeeFuncPtr_glFragmentMaterialivEXT, align 8, !tbaa !9
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %87

84:                                               ; preds = %81
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %2, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %84, %81
  %88 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.16)
  store ptr %88, ptr @GLeeFuncPtr_glFragmentColorMaterialEXT, align 8, !tbaa !9
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %93

90:                                               ; preds = %87
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %2, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %90, %87
  %94 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.17)
  store ptr %94, ptr @GLeeFuncPtr_glGetFragmentMaterialfvEXT, align 8, !tbaa !9
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %99

96:                                               ; preds = %93
  %97 = load i32, ptr %2, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %2, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %96, %93
  %100 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.18)
  store ptr %100, ptr @GLeeFuncPtr_glGetFragmentMaterialivEXT, align 8, !tbaa !9
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %105

102:                                              ; preds = %99
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %2, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %102, %99
  %106 = call ptr @__GLeeGetProcAddress(ptr noundef @.str.19)
  store ptr %106, ptr @GLeeFuncPtr_glLightEnviEXT, align 8, !tbaa !9
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %111

108:                                              ; preds = %105
  %109 = load i32, ptr %2, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %2, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %108, %105
  %112 = load i32, ptr %2, align 4, !tbaa !5
  %113 = icmp eq i32 %112, 18
  br i1 %113, label %114, label %115

114:                                              ; preds = %111
  store i32 2, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %120

115:                                              ; preds = %111
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %115
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %120

119:                                              ; preds = %115
  store i32 1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %120

120:                                              ; preds = %119, %118, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #2
  %121 = load i32, ptr %1, align 4
  ret i32 %121
}

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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, !10, i64 0}
!10 = !{!"any pointer", !7, 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"

@GLeeFuncPtr_glFragmentLightModeliEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentLightModelfEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentLightModelivEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentLightModelfvEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentLightiEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentLightfEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentLightivEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentLightfvEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glGetFragmentLightivEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glGetFragmentLightfvEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentMaterialfEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentMaterialiEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentMaterialfvEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentMaterialivEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glFragmentColorMaterialEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glGetFragmentMaterialfvEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glGetFragmentMaterialivEXT = external dso_local local_unnamed_addr global ptr, align 8
@GLeeFuncPtr_glLightEnviEXT = external dso_local local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @__GLeeGetProcAddress(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 3) i32 @__GLeeLink_GL_EXT_fragment_lighting() local_unnamed_addr #0 {
  %1 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.2)
  store ptr %1, ptr @GLeeFuncPtr_glFragmentLightModeliEXT, align 8, !tbaa !5
  %.not = icmp ne ptr %1, null
  %spec.select = zext i1 %.not to i32
  %2 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.3)
  store ptr %2, ptr @GLeeFuncPtr_glFragmentLightModelfEXT, align 8, !tbaa !5
  %.not22 = icmp eq ptr %2, null
  %3 = select i1 %.not, i32 2, i32 1
  %.1 = select i1 %.not22, i32 %spec.select, i32 %3
  %4 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.4)
  store ptr %4, ptr @GLeeFuncPtr_glFragmentLightModelivEXT, align 8, !tbaa !5
  %5 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.5)
  store ptr %5, ptr @GLeeFuncPtr_glFragmentLightModelfvEXT, align 8, !tbaa !5
  %6 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.6)
  store ptr %6, ptr @GLeeFuncPtr_glFragmentLightiEXT, align 8, !tbaa !5
  %7 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.7)
  store ptr %7, ptr @GLeeFuncPtr_glFragmentLightfEXT, align 8, !tbaa !5
  %8 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.8)
  store ptr %8, ptr @GLeeFuncPtr_glFragmentLightivEXT, align 8, !tbaa !5
  %9 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.9)
  store ptr %9, ptr @GLeeFuncPtr_glFragmentLightfvEXT, align 8, !tbaa !5
  %10 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.10)
  store ptr %10, ptr @GLeeFuncPtr_glGetFragmentLightivEXT, align 8, !tbaa !5
  %11 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.11)
  store ptr %11, ptr @GLeeFuncPtr_glGetFragmentLightfvEXT, align 8, !tbaa !5
  %12 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.12)
  store ptr %12, ptr @GLeeFuncPtr_glFragmentMaterialfEXT, align 8, !tbaa !5
  %13 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.13)
  store ptr %13, ptr @GLeeFuncPtr_glFragmentMaterialiEXT, align 8, !tbaa !5
  %14 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.14)
  store ptr %14, ptr @GLeeFuncPtr_glFragmentMaterialfvEXT, align 8, !tbaa !5
  %15 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.15)
  store ptr %15, ptr @GLeeFuncPtr_glFragmentMaterialivEXT, align 8, !tbaa !5
  %16 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.16)
  store ptr %16, ptr @GLeeFuncPtr_glFragmentColorMaterialEXT, align 8, !tbaa !5
  %17 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.17)
  store ptr %17, ptr @GLeeFuncPtr_glGetFragmentMaterialfvEXT, align 8, !tbaa !5
  %18 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.18)
  store ptr %18, ptr @GLeeFuncPtr_glGetFragmentMaterialivEXT, align 8, !tbaa !5
  %19 = tail call ptr @__GLeeGetProcAddress(ptr noundef nonnull @.str.19)
  store ptr %19, ptr @GLeeFuncPtr_glLightEnviEXT, align 8, !tbaa !5
  %20 = insertelement <16 x ptr> poison, ptr %4, i64 0
  %21 = insertelement <16 x ptr> %20, ptr %5, i64 1
  %22 = insertelement <16 x ptr> %21, ptr %6, i64 2
  %23 = insertelement <16 x ptr> %22, ptr %7, i64 3
  %24 = insertelement <16 x ptr> %23, ptr %8, i64 4
  %25 = insertelement <16 x ptr> %24, ptr %9, i64 5
  %26 = insertelement <16 x ptr> %25, ptr %10, i64 6
  %27 = insertelement <16 x ptr> %26, ptr %11, i64 7
  %28 = insertelement <16 x ptr> %27, ptr %12, i64 8
  %29 = insertelement <16 x ptr> %28, ptr %13, i64 9
  %30 = insertelement <16 x ptr> %29, ptr %14, i64 10
  %31 = insertelement <16 x ptr> %30, ptr %15, i64 11
  %32 = insertelement <16 x ptr> %31, ptr %16, i64 12
  %33 = insertelement <16 x ptr> %32, ptr %17, i64 13
  %34 = insertelement <16 x ptr> %33, ptr %18, i64 14
  %35 = insertelement <16 x ptr> %34, ptr %19, i64 15
  %36 = icmp ne <16 x ptr> %35, zeroinitializer
  %37 = bitcast <16 x i1> %36 to i16
  %38 = tail call range(i16 0, 17) i16 @llvm.ctpop.i16(i16 %37)
  %39 = zext nneg i16 %38 to i32
  %op.rdx = add nuw nsw i32 %.1, %39
  %switch.selectcmp = icmp ne i32 %op.rdx, 0
  %switch.select = zext i1 %switch.selectcmp to i32
  %switch.selectcmp39 = icmp eq i32 %op.rdx, 18
  %switch.select40 = select i1 %switch.selectcmp39, i32 2, i32 %switch.select
  ret i32 %switch.select40
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.ctpop.i16(i16) #1

attributes #0 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass