; LLVM IR from CerebusOSS/CereLink :: samples/TestCBSDK/testcbsdk.ll (Z8testOpenPKciS0_)

; 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._cbSdkVersion = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct._cbSdkConnection = type <{ i32, i32, i32, [4 x i8], ptr, ptr, i32, [4 x i8] }>

@.str.21 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [37 x i8], align 1
@__const._Z8testOpenPKciS0_.strConnection = external hidden unnamed_addr constant [5 x [8 x i8]], align 16
@__const._Z8testOpenPKciS0_.strInstrument = external hidden unnamed_addr constant [5 x [13 x i8]], align 16
@.str.23 = external hidden unnamed_addr constant [90 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12handleResult12_cbSdkResult(i32 noundef) #0

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14testGetVersionv(ptr dead_on_unwind noalias writable sret(%struct._cbSdkVersion) align 4) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8testOpenPKciS0_(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct._cbSdkVersion, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct._cbSdkConnection, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct._cbSdkConnection, align 8
  %12 = alloca i32, align 4
  %13 = alloca [5 x [8 x i8]], align 16
  %14 = alloca [5 x [13 x i8]], align 16
  %15 = alloca %struct._cbSdkVersion, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #5
  call void @_Z14testGetVersionv(ptr dead_on_unwind writable sret(%struct._cbSdkVersion) align 4 %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #5
  call void @_ZN16_cbSdkConnectionC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9)
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct._cbSdkConnection, ptr %9, i32 0, i32 5
  store ptr %16, ptr %17, align 8, !tbaa !13
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = getelementptr inbounds %struct._cbSdkConnection, ptr %9, i32 0, i32 1
  store i32 %18, ptr %19, align 4, !tbaa !15
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct._cbSdkConnection, ptr %9, i32 0, i32 4
  store ptr %20, ptr %21, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %22 = load i32, ptr %8, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %9, i64 40, i1 false), !tbaa.struct !17
  %23 = call i32 @cbSdkOpen(i32 noundef 0, i32 noundef %22, ptr noundef byval(%struct._cbSdkConnection) align 8 %11)
  store i32 %23, ptr %10, align 4, !tbaa !18
  %24 = load i32, ptr %10, align 4, !tbaa !18
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %28

26:                                               ; preds = %3
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  br label %28

28:                                               ; preds = %26, %3
  %29 = load i32, ptr %10, align 4, !tbaa !18
  call void @_Z12handleResult12_cbSdkResult(i32 noundef %29)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %30 = load i32, ptr %10, align 4, !tbaa !18
  %31 = icmp sge i32 %30, 0
  br i1 %31, label %32, label %75

32:                                               ; preds = %28
  %33 = call i32 @cbSdkGetType(i32 noundef 0, ptr noundef %8, ptr noundef %12)
  store i32 %33, ptr %10, align 4, !tbaa !18
  %34 = load i32, ptr %10, align 4, !tbaa !18
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %32
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  br label %38

38:                                               ; preds = %36, %32
  %39 = load i32, ptr %10, align 4, !tbaa !18
  call void @_Z12handleResult12_cbSdkResult(i32 noundef %39)
  %40 = load i32, ptr %8, align 4, !tbaa !11
  %41 = icmp slt i32 %40, 0
  br i1 %41, label %45, label %42

42:                                               ; preds = %38
  %43 = load i32, ptr %8, align 4, !tbaa !11
  %44 = icmp sgt i32 %43, 3
  br i1 %44, label %45, label %46

45:                                               ; preds = %42, %38
  store i32 4, ptr %8, align 4, !tbaa !11
  br label %46

46:                                               ; preds = %45, %42
  %47 = load i32, ptr %12, align 4, !tbaa !20
  %48 = icmp slt i32 %47, 0
  br i1 %48, label %52, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %12, align 4, !tbaa !20
  %51 = icmp sgt i32 %50, 4
  br i1 %51, label %52, label %53

52:                                               ; preds = %49, %46
  store i32 4, ptr %12, align 4, !tbaa !20
  br label %53

53:                                               ; preds = %52, %49
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const._Z8testOpenPKciS0_.strConnection, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 65, ptr %14) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const._Z8testOpenPKciS0_.strInstrument, i64 65, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #5
  call void @_Z14testGetVersionv(ptr dead_on_unwind writable sret(%struct._cbSdkVersion) align 4 %15)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %15, i64 48, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #5
  %54 = load i32, ptr %8, align 4, !tbaa !11
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds [5 x [8 x i8]], ptr %13, i64 0, i64 %55
  %57 = getelementptr inbounds [8 x i8], ptr %56, i64 0, i64 0
  %58 = load i32, ptr %12, align 4, !tbaa !20
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds [5 x [13 x i8]], ptr %14, i64 0, i64 %59
  %61 = getelementptr inbounds [13 x i8], ptr %60, i64 0, i64 0
  %62 = getelementptr inbounds %struct._cbSdkVersion, ptr %7, i32 0, i32 6
  %63 = load i32, ptr %62, align 4, !tbaa !23
  %64 = getelementptr inbounds %struct._cbSdkVersion, ptr %7, i32 0, i32 7
  %65 = load i32, ptr %64, align 4, !tbaa !25
  %66 = getelementptr inbounds %struct._cbSdkVersion, ptr %7, i32 0, i32 8
  %67 = load i32, ptr %66, align 4, !tbaa !26
  %68 = getelementptr inbounds %struct._cbSdkVersion, ptr %7, i32 0, i32 9
  %69 = load i32, ptr %68, align 4, !tbaa !27
  %70 = getelementptr inbounds %struct._cbSdkVersion, ptr %7, i32 0, i32 10
  %71 = load i32, ptr %70, align 4, !tbaa !28
  %72 = getelementptr inbounds %struct._cbSdkVersion, ptr %7, i32 0, i32 11
  %73 = load i32, ptr %72, align 4, !tbaa !29
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef %57, ptr noundef %61, i32 noundef %63, i32 noundef %65, i32 noundef %67, i32 noundef %69, i32 noundef %71, i32 noundef %73)
  call void @llvm.lifetime.end.p0(i64 65, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #5
  br label %75

75:                                               ; preds = %53, %28
  %76 = load i32, ptr %10, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  ret i32 %76
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16_cbSdkConnectionC2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

declare i32 @cbSdkOpen(i32 noundef, i32 noundef, ptr noundef byval(%struct._cbSdkConnection) align 8) #1

; 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) #4

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

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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, !12, i64 0}
!12 = !{!"_ZTS20_cbSdkConnectionType", !7, i64 0}
!13 = !{!14, !6, i64 24}
!14 = !{!"_ZTS16_cbSdkConnection", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !10, i64 32}
!15 = !{!14, !10, i64 4}
!16 = !{!14, !6, i64 16}
!17 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 4, !9}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS12_cbSdkResult", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTS20_cbSdkInstrumentType", !7, i64 0}
!22 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 28, i64 4, !9, i64 32, i64 4, !9, i64 36, i64 4, !9, i64 40, i64 4, !9, i64 44, i64 4, !9}
!23 = !{!24, !10, i64 24}
!24 = !{!"_ZTS13_cbSdkVersion", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!25 = !{!24, !10, i64 28}
!26 = !{!24, !10, i64 32}
!27 = !{!24, !10, i64 36}
!28 = !{!24, !10, i64 40}
!29 = !{!24, !10, i64 44}


; 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._cbSdkVersion = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct._cbSdkConnection = type <{ i32, i32, i32, [4 x i8], ptr, ptr, i32, [4 x i8] }>

@.str.21 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [37 x i8], align 1
@__const._Z8testOpenPKciS0_.strConnection = external hidden unnamed_addr constant [5 x [8 x i8]], align 16
@__const._Z8testOpenPKciS0_.strInstrument = external hidden unnamed_addr constant [5 x [13 x i8]], align 16
@.str.23 = external hidden unnamed_addr constant [90 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12handleResult12_cbSdkResult(i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14testGetVersionv(ptr dead_on_unwind noalias writable sret(%struct._cbSdkVersion) align 4) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8testOpenPKciS0_(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct._cbSdkVersion, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct._cbSdkConnection, align 8
  %7 = alloca i32, align 4
  %8 = alloca [5 x [8 x i8]], align 16
  %9 = alloca [5 x [13 x i8]], align 16
  %10 = alloca %struct._cbSdkVersion, align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
  call void @_Z14testGetVersionv(ptr dead_on_unwind nonnull writable sret(%struct._cbSdkVersion) align 4 %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  call void @_ZN16_cbSdkConnectionC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6)
  %11 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr %0, ptr %11, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 %1, ptr %12, align 4, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %2, ptr %13, align 8, !tbaa !14
  %14 = call i32 @cbSdkOpen(i32 noundef 0, i32 noundef 0, ptr noundef nonnull byval(%struct._cbSdkConnection) align 8 %6)
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %.thread, label %15

.thread:                                          ; preds = %3
  call void @_Z12handleResult12_cbSdkResult(i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  br label %18

15:                                               ; preds = %3
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21)
  call void @_Z12handleResult12_cbSdkResult(i32 noundef %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %17 = icmp sgt i32 %14, -1
  br i1 %17, label %18, label %48

18:                                               ; preds = %.thread, %15
  %19 = call i32 @cbSdkGetType(i32 noundef 0, ptr noundef nonnull %5, ptr noundef nonnull %7)
  %.not12 = icmp eq i32 %19, 0
  br i1 %.not12, label %22, label %20

20:                                               ; preds = %18
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22)
  br label %22

22:                                               ; preds = %20, %18
  call void @_Z12handleResult12_cbSdkResult(i32 noundef %19)
  %23 = load i32, ptr %5, align 4
  %or.cond = icmp ugt i32 %23, 3
  br i1 %or.cond, label %24, label %25

24:                                               ; preds = %22
  store i32 4, ptr %5, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %22, %24
  %26 = load i32, ptr %7, align 4
  %or.cond3 = icmp ugt i32 %26, 4
  br i1 %or.cond3, label %27, label %28

27:                                               ; preds = %25
  store i32 4, ptr %7, align 4, !tbaa !15
  br label %28

28:                                               ; preds = %25, %27
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %8, ptr noundef nonnull align 16 dereferenceable(40) @__const._Z8testOpenPKciS0_.strConnection, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 65, ptr nonnull %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(65) %9, ptr noundef nonnull align 16 dereferenceable(65) @__const._Z8testOpenPKciS0_.strInstrument, i64 65, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #6
  call void @_Z14testGetVersionv(ptr dead_on_unwind nonnull writable sret(%struct._cbSdkVersion) align 4 %10)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(48) %10, i64 48, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #6
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds [5 x [8 x i8]], ptr %8, i64 0, i64 %30
  %32 = load i32, ptr %7, align 4, !tbaa !15
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds [5 x [13 x i8]], ptr %9, i64 0, i64 %33
  %35 = getelementptr inbounds i8, ptr %4, i64 24
  %36 = load i32, ptr %35, align 4, !tbaa !19
  %37 = getelementptr inbounds i8, ptr %4, i64 28
  %38 = load i32, ptr %37, align 4, !tbaa !21
  %39 = getelementptr inbounds i8, ptr %4, i64 32
  %40 = load i32, ptr %39, align 4, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %4, i64 36
  %42 = load i32, ptr %41, align 4, !tbaa !23
  %43 = getelementptr inbounds i8, ptr %4, i64 40
  %44 = load i32, ptr %43, align 4, !tbaa !24
  %45 = getelementptr inbounds i8, ptr %4, i64 44
  %46 = load i32, ptr %45, align 4, !tbaa !25
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull %31, ptr noundef nonnull %34, i32 noundef %36, i32 noundef %38, i32 noundef %40, i32 noundef %42, i32 noundef %44, i32 noundef %46)
  call void @llvm.lifetime.end.p0(i64 65, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  br label %48

48:                                               ; preds = %28, %15
  %.0 = phi i32 [ %19, %28 ], [ %14, %15 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  ret i32 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16_cbSdkConnectionC2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

declare i32 @cbSdkOpen(i32 noundef, i32 noundef, ptr noundef byval(%struct._cbSdkConnection) align 8) local_unnamed_addr #4

; Function Attrs: mustprogress 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) #5

declare i32 @cbSdkGetType(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!"_ZTS20_cbSdkConnectionType", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 24}
!10 = !{!"_ZTS16_cbSdkConnection", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !12, i64 24, !11, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !12, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS20_cbSdkInstrumentType", !7, i64 0}
!17 = !{i64 0, i64 4, !18, i64 4, i64 4, !18, i64 8, i64 4, !18, i64 12, i64 4, !18, i64 16, i64 4, !18, i64 20, i64 4, !18, i64 24, i64 4, !18, i64 28, i64 4, !18, i64 32, i64 4, !18, i64 36, i64 4, !18, i64 40, i64 4, !18, i64 44, i64 4, !18}
!18 = !{!11, !11, i64 0}
!19 = !{!20, !11, i64 24}
!20 = !{!"_ZTS13_cbSdkVersion", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44}
!21 = !{!20, !11, i64 28}
!22 = !{!20, !11, i64 32}
!23 = !{!20, !11, i64 36}
!24 = !{!20, !11, i64 40}
!25 = !{!20, !11, i64 44}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,SROAPass,SimplifyCFGPass