; LLVM IR from dennisss/tansa :: src/mocap/optitrack (natnet_client)

; 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.tansa::optitrack::interface" = type { %struct.sockaddr_in, %struct.sockaddr_in }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%struct.ip_mreq = type { %struct.in_addr, %struct.in_addr }
%"class.tansa::Time" = type { %struct.timespec }
%struct.timespec = type { i64, i64 }
%"class.tansa::optitrack::NatNetClient" = type { %"class.tansa::Channel", i32, i8, i32, i64, i32, i64, i32, i32, %struct.sockaddr_in, %struct.sockaddr_in, %"class.tansa::Time", %"class.tansa::Time", [4 x i8], [4 x i8] }
%"class.tansa::Channel" = type { %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::vector<tansa::Subscription *>>, std::_Select1st<std::pair<const int, std::vector<tansa::Subscription *>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::vector<tansa::Subscription *>>, std::_Select1st<std::pair<const int, std::vector<tansa::Subscription *>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [47 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5tansa9optitrack13create_socketEv() #2

; Function Attrs: nounwind
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5tansa9optitrack10find_ifaceEP11sockaddr_inPNS0_9interfaceE(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL10__bswap_32j(i32 noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5tansa9optitrack12NatNetClient7connectEPKcS3_NS0_20NatNetConnectionTypeEii(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #2 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.tansa::optitrack::interface", align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.sockaddr_in, align 4
  %16 = alloca %struct.ip_mreq, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.tansa::Time", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !11
  %19 = load ptr, ptr %7, align 8
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 1
  store i32 %20, ptr %21, align 8, !tbaa !13
  %22 = load i32, ptr %11, align 4, !tbaa !11
  %23 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 7
  store i32 %22, ptr %23, align 8, !tbaa !31
  %24 = load i32, ptr %12, align 4, !tbaa !11
  %25 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 8
  store i32 %24, ptr %25, align 4, !tbaa !32
  %26 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 9
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 16, i1 false)
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 9
  %29 = getelementptr inbounds %struct.sockaddr_in, ptr %28, i32 0, i32 2
  %30 = call i32 @inet_pton(i32 noundef 2, ptr noundef %27, ptr noundef %29) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #9
  %31 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 9
  %32 = call noundef zeroext i1 @_ZN5tansa9optitrack10find_ifaceEP11sockaddr_inPNS0_9interfaceE(ptr noundef %31, ptr noundef %13)
  br i1 %32, label %33, label %38

33:                                               ; preds = %6
  %34 = getelementptr inbounds %"struct.tansa::optitrack::interface", ptr %13, i32 0, i32 0
  %35 = getelementptr inbounds %struct.sockaddr_in, ptr %34, i32 0, i32 2
  %36 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 9
  %37 = getelementptr inbounds %struct.sockaddr_in, ptr %36, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %35, i64 4, i1 false), !tbaa.struct !33
  br label %40

38:                                               ; preds = %6
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %40

40:                                               ; preds = %38, %33
  %41 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 10
  call void @llvm.memset.p0.i64(ptr align 8 %41, i8 0, i64 16, i1 false)
  %42 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 7
  %43 = load i32, ptr %42, align 8, !tbaa !31
  %44 = trunc i32 %43 to i16
  %45 = call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %44)
  %46 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 10
  %47 = getelementptr inbounds %struct.sockaddr_in, ptr %46, i32 0, i32 1
  store i16 %45, ptr %47, align 2, !tbaa !34
  %48 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 10
  %49 = getelementptr inbounds %struct.sockaddr_in, ptr %48, i32 0, i32 0
  store i16 2, ptr %49, align 8, !tbaa !35
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %61

52:                                               ; preds = %40
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = call i64 @strlen(ptr noundef %53) #10
  %55 = icmp ugt i64 %54, 0
  br i1 %55, label %56, label %61

56:                                               ; preds = %52
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 10
  %59 = getelementptr inbounds %struct.sockaddr_in, ptr %58, i32 0, i32 2
  %60 = call i32 @inet_pton(i32 noundef 2, ptr noundef %57, ptr noundef %59) #9
  br label %61

61:                                               ; preds = %56, %52, %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  call void @llvm.memset.p0.i64(ptr align 4 %15, i8 0, i64 16, i1 false)
  %62 = call noundef i32 @_ZN5tansa9optitrack13create_socketEv()
  %63 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 5
  store i32 %62, ptr %63, align 8, !tbaa !36
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %72, label %66

66:                                               ; preds = %61
  %67 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 10
  %68 = getelementptr inbounds %struct.sockaddr_in, ptr %67, i32 0, i32 2
  %69 = getelementptr inbounds %struct.in_addr, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 4, !tbaa !37
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %79

72:                                               ; preds = %66, %61
  store i32 1, ptr %14, align 4, !tbaa !11
  %73 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 5
  %74 = load i32, ptr %73, align 8, !tbaa !36
  %75 = call i32 @setsockopt(i32 noundef %74, i32 noundef 1, i32 noundef 6, ptr noundef %14, i32 noundef 4) #9
  %76 = icmp eq i32 %75, -1
  br i1 %76, label %77, label %78

77:                                               ; preds = %72
  call void @perror(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #11
  unreachable

78:                                               ; preds = %72
  br label %79

79:                                               ; preds = %78, %66
  %80 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 7
  %81 = load i32, ptr %80, align 8, !tbaa !31
  %82 = trunc i32 %81 to i16
  %83 = call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %82)
  %84 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 1
  store i16 %83, ptr %84, align 2, !tbaa !38
  %85 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 0
  store i16 2, ptr %85, align 4, !tbaa !39
  %86 = call noundef i32 @_ZL10__bswap_32j(i32 noundef 0)
  %87 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 2
  %88 = getelementptr inbounds %struct.in_addr, ptr %87, i32 0, i32 0
  store i32 %86, ptr %88, align 4, !tbaa !40
  %89 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 5
  %90 = load i32, ptr %89, align 8, !tbaa !36
  %91 = call i32 @bind(i32 noundef %90, ptr noundef %15, i32 noundef 16) #9
  %92 = icmp slt i32 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %79
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %95

95:                                               ; preds = %93, %79
  %96 = call noundef i32 @_ZN5tansa9optitrack13create_socketEv()
  %97 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 3
  store i32 %96, ptr %97, align 8, !tbaa !41
  %98 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 8
  %99 = load i32, ptr %98, align 4, !tbaa !32
  %100 = trunc i32 %99 to i16
  %101 = call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %100)
  %102 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 1
  store i16 %101, ptr %102, align 2, !tbaa !38
  %103 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 0
  store i16 2, ptr %103, align 4, !tbaa !39
  %104 = call noundef i32 @_ZL10__bswap_32j(i32 noundef 0)
  %105 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 2
  %106 = getelementptr inbounds %struct.in_addr, ptr %105, i32 0, i32 0
  store i32 %104, ptr %106, align 4, !tbaa !40
  %107 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 3
  %108 = load i32, ptr %107, align 8, !tbaa !41
  %109 = call i32 @bind(i32 noundef %108, ptr noundef %15, i32 noundef 16) #9
  %110 = icmp slt i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %95
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %113

113:                                              ; preds = %111, %95
  %114 = load i32, ptr %10, align 4, !tbaa !9
  %115 = icmp eq i32 %114, 1
  br i1 %115, label %116, label %145

116:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %117 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 10
  %118 = getelementptr inbounds %struct.sockaddr_in, ptr %117, i32 0, i32 2
  %119 = getelementptr inbounds %struct.in_addr, ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 4, !tbaa !37
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %126

122:                                              ; preds = %116
  %123 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 10
  %124 = getelementptr inbounds %struct.sockaddr_in, ptr %123, i32 0, i32 2
  %125 = getelementptr inbounds %struct.ip_mreq, ptr %16, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %125, ptr align 4 %124, i64 4, i1 false), !tbaa.struct !33
  br label %129

126:                                              ; preds = %116
  %127 = getelementptr inbounds %struct.ip_mreq, ptr %16, i32 0, i32 0
  %128 = call i32 @inet_pton(i32 noundef 2, ptr noundef @.str.5, ptr noundef %127) #9
  br label %129

129:                                              ; preds = %126, %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %130 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 9
  %131 = getelementptr inbounds %struct.sockaddr_in, ptr %130, i32 0, i32 2
  %132 = getelementptr inbounds %struct.ip_mreq, ptr %16, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %132, ptr align 4 %131, i64 4, i1 false), !tbaa.struct !33
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.ip_mreq, ptr %16, i32 0, i32 1
  %135 = getelementptr inbounds %struct.in_addr, ptr %134, i32 0, i32 0
  %136 = call i32 @inet_pton(i32 noundef 2, ptr noundef %133, ptr noundef %135) #9
  %137 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 3
  %138 = load i32, ptr %137, align 8, !tbaa !41
  %139 = call i32 @setsockopt(i32 noundef %138, i32 noundef 0, i32 noundef 35, ptr noundef %16, i32 noundef 8) #9
  store i32 %139, ptr %17, align 4, !tbaa !11
  %140 = load i32, ptr %17, align 4, !tbaa !11
  %141 = icmp slt i32 %140, 0
  br i1 %141, label %142, label %144

142:                                              ; preds = %129
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %144

144:                                              ; preds = %142, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %157

145:                                              ; preds = %113
  %146 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 10
  %147 = getelementptr inbounds %struct.sockaddr_in, ptr %146, i32 0, i32 2
  %148 = getelementptr inbounds %struct.in_addr, ptr %147, i32 0, i32 0
  %149 = load i32, ptr %148, align 4, !tbaa !37
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %156

151:                                              ; preds = %145
  %152 = getelementptr inbounds %"struct.tansa::optitrack::interface", ptr %13, i32 0, i32 1
  %153 = getelementptr inbounds %struct.sockaddr_in, ptr %152, i32 0, i32 2
  %154 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 10
  %155 = getelementptr inbounds %struct.sockaddr_in, ptr %154, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %155, ptr align 4 %153, i64 4, i1 false), !tbaa.struct !33
  br label %156

156:                                              ; preds = %151, %145
  br label %157

157:                                              ; preds = %156, %144
  store i32 1048576, ptr %14, align 4, !tbaa !11
  %158 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 3
  %159 = load i32, ptr %158, align 8, !tbaa !41
  %160 = call i32 @setsockopt(i32 noundef %159, i32 noundef 1, i32 noundef 8, ptr noundef %14, i32 noundef 4) #9
  %161 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 2
  store i8 1, ptr %161, align 4, !tbaa !42
  %162 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 4
  %163 = call i32 @pthread_create(ptr noundef %162, ptr noundef null, ptr noundef @_ZN5tansa9optitrack18natnet_data_serverEPv, ptr noundef %19) #9
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %167

165:                                              ; preds = %157
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %167

167:                                              ; preds = %165, %157
  %168 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 6
  %169 = call i32 @pthread_create(ptr noundef %168, ptr noundef null, ptr noundef @_ZN5tansa9optitrack17natnet_cmd_serverEPv, ptr noundef %19) #9
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %173

171:                                              ; preds = %167
  %172 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  br label %173

173:                                              ; preds = %171, %167
  %174 = load i32, ptr %10, align 4, !tbaa !9
  %175 = icmp eq i32 %174, 2
  br i1 %175, label %176, label %184

176:                                              ; preds = %173
  call void @_ZN5tansa9optitrack12NatNetClient4pingEv(ptr noundef nonnull align 8 dereferenceable(168) %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #9
  %177 = call { i64, i64 } @_ZN5tansa4Time3nowEv()
  %178 = getelementptr inbounds %"class.tansa::Time", ptr %18, i32 0, i32 0
  %179 = getelementptr inbounds { i64, i64 }, ptr %178, i32 0, i32 0
  %180 = extractvalue { i64, i64 } %177, 0
  store i64 %180, ptr %179, align 8
  %181 = getelementptr inbounds { i64, i64 }, ptr %178, i32 0, i32 1
  %182 = extractvalue { i64, i64 } %177, 1
  store i64 %182, ptr %181, align 8
  %183 = getelementptr inbounds %"class.tansa::optitrack::NatNetClient", ptr %19, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %183, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !43
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  br label %184

184:                                              ; preds = %176, %173
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  ret i32 0
}

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

; Function Attrs: nounwind
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext) #6

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

declare void @perror(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5tansa9optitrack18natnet_data_serverEPv(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5tansa9optitrack17natnet_cmd_serverEPv(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5tansa9optitrack12NatNetClient4pingEv(ptr noundef nonnull align 8 dereferenceable(168)) #2 align 2

declare { i64, i64 } @_ZN5tansa4Time3nowEv() #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { "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 "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 = { inlinehint 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn 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 = !{!"_ZTSN5tansa9optitrack20NatNetConnectionTypeE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 48}
!14 = !{!"_ZTSN5tansa9optitrack12NatNetClientE", !15, i64 0, !10, i64 48, !25, i64 52, !12, i64 56, !24, i64 64, !12, i64 72, !24, i64 80, !12, i64 88, !12, i64 92, !26, i64 96, !26, i64 112, !29, i64 128, !29, i64 144, !7, i64 160, !7, i64 164}
!15 = !{!"_ZTSN5tansa7ChannelE", !16, i64 0}
!16 = !{!"_ZTSSt3mapIiSt6vectorIPN5tansa12SubscriptionESaIS3_EESt4lessIiESaISt4pairIKiS5_EEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiSt6vectorIPN5tansa12SubscriptionESaIS5_EEESt10_Select1stIS8_ESt4lessIiESaIS8_EE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiSt6vectorIPN5tansa12SubscriptionESaIS5_EEESt10_Select1stIS8_ESt4lessIiESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !20, i64 0}
!20 = !{!"_ZTSSt4lessIiE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !24, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTS11sockaddr_in", !27, i64 0, !27, i64 2, !28, i64 4, !7, i64 8}
!27 = !{!"short", !7, i64 0}
!28 = !{!"_ZTS7in_addr", !12, i64 0}
!29 = !{!"_ZTSN5tansa4TimeE", !30, i64 0}
!30 = !{!"_ZTS8timespec", !24, i64 0, !24, i64 8}
!31 = !{!14, !12, i64 88}
!32 = !{!14, !12, i64 92}
!33 = !{i64 0, i64 4, !11}
!34 = !{!14, !27, i64 114}
!35 = !{!14, !27, i64 112}
!36 = !{!14, !12, i64 72}
!37 = !{!14, !12, i64 116}
!38 = !{!26, !27, i64 2}
!39 = !{!26, !27, i64 0}
!40 = !{!26, !12, i64 4}
!41 = !{!14, !12, i64 56}
!42 = !{!14, !25, i64 52}
!43 = !{i64 0, i64 8, !44, i64 8, i64 8, !44}
!44 = !{!24, !24, 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.tansa::optitrack::interface" = type { %struct.sockaddr_in, %struct.sockaddr_in }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%struct.ip_mreq = type { %struct.in_addr, %struct.in_addr }

@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [47 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: mustprogress uwtable
declare dso_local noundef i32 @_ZN5tansa9optitrack13create_socketEv() local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5tansa9optitrack10find_ifaceEP11sockaddr_inPNS0_9interfaceE(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL10__bswap_32j(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5tansa9optitrack12NatNetClient7connectEPKcS3_NS0_20NatNetConnectionTypeEii(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 align 2 {
  %7 = alloca %"struct.tansa::optitrack::interface", align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.sockaddr_in, align 4
  %10 = alloca %struct.ip_mreq, align 4
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %3, ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %4, ptr %12, align 8, !tbaa !28
  %13 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %5, ptr %13, align 4, !tbaa !29
  %14 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  %15 = getelementptr inbounds i8, ptr %0, i64 100
  %16 = tail call i32 @inet_pton(i32 noundef 2, ptr noundef %1, ptr noundef nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  %17 = call noundef zeroext i1 @_ZN5tansa9optitrack10find_ifaceEP11sockaddr_inPNS0_9interfaceE(ptr noundef nonnull %14, ptr noundef nonnull %7)
  br i1 %17, label %18, label %21

18:                                               ; preds = %6
  %19 = getelementptr inbounds i8, ptr %7, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !30
  store i32 %20, ptr %15, align 4, !tbaa !30
  br label %23

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

23:                                               ; preds = %21, %18
  %24 = getelementptr inbounds i8, ptr %0, i64 112
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, i8 0, i64 16, i1 false)
  %25 = load i32, ptr %12, align 8, !tbaa !28
  %26 = trunc i32 %25 to i16
  %27 = call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %26)
  %28 = getelementptr inbounds i8, ptr %0, i64 114
  store i16 %27, ptr %28, align 2, !tbaa !31
  store i16 2, ptr %24, align 8, !tbaa !32
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %33, label %29

29:                                               ; preds = %23
  %char0 = load i8, ptr %2, align 1
  %.not12 = icmp eq i8 %char0, 0
  br i1 %.not12, label %33, label %30

30:                                               ; preds = %29
  %31 = getelementptr inbounds i8, ptr %0, i64 116
  %32 = call i32 @inet_pton(i32 noundef 2, ptr noundef nonnull %2, ptr noundef nonnull %31) #8
  br label %33

33:                                               ; preds = %30, %29, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  %34 = getelementptr inbounds i8, ptr %9, i64 8
  store i64 0, ptr %34, align 4
  %35 = call noundef i32 @_ZN5tansa9optitrack13create_socketEv()
  %36 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %35, ptr %36, align 8, !tbaa !33
  %37 = icmp eq i32 %3, 1
  %38 = getelementptr inbounds i8, ptr %0, i64 116
  %39 = load i32, ptr %38, align 4
  %40 = icmp eq i32 %39, 0
  %or.cond = select i1 %37, i1 true, i1 %40
  br i1 %or.cond, label %41, label %45

41:                                               ; preds = %33
  store i32 1, ptr %8, align 4, !tbaa !30
  %42 = call i32 @setsockopt(i32 noundef %35, i32 noundef 1, i32 noundef 6, ptr noundef nonnull %8, i32 noundef 4) #8
  %43 = icmp eq i32 %42, -1
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  call void @perror(ptr noundef nonnull @.str.2) #9
  call void @exit(i32 noundef 1) #10
  unreachable

45:                                               ; preds = %33, %41
  %46 = load i32, ptr %12, align 8, !tbaa !28
  %47 = trunc i32 %46 to i16
  %48 = call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %47)
  %49 = getelementptr inbounds i8, ptr %9, i64 2
  store i16 %48, ptr %49, align 2, !tbaa !34
  store i16 2, ptr %9, align 4, !tbaa !35
  %50 = call noundef i32 @_ZL10__bswap_32j(i32 noundef 0)
  %51 = getelementptr inbounds i8, ptr %9, i64 4
  store i32 %50, ptr %51, align 4, !tbaa !36
  %52 = load i32, ptr %36, align 8, !tbaa !33
  %53 = call i32 @bind(i32 noundef %52, ptr noundef nonnull %9, i32 noundef 16) #8
  %54 = icmp slt i32 %53, 0
  br i1 %54, label %55, label %57

55:                                               ; preds = %45
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %57

57:                                               ; preds = %55, %45
  %58 = call noundef i32 @_ZN5tansa9optitrack13create_socketEv()
  %59 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %58, ptr %59, align 8, !tbaa !37
  %60 = load i32, ptr %13, align 4, !tbaa !29
  %61 = trunc i32 %60 to i16
  %62 = call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %61)
  store i16 %62, ptr %49, align 2, !tbaa !34
  store i16 2, ptr %9, align 4, !tbaa !35
  %63 = call noundef i32 @_ZL10__bswap_32j(i32 noundef 0)
  store i32 %63, ptr %51, align 4, !tbaa !36
  %64 = load i32, ptr %59, align 8, !tbaa !37
  %65 = call i32 @bind(i32 noundef %64, ptr noundef nonnull %9, i32 noundef 16) #8
  %66 = icmp slt i32 %65, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %57
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %69

69:                                               ; preds = %67, %57
  br i1 %37, label %70, label %85

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %71 = load i32, ptr %38, align 4, !tbaa !30
  %.not13 = icmp eq i32 %71, 0
  br i1 %.not13, label %73, label %72

72:                                               ; preds = %70
  store i32 %71, ptr %10, align 4, !tbaa !30
  br label %75

73:                                               ; preds = %70
  %74 = call i32 @inet_pton(i32 noundef 2, ptr noundef nonnull @.str.5, ptr noundef nonnull %10) #8
  br label %75

75:                                               ; preds = %73, %72
  %76 = getelementptr inbounds i8, ptr %10, i64 4
  %77 = load i32, ptr %15, align 4, !tbaa !30
  store i32 %77, ptr %76, align 4, !tbaa !30
  %78 = call i32 @inet_pton(i32 noundef 2, ptr noundef %1, ptr noundef nonnull %76) #8
  %79 = load i32, ptr %59, align 8, !tbaa !37
  %80 = call i32 @setsockopt(i32 noundef %79, i32 noundef 0, i32 noundef 35, ptr noundef nonnull %10, i32 noundef 8) #8
  %81 = icmp slt i32 %80, 0
  br i1 %81, label %82, label %84

82:                                               ; preds = %75
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %84

84:                                               ; preds = %82, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %91

85:                                               ; preds = %69
  %86 = load i32, ptr %38, align 4, !tbaa !38
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %91

88:                                               ; preds = %85
  %89 = getelementptr inbounds i8, ptr %7, i64 20
  %90 = load i32, ptr %89, align 4, !tbaa !30
  store i32 %90, ptr %38, align 4, !tbaa !30
  br label %91

91:                                               ; preds = %85, %88, %84
  store i32 1048576, ptr %8, align 4, !tbaa !30
  %92 = load i32, ptr %59, align 8, !tbaa !37
  %93 = call i32 @setsockopt(i32 noundef %92, i32 noundef 1, i32 noundef 8, ptr noundef nonnull %8, i32 noundef 4) #8
  %94 = getelementptr inbounds i8, ptr %0, i64 52
  store i8 1, ptr %94, align 4, !tbaa !39
  %95 = getelementptr inbounds i8, ptr %0, i64 64
  %96 = call i32 @pthread_create(ptr noundef nonnull %95, ptr noundef null, ptr noundef nonnull @_ZN5tansa9optitrack18natnet_data_serverEPv, ptr noundef nonnull %0) #8
  %.not14 = icmp eq i32 %96, 0
  br i1 %.not14, label %99, label %97

97:                                               ; preds = %91
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %99

99:                                               ; preds = %97, %91
  %100 = getelementptr inbounds i8, ptr %0, i64 80
  %101 = call i32 @pthread_create(ptr noundef nonnull %100, ptr noundef null, ptr noundef nonnull @_ZN5tansa9optitrack17natnet_cmd_serverEPv, ptr noundef nonnull %0) #8
  %.not15 = icmp eq i32 %101, 0
  br i1 %.not15, label %104, label %102

102:                                              ; preds = %99
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %104

104:                                              ; preds = %102, %99
  %105 = icmp eq i32 %3, 2
  br i1 %105, label %106, label %111

106:                                              ; preds = %104
  call void @_ZN5tansa9optitrack12NatNetClient4pingEv(ptr noundef nonnull align 8 dereferenceable(168) %0)
  %107 = call { i64, i64 } @_ZN5tansa4Time3nowEv()
  %108 = extractvalue { i64, i64 } %107, 0
  %109 = extractvalue { i64, i64 } %107, 1
  %110 = getelementptr inbounds i8, ptr %0, i64 128
  store i64 %108, ptr %110, align 8, !tbaa !40
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 136
  store i64 %109, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !40
  br label %111

111:                                              ; preds = %106, %104
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  ret i32 0
}

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

; Function Attrs: nounwind
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5tansa9optitrack18natnet_data_serverEPv(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5tansa9optitrack17natnet_cmd_serverEPv(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5tansa9optitrack12NatNetClient4pingEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #1 align 2

declare { i64, i64 } @_ZN5tansa4Time3nowEv() local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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 = { 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 #4 = { 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 #5 = { inlinehint 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { "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 #8 = { nounwind }
attributes #9 = { cold }
attributes #10 = { noreturn 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, !20, i64 48}
!6 = !{!"_ZTSN5tansa9optitrack12NatNetClientE", !7, i64 0, !20, i64 48, !21, i64 52, !22, i64 56, !19, i64 64, !22, i64 72, !19, i64 80, !22, i64 88, !22, i64 92, !23, i64 96, !23, i64 112, !26, i64 128, !26, i64 144, !16, i64 160, !16, i64 164}
!7 = !{!"_ZTSN5tansa7ChannelE", !8, i64 0}
!8 = !{!"_ZTSSt3mapIiSt6vectorIPN5tansa12SubscriptionESaIS3_EESt4lessIiESaISt4pairIKiS5_EEE", !9, i64 0}
!9 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiSt6vectorIPN5tansa12SubscriptionESaIS5_EEESt10_Select1stIS8_ESt4lessIiESaIS8_EE", !10, i64 0}
!10 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiSt6vectorIPN5tansa12SubscriptionESaIS5_EEESt10_Select1stIS8_ESt4lessIiESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !11, i64 0, !13, i64 8}
!11 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !12, i64 0}
!12 = !{!"_ZTSSt4lessIiE"}
!13 = !{!"_ZTSSt15_Rb_tree_header", !14, i64 0, !19, i64 32}
!14 = !{!"_ZTSSt18_Rb_tree_node_base", !15, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!15 = !{!"_ZTSSt14_Rb_tree_color", !16, i64 0}
!16 = !{!"omnipotent char", !17, i64 0}
!17 = !{!"Simple C++ TBAA"}
!18 = !{!"any pointer", !16, i64 0}
!19 = !{!"long", !16, i64 0}
!20 = !{!"_ZTSN5tansa9optitrack20NatNetConnectionTypeE", !16, i64 0}
!21 = !{!"bool", !16, i64 0}
!22 = !{!"int", !16, i64 0}
!23 = !{!"_ZTS11sockaddr_in", !24, i64 0, !24, i64 2, !25, i64 4, !16, i64 8}
!24 = !{!"short", !16, i64 0}
!25 = !{!"_ZTS7in_addr", !22, i64 0}
!26 = !{!"_ZTSN5tansa4TimeE", !27, i64 0}
!27 = !{!"_ZTS8timespec", !19, i64 0, !19, i64 8}
!28 = !{!6, !22, i64 88}
!29 = !{!6, !22, i64 92}
!30 = !{!22, !22, i64 0}
!31 = !{!6, !24, i64 114}
!32 = !{!6, !24, i64 112}
!33 = !{!6, !22, i64 72}
!34 = !{!23, !24, i64 2}
!35 = !{!23, !24, i64 0}
!36 = !{!23, !22, i64 4}
!37 = !{!6, !22, i64 56}
!38 = !{!6, !22, i64 116}
!39 = !{!6, !21, i64 52}
!40 = !{!19, !19, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass