; LLVM IR from mhsitu/welding_robot :: coppeliaSim-client/common (scriptFunctionData)

; 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.std::_Bit_reference" = type { ptr, i64 }
%class.CScriptFunctionDataItem = type <{ ptr, %"class.std::vector.0", %"class.std::vector.4", %"class.std::vector.9", %"class.std::vector.14", %"class.std::vector.19", i32, i8, [3 x i8], i32, [4 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@simPopStackItem = external global ptr, align 8
@simPushTableOntoStack = external global ptr, align 8
@simPushInt32OntoStack = external global ptr, align 8
@simPushNullOntoStack = external global ptr, align 8
@simInsertDataIntoStackTable = external global ptr, align 8
@simPushBoolOntoStack = external global ptr, align 8
@simPushInt32TableOntoStack = external global ptr, align 8
@simPushFloatTableOntoStack = external global ptr, align 8
@simPushDoubleTableOntoStack = external global ptr, align 8
@simPushStringOntoStack = external global ptr, align 8
@simPushFloatOntoStack = external global ptr, align 8
@simPushDoubleOntoStack = external global ptr, align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19CScriptFunctionData10_writeDataEiRSt6vectorI23CScriptFunctionDataItemSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca %"struct.std::_Bit_reference", align 8
  %13 = alloca i64, align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  %16 = load ptr, ptr @simPopStackItem, align 8, !tbaa !5
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = call noundef i32 %16(i32 noundef %17, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call noundef i64 @_ZNKSt6vectorI23CScriptFunctionDataItemSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %21 = trunc i64 %20 to i32
  store i32 %21, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %410, %3
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %413

27:                                               ; preds = %22
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %30) #4
  %32 = call noundef zeroext i1 @_ZN23CScriptFunctionDataItem7isTableEv(ptr noundef nonnull align 8 dereferenceable(156) %31)
  br i1 %32, label %33, label %287

33:                                               ; preds = %27
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %36) #4
  %38 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %37)
  %39 = icmp eq i32 %38, -1
  br i1 %39, label %40, label %69

40:                                               ; preds = %33
  %41 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %42 = load i32, ptr %5, align 4, !tbaa !9
  %43 = call noundef i32 %41(i32 noundef %42)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %65, %40
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #4
  %50 = call noundef i32 @_ZN23CScriptFunctionDataItem15getNilTableSizeEv(ptr noundef nonnull align 8 dereferenceable(156) %49)
  %51 = icmp slt i32 %45, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %44
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %68

53:                                               ; preds = %44
  %54 = load ptr, ptr @simPushInt32OntoStack, align 8, !tbaa !5
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  %58 = call noundef i32 %54(i32 noundef %55, i32 noundef %57)
  %59 = load ptr, ptr @simPushNullOntoStack, align 8, !tbaa !5
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = call noundef i32 %59(i32 noundef %60)
  %62 = load ptr, ptr @simInsertDataIntoStackTable, align 8, !tbaa !5
  %63 = load i32, ptr %5, align 4, !tbaa !9
  %64 = call noundef i32 %62(i32 noundef %63)
  br label %65

65:                                               ; preds = %53
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %10, align 4, !tbaa !9
  br label %44, !llvm.loop !11

68:                                               ; preds = %52
  br label %69

69:                                               ; preds = %68, %33
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #4
  %74 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %73)
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %120

76:                                               ; preds = %69
  %77 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = call noundef i32 %77(i32 noundef %78)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %80

80:                                               ; preds = %116, %76
  %81 = load i64, ptr %11, align 8, !tbaa !13
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #4
  %86 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %85, i32 0, i32 1
  %87 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %86) #4
  %88 = icmp ult i64 %81, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %80
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %119

90:                                               ; preds = %80
  %91 = load ptr, ptr @simPushInt32OntoStack, align 8, !tbaa !5
  %92 = load i32, ptr %5, align 4, !tbaa !9
  %93 = load i64, ptr %11, align 8, !tbaa !13
  %94 = trunc i64 %93 to i32
  %95 = add nsw i32 %94, 1
  %96 = call noundef i32 %91(i32 noundef %92, i32 noundef %95)
  %97 = load ptr, ptr @simPushBoolOntoStack, align 8, !tbaa !5
  %98 = load i32, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %101) #4
  %103 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %102, i32 0, i32 1
  %104 = load i64, ptr %11, align 8, !tbaa !13
  %105 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %103, i64 noundef %104)
  %106 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %107 = extractvalue { ptr, i64 } %105, 0
  store ptr %107, ptr %106, align 8
  %108 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %109 = extractvalue { ptr, i64 } %105, 1
  store i64 %109, ptr %108, align 8
  %110 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  %111 = zext i1 %110 to i8
  %112 = call noundef i32 %97(i32 noundef %98, i8 noundef zeroext %111)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  %113 = load ptr, ptr @simInsertDataIntoStackTable, align 8, !tbaa !5
  %114 = load i32, ptr %5, align 4, !tbaa !9
  %115 = call noundef i32 %113(i32 noundef %114)
  br label %116

116:                                              ; preds = %90
  %117 = load i64, ptr %11, align 8, !tbaa !13
  %118 = add i64 %117, 1
  store i64 %118, ptr %11, align 8, !tbaa !13
  br label %80, !llvm.loop !15

119:                                              ; preds = %89
  br label %120

120:                                              ; preds = %119, %69
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load i32, ptr %8, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %123) #4
  %125 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %124)
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %157

127:                                              ; preds = %120
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = load i32, ptr %8, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %130) #4
  %132 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %131, i32 0, i32 2
  %133 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #4
  %134 = icmp ugt i64 %133, 0
  br i1 %134, label %135, label %152

135:                                              ; preds = %127
  %136 = load ptr, ptr @simPushInt32TableOntoStack, align 8, !tbaa !5
  %137 = load i32, ptr %5, align 4, !tbaa !9
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = load i32, ptr %8, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %140) #4
  %142 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %141, i32 0, i32 2
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef 0) #4
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = load i32, ptr %8, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %146) #4
  %148 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %147, i32 0, i32 2
  %149 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %148) #4
  %150 = trunc i64 %149 to i32
  %151 = call noundef i32 %136(i32 noundef %137, ptr noundef %143, i32 noundef %150)
  br label %156

152:                                              ; preds = %127
  %153 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %154 = load i32, ptr %5, align 4, !tbaa !9
  %155 = call noundef i32 %153(i32 noundef %154)
  br label %156

156:                                              ; preds = %152, %135
  br label %157

157:                                              ; preds = %156, %120
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = load i32, ptr %8, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %160) #4
  %162 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %161)
  %163 = icmp eq i32 %162, 2
  br i1 %163, label %164, label %194

164:                                              ; preds = %157
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = load i32, ptr %8, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %167) #4
  %169 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %168, i32 0, i32 3
  %170 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %169) #4
  %171 = icmp ugt i64 %170, 0
  br i1 %171, label %172, label %189

172:                                              ; preds = %164
  %173 = load ptr, ptr @simPushFloatTableOntoStack, align 8, !tbaa !5
  %174 = load i32, ptr %5, align 4, !tbaa !9
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = load i32, ptr %8, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %175, i64 noundef %177) #4
  %179 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %178, i32 0, i32 3
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef 0) #4
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = load i32, ptr %8, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %183) #4
  %185 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %184, i32 0, i32 3
  %186 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %185) #4
  %187 = trunc i64 %186 to i32
  %188 = call noundef i32 %173(i32 noundef %174, ptr noundef %180, i32 noundef %187)
  br label %193

189:                                              ; preds = %164
  %190 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %191 = load i32, ptr %5, align 4, !tbaa !9
  %192 = call noundef i32 %190(i32 noundef %191)
  br label %193

193:                                              ; preds = %189, %172
  br label %194

194:                                              ; preds = %193, %157
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = load i32, ptr %8, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef %197) #4
  %199 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %198)
  %200 = icmp eq i32 %199, 5
  br i1 %200, label %201, label %231

201:                                              ; preds = %194
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load i32, ptr %8, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %204) #4
  %206 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %205, i32 0, i32 4
  %207 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %206) #4
  %208 = icmp ugt i64 %207, 0
  br i1 %208, label %209, label %226

209:                                              ; preds = %201
  %210 = load ptr, ptr @simPushDoubleTableOntoStack, align 8, !tbaa !5
  %211 = load i32, ptr %5, align 4, !tbaa !9
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = load i32, ptr %8, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %212, i64 noundef %214) #4
  %216 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %215, i32 0, i32 4
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %216, i64 noundef 0) #4
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = load i32, ptr %8, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %218, i64 noundef %220) #4
  %222 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %221, i32 0, i32 4
  %223 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %222) #4
  %224 = trunc i64 %223 to i32
  %225 = call noundef i32 %210(i32 noundef %211, ptr noundef %217, i32 noundef %224)
  br label %230

226:                                              ; preds = %201
  %227 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %228 = load i32, ptr %5, align 4, !tbaa !9
  %229 = call noundef i32 %227(i32 noundef %228)
  br label %230

230:                                              ; preds = %226, %209
  br label %231

231:                                              ; preds = %230, %194
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = load i32, ptr %8, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %232, i64 noundef %234) #4
  %236 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %235)
  %237 = icmp eq i32 %236, 3
  br i1 %237, label %238, label %286

238:                                              ; preds = %231
  %239 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %240 = load i32, ptr %5, align 4, !tbaa !9
  %241 = call noundef i32 %239(i32 noundef %240)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %242

242:                                              ; preds = %282, %238
  %243 = load i64, ptr %13, align 8, !tbaa !13
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = load i32, ptr %8, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %244, i64 noundef %246) #4
  %248 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %247, i32 0, i32 5
  %249 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %248) #4
  %250 = icmp ult i64 %243, %249
  br i1 %250, label %252, label %251

251:                                              ; preds = %242
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %285

252:                                              ; preds = %242
  %253 = load ptr, ptr @simPushInt32OntoStack, align 8, !tbaa !5
  %254 = load i32, ptr %5, align 4, !tbaa !9
  %255 = load i64, ptr %13, align 8, !tbaa !13
  %256 = trunc i64 %255 to i32
  %257 = add nsw i32 %256, 1
  %258 = call noundef i32 %253(i32 noundef %254, i32 noundef %257)
  %259 = load ptr, ptr @simPushStringOntoStack, align 8, !tbaa !5
  %260 = load i32, ptr %5, align 4, !tbaa !9
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  %262 = load i32, ptr %8, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %261, i64 noundef %263) #4
  %265 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %264, i32 0, i32 5
  %266 = load i64, ptr %13, align 8, !tbaa !13
  %267 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %265, i64 noundef %266) #4
  %268 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %267) #4
  %269 = load ptr, ptr %6, align 8, !tbaa !5
  %270 = load i32, ptr %8, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %269, i64 noundef %271) #4
  %273 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %272, i32 0, i32 5
  %274 = load i64, ptr %13, align 8, !tbaa !13
  %275 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %273, i64 noundef %274) #4
  %276 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %275) #4
  %277 = trunc i64 %276 to i32
  %278 = call noundef i32 %259(i32 noundef %260, ptr noundef %268, i32 noundef %277)
  %279 = load ptr, ptr @simInsertDataIntoStackTable, align 8, !tbaa !5
  %280 = load i32, ptr %5, align 4, !tbaa !9
  %281 = call noundef i32 %279(i32 noundef %280)
  br label %282

282:                                              ; preds = %252
  %283 = load i64, ptr %13, align 8, !tbaa !13
  %284 = add i64 %283, 1
  store i64 %284, ptr %13, align 8, !tbaa !13
  br label %242, !llvm.loop !16

285:                                              ; preds = %251
  br label %286

286:                                              ; preds = %285, %231
  br label %409

287:                                              ; preds = %27
  %288 = load ptr, ptr %6, align 8, !tbaa !5
  %289 = load i32, ptr %8, align 4, !tbaa !9
  %290 = sext i32 %289 to i64
  %291 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef %290) #4
  %292 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %291)
  %293 = icmp eq i32 %292, -1
  br i1 %293, label %294, label %298

294:                                              ; preds = %287
  %295 = load ptr, ptr @simPushNullOntoStack, align 8, !tbaa !5
  %296 = load i32, ptr %5, align 4, !tbaa !9
  %297 = call noundef i32 %295(i32 noundef %296)
  br label %298

298:                                              ; preds = %294, %287
  %299 = load ptr, ptr %6, align 8, !tbaa !5
  %300 = load i32, ptr %8, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %299, i64 noundef %301) #4
  %303 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %302)
  %304 = icmp eq i32 %303, 0
  br i1 %304, label %305, label %321

305:                                              ; preds = %298
  %306 = load ptr, ptr @simPushBoolOntoStack, align 8, !tbaa !5
  %307 = load i32, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  %309 = load i32, ptr %8, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %308, i64 noundef %310) #4
  %312 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %311, i32 0, i32 1
  %313 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %312, i64 noundef 0)
  %314 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %315 = extractvalue { ptr, i64 } %313, 0
  store ptr %315, ptr %314, align 8
  %316 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %317 = extractvalue { ptr, i64 } %313, 1
  store i64 %317, ptr %316, align 8
  %318 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  %319 = zext i1 %318 to i8
  %320 = call noundef i32 %306(i32 noundef %307, i8 noundef zeroext %319)
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  br label %321

321:                                              ; preds = %305, %298
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = load i32, ptr %8, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %322, i64 noundef %324) #4
  %326 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %325)
  %327 = icmp eq i32 %326, 1
  br i1 %327, label %328, label %339

328:                                              ; preds = %321
  %329 = load ptr, ptr @simPushInt32OntoStack, align 8, !tbaa !5
  %330 = load i32, ptr %5, align 4, !tbaa !9
  %331 = load ptr, ptr %6, align 8, !tbaa !5
  %332 = load i32, ptr %8, align 4, !tbaa !9
  %333 = sext i32 %332 to i64
  %334 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %331, i64 noundef %333) #4
  %335 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %334, i32 0, i32 2
  %336 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %335, i64 noundef 0) #4
  %337 = load i32, ptr %336, align 4, !tbaa !9
  %338 = call noundef i32 %329(i32 noundef %330, i32 noundef %337)
  br label %339

339:                                              ; preds = %328, %321
  %340 = load ptr, ptr %6, align 8, !tbaa !5
  %341 = load i32, ptr %8, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %340, i64 noundef %342) #4
  %344 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %343)
  %345 = icmp eq i32 %344, 2
  br i1 %345, label %346, label %357

346:                                              ; preds = %339
  %347 = load ptr, ptr @simPushFloatOntoStack, align 8, !tbaa !5
  %348 = load i32, ptr %5, align 4, !tbaa !9
  %349 = load ptr, ptr %6, align 8, !tbaa !5
  %350 = load i32, ptr %8, align 4, !tbaa !9
  %351 = sext i32 %350 to i64
  %352 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %349, i64 noundef %351) #4
  %353 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %352, i32 0, i32 3
  %354 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %353, i64 noundef 0) #4
  %355 = load float, ptr %354, align 4, !tbaa !17
  %356 = call noundef i32 %347(i32 noundef %348, float noundef %355)
  br label %357

357:                                              ; preds = %346, %339
  %358 = load ptr, ptr %6, align 8, !tbaa !5
  %359 = load i32, ptr %8, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %358, i64 noundef %360) #4
  %362 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %361)
  %363 = icmp eq i32 %362, 5
  br i1 %363, label %364, label %375

364:                                              ; preds = %357
  %365 = load ptr, ptr @simPushDoubleOntoStack, align 8, !tbaa !5
  %366 = load i32, ptr %5, align 4, !tbaa !9
  %367 = load ptr, ptr %6, align 8, !tbaa !5
  %368 = load i32, ptr %8, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %367, i64 noundef %369) #4
  %371 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %370, i32 0, i32 4
  %372 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %371, i64 noundef 0) #4
  %373 = load double, ptr %372, align 8, !tbaa !19
  %374 = call noundef i32 %365(i32 noundef %366, double noundef %373)
  br label %375

375:                                              ; preds = %364, %357
  %376 = load ptr, ptr %6, align 8, !tbaa !5
  %377 = load i32, ptr %8, align 4, !tbaa !9
  %378 = sext i32 %377 to i64
  %379 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %376, i64 noundef %378) #4
  %380 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %379)
  %381 = icmp eq i32 %380, 3
  br i1 %381, label %389, label %382

382:                                              ; preds = %375
  %383 = load ptr, ptr %6, align 8, !tbaa !5
  %384 = load i32, ptr %8, align 4, !tbaa !9
  %385 = sext i32 %384 to i64
  %386 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %383, i64 noundef %385) #4
  %387 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %386)
  %388 = icmp eq i32 %387, 4
  br i1 %388, label %389, label %408

389:                                              ; preds = %382, %375
  %390 = load ptr, ptr @simPushStringOntoStack, align 8, !tbaa !5
  %391 = load i32, ptr %5, align 4, !tbaa !9
  %392 = load ptr, ptr %6, align 8, !tbaa !5
  %393 = load i32, ptr %8, align 4, !tbaa !9
  %394 = sext i32 %393 to i64
  %395 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %392, i64 noundef %394) #4
  %396 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %395, i32 0, i32 5
  %397 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %396, i64 noundef 0) #4
  %398 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %397) #4
  %399 = load ptr, ptr %6, align 8, !tbaa !5
  %400 = load i32, ptr %8, align 4, !tbaa !9
  %401 = sext i32 %400 to i64
  %402 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %399, i64 noundef %401) #4
  %403 = getelementptr inbounds %class.CScriptFunctionDataItem, ptr %402, i32 0, i32 5
  %404 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %403, i64 noundef 0) #4
  %405 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %404) #4
  %406 = trunc i64 %405 to i32
  %407 = call noundef i32 %390(i32 noundef %391, ptr noundef %398, i32 noundef %406)
  br label %408

408:                                              ; preds = %389, %382
  br label %409

409:                                              ; preds = %408, %286
  br label %410

410:                                              ; preds = %409
  %411 = load i32, ptr %8, align 4, !tbaa !9
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %8, align 4, !tbaa !9
  br label %22, !llvm.loop !21

413:                                              ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI23CScriptFunctionDataItemSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

declare noundef zeroext i1 @_ZN23CScriptFunctionDataItem7isTableEv(ptr noundef nonnull align 8 dereferenceable(156)) #3

declare noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156)) #3

declare noundef i32 @_ZN23CScriptFunctionDataItem15getNilTableSizeEv(ptr noundef nonnull align 8 dereferenceable(156)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

attributes #0 = { 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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !12}


; 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.std::_Bit_reference" = type { ptr, i64 }

@simPopStackItem = external local_unnamed_addr global ptr, align 8
@simPushTableOntoStack = external local_unnamed_addr global ptr, align 8
@simPushInt32OntoStack = external local_unnamed_addr global ptr, align 8
@simPushNullOntoStack = external local_unnamed_addr global ptr, align 8
@simInsertDataIntoStackTable = external local_unnamed_addr global ptr, align 8
@simPushBoolOntoStack = external local_unnamed_addr global ptr, align 8
@simPushInt32TableOntoStack = external local_unnamed_addr global ptr, align 8
@simPushFloatTableOntoStack = external local_unnamed_addr global ptr, align 8
@simPushDoubleTableOntoStack = external local_unnamed_addr global ptr, align 8
@simPushStringOntoStack = external local_unnamed_addr global ptr, align 8
@simPushFloatOntoStack = external local_unnamed_addr global ptr, align 8
@simPushDoubleOntoStack = external local_unnamed_addr global ptr, align 8

; 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
define dso_local void @_ZN19CScriptFunctionData10_writeDataEiRSt6vectorI23CScriptFunctionDataItemSaIS1_EE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(56) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"struct.std::_Bit_reference", align 8
  %5 = alloca %"struct.std::_Bit_reference", align 8
  %6 = load ptr, ptr @simPopStackItem, align 8, !tbaa !5
  %7 = tail call noundef i32 %6(i32 noundef %1, i32 noundef 0)
  %8 = tail call noundef i64 @_ZNKSt6vectorI23CScriptFunctionDataItemSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %9 = trunc i64 %8 to i32
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph124, label %._crit_edge

.lr.ph124:                                        ; preds = %3
  %11 = getelementptr inbounds i8, ptr %5, i64 8
  %12 = getelementptr inbounds i8, ptr %4, i64 8
  %wide.trip.count = and i64 %8, 2147483647
  br label %13

._crit_edge:                                      ; preds = %.loopexit, %3
  ret void

13:                                               ; preds = %.lr.ph124, %.loopexit
  %indvars.iv = phi i64 [ 0, %.lr.ph124 ], [ %indvars.iv.next, %.loopexit ]
  %14 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %15 = call noundef zeroext i1 @_ZN23CScriptFunctionDataItem7isTableEv(ptr noundef nonnull align 8 dereferenceable(156) %14)
  %16 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %17 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %16)
  %18 = icmp eq i32 %17, -1
  br i1 %15, label %19, label %159

19:                                               ; preds = %13
  br i1 %18, label %20, label %.loopexit117

20:                                               ; preds = %19
  %21 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %22 = call noundef i32 %21(i32 noundef %1)
  %23 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %24 = call noundef i32 @_ZN23CScriptFunctionDataItem15getNilTableSizeEv(ptr noundef nonnull align 8 dereferenceable(156) %23)
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %.loopexit117

.lr.ph:                                           ; preds = %20, %.lr.ph
  %.0112118 = phi i32 [ %27, %.lr.ph ], [ 0, %20 ]
  %26 = load ptr, ptr @simPushInt32OntoStack, align 8, !tbaa !5
  %27 = add nuw nsw i32 %.0112118, 1
  %28 = call noundef i32 %26(i32 noundef %1, i32 noundef %27)
  %29 = load ptr, ptr @simPushNullOntoStack, align 8, !tbaa !5
  %30 = call noundef i32 %29(i32 noundef %1)
  %31 = load ptr, ptr @simInsertDataIntoStackTable, align 8, !tbaa !5
  %32 = call noundef i32 %31(i32 noundef %1)
  %33 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %34 = call noundef i32 @_ZN23CScriptFunctionDataItem15getNilTableSizeEv(ptr noundef nonnull align 8 dereferenceable(156) %33)
  %35 = icmp slt i32 %27, %34
  br i1 %35, label %.lr.ph, label %.loopexit117, !llvm.loop !9

.loopexit117:                                     ; preds = %.lr.ph, %20, %19
  %36 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %37 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %36)
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %.loopexit116

39:                                               ; preds = %.loopexit117
  %40 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %41 = call noundef i32 %40(i32 noundef %1)
  %42 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %43) #4
  %.not125 = icmp eq i64 %44, 0
  br i1 %.not125, label %.loopexit116, label %.lr.ph120

.lr.ph120:                                        ; preds = %39, %.lr.ph120
  %.0111119 = phi i64 [ %60, %.lr.ph120 ], [ 0, %39 ]
  %45 = load ptr, ptr @simPushInt32OntoStack, align 8, !tbaa !5
  %46 = trunc i64 %.0111119 to i32
  %47 = add nsw i32 %46, 1
  %48 = call noundef i32 %45(i32 noundef %1, i32 noundef %47)
  %49 = load ptr, ptr @simPushBoolOntoStack, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %50 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %51, i64 noundef %.0111119)
  %53 = extractvalue { ptr, i64 } %52, 0
  store ptr %53, ptr %4, align 8
  %54 = extractvalue { ptr, i64 } %52, 1
  store i64 %54, ptr %12, align 8
  %55 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  %56 = zext i1 %55 to i8
  %57 = call noundef i32 %49(i32 noundef %1, i8 noundef zeroext %56)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  %58 = load ptr, ptr @simInsertDataIntoStackTable, align 8, !tbaa !5
  %59 = call noundef i32 %58(i32 noundef %1)
  %60 = add nuw i64 %.0111119, 1
  %61 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %62) #4
  %64 = icmp ult i64 %60, %63
  br i1 %64, label %.lr.ph120, label %.loopexit116, !llvm.loop !11

.loopexit116:                                     ; preds = %.lr.ph120, %39, %.loopexit117
  %65 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %66 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %65)
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %68, label %85

68:                                               ; preds = %.loopexit116
  %69 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %70 = getelementptr inbounds i8, ptr %69, i64 48
  %71 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #4
  %.not = icmp eq i64 %71, 0
  br i1 %.not, label %82, label %72

72:                                               ; preds = %68
  %73 = load ptr, ptr @simPushInt32TableOntoStack, align 8, !tbaa !5
  %74 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %75 = getelementptr inbounds i8, ptr %74, i64 48
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef 0) #4
  %77 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %78 = getelementptr inbounds i8, ptr %77, i64 48
  %79 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #4
  %80 = trunc i64 %79 to i32
  %81 = call noundef i32 %73(i32 noundef %1, ptr noundef nonnull %76, i32 noundef %80)
  br label %85

82:                                               ; preds = %68
  %83 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %84 = call noundef i32 %83(i32 noundef %1)
  br label %85

85:                                               ; preds = %72, %82, %.loopexit116
  %86 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %87 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %86)
  %88 = icmp eq i32 %87, 2
  br i1 %88, label %89, label %106

89:                                               ; preds = %85
  %90 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %91 = getelementptr inbounds i8, ptr %90, i64 72
  %92 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #4
  %.not114 = icmp eq i64 %92, 0
  br i1 %.not114, label %103, label %93

93:                                               ; preds = %89
  %94 = load ptr, ptr @simPushFloatTableOntoStack, align 8, !tbaa !5
  %95 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %96 = getelementptr inbounds i8, ptr %95, i64 72
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef 0) #4
  %98 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %99 = getelementptr inbounds i8, ptr %98, i64 72
  %100 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #4
  %101 = trunc i64 %100 to i32
  %102 = call noundef i32 %94(i32 noundef %1, ptr noundef nonnull %97, i32 noundef %101)
  br label %106

103:                                              ; preds = %89
  %104 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %105 = call noundef i32 %104(i32 noundef %1)
  br label %106

106:                                              ; preds = %93, %103, %85
  %107 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %108 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %107)
  %109 = icmp eq i32 %108, 5
  br i1 %109, label %110, label %127

110:                                              ; preds = %106
  %111 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %112 = getelementptr inbounds i8, ptr %111, i64 96
  %113 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #4
  %.not115 = icmp eq i64 %113, 0
  br i1 %.not115, label %124, label %114

114:                                              ; preds = %110
  %115 = load ptr, ptr @simPushDoubleTableOntoStack, align 8, !tbaa !5
  %116 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %117 = getelementptr inbounds i8, ptr %116, i64 96
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef 0) #4
  %119 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %120 = getelementptr inbounds i8, ptr %119, i64 96
  %121 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #4
  %122 = trunc i64 %121 to i32
  %123 = call noundef i32 %115(i32 noundef %1, ptr noundef nonnull %118, i32 noundef %122)
  br label %127

124:                                              ; preds = %110
  %125 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %126 = call noundef i32 %125(i32 noundef %1)
  br label %127

127:                                              ; preds = %114, %124, %106
  %128 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %129 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %128)
  %130 = icmp eq i32 %129, 3
  br i1 %130, label %131, label %.loopexit

131:                                              ; preds = %127
  %132 = load ptr, ptr @simPushTableOntoStack, align 8, !tbaa !5
  %133 = call noundef i32 %132(i32 noundef %1)
  %134 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %135 = getelementptr inbounds i8, ptr %134, i64 120
  %136 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #4
  %.not126 = icmp eq i64 %136, 0
  br i1 %.not126, label %.loopexit, label %.lr.ph122

.lr.ph122:                                        ; preds = %131, %.lr.ph122
  %.0121 = phi i64 [ %154, %.lr.ph122 ], [ 0, %131 ]
  %137 = load ptr, ptr @simPushInt32OntoStack, align 8, !tbaa !5
  %138 = trunc i64 %.0121 to i32
  %139 = add nsw i32 %138, 1
  %140 = call noundef i32 %137(i32 noundef %1, i32 noundef %139)
  %141 = load ptr, ptr @simPushStringOntoStack, align 8, !tbaa !5
  %142 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %143 = getelementptr inbounds i8, ptr %142, i64 120
  %144 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef %.0121) #4
  %145 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %144) #4
  %146 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %147 = getelementptr inbounds i8, ptr %146, i64 120
  %148 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %.0121) #4
  %149 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %148) #4
  %150 = trunc i64 %149 to i32
  %151 = call noundef i32 %141(i32 noundef %1, ptr noundef %145, i32 noundef %150)
  %152 = load ptr, ptr @simInsertDataIntoStackTable, align 8, !tbaa !5
  %153 = call noundef i32 %152(i32 noundef %1)
  %154 = add nuw i64 %.0121, 1
  %155 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %156 = getelementptr inbounds i8, ptr %155, i64 120
  %157 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #4
  %158 = icmp ult i64 %154, %157
  br i1 %158, label %.lr.ph122, label %.loopexit, !llvm.loop !12

159:                                              ; preds = %13
  br i1 %18, label %160, label %163

160:                                              ; preds = %159
  %161 = load ptr, ptr @simPushNullOntoStack, align 8, !tbaa !5
  %162 = call noundef i32 %161(i32 noundef %1)
  br label %163

163:                                              ; preds = %160, %159
  %164 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %165 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %164)
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %177

167:                                              ; preds = %163
  %168 = load ptr, ptr @simPushBoolOntoStack, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %169 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %170 = getelementptr inbounds i8, ptr %169, i64 8
  %171 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %170, i64 noundef 0)
  %172 = extractvalue { ptr, i64 } %171, 0
  store ptr %172, ptr %5, align 8
  %173 = extractvalue { ptr, i64 } %171, 1
  store i64 %173, ptr %11, align 8
  %174 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  %175 = zext i1 %174 to i8
  %176 = call noundef i32 %168(i32 noundef %1, i8 noundef zeroext %175)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %177

177:                                              ; preds = %167, %163
  %178 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %179 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %178)
  %180 = icmp eq i32 %179, 1
  br i1 %180, label %181, label %188

181:                                              ; preds = %177
  %182 = load ptr, ptr @simPushInt32OntoStack, align 8, !tbaa !5
  %183 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %184 = getelementptr inbounds i8, ptr %183, i64 48
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef 0) #4
  %186 = load i32, ptr %185, align 4, !tbaa !13
  %187 = call noundef i32 %182(i32 noundef %1, i32 noundef %186)
  br label %188

188:                                              ; preds = %181, %177
  %189 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %190 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %189)
  %191 = icmp eq i32 %190, 2
  br i1 %191, label %192, label %199

192:                                              ; preds = %188
  %193 = load ptr, ptr @simPushFloatOntoStack, align 8, !tbaa !5
  %194 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %195 = getelementptr inbounds i8, ptr %194, i64 72
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef 0) #4
  %197 = load float, ptr %196, align 4, !tbaa !15
  %198 = call noundef i32 %193(i32 noundef %1, float noundef %197)
  br label %199

199:                                              ; preds = %192, %188
  %200 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %201 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %200)
  %202 = icmp eq i32 %201, 5
  br i1 %202, label %203, label %210

203:                                              ; preds = %199
  %204 = load ptr, ptr @simPushDoubleOntoStack, align 8, !tbaa !5
  %205 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %206 = getelementptr inbounds i8, ptr %205, i64 96
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef 0) #4
  %208 = load double, ptr %207, align 8, !tbaa !17
  %209 = call noundef i32 %204(i32 noundef %1, double noundef %208)
  br label %210

210:                                              ; preds = %203, %199
  %211 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %212 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %211)
  %213 = icmp eq i32 %212, 3
  br i1 %213, label %218, label %214

214:                                              ; preds = %210
  %215 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %216 = call noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156) %215)
  %217 = icmp eq i32 %216, 4
  br i1 %217, label %218, label %.loopexit

218:                                              ; preds = %214, %210
  %219 = load ptr, ptr @simPushStringOntoStack, align 8, !tbaa !5
  %220 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %221 = getelementptr inbounds i8, ptr %220, i64 120
  %222 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %221, i64 noundef 0) #4
  %223 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %222) #4
  %224 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %225 = getelementptr inbounds i8, ptr %224, i64 120
  %226 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %225, i64 noundef 0) #4
  %227 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %226) #4
  %228 = trunc i64 %227 to i32
  %229 = call noundef i32 %219(i32 noundef %1, ptr noundef %223, i32 noundef %228)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph122, %131, %127, %218, %214
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %13, !llvm.loop !19
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI23CScriptFunctionDataItemSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(156) ptr @_ZNSt6vectorI23CScriptFunctionDataItemSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

declare noundef zeroext i1 @_ZN23CScriptFunctionDataItem7isTableEv(ptr noundef nonnull align 8 dereferenceable(156)) local_unnamed_addr #3

declare noundef i32 @_ZN23CScriptFunctionDataItem7getTypeEv(ptr noundef nonnull align 8 dereferenceable(156)) local_unnamed_addr #3

declare noundef i32 @_ZN23CScriptFunctionDataItem15getNilTableSizeEv(ptr noundef nonnull align 8 dereferenceable(156)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !10}


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