; LLVM IR from erwincoumans/tiny-differentiable-simulator :: examples (meshcat_zmq_example)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.zmq::context_t" = type { ptr }
%"class.zmq::socket_t" = type { %"class.zmq::detail::socket_base", ptr }
%"class.zmq::detail::socket_base" = type { ptr }
%"class.nlohmann::basic_json" = type { i8, %"union.nlohmann::basic_json<>::json_value" }
%"union.nlohmann::basic_json<>::json_value" = type { ptr }
%"class.std::allocator" = type { i8 }
%"class.TINY::TinyMatrix3x3" = type { [3 x %"struct.TINY::TinyVector3"], i32, i32 }
%"struct.TINY::TinyVector3" = type <{ double, double, double, i32, [4 x i8] }>
%"class.std::chrono::duration" = type { double }

@_ZL25texture_data_broken_robotB5cxx11 = external hidden global %"class.std::__cxx11::basic_string", align 8
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@__const.main.world_pos_init = external hidden unnamed_addr constant [3 x double], align 16
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@_ZL17meshcat_cube_data = external hidden global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@__const.main.world_pos = external hidden unnamed_addr constant [3 x double], align 16

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.zmq::context_t", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.zmq::socket_t", align 8
  %11 = alloca %"class.nlohmann::basic_json", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.nlohmann::basic_json", align 8
  %15 = alloca [3 x double], align 16
  %16 = alloca i32, align 4
  %17 = alloca %"class.nlohmann::basic_json", align 8
  %18 = alloca %"class.nlohmann::basic_json", align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca [3 x double], align 16
  %22 = alloca %"class.nlohmann::basic_json", align 8
  %23 = alloca %"class.nlohmann::basic_json", align 8
  %24 = alloca i32, align 4
  %25 = alloca [3 x double], align 16
  %26 = alloca ptr, align 8
  %27 = alloca %"class.nlohmann::basic_json", align 8
  %28 = alloca %"class.nlohmann::basic_json", align 8
  %29 = alloca %"class.TINY::TinyMatrix3x3", align 8
  %30 = alloca [3 x double], align 16
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca %"class.std::chrono::duration", align 8
  %34 = alloca [9 x double], align 16
  %35 = alloca [3 x double], align 16
  %36 = alloca %"class.nlohmann::basic_json", align 8
  %37 = alloca %"class.nlohmann::basic_json", align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) @_ZL25texture_data_broken_robotB5cxx11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  invoke void @_ZN3zmq9context_tC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %39 unwind label %72

39:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #9
  invoke void @_ZN3zmq8socket_tC2ERNS_9context_tEi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 3)
          to label %40 unwind label %76

40:                                               ; preds = %39
  invoke void @_ZN3zmq6detail11socket_base7connectEPKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.7)
          to label %41 unwind label %80

41:                                               ; preds = %40
  %42 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.8)
          to label %43 unwind label %80

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %44 unwind label %84

44:                                               ; preds = %43
  invoke void @_Z17create_delete_cmdRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.nlohmann::basic_json") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %45 unwind label %88

45:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #9
  invoke void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %46 unwind label %93

46:                                               ; preds = %45
  invoke void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %14, i1 noundef zeroext false)
          to label %47 unwind label %97

47:                                               ; preds = %46
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const.main.world_pos_init, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 16711680, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  %48 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %49 = load i32, ptr %16, align 4, !tbaa !5
  invoke void @_Z17create_sphere_cmdB5cxx11dPdiPKcbd(ptr dead_on_unwind writable sret(%"class.nlohmann::basic_json") align 8 %17, double noundef 1.000000e+00, ptr noundef %48, i32 noundef %49, ptr noundef @.str.10, i1 noundef zeroext false, double noundef 1.000000e+00)
          to label %50 unwind label %101

50:                                               ; preds = %47
  invoke void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %51 unwind label %105

51:                                               ; preds = %50
  invoke void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %18, i1 noundef zeroext false)
          to label %52 unwind label %109

52:                                               ; preds = %51
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #9
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 16777215, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  store ptr @.str.11, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #9
  call void @llvm.memset.p0.i64(ptr align 16 %21, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  %53 = load ptr, ptr @_ZL17meshcat_cube_data, align 8, !tbaa !9
  %54 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  %55 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
  %56 = load i32, ptr %19, align 4, !tbaa !5
  %57 = load ptr, ptr %20, align 8, !tbaa !9
  invoke void @_Z24create_textured_mesh_cmdB5cxx11PKcS0_PdiS0_(ptr dead_on_unwind writable sret(%"class.nlohmann::basic_json") align 8 %22, ptr noundef %53, ptr noundef %54, ptr noundef %55, i32 noundef %56, ptr noundef %57)
          to label %58 unwind label %115

58:                                               ; preds = %52
  invoke void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %59 unwind label %119

59:                                               ; preds = %58
  invoke void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %23, i1 noundef zeroext false)
          to label %60 unwind label %123

60:                                               ; preds = %59
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #9
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 65280, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #9
  call void @llvm.memset.p0.i64(ptr align 16 %25, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  store ptr @.str.12, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %61 = getelementptr inbounds [3 x double], ptr %25, i64 0, i64 0
  %62 = load i32, ptr %24, align 4, !tbaa !5
  %63 = load ptr, ptr %26, align 8, !tbaa !9
  invoke void @_Z14create_box_cmdB5cxx11dddPdiPKc(ptr dead_on_unwind writable sret(%"class.nlohmann::basic_json") align 8 %27, double noundef 1.000000e+00, double noundef 1.000000e+00, double noundef 1.000000e+00, ptr noundef %61, i32 noundef %62, ptr noundef %63)
          to label %64 unwind label %129

64:                                               ; preds = %60
  invoke void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %65 unwind label %133

65:                                               ; preds = %64
  invoke void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %28, i1 noundef zeroext false)
          to label %66 unwind label %137

66:                                               ; preds = %65
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #9
  call void @llvm.lifetime.start.p0(i64 104, ptr %29) #9
  invoke void @_ZN4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEEC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %29)
          to label %67 unwind label %141

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #9
  call void @llvm.memset.p0.i64(ptr align 16 %30, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %217, %67
  %69 = load i32, ptr %31, align 4, !tbaa !5
  %70 = icmp slt i32 %69, 1000
  br i1 %70, label %145, label %71

71:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %249

72:                                               ; preds = %2
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  br label %258

76:                                               ; preds = %39
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %8, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %9, align 4
  br label %257

80:                                               ; preds = %41, %40
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %8, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %9, align 4
  br label %256

84:                                               ; preds = %43
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %8, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %9, align 4
  br label %92

88:                                               ; preds = %44
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %8, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  br label %92

92:                                               ; preds = %88, %84
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #9
  br label %255

93:                                               ; preds = %45
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %8, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %9, align 4
  br label %254

97:                                               ; preds = %46
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %8, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %9, align 4
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #9
  br label %254

101:                                              ; preds = %47
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %8, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %9, align 4
  br label %114

105:                                              ; preds = %50
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %8, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %9, align 4
  br label %113

109:                                              ; preds = %51
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %8, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %9, align 4
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #9
  br label %113

113:                                              ; preds = %109, %105
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #9
  br label %114

114:                                              ; preds = %113, %101
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #9
  br label %254

115:                                              ; preds = %52
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %8, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %9, align 4
  br label %128

119:                                              ; preds = %58
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %8, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %9, align 4
  br label %127

123:                                              ; preds = %59
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %8, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %9, align 4
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #9
  br label %127

127:                                              ; preds = %123, %119
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #9
  br label %128

128:                                              ; preds = %127, %115
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %254

129:                                              ; preds = %60
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %8, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %9, align 4
  br label %253

133:                                              ; preds = %64
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %8, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %9, align 4
  br label %252

137:                                              ; preds = %65
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %8, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %9, align 4
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #9
  br label %252

141:                                              ; preds = %66
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %8, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %9, align 4
  br label %251

145:                                              ; preds = %68
  %146 = getelementptr inbounds [3 x double], ptr %30, i64 0, i64 2
  %147 = load double, ptr %146, align 16, !tbaa !11
  %148 = fadd double %147, 1.000000e-02
  store double %148, ptr %146, align 16, !tbaa !11
  %149 = getelementptr inbounds [3 x double], ptr %30, i64 0, i64 0
  %150 = load double, ptr %149, align 16, !tbaa !11
  %151 = getelementptr inbounds [3 x double], ptr %30, i64 0, i64 1
  %152 = load double, ptr %151, align 8, !tbaa !11
  %153 = getelementptr inbounds [3 x double], ptr %30, i64 0, i64 2
  %154 = load double, ptr %153, align 16, !tbaa !11
  invoke void @_ZN4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE11setEulerZYXEddd(ptr noundef nonnull align 8 dereferenceable(104) %29, double noundef %150, double noundef %152, double noundef %154)
          to label %155 unwind label %220

155:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  store double 0x3F91111111111111, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  invoke void @_ZNSt6chrono8durationIdSt5ratioILl1ELl1EEEC2IdvEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %156 unwind label %224

156:                                              ; preds = %155
  invoke void @_ZNSt11this_thread9sleep_forIdSt5ratioILl1ELl1EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %157 unwind label %224

157:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr %34) #9
  %158 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %29, i32 noundef 0)
          to label %159 unwind label %228

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %158, i32 noundef 0)
          to label %161 unwind label %228

161:                                              ; preds = %159
  %162 = load double, ptr %160, align 8, !tbaa !11
  store double %162, ptr %34, align 8, !tbaa !11
  %163 = getelementptr inbounds double, ptr %34, i64 1
  %164 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %29, i32 noundef 1)
          to label %165 unwind label %228

165:                                              ; preds = %161
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %164, i32 noundef 0)
          to label %167 unwind label %228

167:                                              ; preds = %165
  %168 = load double, ptr %166, align 8, !tbaa !11
  store double %168, ptr %163, align 8, !tbaa !11
  %169 = getelementptr inbounds double, ptr %34, i64 2
  %170 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %29, i32 noundef 2)
          to label %171 unwind label %228

171:                                              ; preds = %167
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %170, i32 noundef 0)
          to label %173 unwind label %228

173:                                              ; preds = %171
  %174 = load double, ptr %172, align 8, !tbaa !11
  store double %174, ptr %169, align 8, !tbaa !11
  %175 = getelementptr inbounds double, ptr %34, i64 3
  %176 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %29, i32 noundef 0)
          to label %177 unwind label %228

177:                                              ; preds = %173
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %176, i32 noundef 1)
          to label %179 unwind label %228

179:                                              ; preds = %177
  %180 = load double, ptr %178, align 8, !tbaa !11
  store double %180, ptr %175, align 8, !tbaa !11
  %181 = getelementptr inbounds double, ptr %34, i64 4
  %182 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %29, i32 noundef 1)
          to label %183 unwind label %228

183:                                              ; preds = %179
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %182, i32 noundef 1)
          to label %185 unwind label %228

185:                                              ; preds = %183
  %186 = load double, ptr %184, align 8, !tbaa !11
  store double %186, ptr %181, align 8, !tbaa !11
  %187 = getelementptr inbounds double, ptr %34, i64 5
  %188 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %29, i32 noundef 2)
          to label %189 unwind label %228

189:                                              ; preds = %185
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %188, i32 noundef 1)
          to label %191 unwind label %228

191:                                              ; preds = %189
  %192 = load double, ptr %190, align 8, !tbaa !11
  store double %192, ptr %187, align 8, !tbaa !11
  %193 = getelementptr inbounds double, ptr %34, i64 6
  %194 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %29, i32 noundef 0)
          to label %195 unwind label %228

195:                                              ; preds = %191
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %194, i32 noundef 2)
          to label %197 unwind label %228

197:                                              ; preds = %195
  %198 = load double, ptr %196, align 8, !tbaa !11
  store double %198, ptr %193, align 8, !tbaa !11
  %199 = getelementptr inbounds double, ptr %34, i64 7
  %200 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %29, i32 noundef 1)
          to label %201 unwind label %228

201:                                              ; preds = %197
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %200, i32 noundef 2)
          to label %203 unwind label %228

203:                                              ; preds = %201
  %204 = load double, ptr %202, align 8, !tbaa !11
  store double %204, ptr %199, align 8, !tbaa !11
  %205 = getelementptr inbounds double, ptr %34, i64 8
  %206 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %29, i32 noundef 2)
          to label %207 unwind label %228

207:                                              ; preds = %203
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %206, i32 noundef 2)
          to label %209 unwind label %228

209:                                              ; preds = %207
  %210 = load double, ptr %208, align 8, !tbaa !11
  store double %210, ptr %205, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 @__const.main.world_pos, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #9
  %211 = getelementptr inbounds [3 x double], ptr %35, i64 0, i64 0
  %212 = getelementptr inbounds [9 x double], ptr %34, i64 0, i64 0
  %213 = load ptr, ptr %26, align 8, !tbaa !9
  invoke void @_Z20create_transform_cmdB5cxx11PdS_PKc(ptr dead_on_unwind writable sret(%"class.nlohmann::basic_json") align 8 %36, ptr noundef %211, ptr noundef %212, ptr noundef %213)
          to label %214 unwind label %232

214:                                              ; preds = %209
  invoke void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %36)
          to label %215 unwind label %236

215:                                              ; preds = %214
  invoke void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %37, i1 noundef zeroext false)
          to label %216 unwind label %240

216:                                              ; preds = %215
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37) #9
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %31, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %31, align 4, !tbaa !5
  br label %68, !llvm.loop !13

220:                                              ; preds = %145
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %8, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %9, align 4
  br label %248

224:                                              ; preds = %156, %155
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %8, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %247

228:                                              ; preds = %207, %203, %201, %197, %195, %191, %189, %185, %183, %179, %177, %173, %171, %167, %165, %161, %159, %157
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %8, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %9, align 4
  br label %246

232:                                              ; preds = %209
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %8, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %9, align 4
  br label %245

236:                                              ; preds = %214
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %8, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %9, align 4
  br label %244

240:                                              ; preds = %215
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %8, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %9, align 4
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37) #9
  br label %244

244:                                              ; preds = %240, %236
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #9
  br label %245

245:                                              ; preds = %244, %232
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #9
  br label %246

246:                                              ; preds = %245, %228
  call void @llvm.lifetime.end.p0(i64 72, ptr %34) #9
  br label %247

247:                                              ; preds = %246, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %248

248:                                              ; preds = %247, %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #9
  br label %251

249:                                              ; preds = %71
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr %29) #9
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  store i32 0, ptr %3, align 4
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @_ZN3zmq8socket_tD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @_ZN3zmq9context_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #9
  %250 = load i32, ptr %3, align 4
  ret i32 %250

251:                                              ; preds = %248, %141
  call void @llvm.lifetime.end.p0(i64 104, ptr %29) #9
  br label %252

252:                                              ; preds = %251, %137, %133
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #9
  br label %253

253:                                              ; preds = %252, %129
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %254

254:                                              ; preds = %253, %128, %114, %97, %93
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #9
  br label %255

255:                                              ; preds = %254, %92
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  br label %256

256:                                              ; preds = %255, %80
  call void @_ZN3zmq8socket_tD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  br label %257

257:                                              ; preds = %256, %76
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @_ZN3zmq9context_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br label %258

258:                                              ; preds = %257, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #9
  br label %259

259:                                              ; preds = %258
  %260 = load ptr, ptr %8, align 8
  %261 = load i32, ptr %9, align 4
  %262 = insertvalue { ptr, i32 } poison, ptr %260, 0
  %263 = insertvalue { ptr, i32 } %262, i32 %261, 1
  resume { ptr, i32 } %263
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3zmq8socket_tC2ERNS_9context_tEi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z17create_delete_cmdRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.nlohmann::basic_json") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i1 noundef zeroext) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z17create_sphere_cmdB5cxx11dPdiPKcbd(ptr dead_on_unwind noalias writable sret(%"class.nlohmann::basic_json") align 8, double noundef, ptr noundef, i32 noundef, ptr noundef, i1 noundef zeroext, double noundef) #5

; 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: inlinehint mustprogress uwtable
declare dso_local void @_Z24create_textured_mesh_cmdB5cxx11PKcS0_PdiS0_(ptr dead_on_unwind noalias writable sret(%"class.nlohmann::basic_json") align 8, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14create_box_cmdB5cxx11dddPdiPKc(ptr dead_on_unwind noalias writable sret(%"class.nlohmann::basic_json") align 8, double noundef, double noundef, double noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE11setEulerZYXEddd(ptr noundef nonnull align 8 dereferenceable(104), double noundef, double noundef, double noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt11this_thread9sleep_forIdSt5ratioILl1ELl1EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6chrono8durationIdSt5ratioILl1ELl1EEEC2IdvEERKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) #8 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z20create_transform_cmdB5cxx11PdS_PKc(ptr dead_on_unwind noalias writable sret(%"class.nlohmann::basic_json") align 8, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3zmq8socket_tD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { mustprogress norecurse 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 = { inlinehint 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 #9 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.zmq::context_t" = type { ptr }
%"class.zmq::socket_t" = type { %"class.zmq::detail::socket_base", ptr }
%"class.zmq::detail::socket_base" = type { ptr }
%"class.nlohmann::basic_json" = type { i8, %"union.nlohmann::basic_json<>::json_value" }
%"union.nlohmann::basic_json<>::json_value" = type { ptr }
%"class.std::allocator" = type { i8 }
%"class.TINY::TinyMatrix3x3" = type { [3 x %"struct.TINY::TinyVector3"], i32, i32 }
%"struct.TINY::TinyVector3" = type <{ double, double, double, i32, [4 x i8] }>
%"class.std::chrono::duration" = type { double }

@_ZL25texture_data_broken_robotB5cxx11 = external hidden global %"class.std::__cxx11::basic_string", align 8
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@__const.main.world_pos_init = external hidden unnamed_addr constant [3 x double], align 16
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@_ZL17meshcat_cube_data = external hidden local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@__const.main.world_pos = external hidden unnamed_addr constant [3 x double], align 16

; 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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.zmq::context_t", align 8
  %5 = alloca %"class.zmq::socket_t", align 8
  %6 = alloca %"class.nlohmann::basic_json", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.nlohmann::basic_json", align 8
  %10 = alloca [3 x double], align 16
  %11 = alloca %"class.nlohmann::basic_json", align 8
  %12 = alloca %"class.nlohmann::basic_json", align 8
  %13 = alloca [3 x double], align 16
  %14 = alloca %"class.nlohmann::basic_json", align 8
  %15 = alloca %"class.nlohmann::basic_json", align 8
  %16 = alloca [3 x double], align 16
  %17 = alloca %"class.nlohmann::basic_json", align 8
  %18 = alloca %"class.nlohmann::basic_json", align 8
  %19 = alloca %"class.TINY::TinyMatrix3x3", align 8
  %20 = alloca double, align 8
  %21 = alloca %"class.std::chrono::duration", align 8
  %22 = alloca [9 x double], align 16
  %23 = alloca [3 x double], align 16
  %24 = alloca %"class.nlohmann::basic_json", align 8
  %25 = alloca %"class.nlohmann::basic_json", align 8
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) @_ZL25texture_data_broken_robotB5cxx11)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  invoke void @_ZN3zmq9context_tC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %27 unwind label %55

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  invoke void @_ZN3zmq8socket_tC2ERNS_9context_tEi(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 3)
          to label %28 unwind label %57

28:                                               ; preds = %27
  invoke void @_ZN3zmq6detail11socket_base7connectEPKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.7)
          to label %29 unwind label %59

29:                                               ; preds = %28
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %31 unwind label %61

31:                                               ; preds = %29
  invoke void @_Z17create_delete_cmdRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.nlohmann::basic_json") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %32 unwind label %63

32:                                               ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  invoke void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %33 unwind label %66

33:                                               ; preds = %32
  invoke void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %9, i1 noundef zeroext false)
          to label %34 unwind label %68

34:                                               ; preds = %33
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(24) @__const.main.world_pos_init, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  invoke void @_Z17create_sphere_cmdB5cxx11dPdiPKcbd(ptr dead_on_unwind nonnull writable sret(%"class.nlohmann::basic_json") align 8 %11, double noundef 1.000000e+00, ptr noundef nonnull %10, i32 noundef 16711680, ptr noundef nonnull @.str.10, i1 noundef zeroext false, double noundef 1.000000e+00)
          to label %35 unwind label %70

35:                                               ; preds = %34
  invoke void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %36 unwind label %72

36:                                               ; preds = %35
  invoke void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %12, i1 noundef zeroext false)
          to label %37 unwind label %74

37:                                               ; preds = %36
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #9
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %13, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %38 = load ptr, ptr @_ZL17meshcat_cube_data, align 8, !tbaa !5
  %39 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  invoke void @_Z24create_textured_mesh_cmdB5cxx11PKcS0_PdiS0_(ptr dead_on_unwind nonnull writable sret(%"class.nlohmann::basic_json") align 8 %14, ptr noundef %38, ptr noundef %39, ptr noundef nonnull %13, i32 noundef 16777215, ptr noundef nonnull @.str.11)
          to label %40 unwind label %78

40:                                               ; preds = %37
  invoke void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %41 unwind label %80

41:                                               ; preds = %40
  invoke void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %15, i1 noundef zeroext false)
          to label %42 unwind label %82

42:                                               ; preds = %41
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %16, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #9
  invoke void @_Z14create_box_cmdB5cxx11dddPdiPKc(ptr dead_on_unwind nonnull writable sret(%"class.nlohmann::basic_json") align 8 %17, double noundef 1.000000e+00, double noundef 1.000000e+00, double noundef 1.000000e+00, ptr noundef nonnull %16, i32 noundef 65280, ptr noundef nonnull @.str.12)
          to label %43 unwind label %86

43:                                               ; preds = %42
  invoke void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %44 unwind label %88

44:                                               ; preds = %43
  invoke void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %18, i1 noundef zeroext false)
          to label %45 unwind label %90

45:                                               ; preds = %44
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #9
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %19) #9
  invoke void @_ZN4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEEC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %19)
          to label %.preheader unwind label %92

.preheader:                                       ; preds = %45
  %46 = getelementptr inbounds i8, ptr %22, i64 8
  %47 = getelementptr inbounds i8, ptr %22, i64 16
  %48 = getelementptr inbounds i8, ptr %22, i64 24
  %49 = getelementptr inbounds i8, ptr %22, i64 32
  %50 = getelementptr inbounds i8, ptr %22, i64 40
  %51 = getelementptr inbounds i8, ptr %22, i64 48
  %52 = getelementptr inbounds i8, ptr %22, i64 56
  %53 = getelementptr inbounds i8, ptr %22, i64 64
  br label %94

54:                                               ; preds = %136
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %19) #9
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @_ZN3zmq8socket_tD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN3zmq9context_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  ret i32 0

55:                                               ; preds = %2
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %161

57:                                               ; preds = %27
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %160

59:                                               ; preds = %28
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %159

61:                                               ; preds = %29
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %31
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  br label %65

65:                                               ; preds = %63, %61
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %158

66:                                               ; preds = %32
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %157

68:                                               ; preds = %33
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  br label %157

70:                                               ; preds = %34
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %77

72:                                               ; preds = %35
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %36
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #9
  br label %76

76:                                               ; preds = %74, %72
  %.pn31 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #9
  br label %77

77:                                               ; preds = %76, %70
  %.pn31.pn = phi { ptr, i32 } [ %.pn31, %76 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #9
  br label %157

78:                                               ; preds = %37
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %85

80:                                               ; preds = %40
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %41
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  br label %84

84:                                               ; preds = %82, %80
  %.pn34 = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #9
  br label %85

85:                                               ; preds = %84, %78
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %84 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  br label %157

86:                                               ; preds = %42
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %156

88:                                               ; preds = %43
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %155

90:                                               ; preds = %44
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #9
  br label %155

92:                                               ; preds = %45
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %154

94:                                               ; preds = %.preheader, %136
  %.052 = phi i32 [ 0, %.preheader ], [ %137, %136 ]
  %.sroa.6.051 = phi double [ 0.000000e+00, %.preheader ], [ %95, %136 ]
  %95 = fadd double %.sroa.6.051, 1.000000e-02
  invoke void @_ZN4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE11setEulerZYXEddd(ptr noundef nonnull align 8 dereferenceable(104) %19, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %95)
          to label %96 unwind label %138

96:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  store double 0x3F91111111111111, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #9
  call void @_ZNSt6chrono8durationIdSt5ratioILl1ELl1EEEC2IdvEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %20)
  invoke void @_ZNSt11this_thread9sleep_forIdSt5ratioILl1ELl1EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %97 unwind label %140

97:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %22) #9
  %98 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %19, i32 noundef 0)
          to label %99 unwind label %142

99:                                               ; preds = %97
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %98, i32 noundef 0)
  %101 = load double, ptr %100, align 8, !tbaa !9
  store double %101, ptr %22, align 16, !tbaa !9
  %102 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %19, i32 noundef 1)
          to label %103 unwind label %142

103:                                              ; preds = %99
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %102, i32 noundef 0)
  %105 = load double, ptr %104, align 8, !tbaa !9
  store double %105, ptr %46, align 8, !tbaa !9
  %106 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %19, i32 noundef 2)
          to label %107 unwind label %142

107:                                              ; preds = %103
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %106, i32 noundef 0)
  %109 = load double, ptr %108, align 8, !tbaa !9
  store double %109, ptr %47, align 16, !tbaa !9
  %110 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %19, i32 noundef 0)
          to label %111 unwind label %142

111:                                              ; preds = %107
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %110, i32 noundef 1)
  %113 = load double, ptr %112, align 8, !tbaa !9
  store double %113, ptr %48, align 8, !tbaa !9
  %114 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %19, i32 noundef 1)
          to label %115 unwind label %142

115:                                              ; preds = %111
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %114, i32 noundef 1)
  %117 = load double, ptr %116, align 8, !tbaa !9
  store double %117, ptr %49, align 16, !tbaa !9
  %118 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %19, i32 noundef 2)
          to label %119 unwind label %142

119:                                              ; preds = %115
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %118, i32 noundef 1)
  %121 = load double, ptr %120, align 8, !tbaa !9
  store double %121, ptr %50, align 8, !tbaa !9
  %122 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %19, i32 noundef 0)
          to label %123 unwind label %142

123:                                              ; preds = %119
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %122, i32 noundef 2)
  %125 = load double, ptr %124, align 8, !tbaa !9
  store double %125, ptr %51, align 16, !tbaa !9
  %126 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %19, i32 noundef 1)
          to label %127 unwind label %142

127:                                              ; preds = %123
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %126, i32 noundef 2)
  %129 = load double, ptr %128, align 8, !tbaa !9
  store double %129, ptr %52, align 8, !tbaa !9
  %130 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104) %19, i32 noundef 2)
          to label %131 unwind label %142

131:                                              ; preds = %127
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28) %130, i32 noundef 2)
  %133 = load double, ptr %132, align 8, !tbaa !9
  store double %133, ptr %53, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %23, ptr noundef nonnull align 16 dereferenceable(24) @__const.main.world_pos, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #9
  invoke void @_Z20create_transform_cmdB5cxx11PdS_PKc(ptr dead_on_unwind nonnull writable sret(%"class.nlohmann::basic_json") align 8 %24, ptr noundef nonnull %23, ptr noundef nonnull %22, ptr noundef nonnull @.str.12)
          to label %134 unwind label %144

134:                                              ; preds = %131
  invoke void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %135 unwind label %146

135:                                              ; preds = %134
  invoke void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %25, i1 noundef zeroext false)
          to label %136 unwind label %148

136:                                              ; preds = %135
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #9
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  %137 = add nuw nsw i32 %.052, 1
  %exitcond.not = icmp eq i32 %137, 1000
  br i1 %exitcond.not, label %54, label %94, !llvm.loop !11

138:                                              ; preds = %94
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %154

140:                                              ; preds = %96
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  br label %153

142:                                              ; preds = %127, %123, %119, %115, %111, %107, %103, %99, %97
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %152

144:                                              ; preds = %131
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %151

146:                                              ; preds = %134
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %150

148:                                              ; preds = %135
  %149 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #9
  br label %150

150:                                              ; preds = %148, %146
  %.pn37 = phi { ptr, i32 } [ %149, %148 ], [ %147, %146 ]
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #9
  br label %151

151:                                              ; preds = %150, %144
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %150 ], [ %145, %144 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  br label %152

152:                                              ; preds = %151, %142
  %.pn37.pn.pn = phi { ptr, i32 } [ %.pn37.pn, %151 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %22) #9
  br label %153

153:                                              ; preds = %152, %140
  %.pn37.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn, %152 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  br label %154

154:                                              ; preds = %138, %153, %92
  %.pn37.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %93, %92 ], [ %.pn37.pn.pn.pn, %153 ], [ %139, %138 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %19) #9
  br label %155

155:                                              ; preds = %154, %90, %88
  %.pn37.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn.pn.pn.pn, %154 ], [ %91, %90 ], [ %89, %88 ]
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #9
  br label %156

156:                                              ; preds = %155, %86
  %.pn37.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn.pn.pn.pn.pn, %155 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  br label %157

157:                                              ; preds = %156, %85, %77, %68, %66
  %.pn37.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn.pn.pn.pn.pn.pn, %156 ], [ %.pn34.pn, %85 ], [ %.pn31.pn, %77 ], [ %69, %68 ], [ %67, %66 ]
  call void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #9
  br label %158

158:                                              ; preds = %157, %65
  %.pn37.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn.pn.pn.pn.pn.pn.pn, %157 ], [ %.pn, %65 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  br label %159

159:                                              ; preds = %158, %59
  %.pn37.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn.pn.pn.pn.pn.pn.pn.pn, %158 ], [ %60, %59 ]
  call void @_ZN3zmq8socket_tD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  br label %160

160:                                              ; preds = %159, %57
  %.pn37.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %159 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN3zmq9context_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  br label %161

161:                                              ; preds = %160, %55
  %.pn37.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %160 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn37.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3zmq8socket_tC2ERNS_9context_tEi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z17create_delete_cmdRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.nlohmann::basic_json") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8send_zmqRN3zmq8socket_tEN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerEEEb(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i1 noundef zeroext) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z17create_sphere_cmdB5cxx11dPdiPKcbd(ptr dead_on_unwind noalias writable sret(%"class.nlohmann::basic_json") align 8, double noundef, ptr noundef, i32 noundef, ptr noundef, i1 noundef zeroext, double noundef) local_unnamed_addr #5

; 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: inlinehint mustprogress uwtable
declare dso_local void @_Z24create_textured_mesh_cmdB5cxx11PKcS0_PdiS0_(ptr dead_on_unwind noalias writable sret(%"class.nlohmann::basic_json") align 8, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14create_box_cmdB5cxx11dddPdiPKc(ptr dead_on_unwind noalias writable sret(%"class.nlohmann::basic_json") align 8, double noundef, double noundef, double noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE11setEulerZYXEddd(ptr noundef nonnull align 8 dereferenceable(104), double noundef, double noundef, double noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt11this_thread9sleep_forIdSt5ratioILl1ELl1EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6chrono8durationIdSt5ratioILl1ELl1EEEC2IdvEERKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZNK4TINY13TinyMatrix3x3IdNS_11DoubleUtilsEE6getRowEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4TINY11TinyVector3IdNS_11DoubleUtilsEEixEi(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) local_unnamed_addr #8 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z20create_transform_cmdB5cxx11PdS_PKc(ptr dead_on_unwind noalias writable sret(%"class.nlohmann::basic_json") align 8, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3zmq8socket_tD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { mustprogress norecurse 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 = { 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 #5 = { inlinehint 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 #9 = { 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 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass