Bug Summary

File:utils/nastranOP2Reader.c
Warning:line 6409, column 9
Value stored to 'args' is never read

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -triple x86_64-pc-linux-gnu -analyze -disable-free -disable-llvm-verifier -discard-value-names -main-file-name nastranOP2Reader.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -mrelocation-model pic -pic-level 2 -mthread-model posix -mframe-pointer=none -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /usr/lib/llvm-10/lib/clang/10.0.0 -D REVISION=7.7 -I ../include -I /home/jenkins/workspace/ESP_Stanalizer/LINUX64/CAPS/scan-build/ESP/LINUX64/include -I . -D HAVE_PYTHON -I . -I /home/jenkins/util/ESP/Python/ESP_Python-3.11.6/include/python3.11 -I /home/jenkins/util/ESP/Python/ESP_Python-3.11.6/include/python3.11 -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-10/lib/clang/10.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wno-dangling-else -Wno-parentheses -Wno-unused-result -Wno-format-truncation -fdebug-compilation-dir /home/jenkins/workspace/ESP_Stanalizer/LINUX64/CAPS/scan-build/CAPS/aim/utils -ferror-limit 19 -fmessage-length 0 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -analyzer-output=html -faddrsig -o /home/jenkins/workspace/ESP_Stanalizer/LINUX64/CAPS/scan-build/scanCAPS/2023-11-20-184426-29596-1 -x c nastranOP2Reader.c
1/* Generated by Cython 3.0.5 */
2
3#ifndef PY_SSIZE_T_CLEAN
4#define PY_SSIZE_T_CLEAN
5#endif /* PY_SSIZE_T_CLEAN */
6#if defined(CYTHON_LIMITED_API) && 0
7 #ifndef Py_LIMITED_API
8 #if CYTHON_LIMITED_API+0 > 0x03030000
9 #define Py_LIMITED_API CYTHON_LIMITED_API
10 #else
11 #define Py_LIMITED_API 0x03030000
12 #endif
13 #endif
14#endif
15
16#include "Python.h"
17#ifndef Py_PYTHON_H
18 #error Python headers needed to compile C extensions, please install development version of Python.
19#elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02070000 || (0x03000000 <= PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
&& PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03030000)
20 #error Cython requires Python 2.7+ or Python 3.3+.
21#else
22#if defined(CYTHON_LIMITED_API) && CYTHON_LIMITED_API
23#define __PYX_EXTRA_ABI_MODULE_NAME"" "limited"
24#else
25#define __PYX_EXTRA_ABI_MODULE_NAME"" ""
26#endif
27#define CYTHON_ABI"3_0_5" "" "3_0_5" __PYX_EXTRA_ABI_MODULE_NAME""
28#define __PYX_ABI_MODULE_NAME"_cython_" "3_0_5" "" "_cython_" CYTHON_ABI"3_0_5" ""
29#define __PYX_TYPE_MODULE_PREFIX"_cython_" "3_0_5" "" "." __PYX_ABI_MODULE_NAME"_cython_" "3_0_5" "" "."
30#define CYTHON_HEX_VERSION0x030005F0 0x030005F0
31#define CYTHON_FUTURE_DIVISION0 0
32#include <stddef.h>
33#ifndef offsetof
34 #define offsetof(type, member)__builtin_offsetof(type, member) ( (size_t) & ((type*)0) -> member )
35#endif
36#if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS)
37 #ifndef __stdcall
38 #define __stdcall
39 #endif
40 #ifndef __cdecl
41 #define __cdecl
42 #endif
43 #ifndef __fastcall
44 #define __fastcall
45 #endif
46#endif
47#ifndef DL_IMPORT
48 #define DL_IMPORT(t)t t
49#endif
50#ifndef DL_EXPORT
51 #define DL_EXPORT(t)t t
52#endif
53#define __PYX_COMMA, ,
54#ifndef HAVE_LONG_LONG1
55 #define HAVE_LONG_LONG1
56#endif
57#ifndef PY_LONG_LONGlong long
58 #define PY_LONG_LONGlong long LONG_LONG
59#endif
60#ifndef Py_HUGE_VAL(__builtin_huge_val ())
61 #define Py_HUGE_VAL(__builtin_huge_val ()) HUGE_VAL(__builtin_huge_val ())
62#endif
63#define __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
64#if defined(GRAALVM_PYTHON)
65 /* For very preliminary testing purposes. Most variables are set the same as PyPy.
66 The existence of this section does not imply that anything works or is even tested */
67 #define CYTHON_COMPILING_IN_PYPY0 0
68 #define CYTHON_COMPILING_IN_CPYTHON1 0
69 #define CYTHON_COMPILING_IN_LIMITED_API0 0
70 #define CYTHON_COMPILING_IN_GRAAL0 1
71 #define CYTHON_COMPILING_IN_NOGIL0 0
72 #undef CYTHON_USE_TYPE_SLOTS1
73 #define CYTHON_USE_TYPE_SLOTS1 0
74 #undef CYTHON_USE_TYPE_SPECS0
75 #define CYTHON_USE_TYPE_SPECS0 0
76 #undef CYTHON_USE_PYTYPE_LOOKUP1
77 #define CYTHON_USE_PYTYPE_LOOKUP1 0
78 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03050000
79 #undef CYTHON_USE_ASYNC_SLOTS1
80 #define CYTHON_USE_ASYNC_SLOTS1 0
81 #elif !defined(CYTHON_USE_ASYNC_SLOTS1)
82 #define CYTHON_USE_ASYNC_SLOTS1 1
83 #endif
84 #undef CYTHON_USE_PYLIST_INTERNALS1
85 #define CYTHON_USE_PYLIST_INTERNALS1 0
86 #undef CYTHON_USE_UNICODE_INTERNALS1
87 #define CYTHON_USE_UNICODE_INTERNALS1 0
88 #undef CYTHON_USE_UNICODE_WRITER0
89 #define CYTHON_USE_UNICODE_WRITER0 0
90 #undef CYTHON_USE_PYLONG_INTERNALS1
91 #define CYTHON_USE_PYLONG_INTERNALS1 0
92 #undef CYTHON_AVOID_BORROWED_REFS0
93 #define CYTHON_AVOID_BORROWED_REFS0 1
94 #undef CYTHON_ASSUME_SAFE_MACROS1
95 #define CYTHON_ASSUME_SAFE_MACROS1 0
96 #undef CYTHON_UNPACK_METHODS1
97 #define CYTHON_UNPACK_METHODS1 0
98 #undef CYTHON_FAST_THREAD_STATE1
99 #define CYTHON_FAST_THREAD_STATE1 0
100 #undef CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x03060000 &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A6)
101 #define CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x03060000 &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A6)
0
102 #undef CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
103 #define CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
0
104 #undef CYTHON_FAST_PYCALL1
105 #define CYTHON_FAST_PYCALL1 0
106 #ifndef CYTHON_PEP487_INIT_SUBCLASS1
107 #define CYTHON_PEP487_INIT_SUBCLASS1 (PY_MAJOR_VERSION3 >= 3)
108 #endif
109 #undef CYTHON_PEP489_MULTI_PHASE_INIT1
110 #define CYTHON_PEP489_MULTI_PHASE_INIT1 1
111 #undef CYTHON_USE_MODULE_STATE0
112 #define CYTHON_USE_MODULE_STATE0 0
113 #undef CYTHON_USE_TP_FINALIZE1
114 #define CYTHON_USE_TP_FINALIZE1 0
115 #undef CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
116 #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
0
117 #undef CYTHON_USE_EXC_INFO_STACK1
118 #define CYTHON_USE_EXC_INFO_STACK1 0
119 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC1
120 #define CYTHON_UPDATE_DESCRIPTOR_DOC1 0
121 #endif
122#elif defined(PYPY_VERSION)
123 #define CYTHON_COMPILING_IN_PYPY0 1
124 #define CYTHON_COMPILING_IN_CPYTHON1 0
125 #define CYTHON_COMPILING_IN_LIMITED_API0 0
126 #define CYTHON_COMPILING_IN_GRAAL0 0
127 #define CYTHON_COMPILING_IN_NOGIL0 0
128 #undef CYTHON_USE_TYPE_SLOTS1
129 #define CYTHON_USE_TYPE_SLOTS1 0
130 #ifndef CYTHON_USE_TYPE_SPECS0
131 #define CYTHON_USE_TYPE_SPECS0 0
132 #endif
133 #undef CYTHON_USE_PYTYPE_LOOKUP1
134 #define CYTHON_USE_PYTYPE_LOOKUP1 0
135 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03050000
136 #undef CYTHON_USE_ASYNC_SLOTS1
137 #define CYTHON_USE_ASYNC_SLOTS1 0
138 #elif !defined(CYTHON_USE_ASYNC_SLOTS1)
139 #define CYTHON_USE_ASYNC_SLOTS1 1
140 #endif
141 #undef CYTHON_USE_PYLIST_INTERNALS1
142 #define CYTHON_USE_PYLIST_INTERNALS1 0
143 #undef CYTHON_USE_UNICODE_INTERNALS1
144 #define CYTHON_USE_UNICODE_INTERNALS1 0
145 #undef CYTHON_USE_UNICODE_WRITER0
146 #define CYTHON_USE_UNICODE_WRITER0 0
147 #undef CYTHON_USE_PYLONG_INTERNALS1
148 #define CYTHON_USE_PYLONG_INTERNALS1 0
149 #undef CYTHON_AVOID_BORROWED_REFS0
150 #define CYTHON_AVOID_BORROWED_REFS0 1
151 #undef CYTHON_ASSUME_SAFE_MACROS1
152 #define CYTHON_ASSUME_SAFE_MACROS1 0
153 #undef CYTHON_UNPACK_METHODS1
154 #define CYTHON_UNPACK_METHODS1 0
155 #undef CYTHON_FAST_THREAD_STATE1
156 #define CYTHON_FAST_THREAD_STATE1 0
157 #undef CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x03060000 &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A6)
158 #define CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x03060000 &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A6)
0
159 #undef CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
160 #define CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
0
161 #undef CYTHON_FAST_PYCALL1
162 #define CYTHON_FAST_PYCALL1 0
163 #ifndef CYTHON_PEP487_INIT_SUBCLASS1
164 #define CYTHON_PEP487_INIT_SUBCLASS1 (PY_MAJOR_VERSION3 >= 3)
165 #endif
166 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03090000
167 #undef CYTHON_PEP489_MULTI_PHASE_INIT1
168 #define CYTHON_PEP489_MULTI_PHASE_INIT1 0
169 #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT1)
170 #define CYTHON_PEP489_MULTI_PHASE_INIT1 1
171 #endif
172 #undef CYTHON_USE_MODULE_STATE0
173 #define CYTHON_USE_MODULE_STATE0 0
174 #undef CYTHON_USE_TP_FINALIZE1
175 #define CYTHON_USE_TP_FINALIZE1 (PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030400a1 && PYPY_VERSION_NUM >= 0x07030C00)
176 #undef CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
177 #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
0
178 #undef CYTHON_USE_EXC_INFO_STACK1
179 #define CYTHON_USE_EXC_INFO_STACK1 0
180 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC1
181 #define CYTHON_UPDATE_DESCRIPTOR_DOC1 0
182 #endif
183#elif defined(CYTHON_LIMITED_API)
184 #ifdef Py_LIMITED_API
185 #undef __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
186 #define __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
Py_LIMITED_API
187 #endif
188 #define CYTHON_COMPILING_IN_PYPY0 0
189 #define CYTHON_COMPILING_IN_CPYTHON1 0
190 #define CYTHON_COMPILING_IN_LIMITED_API0 1
191 #define CYTHON_COMPILING_IN_GRAAL0 0
192 #define CYTHON_COMPILING_IN_NOGIL0 0
193 #undef CYTHON_CLINE_IN_TRACEBACK
194 #define CYTHON_CLINE_IN_TRACEBACK 0
195 #undef CYTHON_USE_TYPE_SLOTS1
196 #define CYTHON_USE_TYPE_SLOTS1 0
197 #undef CYTHON_USE_TYPE_SPECS0
198 #define CYTHON_USE_TYPE_SPECS0 1
199 #undef CYTHON_USE_PYTYPE_LOOKUP1
200 #define CYTHON_USE_PYTYPE_LOOKUP1 0
201 #undef CYTHON_USE_ASYNC_SLOTS1
202 #define CYTHON_USE_ASYNC_SLOTS1 0
203 #undef CYTHON_USE_PYLIST_INTERNALS1
204 #define CYTHON_USE_PYLIST_INTERNALS1 0
205 #undef CYTHON_USE_UNICODE_INTERNALS1
206 #define CYTHON_USE_UNICODE_INTERNALS1 0
207 #ifndef CYTHON_USE_UNICODE_WRITER0
208 #define CYTHON_USE_UNICODE_WRITER0 0
209 #endif
210 #undef CYTHON_USE_PYLONG_INTERNALS1
211 #define CYTHON_USE_PYLONG_INTERNALS1 0
212 #ifndef CYTHON_AVOID_BORROWED_REFS0
213 #define CYTHON_AVOID_BORROWED_REFS0 0
214 #endif
215 #undef CYTHON_ASSUME_SAFE_MACROS1
216 #define CYTHON_ASSUME_SAFE_MACROS1 0
217 #undef CYTHON_UNPACK_METHODS1
218 #define CYTHON_UNPACK_METHODS1 0
219 #undef CYTHON_FAST_THREAD_STATE1
220 #define CYTHON_FAST_THREAD_STATE1 0
221 #undef CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x03060000 &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A6)
222 #define CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x03060000 &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A6)
0
223 #undef CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
224 #define CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
0
225 #undef CYTHON_FAST_PYCALL1
226 #define CYTHON_FAST_PYCALL1 0
227 #ifndef CYTHON_PEP487_INIT_SUBCLASS1
228 #define CYTHON_PEP487_INIT_SUBCLASS1 1
229 #endif
230 #undef CYTHON_PEP489_MULTI_PHASE_INIT1
231 #define CYTHON_PEP489_MULTI_PHASE_INIT1 0
232 #undef CYTHON_USE_MODULE_STATE0
233 #define CYTHON_USE_MODULE_STATE0 1
234 #ifndef CYTHON_USE_TP_FINALIZE1
235 #define CYTHON_USE_TP_FINALIZE1 0
236 #endif
237 #undef CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
238 #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
0
239 #undef CYTHON_USE_EXC_INFO_STACK1
240 #define CYTHON_USE_EXC_INFO_STACK1 0
241 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC1
242 #define CYTHON_UPDATE_DESCRIPTOR_DOC1 0
243 #endif
244#elif defined(PY_NOGIL)
245 #define CYTHON_COMPILING_IN_PYPY0 0
246 #define CYTHON_COMPILING_IN_CPYTHON1 0
247 #define CYTHON_COMPILING_IN_LIMITED_API0 0
248 #define CYTHON_COMPILING_IN_GRAAL0 0
249 #define CYTHON_COMPILING_IN_NOGIL0 1
250 #ifndef CYTHON_USE_TYPE_SLOTS1
251 #define CYTHON_USE_TYPE_SLOTS1 1
252 #endif
253 #undef CYTHON_USE_PYTYPE_LOOKUP1
254 #define CYTHON_USE_PYTYPE_LOOKUP1 0
255 #ifndef CYTHON_USE_ASYNC_SLOTS1
256 #define CYTHON_USE_ASYNC_SLOTS1 1
257 #endif
258 #undef CYTHON_USE_PYLIST_INTERNALS1
259 #define CYTHON_USE_PYLIST_INTERNALS1 0
260 #ifndef CYTHON_USE_UNICODE_INTERNALS1
261 #define CYTHON_USE_UNICODE_INTERNALS1 1
262 #endif
263 #undef CYTHON_USE_UNICODE_WRITER0
264 #define CYTHON_USE_UNICODE_WRITER0 0
265 #undef CYTHON_USE_PYLONG_INTERNALS1
266 #define CYTHON_USE_PYLONG_INTERNALS1 0
267 #ifndef CYTHON_AVOID_BORROWED_REFS0
268 #define CYTHON_AVOID_BORROWED_REFS0 0
269 #endif
270 #ifndef CYTHON_ASSUME_SAFE_MACROS1
271 #define CYTHON_ASSUME_SAFE_MACROS1 1
272 #endif
273 #ifndef CYTHON_UNPACK_METHODS1
274 #define CYTHON_UNPACK_METHODS1 1
275 #endif
276 #undef CYTHON_FAST_THREAD_STATE1
277 #define CYTHON_FAST_THREAD_STATE1 0
278 #undef CYTHON_FAST_PYCALL1
279 #define CYTHON_FAST_PYCALL1 0
280 #ifndef CYTHON_PEP489_MULTI_PHASE_INIT1
281 #define CYTHON_PEP489_MULTI_PHASE_INIT1 1
282 #endif
283 #ifndef CYTHON_USE_TP_FINALIZE1
284 #define CYTHON_USE_TP_FINALIZE1 1
285 #endif
286 #undef CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
287 #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
0
288 #undef CYTHON_USE_EXC_INFO_STACK1
289 #define CYTHON_USE_EXC_INFO_STACK1 0
290#else
291 #define CYTHON_COMPILING_IN_PYPY0 0
292 #define CYTHON_COMPILING_IN_CPYTHON1 1
293 #define CYTHON_COMPILING_IN_LIMITED_API0 0
294 #define CYTHON_COMPILING_IN_GRAAL0 0
295 #define CYTHON_COMPILING_IN_NOGIL0 0
296 #ifndef CYTHON_USE_TYPE_SLOTS1
297 #define CYTHON_USE_TYPE_SLOTS1 1
298 #endif
299 #ifndef CYTHON_USE_TYPE_SPECS0
300 #define CYTHON_USE_TYPE_SPECS0 0
301 #endif
302 #ifndef CYTHON_USE_PYTYPE_LOOKUP1
303 #define CYTHON_USE_PYTYPE_LOOKUP1 1
304 #endif
305 #if PY_MAJOR_VERSION3 < 3
306 #undef CYTHON_USE_ASYNC_SLOTS1
307 #define CYTHON_USE_ASYNC_SLOTS1 0
308 #elif !defined(CYTHON_USE_ASYNC_SLOTS1)
309 #define CYTHON_USE_ASYNC_SLOTS1 1
310 #endif
311 #ifndef CYTHON_USE_PYLONG_INTERNALS1
312 #define CYTHON_USE_PYLONG_INTERNALS1 1
313 #endif
314 #ifndef CYTHON_USE_PYLIST_INTERNALS1
315 #define CYTHON_USE_PYLIST_INTERNALS1 1
316 #endif
317 #ifndef CYTHON_USE_UNICODE_INTERNALS1
318 #define CYTHON_USE_UNICODE_INTERNALS1 1
319 #endif
320 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030300F0 || PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030B00A2
321 #undef CYTHON_USE_UNICODE_WRITER0
322 #define CYTHON_USE_UNICODE_WRITER0 0
323 #elif !defined(CYTHON_USE_UNICODE_WRITER0)
324 #define CYTHON_USE_UNICODE_WRITER0 1
325 #endif
326 #ifndef CYTHON_AVOID_BORROWED_REFS0
327 #define CYTHON_AVOID_BORROWED_REFS0 0
328 #endif
329 #ifndef CYTHON_ASSUME_SAFE_MACROS1
330 #define CYTHON_ASSUME_SAFE_MACROS1 1
331 #endif
332 #ifndef CYTHON_UNPACK_METHODS1
333 #define CYTHON_UNPACK_METHODS1 1
334 #endif
335 #ifndef CYTHON_FAST_THREAD_STATE1
336 #define CYTHON_FAST_THREAD_STATE1 1
337 #endif
338 #ifndef CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x03060000 &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A6)
339 #define CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x03060000 &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A6)
(PY_MAJOR_VERSION3 < 3 || PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03060000 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030C00A6)
340 #endif
341 #ifndef CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
342 #define CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
(PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030700A1)
343 #endif
344 #ifndef CYTHON_FAST_PYCALL1
345 #define CYTHON_FAST_PYCALL1 1
346 #endif
347 #ifndef CYTHON_PEP487_INIT_SUBCLASS1
348 #define CYTHON_PEP487_INIT_SUBCLASS1 1
349 #endif
350 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03050000
351 #undef CYTHON_PEP489_MULTI_PHASE_INIT1
352 #define CYTHON_PEP489_MULTI_PHASE_INIT1 0
353 #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT1)
354 #define CYTHON_PEP489_MULTI_PHASE_INIT1 1
355 #endif
356 #ifndef CYTHON_USE_MODULE_STATE0
357 #define CYTHON_USE_MODULE_STATE0 0
358 #endif
359 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030400a1
360 #undef CYTHON_USE_TP_FINALIZE1
361 #define CYTHON_USE_TP_FINALIZE1 0
362 #elif !defined(CYTHON_USE_TP_FINALIZE1)
363 #define CYTHON_USE_TP_FINALIZE1 1
364 #endif
365 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030600B1
366 #undef CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
367 #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
0
368 #elif !defined(CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
)
369 #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
(PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030C00A5)
370 #endif
371 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030700A3
372 #undef CYTHON_USE_EXC_INFO_STACK1
373 #define CYTHON_USE_EXC_INFO_STACK1 0
374 #elif !defined(CYTHON_USE_EXC_INFO_STACK1)
375 #define CYTHON_USE_EXC_INFO_STACK1 1
376 #endif
377 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC1
378 #define CYTHON_UPDATE_DESCRIPTOR_DOC1 1
379 #endif
380#endif
381#if !defined(CYTHON_FAST_PYCCALL(1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1)
)
382#define CYTHON_FAST_PYCCALL(1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1)
(CYTHON_FAST_PYCALL1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030600B1)
383#endif
384#if !defined(CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030800B1)
)
385#define CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030800B1)
(CYTHON_FAST_PYCCALL(1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1)
&& PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030800B1)
386#endif
387#define CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
(CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
&& PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030800B1)
388#if CYTHON_USE_PYLONG_INTERNALS1
389 #if PY_MAJOR_VERSION3 < 3
390 #include "longintrepr.h"
391 #endif
392 #undef SHIFT
393 #undef BASE
394 #undef MASK
395 #ifdef SIZEOF_VOID_P8
396 enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P8 == sizeof(void*)) };
397 #endif
398#endif
399#ifndef __has_attribute
400 #define0 __has_attribute(x)0 0
401#endif
402#ifndef __has_cpp_attribute
403 #define __has_cpp_attribute(x)0 0
404#endif
405#ifndef CYTHON_RESTRICT__restrict__
406 #if defined(__GNUC__4)
407 #define CYTHON_RESTRICT__restrict__ __restrict__
408 #elif defined(_MSC_VER) && _MSC_VER >= 1400
409 #define CYTHON_RESTRICT__restrict__ __restrict
410 #elif defined (__STDC_VERSION__201112L) && __STDC_VERSION__201112L >= 199901L
411 #define CYTHON_RESTRICT__restrict__ restrict
412 #else
413 #define CYTHON_RESTRICT__restrict__
414 #endif
415#endif
416#ifndef CYTHON_UNUSED__attribute__ ((__unused__))
417 #if defined(__cplusplus)
418 /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
419 * but leads to warnings with -pedantic, since it is a C++17 feature */
420 #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
421 #if __has_cpp_attribute(maybe_unused)0
422 #define CYTHON_UNUSED__attribute__ ((__unused__)) [[maybe_unused]]
423 #endif
424 #endif
425 #endif
426#endif
427#ifndef CYTHON_UNUSED__attribute__ ((__unused__))
428# if defined(__GNUC__4)
429# if !(defined(__cplusplus)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4))
430# define CYTHON_UNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
431# else
432# define CYTHON_UNUSED__attribute__ ((__unused__))
433# endif
434# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
435# define CYTHON_UNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
436# else
437# define CYTHON_UNUSED__attribute__ ((__unused__))
438# endif
439#endif
440#ifndef CYTHON_UNUSED_VAR
441# if defined(__cplusplus)
442 template<class T> void CYTHON_UNUSED_VAR( const T& )(void)(const T&) { }
443# else
444# define CYTHON_UNUSED_VAR(x)(void)(x) (void)(x)
445# endif
446#endif
447#ifndef CYTHON_MAYBE_UNUSED_VAR
448 #define CYTHON_MAYBE_UNUSED_VAR(x)(void)(x) CYTHON_UNUSED_VAR(x)(void)(x)
449#endif
450#ifndef CYTHON_NCP_UNUSED
451# if CYTHON_COMPILING_IN_CPYTHON1
452# define CYTHON_NCP_UNUSED
453# else
454# define CYTHON_NCP_UNUSED CYTHON_UNUSED__attribute__ ((__unused__))
455# endif
456#endif
457#ifndef CYTHON_USE_CPP_STD_MOVE0
458 #if defined(__cplusplus) && (\
459 __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
460 #define CYTHON_USE_CPP_STD_MOVE0 1
461 #else
462 #define CYTHON_USE_CPP_STD_MOVE0 0
463 #endif
464#endif
465#define __Pyx_void_to_None(void_result)((void)(void_result), Py_INCREF(((PyObject*)(((&_Py_NoneStruct
))))), (&_Py_NoneStruct))
((void)(void_result), Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))), Py_None(&_Py_NoneStruct))
466#ifdef _MSC_VER
467 #ifndef _MSC_STDINT_H_
468 #if _MSC_VER < 1300
469 typedef unsigned char uint8_t;
470 typedef unsigned short uint16_t;
471 typedef unsigned int uint32_t;
472 #else
473 typedef unsigned __int8 uint8_t;
474 typedef unsigned __int16 uint16_t;
475 typedef unsigned __int32 uint32_t;
476 #endif
477 #endif
478 #if _MSC_VER < 1300
479 #ifdef _WIN64
480 typedef unsigned long long __pyx_uintptr_t;
481 #else
482 typedef unsigned int __pyx_uintptr_t;
483 #endif
484 #else
485 #ifdef _WIN64
486 typedef unsigned __int64 __pyx_uintptr_t;
487 #else
488 typedef unsigned __int32 __pyx_uintptr_t;
489 #endif
490 #endif
491#else
492 #include <stdint.h>
493 typedef uintptr_t __pyx_uintptr_t;
494#endif
495#ifndef CYTHON_FALLTHROUGH__attribute__((fallthrough))
496 #if defined(__cplusplus)
497 /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
498 * but leads to warnings with -pedantic, since it is a C++17 feature */
499 #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
500 #if __has_cpp_attribute(fallthrough)0
501 #define CYTHON_FALLTHROUGH__attribute__((fallthrough)) [[fallthrough]]
502 #endif
503 #endif
504 #ifndef CYTHON_FALLTHROUGH__attribute__((fallthrough))
505 #if __has_cpp_attribute(clang::fallthrough)0
506 #define CYTHON_FALLTHROUGH__attribute__((fallthrough)) [[clang::fallthrough]]
507 #elif __has_cpp_attribute(gnu::fallthrough)0
508 #define CYTHON_FALLTHROUGH__attribute__((fallthrough)) [[gnu::fallthrough]]
509 #endif
510 #endif
511 #endif
512 #ifndef CYTHON_FALLTHROUGH__attribute__((fallthrough))
513 #if __has_attribute(fallthrough)1
514 #define CYTHON_FALLTHROUGH__attribute__((fallthrough)) __attribute__((fallthrough))
515 #else
516 #define CYTHON_FALLTHROUGH__attribute__((fallthrough))
517 #endif
518 #endif
519 #if defined(__clang__1) && defined(__apple_build_version__)
520 #if __apple_build_version__ < 7000000
521 #undef CYTHON_FALLTHROUGH__attribute__((fallthrough))
522 #define CYTHON_FALLTHROUGH__attribute__((fallthrough))
523 #endif
524 #endif
525#endif
526#ifdef __cplusplus
527 template <typename T>
528 struct __PYX_IS_UNSIGNED_IMPL {static const bool_Bool value = T(0) < T(-1);};
529 #define __PYX_IS_UNSIGNED(type)(((type)-1) > 0) (__PYX_IS_UNSIGNED_IMPL<type>::value)
530#else
531 #define __PYX_IS_UNSIGNED(type)(((type)-1) > 0) (((type)-1) > 0)
532#endif
533#if CYTHON_COMPILING_IN_PYPY0 == 1
534 #define __PYX_NEED_TP_PRINT_SLOT(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030800b4 && ((3 <<
24) | (11 << 16) | (6 << 8) | (0xF << 4) |
(0 << 0)) < 0x03090000)
(PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030800b4 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030A0000)
535#else
536 #define __PYX_NEED_TP_PRINT_SLOT(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030800b4 && ((3 <<
24) | (11 << 16) | (6 << 8) | (0xF << 4) |
(0 << 0)) < 0x03090000)
(PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030800b4 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03090000)
537#endif
538#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer)((func_pointer)(void(*)(void))(other_pointer)) ((func_pointer)(void(*)(void))(other_pointer))
539
540#ifndef CYTHON_INLINE__inline__ __attribute__ ((__unused__))
541 #if defined(__clang__1)
542 #define CYTHON_INLINE__inline__ __attribute__ ((__unused__)) __inline__ __attribute__ ((__unused__))
543 #elif defined(__GNUC__4)
544 #define CYTHON_INLINE__inline__ __attribute__ ((__unused__)) __inline__
545 #elif defined(_MSC_VER)
546 #define CYTHON_INLINE__inline__ __attribute__ ((__unused__)) __inline
547 #elif defined (__STDC_VERSION__201112L) && __STDC_VERSION__201112L >= 199901L
548 #define CYTHON_INLINE__inline__ __attribute__ ((__unused__)) inline
549 #else
550 #define CYTHON_INLINE__inline__ __attribute__ ((__unused__))
551 #endif
552#endif
553
554#define __PYX_BUILD_PY_SSIZE_T"n" "n"
555#define CYTHON_FORMAT_SSIZE_T"z" "z"
556#if PY_MAJOR_VERSION3 < 3
557 #define __Pyx_BUILTIN_MODULE_NAME"builtins" "__builtin__"
558 #define __Pyx_DefaultClassTypePyType_Type PyClass_Type
559 #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
560 PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
561#else
562 #define __Pyx_BUILTIN_MODULE_NAME"builtins" "builtins"
563 #define __Pyx_DefaultClassTypePyType_Type PyType_Type
564#if CYTHON_COMPILING_IN_LIMITED_API0
565 static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyCode_New(int a, int p, int k, int l, int s, int f,
566 PyObject *code, PyObject *c, PyObject* n, PyObject *v,
567 PyObject *fv, PyObject *cell, PyObject* fn,
568 PyObject *name, int fline, PyObject *lnos) {
569 PyObject *exception_table = NULL((void*)0);
570 PyObject *types_module=NULL((void*)0), *code_type=NULL((void*)0), *result=NULL((void*)0);
571 #if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030B0000
572 PyObject *version_info; // borrowed
573 #endif
574 PyObject *py_minor_version = NULL((void*)0);
575 long minor_version = 0;
576 PyObject *type, *value, *traceback;
577 PyErr_Fetch(&type, &value, &traceback);
578 #if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030B0000
579 minor_version = 11; // we don't yet need to distinguish between versions > 11
580 #else
581 if (!(version_info = PySys_GetObject("version_info"))) goto end;
582 if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
583 minor_version = PyLong_AsLong(py_minor_version);
584 if (minor_version == -1 && PyErr_Occurred()) goto end;
585 #endif
586 if (!(types_module = PyImport_ImportModule("types"))) goto end;
587 if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end;
588 if (minor_version <= 7) {
589 (void)p;
590 result = PyObject_CallFunction_PyObject_CallFunction_SizeT(code_type, "iiiiiOOOOOOiOO", a, k, l, s, f, code,
591 c, n, v, fn, name, fline, lnos, fv, cell);
592 } else if (minor_version <= 10) {
593 result = PyObject_CallFunction_PyObject_CallFunction_SizeT(code_type, "iiiiiiOOOOOOiOO", a,p, k, l, s, f, code,
594 c, n, v, fn, name, fline, lnos, fv, cell);
595 } else {
596 if (!(exception_table = PyBytes_FromStringAndSize(NULL((void*)0), 0))) goto end;
597 result = PyObject_CallFunction_PyObject_CallFunction_SizeT(code_type, "iiiiiiOOOOOOOiOO", a,p, k, l, s, f, code,
598 c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell);
599 }
600 end:
601 Py_XDECREF(code_type)Py_XDECREF(((PyObject*)((code_type))));
602 Py_XDECREF(exception_table)Py_XDECREF(((PyObject*)((exception_table))));
603 Py_XDECREF(types_module)Py_XDECREF(((PyObject*)((types_module))));
604 Py_XDECREF(py_minor_version)Py_XDECREF(((PyObject*)((py_minor_version))));
605 if (type) {
606 PyErr_Restore(type, value, traceback);
607 }
608 return result;
609 }
610 #ifndef CO_OPTIMIZED0x0001
611 #define CO_OPTIMIZED0x0001 0x0001
612 #endif
613 #ifndef CO_NEWLOCALS0x0002
614 #define CO_NEWLOCALS0x0002 0x0002
615 #endif
616 #ifndef CO_VARARGS0x0004
617 #define CO_VARARGS0x0004 0x0004
618 #endif
619 #ifndef CO_VARKEYWORDS0x0008
620 #define CO_VARKEYWORDS0x0008 0x0008
621 #endif
622 #ifndef CO_ASYNC_GENERATOR0x0200
623 #define CO_ASYNC_GENERATOR0x0200 0x0200
624 #endif
625 #ifndef CO_GENERATOR0x0020
626 #define CO_GENERATOR0x0020 0x0020
627 #endif
628 #ifndef CO_COROUTINE0x0080
629 #define CO_COROUTINE0x0080 0x0080
630 #endif
631#elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030B0000
632 static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyCodeObject* __Pyx_PyCode_New(int a, int p, int k, int l, int s, int f,
633 PyObject *code, PyObject *c, PyObject* n, PyObject *v,
634 PyObject *fv, PyObject *cell, PyObject* fn,
635 PyObject *name, int fline, PyObject *lnos) {
636 PyCodeObject *result;
637 PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); // we don't have access to __pyx_empty_bytes here
638 if (!empty_bytes) return NULL((void*)0);
639 result =
640 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030C0000
641 PyUnstable_Code_NewWithPosOnlyArgs
642 #else
643 PyCode_NewWithPosOnlyArgs
644 #endif
645 (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, empty_bytes);
646 Py_DECREF(empty_bytes)Py_DECREF(((PyObject*)((empty_bytes))));
647 return result;
648 }
649#elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY0
650 #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
651 PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
652#else
653 #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
654 PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
655#endif
656#endif
657#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030900A4 || defined(Py_IS_TYPE)
658 #define __Pyx_IS_TYPE(ob, type)Py_IS_TYPE(((PyObject*)((ob))), type) Py_IS_TYPE(ob, type)Py_IS_TYPE(((PyObject*)((ob))), type)
659#else
660 #define __Pyx_IS_TYPE(ob, type)Py_IS_TYPE(((PyObject*)((ob))), type) (((const PyObject*)ob)->ob_type == (type))
661#endif
662#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030A00B1 || defined(Py_Is)
663 #define __Pyx_Py_Is(x, y)((x) == (y)) Py_Is(x, y)((x) == (y))
664#else
665 #define __Pyx_Py_Is(x, y)((x) == (y)) ((x) == (y))
666#endif
667#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030A00B1 || defined(Py_IsNone)
668 #define __Pyx_Py_IsNone(ob)(((ob)) == ((&_Py_NoneStruct))) Py_IsNone(ob)(((ob)) == ((&_Py_NoneStruct)))
669#else
670 #define __Pyx_Py_IsNone(ob)(((ob)) == ((&_Py_NoneStruct))) __Pyx_Py_Is((ob), Py_None)(((ob)) == ((&_Py_NoneStruct)))
671#endif
672#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030A00B1 || defined(Py_IsTrue)
673 #define __Pyx_Py_IsTrue(ob)(((ob)) == (((PyObject *) &_Py_TrueStruct))) Py_IsTrue(ob)(((ob)) == (((PyObject *) &_Py_TrueStruct)))
674#else
675 #define __Pyx_Py_IsTrue(ob)(((ob)) == (((PyObject *) &_Py_TrueStruct))) __Pyx_Py_Is((ob), Py_True)(((ob)) == (((PyObject *) &_Py_TrueStruct)))
676#endif
677#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030A00B1 || defined(Py_IsFalse)
678 #define __Pyx_Py_IsFalse(ob)(((ob)) == (((PyObject *) &_Py_FalseStruct))) Py_IsFalse(ob)(((ob)) == (((PyObject *) &_Py_FalseStruct)))
679#else
680 #define __Pyx_Py_IsFalse(ob)(((ob)) == (((PyObject *) &_Py_FalseStruct))) __Pyx_Py_Is((ob), Py_False)(((ob)) == (((PyObject *) &_Py_FalseStruct)))
681#endif
682#define __Pyx_NoneAsNull(obj)((((obj)) == ((&_Py_NoneStruct))) ? ((void*)0) : (obj)) (__Pyx_Py_IsNone(obj)(((obj)) == ((&_Py_NoneStruct))) ? NULL((void*)0) : (obj))
683#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY0
684 #define __Pyx_PyObject_GC_IsFinalized(o)PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
685#else
686 #define __Pyx_PyObject_GC_IsFinalized(o)PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)PyObject_GC_IsFinalized(o)
687#endif
688#ifndef CO_COROUTINE0x0080
689 #define CO_COROUTINE0x0080 0x80
690#endif
691#ifndef CO_ASYNC_GENERATOR0x0200
692 #define CO_ASYNC_GENERATOR0x0200 0x200
693#endif
694#ifndef Py_TPFLAGS_CHECKTYPES0
695 #define Py_TPFLAGS_CHECKTYPES0 0
696#endif
697#ifndef Py_TPFLAGS_HAVE_INDEX0
698 #define Py_TPFLAGS_HAVE_INDEX0 0
699#endif
700#ifndef Py_TPFLAGS_HAVE_NEWBUFFER0
701 #define Py_TPFLAGS_HAVE_NEWBUFFER0 0
702#endif
703#ifndef Py_TPFLAGS_HAVE_FINALIZE(1UL << 0)
704 #define Py_TPFLAGS_HAVE_FINALIZE(1UL << 0) 0
705#endif
706#ifndef Py_TPFLAGS_SEQUENCE(1 << 5)
707 #define Py_TPFLAGS_SEQUENCE(1 << 5) 0
708#endif
709#ifndef Py_TPFLAGS_MAPPING(1 << 6)
710 #define Py_TPFLAGS_MAPPING(1 << 6) 0
711#endif
712#ifndef METH_STACKLESS0x0000
713 #define METH_STACKLESS0x0000 0
714#endif
715#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x030700A3 || !defined(METH_FASTCALL0x0080)
716 #ifndef METH_FASTCALL0x0080
717 #define METH_FASTCALL0x0080 0x80
718 #endif
719 typedef PyObject *(*__Pyx_PyCFunctionFast_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
720 typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
721 Py_ssize_t nargs, PyObject *kwnames);
722#else
723 #define __Pyx_PyCFunctionFast_PyCFunctionFast _PyCFunctionFast
724 #define __Pyx_PyCFunctionFastWithKeywords_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
725#endif
726#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
727 #define __Pyx_METH_FASTCALL0x0080 METH_FASTCALL0x0080
728 #define __Pyx_PyCFunction_FastCall_PyCFunctionFast __Pyx_PyCFunctionFast_PyCFunctionFast
729 #define __Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords __Pyx_PyCFunctionFastWithKeywords_PyCFunctionFastWithKeywords
730#else
731 #define __Pyx_METH_FASTCALL0x0080 METH_VARARGS0x0001
732 #define __Pyx_PyCFunction_FastCall_PyCFunctionFast PyCFunction
733 #define __Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords PyCFunctionWithKeywords
734#endif
735#if CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030800B1)
736 #define __pyx_vectorcallfuncvectorcallfunc vectorcallfunc
737 #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1)) PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1))
738 #define __Pyx_PyVectorcall_NARGS(n)PyVectorcall_NARGS((size_t)(n)) PyVectorcall_NARGS((size_t)(n))
739#elif CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
740 typedef PyObject *(*__pyx_vectorcallfuncvectorcallfunc)(PyObject *callable, PyObject *const *args,
741 size_t nargsf, PyObject *kwnames);
742 #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1)) ((size_t)1 << (8 * sizeof(size_t) - 1))
743 #define __Pyx_PyVectorcall_NARGS(n)PyVectorcall_NARGS((size_t)(n)) ((Py_ssize_t)(((size_t)(n)) & ~__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1))))
744#else
745 #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1)) 0
746 #define __Pyx_PyVectorcall_NARGS(n)PyVectorcall_NARGS((size_t)(n)) ((Py_ssize_t)(n))
747#endif
748#if PY_MAJOR_VERSION3 >= 0x030900B1
749#define __Pyx_PyCFunction_CheckExact(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type
)
PyCFunction_CheckExact(func)Py_IS_TYPE(((PyObject*)((func))), &PyCFunction_Type)
750#else
751#define __Pyx_PyCFunction_CheckExact(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type
)
PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type
)
752#endif
753#define __Pyx_CyOrPyCFunction_Check(func)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((func)))), (PyTypeObject
*)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject
*)&PyCFunction_Type)
PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type
)
754#if CYTHON_COMPILING_IN_CPYTHON1
755#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)(((PyCFunctionObject*)(func))->m_ml->ml_meth) (((PyCFunctionObject*)(func))->m_ml->ml_meth)
756#elif !CYTHON_COMPILING_IN_LIMITED_API0
757#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)(((PyCFunctionObject*)(func))->m_ml->ml_meth) PyCFunction_GET_FUNCTION(func)PyCFunction_GET_FUNCTION(((PyObject*)((func))))
758#endif
759#if CYTHON_COMPILING_IN_CPYTHON1
760#define __Pyx_CyOrPyCFunction_GET_FLAGS(func)(((PyCFunctionObject*)(func))->m_ml->ml_flags) (((PyCFunctionObject*)(func))->m_ml->ml_flags)
761static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
762 return (__Pyx_CyOrPyCFunction_GET_FLAGS(func)(((PyCFunctionObject*)(func))->m_ml->ml_flags) & METH_STATIC0x0020) ? NULL((void*)0) : ((PyCFunctionObject*)func)->m_self;
763}
764#endif
765static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx__IsSameCFunction(PyObject *func, void *cfunc) {
766#if CYTHON_COMPILING_IN_LIMITED_API0
767 return PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type
)
&& PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
768#else
769 return PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type
)
&& PyCFunction_GET_FUNCTION(func)PyCFunction_GET_FUNCTION(((PyObject*)((func)))) == (PyCFunction) cfunc;
770#endif
771}
772#define __Pyx_IsSameCFunction(func, cfunc)__Pyx__IsSameCyOrCFunction(func, cfunc) __Pyx__IsSameCFunction(func, cfunc)
773#if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030900B1
774 #define __Pyx_PyType_FromModuleAndSpec(m, s, b)PyType_FromModuleAndSpec(m, s, b) ((void)m, PyType_FromSpecWithBases(s, b))
775 typedef PyObject *(*__Pyx_PyCMethodPyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
776#else
777 #define __Pyx_PyType_FromModuleAndSpec(m, s, b)PyType_FromModuleAndSpec(m, s, b) PyType_FromModuleAndSpec(m, s, b)
778 #define __Pyx_PyCMethodPyCMethod PyCMethod
779#endif
780#ifndef METH_METHOD0x0200
781 #define METH_METHOD0x0200 0x200
782#endif
783#if CYTHON_COMPILING_IN_PYPY0 && !defined(PyObject_Malloc)
784 #define PyObject_Malloc(s) PyMem_Malloc(s)
785 #define PyObject_Free(p) PyMem_Free(p)
786 #define PyObject_Realloc(p) PyMem_Realloc(p)
787#endif
788#if CYTHON_COMPILING_IN_LIMITED_API0
789 #define __Pyx_PyCode_HasFreeVars(co)(((co)->co_nfreevars) > 0) (PyCode_GetNumFree(co)((co)->co_nfreevars) > 0)
790 #define __Pyx_PyFrame_SetLineNumber(frame, lineno)(frame)->f_lineno = (lineno)
791#else
792 #define __Pyx_PyCode_HasFreeVars(co)(((co)->co_nfreevars) > 0) (PyCode_GetNumFree(co)((co)->co_nfreevars) > 0)
793 #define __Pyx_PyFrame_SetLineNumber(frame, lineno)(frame)->f_lineno = (lineno) (frame)->f_lineno = (lineno)
794#endif
795#if CYTHON_COMPILING_IN_LIMITED_API0
796 #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() PyThreadState_Get()
797#elif !CYTHON_FAST_THREAD_STATE1
798 #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() PyThreadState_GET()PyThreadState_Get()
799#elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030d00A1
800 #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() PyThreadState_GetUnchecked()
801#elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03060000
802 #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() _PyThreadState_UncheckedGet()
803#elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
804 #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() PyThreadState_GET()PyThreadState_Get()
805#else
806 #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() _PyThreadState_Current
807#endif
808#if CYTHON_COMPILING_IN_LIMITED_API0
809static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void *__Pyx_PyModule_GetState(PyObject *op)
810{
811 void *result;
812 result = PyModule_GetState(op);
813 if (!result)
814 Py_FatalError("Couldn't find the module state")_Py_FatalErrorFunc(__func__, "Couldn't find the module state"
)
;
815 return result;
816}
817#endif
818#define __Pyx_PyObject_GetSlot(obj, name, func_ctype)((Py_TYPE(((PyObject*)((obj)))))->name) __Pyx_PyType_GetSlot(Py_TYPE(obj), name, func_ctype)((Py_TYPE(((PyObject*)((obj)))))->name)
819#if CYTHON_COMPILING_IN_LIMITED_API0
820 #define __Pyx_PyType_GetSlot(type, name, func_ctype)((type)->name) ((func_ctype) PyType_GetSlot((type), Py_##name))
821#else
822 #define __Pyx_PyType_GetSlot(type, name, func_ctype)((type)->name) ((type)->name)
823#endif
824#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT{0})
825#include "pythread.h"
826#define Py_tss_NEEDS_INIT{0} 0
827typedef int Py_tss_t;
828static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int PyThread_tss_create(Py_tss_t *key) {
829 *key = PyThread_create_key();
830 return 0;
831}
832static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_tss_t * PyThread_tss_alloc(void) {
833 Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
834 *key = Py_tss_NEEDS_INIT{0};
835 return key;
836}
837static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void PyThread_tss_free(Py_tss_t *key) {
838 PyObject_Free(key);
839}
840static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int PyThread_tss_is_created(Py_tss_t *key) {
841 return *key != Py_tss_NEEDS_INIT{0};
842}
843static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void PyThread_tss_delete(Py_tss_t *key) {
844 PyThread_delete_key(*key);
845 *key = Py_tss_NEEDS_INIT{0};
846}
847static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int PyThread_tss_set(Py_tss_t *key, void *value) {
848 return PyThread_set_key_value(*key, value);
849}
850static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void * PyThread_tss_get(Py_tss_t *key) {
851 return PyThread_get_key_value(*key);
852}
853#endif
854#if PY_MAJOR_VERSION3 < 3
855 #if CYTHON_COMPILING_IN_PYPY0
856 #if PYPY_VERSION_NUM < 0x07030600
857 #if defined(__cplusplus) && __cplusplus >= 201402L
858 [[deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")]]
859 #elif defined(__GNUC__4) || defined(__clang__1)
860 __attribute__ ((__deprecated__("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")))
861 #elif defined(_MSC_VER)
862 __declspec(deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6"))
863 #endif
864 static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int PyGILState_Check(void) {
865 return 0;
866 }
867 #else // PYPY_VERSION_NUM < 0x07030600
868 #endif // PYPY_VERSION_NUM < 0x07030600
869 #else
870 static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int PyGILState_Check(void) {
871 PyThreadState * tstate = _PyThreadState_Current;
872 return tstate && (tstate == PyGILState_GetThisThreadState());
873 }
874 #endif
875#endif
876#if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030d0000 || defined(_PyDict_NewPresized)
877#define __Pyx_PyDict_NewPresized(n)((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
878#else
879#define __Pyx_PyDict_NewPresized(n)((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) PyDict_New()
880#endif
881#if PY_MAJOR_VERSION3 >= 3 || CYTHON_FUTURE_DIVISION0
882 #define __Pyx_PyNumber_Divide(x,y)PyNumber_TrueDivide(x,y) PyNumber_TrueDivide(x,y)
883 #define __Pyx_PyNumber_InPlaceDivide(x,y)PyNumber_InPlaceTrueDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
884#else
885 #define __Pyx_PyNumber_Divide(x,y)PyNumber_TrueDivide(x,y) PyNumber_Divide(x,y)
886 #define __Pyx_PyNumber_InPlaceDivide(x,y)PyNumber_InPlaceTrueDivide(x,y) PyNumber_InPlaceDivide(x,y)
887#endif
888#if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
> 0x030600B4 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030d0000 && CYTHON_USE_UNICODE_INTERNALS1
889#define __Pyx_PyDict_GetItemStrWithError(dict, name)_PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name
)->hash)
_PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
890static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
891 PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name)_PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name
)->hash)
;
892 if (res == NULL((void*)0)) PyErr_Clear();
893 return res;
894}
895#elif PY_MAJOR_VERSION3 >= 3 && (!CYTHON_COMPILING_IN_PYPY0 || PYPY_VERSION_NUM >= 0x07020000)
896#define __Pyx_PyDict_GetItemStrWithError PyDict_GetItemWithError
897#define __Pyx_PyDict_GetItemStr PyDict_GetItem
898#else
899static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name)_PyDict_GetItem_KnownHash(PyObject *dict, PyObject *name, ((PyASCIIObject
*) PyObject *name)->hash)
{
900#if CYTHON_COMPILING_IN_PYPY0
901 return PyDict_GetItem(dict, name);
902#else
903 PyDictEntry *ep;
904 PyDictObject *mp = (PyDictObject*) dict;
905 long hash = ((PyStringObjectPyUnicodeObject *) name)->ob_shash;
906 assert(hash != -1)((void) sizeof ((hash != -1) ? 1 : 0), __extension__ ({ if (hash
!= -1) ; else __assert_fail ("hash != -1", "nastranOP2Reader.c"
, 906, __extension__ __PRETTY_FUNCTION__); }))
;
907 ep = (mp->ma_lookup)(mp, name, hash);
908 if (ep == NULL((void*)0)) {
909 return NULL((void*)0);
910 }
911 return ep->me_value;
912#endif
913}
914#define __Pyx_PyDict_GetItemStr PyDict_GetItem
915#endif
916#if CYTHON_USE_TYPE_SLOTS1
917 #define __Pyx_PyType_GetFlags(tp)(((PyTypeObject *)tp)->tp_flags) (((PyTypeObject *)tp)->tp_flags)
918 #define __Pyx_PyType_HasFeature(type, feature)(((((PyTypeObject *)type)->tp_flags) & (feature)) != 0
)
((__Pyx_PyType_GetFlags(type)(((PyTypeObject *)type)->tp_flags) & (feature)) != 0)
919 #define __Pyx_PyObject_GetIterNextFunc(obj)(Py_TYPE(((PyObject*)((obj))))->tp_iternext) (Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_iternext)
920#else
921 #define __Pyx_PyType_GetFlags(tp)(((PyTypeObject *)tp)->tp_flags) (PyType_GetFlags((PyTypeObject *)tp))
922 #define __Pyx_PyType_HasFeature(type, feature)(((((PyTypeObject *)type)->tp_flags) & (feature)) != 0
)
PyType_HasFeature(type, feature)
923 #define __Pyx_PyObject_GetIterNextFunc(obj)(Py_TYPE(((PyObject*)((obj))))->tp_iternext) PyIter_Next
924#endif
925#if CYTHON_COMPILING_IN_LIMITED_API0
926 #define __Pyx_SetItemOnTypeDict(tp, k, v)PyDict_SetItem(tp->tp_dict, k, v) PyObject_GenericSetAttr((PyObject*)tp, k, v)
927#else
928 #define __Pyx_SetItemOnTypeDict(tp, k, v)PyDict_SetItem(tp->tp_dict, k, v) PyDict_SetItem(tp->tp_dict, k, v)
929#endif
930#if CYTHON_USE_TYPE_SPECS0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03080000
931#define __Pyx_PyHeapTypeObject_GC_Del(obj)PyObject_GC_Del(obj) {\
932 PyTypeObject *type = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))));\
933 assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE))((void) sizeof (((((((PyTypeObject *)type)->tp_flags) &
((1UL << 9))) != 0)) ? 1 : 0), __extension__ ({ if (((
(((PyTypeObject *)type)->tp_flags) & ((1UL << 9)
)) != 0)) ; else __assert_fail ("__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE)"
, "nastranOP2Reader.c", 933, __extension__ __PRETTY_FUNCTION__
); }))
;\
934 PyObject_GC_Del(obj);\
935 Py_DECREF(type)Py_DECREF(((PyObject*)((type))));\
936}
937#else
938#define __Pyx_PyHeapTypeObject_GC_Del(obj)PyObject_GC_Del(obj) PyObject_GC_Del(obj)
939#endif
940#if CYTHON_COMPILING_IN_LIMITED_API0
941 #define CYTHON_PEP393_ENABLED1 1
942 #define __Pyx_PyUnicode_READY(op)(__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((op)))))
, 1) ? 0 : _PyUnicode_Ready((PyObject *)(op)))
(0)
943 #define __Pyx_PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) PyUnicode_GetLength(u)
944 #define __Pyx_PyUnicode_READ_CHAR(u, i)PyUnicode_READ_CHAR(((PyObject*)((u))), (i)) PyUnicode_ReadChar(u, i)
945 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)PyUnicode_MAX_CHAR_VALUE(((PyObject*)((u)))) ((void)u, 1114111U)
946 #define __Pyx_PyUnicode_KIND(u)((int)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((u)))
)) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject
*)((u))))) ; else __assert_fail ("PyUnicode_IS_READY(u)", "nastranOP2Reader.c"
, 946, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof
((PyType_HasFeature(Py_TYPE(((PyObject*)((u)))), (1UL <<
28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE
(((PyObject*)((u)))), (1UL << 28))) ; else __assert_fail
("PyUnicode_Check(u)", "nastranOP2Reader.c", 946, __extension__
__PRETTY_FUNCTION__); })), ((PyASCIIObject*)((u))))->state
.kind))
((void)u, (0))
947 #define __Pyx_PyUnicode_DATA(u)PyUnicode_DATA(((PyObject*)((u)))) ((void*)u)
948 #define __Pyx_PyUnicode_READ(k, d, i)PyUnicode_READ(((int)(k)), ((const void*)(d)), (i)) ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
949 #define __Pyx_PyUnicode_IS_TRUE(u)(0 != (__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u
))))), 1) ? PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject
*)(u))->wstr_length))
(0 != PyUnicode_GetLength(u))
950#elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
> 0x03030000 && defined(PyUnicode_KIND)
951 #define CYTHON_PEP393_ENABLED1 1
952 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030C0000
953 #define __Pyx_PyUnicode_READY(op)(__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((op)))))
, 1) ? 0 : _PyUnicode_Ready((PyObject *)(op)))
(0)
954 #else
955 #define __Pyx_PyUnicode_READY(op)(__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((op)))))
, 1) ? 0 : _PyUnicode_Ready((PyObject *)(op)))
(likely(PyUnicode_IS_READY(op))__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((op))))),
1)
?\
956 0 : _PyUnicode_Ready((PyObject *)(op)))
957 #endif
958 #define __Pyx_PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u))))
959 #define __Pyx_PyUnicode_READ_CHAR(u, i)PyUnicode_READ_CHAR(((PyObject*)((u))), (i)) PyUnicode_READ_CHAR(u, i)PyUnicode_READ_CHAR(((PyObject*)((u))), (i))
960 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)PyUnicode_MAX_CHAR_VALUE(((PyObject*)((u)))) PyUnicode_MAX_CHAR_VALUE(u)PyUnicode_MAX_CHAR_VALUE(((PyObject*)((u))))
961 #define __Pyx_PyUnicode_KIND(u)((int)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((u)))
)) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject
*)((u))))) ; else __assert_fail ("PyUnicode_IS_READY(u)", "nastranOP2Reader.c"
, 961, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof
((PyType_HasFeature(Py_TYPE(((PyObject*)((u)))), (1UL <<
28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE
(((PyObject*)((u)))), (1UL << 28))) ; else __assert_fail
("PyUnicode_Check(u)", "nastranOP2Reader.c", 961, __extension__
__PRETTY_FUNCTION__); })), ((PyASCIIObject*)((u))))->state
.kind))
((int)PyUnicode_KIND(u)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((u))))) ? 1
: 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject*)((
u))))) ; else __assert_fail ("PyUnicode_IS_READY(u)", "nastranOP2Reader.c"
, 961, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof
((PyType_HasFeature(Py_TYPE(((PyObject*)((u)))), (1UL <<
28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE
(((PyObject*)((u)))), (1UL << 28))) ; else __assert_fail
("PyUnicode_Check(u)", "nastranOP2Reader.c", 961, __extension__
__PRETTY_FUNCTION__); })), ((PyASCIIObject*)((u))))->state
.kind)
)
962 #define __Pyx_PyUnicode_DATA(u)PyUnicode_DATA(((PyObject*)((u)))) PyUnicode_DATA(u)PyUnicode_DATA(((PyObject*)((u))))
963 #define __Pyx_PyUnicode_READ(k, d, i)PyUnicode_READ(((int)(k)), ((const void*)(d)), (i)) PyUnicode_READ(k, d, i)PyUnicode_READ(((int)(k)), ((const void*)(d)), (i))
964 #define __Pyx_PyUnicode_WRITE(k, d, i, ch)PyUnicode_WRITE(((int)(k)), ((void*)(d)), (i), ((Py_UCS4)((Py_UCS4
) ch)))
PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)PyUnicode_WRITE(((int)(k)), ((void*)(d)), (i), ((Py_UCS4)((Py_UCS4
) ch)))
965 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030C0000
966 #define __Pyx_PyUnicode_IS_TRUE(u)(0 != (__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u
))))), 1) ? PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject
*)(u))->wstr_length))
(0 != PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))))
967 #else
968 #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03090000
969 #define __Pyx_PyUnicode_IS_TRUE(u)(0 != (__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u
))))), 1) ? PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject
*)(u))->wstr_length))
(0 != (likely(PyUnicode_IS_READY(u))__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u))))), 1
)
? PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject *)(u))->wstr_length))
970 #else
971 #define __Pyx_PyUnicode_IS_TRUE(u)(0 != (__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u
))))), 1) ? PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject
*)(u))->wstr_length))
(0 != (likely(PyUnicode_IS_READY(u))__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u))))), 1
)
? PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) : PyUnicode_GET_SIZE(u)PyUnicode_GET_SIZE(((PyObject*)((u))))))
972 #endif
973 #endif
974#else
975 #define CYTHON_PEP393_ENABLED1 0
976 #define PyUnicode_1BYTE_KIND 1
977 #define PyUnicode_2BYTE_KIND 2
978 #define PyUnicode_4BYTE_KIND 4
979 #define __Pyx_PyUnicode_READY(op)(__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((op)))))
, 1) ? 0 : _PyUnicode_Ready((PyObject *)(op)))
(0)
980 #define __Pyx_PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) PyUnicode_GET_SIZE(u)PyUnicode_GET_SIZE(((PyObject*)((u))))
981 #define __Pyx_PyUnicode_READ_CHAR(u, i)PyUnicode_READ_CHAR(((PyObject*)((u))), (i)) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)PyUnicode_AS_UNICODE(((PyObject*)((u))))[i]))
982 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)PyUnicode_MAX_CHAR_VALUE(((PyObject*)((u)))) ((sizeof(Py_UNICODE) == 2) ? 65535U : 1114111U)
983 #define __Pyx_PyUnicode_KIND(u)((int)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((u)))
)) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject
*)((u))))) ; else __assert_fail ("PyUnicode_IS_READY(u)", "nastranOP2Reader.c"
, 983, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof
((PyType_HasFeature(Py_TYPE(((PyObject*)((u)))), (1UL <<
28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE
(((PyObject*)((u)))), (1UL << 28))) ; else __assert_fail
("PyUnicode_Check(u)", "nastranOP2Reader.c", 983, __extension__
__PRETTY_FUNCTION__); })), ((PyASCIIObject*)((u))))->state
.kind))
((int)sizeof(Py_UNICODE))
984 #define __Pyx_PyUnicode_DATA(u)PyUnicode_DATA(((PyObject*)((u)))) ((void*)PyUnicode_AS_UNICODE(u)PyUnicode_AS_UNICODE(((PyObject*)((u)))))
985 #define __Pyx_PyUnicode_READ(k, d, i)PyUnicode_READ(((int)(k)), ((const void*)(d)), (i)) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
986 #define __Pyx_PyUnicode_WRITE(k, d, i, ch)PyUnicode_WRITE(((int)(k)), ((void*)(d)), (i), ((Py_UCS4)((Py_UCS4
) ch)))
(((void)(k)), ((Py_UNICODE*)d)[i] = (Py_UNICODE) ch)
987 #define __Pyx_PyUnicode_IS_TRUE(u)(0 != (__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u
))))), 1) ? PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject
*)(u))->wstr_length))
(0 != PyUnicode_GET_SIZE(u)PyUnicode_GET_SIZE(((PyObject*)((u)))))
988#endif
989#if CYTHON_COMPILING_IN_PYPY0
990 #define __Pyx_PyUnicode_Concat(a, b)PyUnicode_Concat(a, b) PyNumber_Add(a, b)
991 #define __Pyx_PyUnicode_ConcatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0) || __builtin_expect
(!!((b) == (&_Py_NoneStruct)), 0)) ? PyNumber_Add(a, b) :
PyUnicode_Concat(a, b))
PyNumber_Add(a, b)
992#else
993 #define __Pyx_PyUnicode_Concat(a, b)PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
994 #define __Pyx_PyUnicode_ConcatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0) || __builtin_expect
(!!((b) == (&_Py_NoneStruct)), 0)) ? PyNumber_Add(a, b) :
PyUnicode_Concat(a, b))
((unlikely((a) == Py_None)__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0) || unlikely((b) == Py_None)__builtin_expect(!!((b) == (&_Py_NoneStruct)), 0)) ?\
995 PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)PyUnicode_Concat(a, b))
996#endif
997#if CYTHON_COMPILING_IN_PYPY0
998 #if !defined(PyUnicode_DecodeUnicodeEscape)
999 #define PyUnicode_DecodeUnicodeEscape(s, size, errors) PyUnicode_Decode(s, size, "unicode_escape", errors)
1000 #endif
1001 #if !defined(PyUnicode_Contains) || (PY_MAJOR_VERSION3 == 2 && PYPY_VERSION_NUM < 0x07030500)
1002 #undef PyUnicode_Contains
1003 #define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
1004 #endif
1005 #if !defined(PyByteArray_Check)
1006 #define PyByteArray_Check(obj)PyObject_TypeCheck(((PyObject*)((obj))), &PyByteArray_Type
)
PyObject_TypeCheck(obj, &PyByteArray_Type)PyObject_TypeCheck(((PyObject*)((obj))), &PyByteArray_Type
)
1007 #endif
1008 #if !defined(PyObject_Format)
1009 #define PyObject_Format(obj, fmt) PyObject_CallMethod_PyObject_CallMethod_SizeT(obj, "__format__", "O", fmt)
1010 #endif
1011#endif
1012#define __Pyx_PyString_FormatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct) || (PyType_HasFeature
(Py_TYPE(((PyObject*)((b)))), (1UL << 28)) && !
Py_IS_TYPE(((PyObject*)((b))), &PyUnicode_Type))), 0)) ? PyNumber_Remainder
(a, b) : PyUnicode_Format(a, b))
((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))__builtin_expect(!!((a) == (&_Py_NoneStruct) || (PyType_HasFeature
(Py_TYPE(((PyObject*)((b)))), (1UL << 28)) && !
Py_IS_TYPE(((PyObject*)((b))), &PyUnicode_Type))), 0)
) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)PyUnicode_Format(a, b))
1013#define __Pyx_PyUnicode_FormatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct) || (PyType_HasFeature
(Py_TYPE(((PyObject*)((b)))), (1UL << 28)) && !
Py_IS_TYPE(((PyObject*)((b))), &PyUnicode_Type))), 0)) ? PyNumber_Remainder
(a, b) : PyUnicode_Format(a, b))
((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))__builtin_expect(!!((a) == (&_Py_NoneStruct) || (PyType_HasFeature
(Py_TYPE(((PyObject*)((b)))), (1UL << 28)) && !
Py_IS_TYPE(((PyObject*)((b))), &PyUnicode_Type))), 0)
) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
1014#if PY_MAJOR_VERSION3 >= 3
1015 #define __Pyx_PyString_Format(a, b)PyUnicode_Format(a, b) PyUnicode_Format(a, b)
1016#else
1017 #define __Pyx_PyString_Format(a, b)PyUnicode_Format(a, b) PyString_Format(a, b)
1018#endif
1019#if PY_MAJOR_VERSION3 < 3 && !defined(PyObject_ASCII)
1020 #define PyObject_ASCII(o) PyObject_Repr(o)
1021#endif
1022#if PY_MAJOR_VERSION3 >= 3
1023 #define PyBaseString_TypePyUnicode_Type PyUnicode_Type
1024 #define PyStringObjectPyUnicodeObject PyUnicodeObject
1025 #define PyString_TypePyUnicode_Type PyUnicode_Type
1026 #define PyString_CheckPyUnicode_Check PyUnicode_Check
1027 #define PyString_CheckExactPyUnicode_CheckExact PyUnicode_CheckExact
1028#ifndef PyObject_UnicodePyObject_Str
1029 #define PyObject_UnicodePyObject_Str PyObject_Str
1030#endif
1031#endif
1032#if PY_MAJOR_VERSION3 >= 3
1033 #define __Pyx_PyBaseString_Check(obj)PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL <<
28))
PyUnicode_Check(obj)PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL <<
28))
1034 #define __Pyx_PyBaseString_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type) PyUnicode_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type)
1035#else
1036 #define __Pyx_PyBaseString_Check(obj)PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL <<
28))
(PyString_Check(obj)PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL <<
28))
|| PyUnicode_Check(obj)PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL <<
28))
)
1037 #define __Pyx_PyBaseString_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type) (PyString_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type) || PyUnicode_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type))
1038#endif
1039#if CYTHON_COMPILING_IN_CPYTHON1
1040 #define __Pyx_PySequence_ListKeepNew(obj)(__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyList_Type
) && Py_REFCNT(((PyObject*)((obj)))) == 1), 1) ? (Py_INCREF
(((PyObject*)((obj)))), obj) : PySequence_List(obj))
\
1041 (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1)__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyList_Type
) && Py_REFCNT(((PyObject*)((obj)))) == 1), 1)
? __Pyx_NewRef(obj)(Py_INCREF(((PyObject*)((obj)))), obj) : PySequence_List(obj))
1042#else
1043 #define __Pyx_PySequence_ListKeepNew(obj)(__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyList_Type
) && Py_REFCNT(((PyObject*)((obj)))) == 1), 1) ? (Py_INCREF
(((PyObject*)((obj)))), obj) : PySequence_List(obj))
PySequence_List(obj)
1044#endif
1045#ifndef PySet_CheckExact
1046 #define PySet_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PySet_Type) __Pyx_IS_TYPE(obj, &PySet_Type)Py_IS_TYPE(((PyObject*)((obj))), &PySet_Type)
1047#endif
1048#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030900A4
1049 #define __Pyx_SET_REFCNT(obj, refcnt)Py_SET_REFCNT(((PyObject*)((obj))), refcnt) Py_SET_REFCNT(obj, refcnt)Py_SET_REFCNT(((PyObject*)((obj))), refcnt)
1050 #define __Pyx_SET_SIZE(obj, size)Py_SET_SIZE(((PyVarObject*)((obj))), size) Py_SET_SIZE(obj, size)Py_SET_SIZE(((PyVarObject*)((obj))), size)
1051#else
1052 #define __Pyx_SET_REFCNT(obj, refcnt)Py_SET_REFCNT(((PyObject*)((obj))), refcnt) Py_REFCNT(obj)Py_REFCNT(((PyObject*)((obj)))) = (refcnt)
1053 #define __Pyx_SET_SIZE(obj, size)Py_SET_SIZE(((PyVarObject*)((obj))), size) Py_SIZE(obj)Py_SIZE(((PyObject*)((obj)))) = (size)
1054#endif
1055#if CYTHON_ASSUME_SAFE_MACROS1
1056 #define __Pyx_PySequence_ITEM(o, i)( Py_TYPE(((PyObject*)((o))))->tp_as_sequence->sq_item(
o, i) )
PySequence_ITEM(o, i)( Py_TYPE(((PyObject*)((o))))->tp_as_sequence->sq_item(
o, i) )
1057 #define __Pyx_PySequence_SIZE(seq)Py_SIZE(((PyObject*)((seq)))) Py_SIZE(seq)Py_SIZE(((PyObject*)((seq))))
1058 #define __Pyx_PyTuple_SET_ITEM(o, i, v)(PyTuple_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))),
(0))
(PyTuple_SET_ITEM(o, i, v)PyTuple_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))), (0))
1059 #define __Pyx_PyList_SET_ITEM(o, i, v)(PyList_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))), (
0))
(PyList_SET_ITEM(o, i, v)PyList_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))), (0))
1060 #define __Pyx_PyTuple_GET_SIZE(o)PyTuple_GET_SIZE(((PyObject*)((o)))) PyTuple_GET_SIZE(o)PyTuple_GET_SIZE(((PyObject*)((o))))
1061 #define __Pyx_PyList_GET_SIZE(o)PyList_GET_SIZE(((PyObject*)((o)))) PyList_GET_SIZE(o)PyList_GET_SIZE(((PyObject*)((o))))
1062 #define __Pyx_PySet_GET_SIZE(o)(((void) sizeof (((Py_IS_TYPE(((PyObject*)((o))), &PySet_Type
) || Py_IS_TYPE(((PyObject*)((o))), &PyFrozenSet_Type) ||
PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PySet_Type
) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PyFrozenSet_Type
))) ? 1 : 0), __extension__ ({ if ((Py_IS_TYPE(((PyObject*)((
o))), &PySet_Type) || Py_IS_TYPE(((PyObject*)((o))), &
PyFrozenSet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o
)))), &PySet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject
*)((o)))), &PyFrozenSet_Type))) ; else __assert_fail ("PyAnySet_Check(o)"
, "nastranOP2Reader.c", 1062, __extension__ __PRETTY_FUNCTION__
); })), (((PySetObject *)(o))->used))
PySet_GET_SIZE(o)(((void) sizeof (((Py_IS_TYPE(((PyObject*)((o))), &PySet_Type
) || Py_IS_TYPE(((PyObject*)((o))), &PyFrozenSet_Type) ||
PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PySet_Type
) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PyFrozenSet_Type
))) ? 1 : 0), __extension__ ({ if ((Py_IS_TYPE(((PyObject*)((
o))), &PySet_Type) || Py_IS_TYPE(((PyObject*)((o))), &
PyFrozenSet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o
)))), &PySet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject
*)((o)))), &PyFrozenSet_Type))) ; else __assert_fail ("PyAnySet_Check(o)"
, "nastranOP2Reader.c", 1062, __extension__ __PRETTY_FUNCTION__
); })), (((PySetObject *)(o))->used))
1063 #define __Pyx_PyBytes_GET_SIZE(o)PyBytes_GET_SIZE(((PyObject*)((o)))) PyBytes_GET_SIZE(o)PyBytes_GET_SIZE(((PyObject*)((o))))
1064 #define __Pyx_PyByteArray_GET_SIZE(o)PyByteArray_GET_SIZE(((PyObject*)((o)))) PyByteArray_GET_SIZE(o)PyByteArray_GET_SIZE(((PyObject*)((o))))
1065#else
1066 #define __Pyx_PySequence_ITEM(o, i)( Py_TYPE(((PyObject*)((o))))->tp_as_sequence->sq_item(
o, i) )
PySequence_GetItem(o, i)
1067 #define __Pyx_PySequence_SIZE(seq)Py_SIZE(((PyObject*)((seq)))) PySequence_Size(seq)
1068 #define __Pyx_PyTuple_SET_ITEM(o, i, v)(PyTuple_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))),
(0))
PyTuple_SetItem(o, i, v)
1069 #define __Pyx_PyList_SET_ITEM(o, i, v)(PyList_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))), (
0))
PyList_SetItem(o, i, v)
1070 #define __Pyx_PyTuple_GET_SIZE(o)PyTuple_GET_SIZE(((PyObject*)((o)))) PyTuple_Size(o)
1071 #define __Pyx_PyList_GET_SIZE(o)PyList_GET_SIZE(((PyObject*)((o)))) PyList_Size(o)
1072 #define __Pyx_PySet_GET_SIZE(o)(((void) sizeof (((Py_IS_TYPE(((PyObject*)((o))), &PySet_Type
) || Py_IS_TYPE(((PyObject*)((o))), &PyFrozenSet_Type) ||
PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PySet_Type
) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PyFrozenSet_Type
))) ? 1 : 0), __extension__ ({ if ((Py_IS_TYPE(((PyObject*)((
o))), &PySet_Type) || Py_IS_TYPE(((PyObject*)((o))), &
PyFrozenSet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o
)))), &PySet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject
*)((o)))), &PyFrozenSet_Type))) ; else __assert_fail ("PyAnySet_Check(o)"
, "nastranOP2Reader.c", 1072, __extension__ __PRETTY_FUNCTION__
); })), (((PySetObject *)(o))->used))
PySet_Size(o)
1073 #define __Pyx_PyBytes_GET_SIZE(o)PyBytes_GET_SIZE(((PyObject*)((o)))) PyBytes_Size(o)
1074 #define __Pyx_PyByteArray_GET_SIZE(o)PyByteArray_GET_SIZE(((PyObject*)((o)))) PyByteArray_Size(o)
1075#endif
1076#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030d00A1
1077 #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
1078#else
1079 static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
1080 PyObject *module = PyImport_AddModule(name);
1081 Py_XINCREF(module)Py_XINCREF(((PyObject*)((module))));
1082 return module;
1083 }
1084#endif
1085#if PY_MAJOR_VERSION3 >= 3
1086 #define PyIntObjectPyLongObject PyLongObject
1087 #define PyInt_TypePyLong_Type PyLong_Type
1088 #define PyInt_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL <<
24))
PyLong_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL <<
24))
1089 #define PyInt_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type) PyLong_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type)
1090 #define __Pyx_Py3Int_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL <<
24))
PyLong_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL <<
24))
1091 #define __Pyx_Py3Int_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type) PyLong_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type)
1092 #define PyInt_FromStringPyLong_FromString PyLong_FromString
1093 #define PyInt_FromUnicodePyLong_FromUnicode PyLong_FromUnicode
1094 #define PyInt_FromLongPyLong_FromLong PyLong_FromLong
1095 #define PyInt_FromSize_tPyLong_FromSize_t PyLong_FromSize_t
1096 #define PyInt_FromSsize_tPyLong_FromSsize_t PyLong_FromSsize_t
1097 #define PyInt_AsLongPyLong_AsLong PyLong_AsLong
1098 #define PyInt_AS_LONGPyLong_AS_LONG PyLong_AS_LONG
1099 #define PyInt_AsSsize_tPyLong_AsSsize_t PyLong_AsSsize_t
1100 #define PyInt_AsUnsignedLongMaskPyLong_AsUnsignedLongMask PyLong_AsUnsignedLongMask
1101 #define PyInt_AsUnsignedLongLongMaskPyLong_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
1102 #define PyNumber_IntPyNumber_Long PyNumber_Long
1103#else
1104 #define __Pyx_Py3Int_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL <<
24))
(PyLong_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL <<
24))
|| PyInt_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL <<
24))
)
1105 #define __Pyx_Py3Int_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type) (PyLong_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type) || PyInt_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type))
1106#endif
1107#if PY_MAJOR_VERSION3 >= 3
1108 #define PyBoolObjectPyLongObject PyLongObject
1109#endif
1110#if PY_MAJOR_VERSION3 >= 3 && CYTHON_COMPILING_IN_PYPY0
1111 #ifndef PyUnicode_InternFromString
1112 #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
1113 #endif
1114#endif
1115#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030200A4
1116 typedef long Py_hash_t;
1117 #define __Pyx_PyInt_FromHash_tPyLong_FromSsize_t PyInt_FromLongPyLong_FromLong
1118 #define __Pyx_PyInt_AsHash_t__Pyx_PyIndex_AsSsize_t __Pyx_PyIndex_AsHash_t
1119#else
1120 #define __Pyx_PyInt_FromHash_tPyLong_FromSsize_t PyInt_FromSsize_tPyLong_FromSsize_t
1121 #define __Pyx_PyInt_AsHash_t__Pyx_PyIndex_AsSsize_t __Pyx_PyIndex_AsSsize_t
1122#endif
1123#if CYTHON_USE_ASYNC_SLOTS1
1124 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030500B1
1125 #define __Pyx_PyAsyncMethodsStructPyAsyncMethods PyAsyncMethods
1126 #define __Pyx_PyType_AsAsync(obj)(Py_TYPE(((PyObject*)((obj))))->tp_as_async) (Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_as_async)
1127 #else
1128 #define __Pyx_PyType_AsAsync(obj)(Py_TYPE(((PyObject*)((obj))))->tp_as_async) ((__Pyx_PyAsyncMethodsStructPyAsyncMethods*) (Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_reserved))
1129 #endif
1130#else
1131 #define __Pyx_PyType_AsAsync(obj)(Py_TYPE(((PyObject*)((obj))))->tp_as_async) NULL((void*)0)
1132#endif
1133#ifndef __Pyx_PyAsyncMethodsStructPyAsyncMethods
1134 typedef struct {
1135 unaryfunc am_await;
1136 unaryfunc am_aiter;
1137 unaryfunc am_anext;
1138 } __Pyx_PyAsyncMethodsStructPyAsyncMethods;
1139#endif
1140
1141#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
1142 #if !defined(_USE_MATH_DEFINES)
1143 #define _USE_MATH_DEFINES
1144 #endif
1145#endif
1146#include <math.h>
1147#ifdef NAN(__builtin_nanf (""))
1148#define __PYX_NAN()((float) (__builtin_nanf (""))) ((float) NAN(__builtin_nanf ("")))
1149#else
1150static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) float __PYX_NAN()((float) (__builtin_nanf (""))) {
1151 float value;
1152 memset(&value, 0xFF, sizeof(value));
1153 return value;
1154}
1155#endif
1156#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
1157#define __Pyx_truncltruncl trunc
1158#else
1159#define __Pyx_truncltruncl truncl
1160#endif
1161
1162#define __PYX_MARK_ERR_POS(f_index, lineno){ __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno
= lineno; (void)__pyx_lineno; __pyx_clineno = 1162; (void)__pyx_clineno
; }
\
1163 { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__1163; (void)__pyx_clineno; }
1164#define __PYX_ERR(f_index, lineno, Ln_error){ { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno
= lineno; (void)__pyx_lineno; __pyx_clineno = 1164; (void)__pyx_clineno
; } goto Ln_error; }
\
1165 { __PYX_MARK_ERR_POS(f_index, lineno){ __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno
= lineno; (void)__pyx_lineno; __pyx_clineno = 1165; (void)__pyx_clineno
; }
goto Ln_error; }
1166
1167#ifdef CYTHON_EXTERN_C
1168 #undef __PYX_EXTERN_Cextern
1169 #define __PYX_EXTERN_Cextern CYTHON_EXTERN_C
1170#elif defined(__PYX_EXTERN_Cextern)
1171 #ifdef _MSC_VER
1172 #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
1173 #else
1174 #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
1175 #endif
1176#else
1177 #ifdef __cplusplus
1178 #define __PYX_EXTERN_Cextern extern "C"
1179 #else
1180 #define __PYX_EXTERN_Cextern extern
1181 #endif
1182#endif
1183
1184#define __PYX_HAVE__nastranOP2Reader
1185#define __PYX_HAVE_API__nastranOP2Reader
1186/* Early includes */
1187#include "egadsTypes.h"
1188#include "egads.h"
1189#include "egadsErrors.h"
1190#include "prm.h"
1191#ifdef _OPENMP
1192#include <omp.h>
1193#endif /* _OPENMP */
1194
1195#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
1196#define CYTHON_WITHOUT_ASSERTIONS
1197#endif
1198
1199typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
1200 const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;
1201
1202#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 0
1203#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF80 0
1204#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0) (PY_MAJOR_VERSION3 >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF80)
1205#define __PYX_DEFAULT_STRING_ENCODING"" ""
1206#define __Pyx_PyObject_FromStringPyBytes_FromString __Pyx_PyBytes_FromStringPyBytes_FromString
1207#define __Pyx_PyObject_FromStringAndSizePyBytes_FromStringAndSize __Pyx_PyBytes_FromStringAndSizePyBytes_FromStringAndSize
1208#define __Pyx_uchar_cast(c)((unsigned char)c) ((unsigned char)c)
1209#define __Pyx_long_cast(x)((long)x) ((long)x)
1210#define __Pyx_fits_Py_ssize_t(v, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) >
sizeof(Py_ssize_t) && __builtin_expect(!!(v < (type
)9223372036854775807L || v == (type)9223372036854775807L), 1)
&& (!is_signed || __builtin_expect(!!(v > (type)(
-9223372036854775807L -1) || v == (type)(-9223372036854775807L
-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) &&
(is_signed || __builtin_expect(!!(v < (type)9223372036854775807L
|| v == (type)9223372036854775807L), 1))) )
(\
1211 (sizeof(type) < sizeof(Py_ssize_t)) ||\
1212 (sizeof(type) > sizeof(Py_ssize_t) &&\
1213 likely(v < (type)PY_SSIZE_T_MAX ||\__builtin_expect(!!(v < (type)9223372036854775807L || v ==
(type)9223372036854775807L), 1)
1214 v == (type)PY_SSIZE_T_MAX)__builtin_expect(!!(v < (type)9223372036854775807L || v ==
(type)9223372036854775807L), 1)
&&\
1215 (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\__builtin_expect(!!(v > (type)(-9223372036854775807L -1) ||
v == (type)(-9223372036854775807L -1)), 1)
1216 v == (type)PY_SSIZE_T_MIN)__builtin_expect(!!(v > (type)(-9223372036854775807L -1) ||
v == (type)(-9223372036854775807L -1)), 1)
)) ||\
1217 (sizeof(type) == sizeof(Py_ssize_t) &&\
1218 (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\__builtin_expect(!!(v < (type)9223372036854775807L || v ==
(type)9223372036854775807L), 1)
1219 v == (type)PY_SSIZE_T_MAX)__builtin_expect(!!(v < (type)9223372036854775807L || v ==
(type)9223372036854775807L), 1)
)) )
1220static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
1221 return (size_t) i < (size_t) limit;
1222}
1223#if defined (__cplusplus) && __cplusplus >= 201103L
1224 #include <cstdlib>
1225 #define __Pyx_sst_abs(value)labs(value) std::abs(value)
1226#elif SIZEOF_INT4 >= SIZEOF_SIZE_T8
1227 #define __Pyx_sst_abs(value)labs(value) abs(value)
1228#elif SIZEOF_LONG8 >= SIZEOF_SIZE_T8
1229 #define __Pyx_sst_abs(value)labs(value) labs(value)
1230#elif defined (_MSC_VER)
1231 #define __Pyx_sst_abs(value)labs(value) ((Py_ssize_t)_abs64(value))
1232#elif defined (__STDC_VERSION__201112L) && __STDC_VERSION__201112L >= 199901L
1233 #define __Pyx_sst_abs(value)labs(value) llabs(value)
1234#elif defined (__GNUC__4)
1235 #define __Pyx_sst_abs(value)labs(value) __builtin_llabs(value)
1236#else
1237 #define __Pyx_sst_abs(value)labs(value) ((value<0) ? -value : value)
1238#endif
1239static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_ssize_t __Pyx_ssize_strlen(const char *s);
1240static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) const char* __Pyx_PyObject_AsString(PyObject*);
1241static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
1242static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyByteArray_FromString(const char*);
1243#define __Pyx_PyByteArray_FromStringAndSize(s, l)PyByteArray_FromStringAndSize((const char*)s, l) PyByteArray_FromStringAndSize((const char*)s, l)
1244#define __Pyx_PyBytes_FromStringPyBytes_FromString PyBytes_FromString
1245#define __Pyx_PyBytes_FromStringAndSizePyBytes_FromStringAndSize PyBytes_FromStringAndSize
1246static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyUnicode_FromString(const char*);
1247#if PY_MAJOR_VERSION3 < 3
1248 #define __Pyx_PyStr_FromString__Pyx_PyUnicode_FromString __Pyx_PyBytes_FromStringPyBytes_FromString
1249 #define __Pyx_PyStr_FromStringAndSize__Pyx_PyUnicode_FromStringAndSize __Pyx_PyBytes_FromStringAndSizePyBytes_FromStringAndSize
1250#else
1251 #define __Pyx_PyStr_FromString__Pyx_PyUnicode_FromString __Pyx_PyUnicode_FromString
1252 #define __Pyx_PyStr_FromStringAndSize__Pyx_PyUnicode_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
1253#endif
1254#define __Pyx_PyBytes_AsWritableString(s)((char*) PyBytes_AS_STRING(((PyObject*)((s))))) ((char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s)))))
1255#define __Pyx_PyBytes_AsWritableSString(s)((signed char*) PyBytes_AS_STRING(((PyObject*)((s))))) ((signed char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s)))))
1256#define __Pyx_PyBytes_AsWritableUString(s)((unsigned char*) PyBytes_AS_STRING(((PyObject*)((s))))) ((unsigned char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s)))))
1257#define __Pyx_PyBytes_AsString(s)((const char*) PyBytes_AS_STRING(((PyObject*)((s))))) ((const char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s)))))
1258#define __Pyx_PyBytes_AsSString(s)((const signed char*) PyBytes_AS_STRING(((PyObject*)((s))))) ((const signed char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s)))))
1259#define __Pyx_PyBytes_AsUString(s)((const unsigned char*) PyBytes_AS_STRING(((PyObject*)((s))))
)
((const unsigned char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s)))))
1260#define __Pyx_PyObject_AsWritableString(s)((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
1261#define __Pyx_PyObject_AsWritableSString(s)((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
1262#define __Pyx_PyObject_AsWritableUString(s)((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)
)
((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
1263#define __Pyx_PyObject_AsSString(s)((const signed char*) __Pyx_PyObject_AsString(s)) ((const signed char*) __Pyx_PyObject_AsString(s))
1264#define __Pyx_PyObject_AsUString(s)((const unsigned char*) __Pyx_PyObject_AsString(s)) ((const unsigned char*) __Pyx_PyObject_AsString(s))
1265#define __Pyx_PyObject_FromCString(s)PyBytes_FromString((const char*)s) __Pyx_PyObject_FromStringPyBytes_FromString((const char*)s)
1266#define __Pyx_PyBytes_FromCString(s)PyBytes_FromString((const char*)s) __Pyx_PyBytes_FromStringPyBytes_FromString((const char*)s)
1267#define __Pyx_PyByteArray_FromCString(s)__Pyx_PyByteArray_FromString((const char*)s) __Pyx_PyByteArray_FromString((const char*)s)
1268#define __Pyx_PyStr_FromCString(s)__Pyx_PyUnicode_FromString((const char*)s) __Pyx_PyStr_FromString__Pyx_PyUnicode_FromString((const char*)s)
1269#define __Pyx_PyUnicode_FromCString(s)__Pyx_PyUnicode_FromString((const char*)s) __Pyx_PyUnicode_FromString((const char*)s)
1270#if CYTHON_COMPILING_IN_LIMITED_API0
1271static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) size_t __Pyx_Py_UNICODE_strlen(const wchar_t *u)
1272{
1273 const wchar_t *u_end = u;
1274 while (*u_end++) ;
1275 return (size_t)(u_end - u - 1);
1276}
1277#else
1278static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
1279{
1280 const Py_UNICODE *u_end = u;
1281 while (*u_end++) ;
1282 return (size_t)(u_end - u - 1);
1283}
1284#endif
1285#define __Pyx_PyUnicode_FromOrdinal(o)PyUnicode_FromOrdinal((int)o) PyUnicode_FromOrdinal((int)o)
1286#define __Pyx_PyUnicode_FromUnicode(u)PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
1287#define __Pyx_PyUnicode_FromUnicodeAndLengthPyUnicode_FromUnicode PyUnicode_FromUnicode
1288#define __Pyx_PyUnicode_AsUnicodePyUnicode_AsUnicode PyUnicode_AsUnicode
1289#define __Pyx_NewRef(obj)(Py_INCREF(((PyObject*)((obj)))), obj) (Py_INCREF(obj)Py_INCREF(((PyObject*)((obj)))), obj)
1290#define __Pyx_Owned_Py_None(b)(Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))), (&_Py_NoneStruct
))
__Pyx_NewRef(Py_None)(Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))), (&_Py_NoneStruct
))
1291static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyBool_FromLong(long b);
1292static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyObject_IsTrue(PyObject*);
1293static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
1294static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
1295#define __Pyx_PySequence_Tuple(obj)(__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyTuple_Type
)), 1) ? (Py_INCREF(((PyObject*)((obj)))), obj) : PySequence_Tuple
(obj))
\
1296 (likely(PyTuple_CheckExact(obj))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyTuple_Type
)), 1)
? __Pyx_NewRef(obj)(Py_INCREF(((PyObject*)((obj)))), obj) : PySequence_Tuple(obj))
1297static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
1298static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyInt_FromSize_t(size_t);
1299static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
1300#if CYTHON_ASSUME_SAFE_MACROS1
1301#define __pyx_PyFloat_AsDouble(x)(Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? (((PyFloatObject
*)(x))->ob_fval) : PyFloat_AsDouble(x))
(PyFloat_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? PyFloat_AS_DOUBLE(x)(((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x))
1302#else
1303#define __pyx_PyFloat_AsDouble(x)(Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? (((PyFloatObject
*)(x))->ob_fval) : PyFloat_AsDouble(x))
PyFloat_AsDouble(x)
1304#endif
1305#define __pyx_PyFloat_AsFloat(x)((float) (Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ?
(((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x)))
((float) __pyx_PyFloat_AsDouble(x)(Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? (((PyFloatObject
*)(x))->ob_fval) : PyFloat_AsDouble(x))
)
1306#if PY_MAJOR_VERSION3 >= 3
1307#define __Pyx_PyNumber_Int(x)(Py_IS_TYPE(((PyObject*)((x))), &PyLong_Type) ? (Py_INCREF
(((PyObject*)((x)))), x) : PyNumber_Long(x))
(PyLong_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyLong_Type) ? __Pyx_NewRef(x)(Py_INCREF(((PyObject*)((x)))), x) : PyNumber_Long(x))
1308#else
1309#define __Pyx_PyNumber_Int(x)(Py_IS_TYPE(((PyObject*)((x))), &PyLong_Type) ? (Py_INCREF
(((PyObject*)((x)))), x) : PyNumber_Long(x))
(PyInt_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyLong_Type) ? __Pyx_NewRef(x)(Py_INCREF(((PyObject*)((x)))), x) : PyNumber_IntPyNumber_Long(x))
1310#endif
1311#if CYTHON_USE_PYLONG_INTERNALS1
1312 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030C00A7
1313 #ifndef _PyLong_SIGN_MASK
1314 #define _PyLong_SIGN_MASK 3
1315 #endif
1316 #ifndef _PyLong_NON_SIZE_BITS
1317 #define _PyLong_NON_SIZE_BITS 3
1318 #endif
1319 #define __Pyx_PyLong_Sign(x) (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK)
1320 #define __Pyx_PyLong_IsNeg(x)(Py_SIZE(((PyObject*)((x)))) < 0) ((__Pyx_PyLong_Sign(x) & 2) != 0)
1321 #define __Pyx_PyLong_IsNonNeg(x)(Py_SIZE(((PyObject*)((x)))) >= 0) (!__Pyx_PyLong_IsNeg(x)(Py_SIZE(((PyObject*)((x)))) < 0))
1322 #define __Pyx_PyLong_IsZero(x)(Py_SIZE(((PyObject*)((x)))) == 0) (__Pyx_PyLong_Sign(x) & 1)
1323 #define __Pyx_PyLong_IsPos(x)(Py_SIZE(((PyObject*)((x)))) > 0) (__Pyx_PyLong_Sign(x) == 0)
1324 #define __Pyx_PyLong_CompactValueUnsigned(x)((Py_SIZE(((PyObject*)((x)))) == 0) ? 0 : (((PyLongObject*)x)
->ob_digit)[0])
(__Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit)[0])
1325 #define __Pyx_PyLong_DigitCount(x)labs(Py_SIZE(((PyObject*)((x))))) ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
1326 #define __Pyx_PyLong_SignedDigitCount(x)Py_SIZE(((PyObject*)((x))))\
1327 ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x)labs(Py_SIZE(((PyObject*)((x))))))
1328 #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
1329 #define __Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x)
))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)
PyUnstable_Long_IsCompact((PyLongObject*) x)
1330 #define __Pyx_PyLong_CompactValue(x)((Py_SIZE(((PyObject*)((x)))) == 0) ? (sdigit) 0 : ((Py_SIZE(
((PyObject*)((x)))) < 0) ? -(sdigit)(((PyLongObject*)x)->
ob_digit)[0] : (sdigit)(((PyLongObject*)x)->ob_digit)[0]))
PyUnstable_Long_CompactValue((PyLongObject*) x)
1331 #else
1332 #define __Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x)
))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)
(((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
1333 #define __Pyx_PyLong_CompactValue(x)((Py_SIZE(((PyObject*)((x)))) == 0) ? (sdigit) 0 : ((Py_SIZE(
((PyObject*)((x)))) < 0) ? -(sdigit)(((PyLongObject*)x)->
ob_digit)[0] : (sdigit)(((PyLongObject*)x)->ob_digit)[0]))
((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit)[0])
1334 #endif
1335 typedef Py_ssize_t __Pyx_compact_pylong;
1336 typedef size_t __Pyx_compact_upylong;
1337 #else // Py < 3.12
1338 #define __Pyx_PyLong_IsNeg(x)(Py_SIZE(((PyObject*)((x)))) < 0) (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) < 0)
1339 #define __Pyx_PyLong_IsNonNeg(x)(Py_SIZE(((PyObject*)((x)))) >= 0) (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) >= 0)
1340 #define __Pyx_PyLong_IsZero(x)(Py_SIZE(((PyObject*)((x)))) == 0) (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0)
1341 #define __Pyx_PyLong_IsPos(x)(Py_SIZE(((PyObject*)((x)))) > 0) (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) > 0)
1342 #define __Pyx_PyLong_CompactValueUnsigned(x)((Py_SIZE(((PyObject*)((x)))) == 0) ? 0 : (((PyLongObject*)x)
->ob_digit)[0])
((Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0) ? 0 : __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit)[0])
1343 #define __Pyx_PyLong_DigitCount(x)labs(Py_SIZE(((PyObject*)((x))))) __Pyx_sst_abs(Py_SIZE(x))labs(Py_SIZE(((PyObject*)((x)))))
1344 #define __Pyx_PyLong_SignedDigitCount(x)Py_SIZE(((PyObject*)((x)))) Py_SIZE(x)Py_SIZE(((PyObject*)((x))))
1345 #define __Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x)
))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)
(Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 1 || Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == -1)
1346 #define __Pyx_PyLong_CompactValue(x)((Py_SIZE(((PyObject*)((x)))) == 0) ? (sdigit) 0 : ((Py_SIZE(
((PyObject*)((x)))) < 0) ? -(sdigit)(((PyLongObject*)x)->
ob_digit)[0] : (sdigit)(((PyLongObject*)x)->ob_digit)[0]))
\
1347 ((Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0) ? (sdigit) 0 : ((Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit)[0] : (sdigit)__Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit)[0]))
1348 typedef sdigit __Pyx_compact_pylong;
1349 typedef digit __Pyx_compact_upylong;
1350 #endif
1351 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030C00A5
1352 #define __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit) (((PyLongObject*)x)->long_value.ob_digit)
1353 #else
1354 #define __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit) (((PyLongObject*)x)->ob_digit)
1355 #endif
1356#endif
1357#if PY_MAJOR_VERSION3 < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0
1358#include <string.h>
1359static int __Pyx_sys_getdefaultencoding_not_ascii;
1360static int __Pyx_init_sys_getdefaultencoding_params(void) {
1361 PyObject* sys;
1362 PyObject* default_encoding = NULL((void*)0);
1363 PyObject* ascii_chars_u = NULL((void*)0);
1364 PyObject* ascii_chars_b = NULL((void*)0);
1365 const char* default_encoding_c;
1366 sys = PyImport_ImportModule("sys");
1367 if (!sys) goto bad;
1368 default_encoding = PyObject_CallMethod_PyObject_CallMethod_SizeT(sys, (char*) "getdefaultencoding", NULL((void*)0));
1369 Py_DECREF(sys)Py_DECREF(((PyObject*)((sys))));
1370 if (!default_encoding) goto bad;
1371 default_encoding_c = PyBytes_AsString(default_encoding);
1372 if (!default_encoding_c) goto bad;
1373 if (strcmp(default_encoding_c, "ascii") == 0) {
1374 __Pyx_sys_getdefaultencoding_not_ascii = 0;
1375 } else {
1376 char ascii_chars[128];
1377 int c;
1378 for (c = 0; c < 128; c++) {
1379 ascii_chars[c] = (char) c;
1380 }
1381 __Pyx_sys_getdefaultencoding_not_ascii = 1;
1382 ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL((void*)0));
1383 if (!ascii_chars_u) goto bad;
1384 ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL((void*)0));
1385 if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b)PyType_HasFeature(Py_TYPE(((PyObject*)((ascii_chars_b)))), (1UL
<< 27))
|| memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b)PyBytes_AS_STRING(((PyObject*)((ascii_chars_b)))), 128) != 0) {
1386 PyErr_Format(
1387 PyExc_ValueError,
1388 "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
1389 default_encoding_c);
1390 goto bad;
1391 }
1392 Py_DECREF(ascii_chars_u)Py_DECREF(((PyObject*)((ascii_chars_u))));
1393 Py_DECREF(ascii_chars_b)Py_DECREF(((PyObject*)((ascii_chars_b))));
1394 }
1395 Py_DECREF(default_encoding)Py_DECREF(((PyObject*)((default_encoding))));
1396 return 0;
1397bad:
1398 Py_XDECREF(default_encoding)Py_XDECREF(((PyObject*)((default_encoding))));
1399 Py_XDECREF(ascii_chars_u)Py_XDECREF(((PyObject*)((ascii_chars_u))));
1400 Py_XDECREF(ascii_chars_b)Py_XDECREF(((PyObject*)((ascii_chars_b))));
1401 return -1;
1402}
1403#endif
1404#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0) && PY_MAJOR_VERSION3 >= 3
1405#define __Pyx_PyUnicode_FromStringAndSize(c_str, size)PyUnicode_Decode(c_str, size, "", ((void*)0)) PyUnicode_DecodeUTF8(c_str, size, NULL((void*)0))
1406#else
1407#define __Pyx_PyUnicode_FromStringAndSize(c_str, size)PyUnicode_Decode(c_str, size, "", ((void*)0)) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING"", NULL((void*)0))
1408#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0)
1409#include <string.h>
1410static char* __PYX_DEFAULT_STRING_ENCODING"";
1411static int __Pyx_init_sys_getdefaultencoding_params(void) {
1412 PyObject* sys;
1413 PyObject* default_encoding = NULL((void*)0);
1414 char* default_encoding_c;
1415 sys = PyImport_ImportModule("sys");
1416 if (!sys) goto bad;
1417 default_encoding = PyObject_CallMethod_PyObject_CallMethod_SizeT(sys, (char*) (const char*) "getdefaultencoding", NULL((void*)0));
1418 Py_DECREF(sys)Py_DECREF(((PyObject*)((sys))));
1419 if (!default_encoding) goto bad;
1420 default_encoding_c = PyBytes_AsString(default_encoding);
1421 if (!default_encoding_c) goto bad;
1422 __PYX_DEFAULT_STRING_ENCODING"" = (char*) malloc(strlen(default_encoding_c) + 1);
1423 if (!__PYX_DEFAULT_STRING_ENCODING"") goto bad;
1424 strcpy(__PYX_DEFAULT_STRING_ENCODING"", default_encoding_c);
1425 Py_DECREF(default_encoding)Py_DECREF(((PyObject*)((default_encoding))));
1426 return 0;
1427bad:
1428 Py_XDECREF(default_encoding)Py_XDECREF(((PyObject*)((default_encoding))));
1429 return -1;
1430}
1431#endif
1432#endif
1433
1434
1435/* Test for GCC > 2.95 */
1436#if defined(__GNUC__4) && (__GNUC__4 > 2 || (__GNUC__4 == 2 && (__GNUC_MINOR__2 > 95)))
1437 #define likely(x)__builtin_expect(!!(x), 1) __builtin_expect(!!(x), 1)
1438 #define unlikely(x)__builtin_expect(!!(x), 0) __builtin_expect(!!(x), 0)
1439#else /* !__GNUC__ or GCC < 2.95 */
1440 #define likely(x)__builtin_expect(!!(x), 1) (x)
1441 #define unlikely(x)__builtin_expect(!!(x), 0) (x)
1442#endif /* __GNUC__ */
1443static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
1444
1445#if !CYTHON_USE_MODULE_STATE0
1446static PyObject *__pyx_m = NULL((void*)0);
1447#endif
1448static int __pyx_lineno;
1449static int __pyx_clineno = 0;
1450static const char * __pyx_cfilenm = __FILE__"nastranOP2Reader.c";
1451static const char *__pyx_filename;
1452
1453/* #### Code section: filename_table ### */
1454
1455static const char *__pyx_f[] = {
1456 "nastranOP2Reader.pyx",
1457};
1458/* #### Code section: utility_code_proto_before_types ### */
1459/* ForceInitThreads.proto */
1460#ifndef __PYX_FORCE_INIT_THREADS0
1461 #define __PYX_FORCE_INIT_THREADS0 0
1462#endif
1463
1464/* #### Code section: numeric_typedefs ### */
1465/* #### Code section: complex_type_declarations ### */
1466/* #### Code section: type_declarations ### */
1467
1468/*--- Type declarations ---*/
1469/* #### Code section: utility_code_proto ### */
1470
1471/* --- Runtime support code (head) --- */
1472/* Refnanny.proto */
1473#ifndef CYTHON_REFNANNY0
1474 #define CYTHON_REFNANNY0 0
1475#endif
1476#if CYTHON_REFNANNY0
1477 typedef struct {
1478 void (*INCREF)(void*, PyObject*, Py_ssize_t);
1479 void (*DECREF)(void*, PyObject*, Py_ssize_t);
1480 void (*GOTREF)(void*, PyObject*, Py_ssize_t);
1481 void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
1482 void* (*SetupContext)(const char*, Py_ssize_t, const char*);
1483 void (*FinishContext)(void**);
1484 } __Pyx_RefNannyAPIStruct;
1485 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL((void*)0);
1486 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
1487 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL((void*)0);
1488#ifdef WITH_THREAD
1489 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1490 if (acquire_gil) {\
1491 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
1492 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__1492), (__FILE__"nastranOP2Reader.c"));\
1493 PyGILState_Release(__pyx_gilstate_save);\
1494 } else {\
1495 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__1495), (__FILE__"nastranOP2Reader.c"));\
1496 }
1497 #define __Pyx_RefNannyFinishContextNogil() {\
1498 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
1499 __Pyx_RefNannyFinishContext();\
1500 PyGILState_Release(__pyx_gilstate_save);\
1501 }
1502#else
1503 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1504 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__1504), (__FILE__"nastranOP2Reader.c"))
1505 #define __Pyx_RefNannyFinishContextNogil() __Pyx_RefNannyFinishContext()
1506#endif
1507 #define __Pyx_RefNannyFinishContextNogil() {\
1508 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
1509 __Pyx_RefNannyFinishContext();\
1510 PyGILState_Release(__pyx_gilstate_save);\
1511 }
1512 #define __Pyx_RefNannyFinishContext()\
1513 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
1514 #define __Pyx_INCREF(r)Py_INCREF(((PyObject*)((r)))) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__1514))
1515 #define __Pyx_DECREF(r)Py_DECREF(((PyObject*)((r)))) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__1515))
1516 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__1516))
1517 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__1517))
1518 #define __Pyx_XINCREF(r)Py_XINCREF(((PyObject*)((r)))) do { if((r) == NULL((void*)0)); else {__Pyx_INCREF(r)Py_INCREF(((PyObject*)((r)))); }} while(0)
1519 #define __Pyx_XDECREF(r)Py_XDECREF(((PyObject*)((r)))) do { if((r) == NULL((void*)0)); else {__Pyx_DECREF(r)Py_DECREF(((PyObject*)((r)))); }} while(0)
1520 #define __Pyx_XGOTREF(r) do { if((r) == NULL((void*)0)); else {__Pyx_GOTREF(r); }} while(0)
1521 #define __Pyx_XGIVEREF(r) do { if((r) == NULL((void*)0)); else {__Pyx_GIVEREF(r);}} while(0)
1522#else
1523 #define __Pyx_RefNannyDeclarations
1524 #define __Pyx_RefNannySetupContext(name, acquire_gil)
1525 #define __Pyx_RefNannyFinishContextNogil()
1526 #define __Pyx_RefNannyFinishContext()
1527 #define __Pyx_INCREF(r)Py_INCREF(((PyObject*)((r)))) Py_INCREF(r)Py_INCREF(((PyObject*)((r))))
1528 #define __Pyx_DECREF(r)Py_DECREF(((PyObject*)((r)))) Py_DECREF(r)Py_DECREF(((PyObject*)((r))))
1529 #define __Pyx_GOTREF(r)
1530 #define __Pyx_GIVEREF(r)
1531 #define __Pyx_XINCREF(r)Py_XINCREF(((PyObject*)((r)))) Py_XINCREF(r)Py_XINCREF(((PyObject*)((r))))
1532 #define __Pyx_XDECREF(r)Py_XDECREF(((PyObject*)((r)))) Py_XDECREF(r)Py_XDECREF(((PyObject*)((r))))
1533 #define __Pyx_XGOTREF(r)
1534 #define __Pyx_XGIVEREF(r)
1535#endif
1536#define __Pyx_Py_XDECREF_SET(r, v)do { PyObject *tmp = (PyObject *) r; r = v; Py_XDECREF(((PyObject
*)((tmp)))); } while (0)
do {\
1537 PyObject *tmp = (PyObject *) r;\
1538 r = v; Py_XDECREF(tmp)Py_XDECREF(((PyObject*)((tmp))));\
1539 } while (0)
1540#define __Pyx_XDECREF_SET(r, v)do { PyObject *tmp = (PyObject *) r; r = v; Py_XDECREF(((PyObject
*)((tmp)))); } while (0)
do {\
1541 PyObject *tmp = (PyObject *) r;\
1542 r = v; __Pyx_XDECREF(tmp)Py_XDECREF(((PyObject*)((tmp))));\
1543 } while (0)
1544#define __Pyx_DECREF_SET(r, v)do { PyObject *tmp = (PyObject *) r; r = v; Py_DECREF(((PyObject
*)((tmp)))); } while (0)
do {\
1545 PyObject *tmp = (PyObject *) r;\
1546 r = v; __Pyx_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));\
1547 } while (0)
1548#define __Pyx_CLEAR(r)do { PyObject* tmp = ((PyObject*)(r)); r = ((void*)0); Py_DECREF
(((PyObject*)((tmp))));} while(0)
do { PyObject* tmp = ((PyObject*)(r)); r = NULL((void*)0); __Pyx_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));} while(0)
1549#define __Pyx_XCLEAR(r)do { if((r) != ((void*)0)) {PyObject* tmp = ((PyObject*)(r));
r = ((void*)0); Py_DECREF(((PyObject*)((tmp))));}} while(0)
do { if((r) != NULL((void*)0)) {PyObject* tmp = ((PyObject*)(r)); r = NULL((void*)0); __Pyx_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));}} while(0)
1550
1551/* PyErrExceptionMatches.proto */
1552#if CYTHON_FAST_THREAD_STATE1
1553#define __Pyx_PyErr_ExceptionMatches(err)__Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
1554static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1555#else
1556#define __Pyx_PyErr_ExceptionMatches(err)__Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) PyErr_ExceptionMatches(err)
1557#endif
1558
1559/* PyThreadStateGet.proto */
1560#if CYTHON_FAST_THREAD_STATE1
1561#define __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; PyThreadState *__pyx_tstate;
1562#define __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); __pyx_tstate = __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet();
1563#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030C00A6
1564#define __Pyx_PyErr_Occurred()(__pyx_tstate->curexc_type != ((void*)0)) (__pyx_tstate->current_exception != NULL((void*)0))
1565#define __Pyx_PyErr_CurrentExceptionType()(__pyx_tstate->curexc_type) (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception)Py_TYPE(((PyObject*)((__pyx_tstate->current_exception)))) : (PyObject*) NULL((void*)0))
1566#else
1567#define __Pyx_PyErr_Occurred()(__pyx_tstate->curexc_type != ((void*)0)) (__pyx_tstate->curexc_type != NULL((void*)0))
1568#define __Pyx_PyErr_CurrentExceptionType()(__pyx_tstate->curexc_type) (__pyx_tstate->curexc_type)
1569#endif
1570#else
1571#define __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate;
1572#define __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet();
1573#define __Pyx_PyErr_Occurred()(__pyx_tstate->curexc_type != ((void*)0)) (PyErr_Occurred() != NULL((void*)0))
1574#define __Pyx_PyErr_CurrentExceptionType()(__pyx_tstate->curexc_type) PyErr_Occurred()
1575#endif
1576
1577/* PyErrFetchRestore.proto */
1578#if CYTHON_FAST_THREAD_STATE1
1579#define __Pyx_PyErr_Clear()__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0),
((void*)0))
__Pyx_ErrRestore(NULL, NULL, NULL)__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0),
((void*)0))
1580#define __Pyx_ErrRestoreWithState(type, value, tb)__Pyx_ErrRestoreInState(PyThreadState_Get(), type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET()PyThreadState_Get(), type, value, tb)
1581#define __Pyx_ErrFetchWithState(type, value, tb)__Pyx_ErrFetchInState(PyThreadState_Get(), type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET()PyThreadState_Get(), type, value, tb)
1582#define __Pyx_ErrRestore(type, value, tb)__Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
1583#define __Pyx_ErrFetch(type, value, tb)__Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
1584static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1585static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1586#if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030C00A6
1587#define __Pyx_PyErr_SetNone(exc)(Py_INCREF(((PyObject*)((exc)))), __Pyx_ErrRestoreInState(__pyx_tstate
, (exc), ((void*)0), ((void*)0)))
(Py_INCREF(exc)Py_INCREF(((PyObject*)((exc)))), __Pyx_ErrRestore((exc), NULL, NULL)__Pyx_ErrRestoreInState(__pyx_tstate, (exc), ((void*)0), ((void
*)0))
)
1588#else
1589#define __Pyx_PyErr_SetNone(exc)(Py_INCREF(((PyObject*)((exc)))), __Pyx_ErrRestoreInState(__pyx_tstate
, (exc), ((void*)0), ((void*)0)))
PyErr_SetNone(exc)
1590#endif
1591#else
1592#define __Pyx_PyErr_Clear()__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0),
((void*)0))
PyErr_Clear()
1593#define __Pyx_PyErr_SetNone(exc)(Py_INCREF(((PyObject*)((exc)))), __Pyx_ErrRestoreInState(__pyx_tstate
, (exc), ((void*)0), ((void*)0)))
PyErr_SetNone(exc)
1594#define __Pyx_ErrRestoreWithState(type, value, tb)__Pyx_ErrRestoreInState(PyThreadState_Get(), type, value, tb) PyErr_Restore(type, value, tb)
1595#define __Pyx_ErrFetchWithState(type, value, tb)__Pyx_ErrFetchInState(PyThreadState_Get(), type, value, tb) PyErr_Fetch(type, value, tb)
1596#define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
1597#define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
1598#define __Pyx_ErrRestore(type, value, tb)__Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) PyErr_Restore(type, value, tb)
1599#define __Pyx_ErrFetch(type, value, tb)__Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) PyErr_Fetch(type, value, tb)
1600#endif
1601
1602/* PyObjectGetAttrStr.proto */
1603#if CYTHON_USE_TYPE_SLOTS1
1604static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
1605#else
1606#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
1607#endif
1608
1609/* PyObjectGetAttrStrNoError.proto */
1610static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);
1611
1612/* GetBuiltinName.proto */
1613static PyObject *__Pyx_GetBuiltinName(PyObject *name);
1614
1615/* TupleAndListFromArray.proto */
1616#if CYTHON_COMPILING_IN_CPYTHON1
1617static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
1618static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
1619#endif
1620
1621/* IncludeStringH.proto */
1622#include <string.h>
1623
1624/* BytesEquals.proto */
1625static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);
1626
1627/* UnicodeEquals.proto */
1628static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);
1629
1630/* fastcall.proto */
1631#if CYTHON_AVOID_BORROWED_REFS0
1632 #define __Pyx_Arg_VARARGS(args, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(args)", "nastranOP2Reader.c", 1632, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item
[i])
PySequence_GetItem(args, i)
1633#elif CYTHON_ASSUME_SAFE_MACROS1
1634 #define __Pyx_Arg_VARARGS(args, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(args)", "nastranOP2Reader.c", 1634, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item
[i])
PyTuple_GET_ITEM(args, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(args)", "nastranOP2Reader.c", 1634, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item
[i])
1635#else
1636 #define __Pyx_Arg_VARARGS(args, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(args)", "nastranOP2Reader.c", 1636, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item
[i])
PyTuple_GetItem(args, i)
1637#endif
1638#if CYTHON_AVOID_BORROWED_REFS0
1639 #define __Pyx_Arg_NewRef_VARARGS(arg)arg __Pyx_NewRef(arg)(Py_INCREF(((PyObject*)((arg)))), arg)
1640 #define __Pyx_Arg_XDECREF_VARARGS(arg) Py_XDECREF(arg)Py_XDECREF(((PyObject*)((arg))))
1641#else
1642 #define __Pyx_Arg_NewRef_VARARGS(arg)arg arg // no-op
1643 #define __Pyx_Arg_XDECREF_VARARGS(arg) // no-op - arg is borrowed
1644#endif
1645#define __Pyx_NumKwargs_VARARGS(kwds)PyDict_Size(kwds) PyDict_Size(kwds)
1646#define __Pyx_KwValues_VARARGS(args, nargs)((void*)0) NULL((void*)0)
1647#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s)_PyDict_GetItem_KnownHash(kw, s, ((PyASCIIObject *) s)->hash
)
__Pyx_PyDict_GetItemStrWithError(kw, s)_PyDict_GetItem_KnownHash(kw, s, ((PyASCIIObject *) s)->hash
)
1648#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues)PyDict_Copy(kw) PyDict_Copy(kw)
1649#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
1650 #define __Pyx_Arg_FASTCALL(args, i)args[i] args[i]
1651 #define __Pyx_NumKwargs_FASTCALL(kwds)PyTuple_GET_SIZE(((PyObject*)((kwds)))) PyTuple_GET_SIZE(kwds)PyTuple_GET_SIZE(((PyObject*)((kwds))))
1652 #define __Pyx_KwValues_FASTCALL(args, nargs)((args) + (nargs)) ((args) + (nargs))
1653 static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
1654#if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030d0000
1655 static CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues)_PyStack_AsDict(PyObject *const *kwvalues, PyObject *kwnames);
1656 #else
1657 #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues)_PyStack_AsDict(kwvalues, kw) _PyStack_AsDict(kwvalues, kw)
1658 #endif
1659 #define __Pyx_Arg_NewRef_FASTCALL(arg)arg arg // no-op, __Pyx_Arg_FASTCALL is direct and this needs
1660 #define __Pyx_Arg_XDECREF_FASTCALL(arg) // no-op - arg was returned from array
1661#else
1662 #define __Pyx_Arg_FASTCALL __Pyx_Arg_VARARGS
1663 #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
1664 #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
1665 #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
1666 #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
1667 #define __Pyx_Arg_NewRef_FASTCALL(arg)arg __Pyx_Arg_NewRef_VARARGS(arg)arg
1668 #define __Pyx_Arg_XDECREF_FASTCALL(arg) __Pyx_Arg_XDECREF_VARARGS(arg)
1669#endif
1670#if CYTHON_COMPILING_IN_CPYTHON1 && CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0
1671#define __Pyx_ArgsSlice_VARARGS(args, start, stop)__Pyx_PyTuple_FromArray(&((((void) sizeof ((PyType_HasFeature
(Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ? 1 : 0)
, __extension__ ({ if (PyType_HasFeature(Py_TYPE(((PyObject*)
((args)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(args)"
, "nastranOP2Reader.c", 1671, __extension__ __PRETTY_FUNCTION__
); })), ((PyTupleObject*)((args))))->ob_item[start]), stop
- start)
__Pyx_PyTuple_FromArray(&__Pyx_Arg_VARARGS(args, start)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(args)", "nastranOP2Reader.c", 1671, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item
[start])
, stop - start)
1672#define __Pyx_ArgsSlice_FASTCALL(args, start, stop)__Pyx_PyTuple_FromArray(&args[start], stop - start) __Pyx_PyTuple_FromArray(&__Pyx_Arg_FASTCALL(args, start)args[start], stop - start)
1673#else
1674#define __Pyx_ArgsSlice_VARARGS(args, start, stop)__Pyx_PyTuple_FromArray(&((((void) sizeof ((PyType_HasFeature
(Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ? 1 : 0)
, __extension__ ({ if (PyType_HasFeature(Py_TYPE(((PyObject*)
((args)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(args)"
, "nastranOP2Reader.c", 1674, __extension__ __PRETTY_FUNCTION__
); })), ((PyTupleObject*)((args))))->ob_item[start]), stop
- start)
PyTuple_GetSlice(args, start, stop)
1675#define __Pyx_ArgsSlice_FASTCALL(args, start, stop)__Pyx_PyTuple_FromArray(&args[start], stop - start) PyTuple_GetSlice(args, start, stop)
1676#endif
1677
1678/* RaiseDoubleKeywords.proto */
1679static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);
1680
1681/* ParseKeywords.proto */
1682static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject *const *kwvalues,
1683 PyObject **argnames[],
1684 PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,
1685 const char* function_name);
1686
1687/* RaiseArgTupleInvalid.proto */
1688static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
1689 Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
1690
1691/* PyFunctionFastCall.proto */
1692#if CYTHON_FAST_PYCALL1
1693#if !CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030800B1)
1694#define __Pyx_PyFunction_FastCall(func, args, nargs)\
1695 __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL((void*)0))
1696static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
1697#endif
1698#define __Pyx_BUILD_ASSERT_EXPR(cond)(sizeof(char [1 - 2*!(cond)]) - 1)\
1699 (sizeof(char [1 - 2*!(cond)]) - 1)
1700#ifndef Py_MEMBER_SIZE
1701#define Py_MEMBER_SIZE(type, member)sizeof(((type *)0)->member) sizeof(((type *)0)->member)
1702#endif
1703#if !CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030800B1)
1704#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03080000
1705 #include "frameobject.h"
1706#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API0
1707 #ifndef Py_BUILD_CORE1
1708 #define Py_BUILD_CORE1 1
1709 #endif
1710 #include "internal/pycore_frame.h"
1711#endif
1712 #define __Pxy_PyFrame_Initialize_Offsets()
1713 #define __Pyx_PyFrame_GetLocalsplus(frame) ((frame)->f_localsplus)
1714#else
1715 static size_t __pyx_pyframe_localsplus_offset = 0;
1716 #include "frameobject.h"
1717 #define __Pxy_PyFrame_Initialize_Offsets()\
1718 ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus))(sizeof(char [1 - 2*!(sizeof(PyFrameObject) == __builtin_offsetof
(PyFrameObject, f_localsplus) + sizeof(((PyFrameObject *)0)->
f_localsplus))]) - 1)
,\
1719 (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)sizeof(((PyFrameObject *)0)->f_localsplus)))
1720 #define __Pyx_PyFrame_GetLocalsplus(frame)\
1721 (assert(__pyx_pyframe_localsplus_offset)((void) sizeof ((__pyx_pyframe_localsplus_offset) ? 1 : 0), __extension__
({ if (__pyx_pyframe_localsplus_offset) ; else __assert_fail
("__pyx_pyframe_localsplus_offset", "nastranOP2Reader.c", 1721
, __extension__ __PRETTY_FUNCTION__); }))
, (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
1722#endif
1723#endif
1724#endif
1725
1726/* PyObjectCall.proto */
1727#if CYTHON_COMPILING_IN_CPYTHON1
1728static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
1729#else
1730#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
1731#endif
1732
1733/* PyObjectCallMethO.proto */
1734#if CYTHON_COMPILING_IN_CPYTHON1
1735static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
1736#endif
1737
1738/* PyObjectFastCall.proto */
1739#define __Pyx_PyObject_FastCall(func, args, nargs)__Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), ((void
*)0))
__Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL((void*)0))
1740static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs);
1741
1742/* ListCompAppend.proto */
1743#if CYTHON_USE_PYLIST_INTERNALS1 && CYTHON_ASSUME_SAFE_MACROS1
1744static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
1745 PyListObject* L = (PyListObject*) list;
1746 Py_ssize_t len = Py_SIZE(list)Py_SIZE(((PyObject*)((list))));
1747 if (likely(L->allocated > len)__builtin_expect(!!(L->allocated > len), 1)) {
1748 Py_INCREF(x)Py_INCREF(((PyObject*)((x))));
1749 #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030d0000
1750 L->ob_item[len] = x;
1751 #else
1752 PyList_SET_ITEM(list, len, x)PyList_SET_ITEM(((PyObject*)((list))), len, ((PyObject*)((x))
))
;
1753 #endif
1754 __Pyx_SET_SIZE(list, len + 1)Py_SET_SIZE(((PyVarObject*)((list))), len + 1);
1755 return 0;
1756 }
1757 return PyList_Append(list, x);
1758}
1759#else
1760#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
1761#endif
1762
1763/* PyDictVersioning.proto */
1764#if CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
&& CYTHON_USE_TYPE_SLOTS1
1765#define __PYX_DICT_VERSION_INIT((uint64_t) -1) ((PY_UINT64_Tuint64_t) -1)
1766#define __PYX_GET_DICT_VERSION(dict)(((PyDictObject*)(dict))->ma_version_tag) (((PyDictObject*)(dict))->ma_version_tag)
1767#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)(version_var) = (((PyDictObject*)(dict))->ma_version_tag);
(cache_var) = (value);
\
1768 (version_var) = __PYX_GET_DICT_VERSION(dict)(((PyDictObject*)(dict))->ma_version_tag);\
1769 (cache_var) = (value);
1770#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP){ static uint64_t __pyx_dict_version = 0; static PyObject *__pyx_dict_cached_value
= ((void*)0); if (__builtin_expect(!!((((PyDictObject*)(DICT
))->ma_version_tag) == __pyx_dict_version), 1)) { (VAR) = __pyx_dict_cached_value
; } else { (VAR) = __pyx_dict_cached_value = (LOOKUP); __pyx_dict_version
= (((PyDictObject*)(DICT))->ma_version_tag); }}
{\
1771 static PY_UINT64_Tuint64_t __pyx_dict_version = 0;\
1772 static PyObject *__pyx_dict_cached_value = NULL((void*)0);\
1773 if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)__builtin_expect(!!((((PyDictObject*)(DICT))->ma_version_tag
) == __pyx_dict_version), 1)
) {\
1774 (VAR) = __pyx_dict_cached_value;\
1775 } else {\
1776 (VAR) = __pyx_dict_cached_value = (LOOKUP);\
1777 __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT)(((PyDictObject*)(DICT))->ma_version_tag);\
1778 }\
1779}
1780static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PY_UINT64_Tuint64_t __Pyx_get_tp_dict_version(PyObject *obj);
1781static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PY_UINT64_Tuint64_t __Pyx_get_object_dict_version(PyObject *obj);
1782static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_Tuint64_t tp_dict_version, PY_UINT64_Tuint64_t obj_dict_version);
1783#else
1784#define __PYX_GET_DICT_VERSION(dict)(((PyDictObject*)(dict))->ma_version_tag) (0)
1785#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)(version_var) = (((PyDictObject*)(dict))->ma_version_tag);
(cache_var) = (value);
1786#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP){ static uint64_t __pyx_dict_version = 0; static PyObject *__pyx_dict_cached_value
= ((void*)0); if (__builtin_expect(!!((((PyDictObject*)(DICT
))->ma_version_tag) == __pyx_dict_version), 1)) { (VAR) = __pyx_dict_cached_value
; } else { (VAR) = __pyx_dict_cached_value = (LOOKUP); __pyx_dict_version
= (((PyDictObject*)(DICT))->ma_version_tag); }}
(VAR) = (LOOKUP);
1787#endif
1788
1789/* GetModuleGlobalName.proto */
1790#if CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
1791#define __Pyx_GetModuleGlobalName(var, name)do { static uint64_t __pyx_dict_version = 0; static PyObject *
__pyx_dict_cached_value = ((void*)0); (var) = (__builtin_expect
(!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global
->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect(
!!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value
)))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :
__Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &
__pyx_dict_cached_value);} while(0)
do {\
1792 static PY_UINT64_Tuint64_t __pyx_dict_version = 0;\
1793 static PyObject *__pyx_dict_cached_value = NULL((void*)0);\
1794 (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))__builtin_expect(!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global
->__pyx_d))->ma_version_tag)), 1)
) ?\
1795 (likely(__pyx_dict_cached_value)__builtin_expect(!!(__pyx_dict_cached_value), 1) ? __Pyx_NewRef(__pyx_dict_cached_value)(Py_INCREF(((PyObject*)((__pyx_dict_cached_value)))), __pyx_dict_cached_value
)
: __Pyx_GetBuiltinName(name)) :\
1796 __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1797} while(0)
1798#define __Pyx_GetModuleGlobalNameUncached(var, name)do { uint64_t __pyx_dict_version; PyObject *__pyx_dict_cached_value
; (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version
, &__pyx_dict_cached_value);} while(0)
do {\
1799 PY_UINT64_Tuint64_t __pyx_dict_version;\
1800 PyObject *__pyx_dict_cached_value;\
1801 (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1802} while(0)
1803static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_Tuint64_t *dict_version, PyObject **dict_cached_value);
1804#else
1805#define __Pyx_GetModuleGlobalName(var, name)do { static uint64_t __pyx_dict_version = 0; static PyObject *
__pyx_dict_cached_value = ((void*)0); (var) = (__builtin_expect
(!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global
->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect(
!!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value
)))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :
__Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &
__pyx_dict_cached_value);} while(0)
(var) = __Pyx__GetModuleGlobalName(name)
1806#define __Pyx_GetModuleGlobalNameUncached(var, name)do { uint64_t __pyx_dict_version; PyObject *__pyx_dict_cached_value
; (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version
, &__pyx_dict_cached_value);} while(0)
(var) = __Pyx__GetModuleGlobalName(name)
1807static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
1808#endif
1809
1810/* IterFinish.proto */
1811static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IterFinish(void);
1812
1813/* PyObjectCallNoArg.proto */
1814static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
1815
1816/* PyObjectCallOneArg.proto */
1817static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);
1818
1819/* PyObjectGetMethod.proto */
1820static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
1821
1822/* PyObjectCallMethod0.proto */
1823static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);
1824
1825/* RaiseNeedMoreValuesToUnpack.proto */
1826static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
1827
1828/* RaiseTooManyValuesToUnpack.proto */
1829static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);
1830
1831/* UnpackItemEndCheck.proto */
1832static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);
1833
1834/* RaiseNoneIterError.proto */
1835static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseNoneNotIterableError(void);
1836
1837/* UnpackTupleError.proto */
1838static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);
1839
1840/* UnpackTuple2.proto */
1841#define __Pyx_unpack_tuple2(tuple, value1, value2, is_tuple, has_known_size, decref_tuple)(__builtin_expect(!!(is_tuple || PyType_HasFeature(Py_TYPE(((
PyObject*)((tuple)))), (1UL << 26))), 1) ? (__builtin_expect
(!!(has_known_size || PyTuple_GET_SIZE(((PyObject*)((tuple)))
) == 2), 1) ? __Pyx_unpack_tuple2_exact(tuple, value1, value2
, decref_tuple) : (__Pyx_UnpackTupleError(tuple, 2), -1)) : __Pyx_unpack_tuple2_generic
(tuple, value1, value2, has_known_size, decref_tuple))
\
1842 (likely(is_tuple || PyTuple_Check(tuple))__builtin_expect(!!(is_tuple || PyType_HasFeature(Py_TYPE(((PyObject
*)((tuple)))), (1UL << 26))), 1)
?\
1843 (likely(has_known_size || PyTuple_GET_SIZE(tuple) == 2)__builtin_expect(!!(has_known_size || PyTuple_GET_SIZE(((PyObject
*)((tuple)))) == 2), 1)
?\
1844 __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple) :\
1845 (__Pyx_UnpackTupleError(tuple, 2), -1)) :\
1846 __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple))
1847static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_unpack_tuple2_exact(
1848 PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
1849static int __Pyx_unpack_tuple2_generic(
1850 PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);
1851
1852/* dict_iter.proto */
1853static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
1854 Py_ssize_t* p_orig_length, int* p_is_dict);
1855static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
1856 PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);
1857
1858/* GetItemInt.proto */
1859#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)(( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) >
sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type
)9223372036854775807L || i == (type)9223372036854775807L), 1)
&& (!is_signed || __builtin_expect(!!(i > (type)(
-9223372036854775807L -1) || i == (type)(-9223372036854775807L
-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) &&
(is_signed || __builtin_expect(!!(i < (type)9223372036854775807L
|| i == (type)9223372036854775807L), 1))) ) ? __Pyx_GetItemInt_Fast
(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) : (is_list
? (PyErr_SetString(PyExc_IndexError, "list index out of range"
), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(o, to_py_func
(i))))
\
1860 (__Pyx_fits_Py_ssize_t(i, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) >
sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type
)9223372036854775807L || i == (type)9223372036854775807L), 1)
&& (!is_signed || __builtin_expect(!!(i > (type)(
-9223372036854775807L -1) || i == (type)(-9223372036854775807L
-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) &&
(is_signed || __builtin_expect(!!(i < (type)9223372036854775807L
|| i == (type)9223372036854775807L), 1))) )
?\
1861 __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
1862 (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL((void*)0)) :\
1863 __Pyx_GetItemInt_Generic(o, to_py_func(i))))
1864#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)(( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) >
sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type
)9223372036854775807L || i == (type)9223372036854775807L), 1)
&& (!is_signed || __builtin_expect(!!(i > (type)(
-9223372036854775807L -1) || i == (type)(-9223372036854775807L
-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) &&
(is_signed || __builtin_expect(!!(i < (type)9223372036854775807L
|| i == (type)9223372036854775807L), 1))) ) ? __Pyx_GetItemInt_List_Fast
(o, (Py_ssize_t)i, wraparound, boundscheck) : (PyErr_SetString
(PyExc_IndexError, "list index out of range"), (PyObject*)((void
*)0)))
\
1865 (__Pyx_fits_Py_ssize_t(i, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) >
sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type
)9223372036854775807L || i == (type)9223372036854775807L), 1)
&& (!is_signed || __builtin_expect(!!(i > (type)(
-9223372036854775807L -1) || i == (type)(-9223372036854775807L
-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) &&
(is_signed || __builtin_expect(!!(i < (type)9223372036854775807L
|| i == (type)9223372036854775807L), 1))) )
?\
1866 __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1867 (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL((void*)0)))
1868static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
1869 int wraparound, int boundscheck);
1870#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)(( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) >
sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type
)9223372036854775807L || i == (type)9223372036854775807L), 1)
&& (!is_signed || __builtin_expect(!!(i > (type)(
-9223372036854775807L -1) || i == (type)(-9223372036854775807L
-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) &&
(is_signed || __builtin_expect(!!(i < (type)9223372036854775807L
|| i == (type)9223372036854775807L), 1))) ) ? __Pyx_GetItemInt_Tuple_Fast
(o, (Py_ssize_t)i, wraparound, boundscheck) : (PyErr_SetString
(PyExc_IndexError, "tuple index out of range"), (PyObject*)((
void*)0)))
\
1871 (__Pyx_fits_Py_ssize_t(i, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) >
sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type
)9223372036854775807L || i == (type)9223372036854775807L), 1)
&& (!is_signed || __builtin_expect(!!(i > (type)(
-9223372036854775807L -1) || i == (type)(-9223372036854775807L
-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) &&
(is_signed || __builtin_expect(!!(i < (type)9223372036854775807L
|| i == (type)9223372036854775807L), 1))) )
?\
1872 __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1873 (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL((void*)0)))
1874static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
1875 int wraparound, int boundscheck);
1876static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
1877static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
1878 int is_list, int wraparound, int boundscheck);
1879
1880/* ObjectGetItem.proto */
1881#if CYTHON_USE_TYPE_SLOTS1
1882static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key);
1883#else
1884#define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key)
1885#endif
1886
1887/* PyIntBinop.proto */
1888#if !CYTHON_COMPILING_IN_PYPY0
1889static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
1890#else
1891#define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
1892 (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
1893#endif
1894
1895/* Import.proto */
1896static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);
1897
1898/* ImportFrom.proto */
1899static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
1900
1901/* IncludeStructmemberH.proto */
1902#include <structmember.h>
1903
1904/* FixUpExtensionType.proto */
1905#if CYTHON_USE_TYPE_SPECS0
1906static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type);
1907#endif
1908
1909/* FetchSharedCythonModule.proto */
1910static PyObject *__Pyx_FetchSharedCythonABIModule(void);
1911
1912/* FetchCommonType.proto */
1913#if !CYTHON_USE_TYPE_SPECS0
1914static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type);
1915#else
1916static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases);
1917#endif
1918
1919/* PyMethodNew.proto */
1920#if CYTHON_COMPILING_IN_LIMITED_API0
1921static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
1922 PyObject *typesModule=NULL((void*)0), *methodType=NULL((void*)0), *result=NULL((void*)0);
1923 CYTHON_UNUSED_VAR(typ)(void)(typ);
1924 if (!self)
1925 return __Pyx_NewRef(func)(Py_INCREF(((PyObject*)((func)))), func);
1926 typesModule = PyImport_ImportModule("types");
1927 if (!typesModule) return NULL((void*)0);
1928 methodType = PyObject_GetAttrString(typesModule, "MethodType");
1929 Py_DECREF(typesModule)Py_DECREF(((PyObject*)((typesModule))));
1930 if (!methodType) return NULL((void*)0);
1931 result = PyObject_CallFunctionObjArgs(methodType, func, self, NULL((void*)0));
1932 Py_DECREF(methodType)Py_DECREF(((PyObject*)((methodType))));
1933 return result;
1934}
1935#elif PY_MAJOR_VERSION3 >= 3
1936static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
1937 CYTHON_UNUSED_VAR(typ)(void)(typ);
1938 if (!self)
1939 return __Pyx_NewRef(func)(Py_INCREF(((PyObject*)((func)))), func);
1940 return PyMethod_New(func, self);
1941}
1942#else
1943 #define __Pyx_PyMethod_New PyMethod_New
1944#endif
1945
1946/* PyVectorcallFastCallDict.proto */
1947#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
1948static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfuncvectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
1949#endif
1950
1951/* CythonFunctionShared.proto */
1952#define __Pyx_CyFunction_USED
1953#define __Pyx_CYFUNCTION_STATICMETHOD0x01 0x01
1954#define __Pyx_CYFUNCTION_CLASSMETHOD0x02 0x02
1955#define __Pyx_CYFUNCTION_CCLASS0x04 0x04
1956#define __Pyx_CYFUNCTION_COROUTINE0x08 0x08
1957#define __Pyx_CyFunction_GetClosure(f)(((__pyx_CyFunctionObject *) (f))->func_closure)\
1958 (((__pyx_CyFunctionObject *) (f))->func_closure)
1959#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API0
1960 #define __Pyx_CyFunction_GetClassObj(f)((PyObject*) ((PyCMethodObject *) (f))->mm_class)\
1961 (((__pyx_CyFunctionObject *) (f))->func_classobj)
1962#else
1963 #define __Pyx_CyFunction_GetClassObj(f)((PyObject*) ((PyCMethodObject *) (f))->mm_class)\
1964 ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
1965#endif
1966#define __Pyx_CyFunction_SetClassObj(f, classobj)__Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f),
(classobj))
\
1967 __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))
1968#define __Pyx_CyFunction_Defaults(type, f)((type *)(((__pyx_CyFunctionObject *) (f))->defaults))\
1969 ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
1970#define __Pyx_CyFunction_SetDefaultsGetter(f, g)((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)\
1971 ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
1972typedef struct {
1973#if CYTHON_COMPILING_IN_LIMITED_API0
1974 PyObject_HEADPyObject ob_base;
1975 PyObject *func;
1976#elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030900B1
1977 PyCFunctionObject func;
1978#else
1979 PyCMethodObject func;
1980#endif
1981#if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
1982 __pyx_vectorcallfuncvectorcallfunc func_vectorcall;
1983#endif
1984#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API0
1985 PyObject *func_weakreflist;
1986#endif
1987 PyObject *func_dict;
1988 PyObject *func_name;
1989 PyObject *func_qualname;
1990 PyObject *func_doc;
1991 PyObject *func_globals;
1992 PyObject *func_code;
1993 PyObject *func_closure;
1994#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API0
1995 PyObject *func_classobj;
1996#endif
1997 void *defaults;
1998 int defaults_pyobjects;
1999 size_t defaults_size; // used by FusedFunction for copying defaults
2000 int flags;
2001 PyObject *defaults_tuple;
2002 PyObject *defaults_kwdict;
2003 PyObject *(*defaults_getter)(PyObject *);
2004 PyObject *func_annotations;
2005 PyObject *func_is_coroutine;
2006} __pyx_CyFunctionObject;
2007#undef __Pyx_CyOrPyCFunction_Check
2008#define __Pyx_CyFunction_Check(obj)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *
)__pyx_mstate_global->__pyx_CyFunctionType)
__Pyx_TypeCheck(obj, __pyx_CyFunctionType)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *
)__pyx_mstate_global->__pyx_CyFunctionType)
2009#define __Pyx_CyOrPyCFunction_Check(obj)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject
*)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject
*)&PyCFunction_Type)
__Pyx_TypeCheck2(obj, __pyx_CyFunctionType, &PyCFunction_Type)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject
*)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject
*)&PyCFunction_Type)
2010#define __Pyx_CyFunction_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), __pyx_mstate_global->__pyx_CyFunctionType
)
__Pyx_IS_TYPE(obj, __pyx_CyFunctionType)Py_IS_TYPE(((PyObject*)((obj))), __pyx_mstate_global->__pyx_CyFunctionType
)
2011static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc);
2012#undef __Pyx_IsSameCFunction
2013#define __Pyx_IsSameCFunction(func, cfunc)__Pyx__IsSameCyOrCFunction(func, cfunc) __Pyx__IsSameCyOrCFunction(func, cfunc)
2014static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
2015 int flags, PyObject* qualname,
2016 PyObject *closure,
2017 PyObject *module, PyObject *globals,
2018 PyObject* code);
2019static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
2020static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void *__Pyx_CyFunction_InitDefaults(PyObject *m,
2021 size_t size,
2022 int pyobjects);
2023static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
2024 PyObject *tuple);
2025static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
2026 PyObject *dict);
2027static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
2028 PyObject *dict);
2029static int __pyx_CyFunction_init(PyObject *module);
2030#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
2031static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
2032static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
2033static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
2034static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
2035#if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
2036#define __Pyx_CyFunction_func_vectorcall(f)(((PyCFunctionObject*)f)->vectorcall) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
2037#else
2038#define __Pyx_CyFunction_func_vectorcall(f)(((PyCFunctionObject*)f)->vectorcall) (((PyCFunctionObject*)f)->vectorcall)
2039#endif
2040#endif
2041
2042/* CythonFunction.proto */
2043static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
2044 int flags, PyObject* qualname,
2045 PyObject *closure,
2046 PyObject *module, PyObject *globals,
2047 PyObject* code);
2048
2049/* CLineInTraceback.proto */
2050#ifdef CYTHON_CLINE_IN_TRACEBACK
2051#define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
2052#else
2053static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
2054#endif
2055
2056/* CodeObjectCache.proto */
2057#if !CYTHON_COMPILING_IN_LIMITED_API0
2058typedef struct {
2059 PyCodeObject* code_object;
2060 int code_line;
2061} __Pyx_CodeObjectCacheEntry;
2062struct __Pyx_CodeObjectCache {
2063 int count;
2064 int max_count;
2065 __Pyx_CodeObjectCacheEntry* entries;
2066};
2067static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL((void*)0)};
2068static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
2069static PyCodeObject *__pyx_find_code_object(int code_line);
2070static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
2071#endif
2072
2073/* AddTraceback.proto */
2074static void __Pyx_AddTraceback(const char *funcname, int c_line,
2075 int py_line, const char *filename);
2076
2077/* GCCDiagnostics.proto */
2078#if !defined(__INTEL_COMPILER) && defined(__GNUC__4) && (__GNUC__4 > 4 || (__GNUC__4 == 4 && __GNUC_MINOR__2 >= 6))
2079#define __Pyx_HAS_GCC_DIAGNOSTIC
2080#endif
2081
2082/* CIntFromPy.proto */
2083static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyInt_As_int(PyObject *);
2084
2085/* CIntToPy.proto */
2086static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyInt_From_int(int value);
2087
2088/* FormatTypeName.proto */
2089#if CYTHON_COMPILING_IN_LIMITED_API0
2090typedef PyObject *__Pyx_TypeName;
2091#define __Pyx_FMT_TYPENAME"%.200s" "%U"
2092static __Pyx_TypeName __Pyx_PyType_GetName(PyTypeObject* tp)((PyTypeObject* tp)->tp_name);
2093#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)Py_XDECREF(((PyObject*)((obj))))
2094#else
2095typedef const char *__Pyx_TypeName;
2096#define __Pyx_FMT_TYPENAME"%.200s" "%.200s"
2097#define __Pyx_PyType_GetName(tp)((tp)->tp_name) ((tp)->tp_name)
2098#define __Pyx_DECREF_TypeName(obj)
2099#endif
2100
2101/* CIntToPy.proto */
2102static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyInt_From_long(long value);
2103
2104/* CIntFromPy.proto */
2105static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) long __Pyx_PyInt_As_long(PyObject *);
2106
2107/* FastTypeChecks.proto */
2108#if CYTHON_COMPILING_IN_CPYTHON1
2109#define __Pyx_TypeCheck(obj, type)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *
)type)
__Pyx_IsSubtype(Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *)type)
2110#define __Pyx_TypeCheck2(obj, type1, type2)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject
*)type1, (PyTypeObject *)type2)
__Pyx_IsAnySubtype2(Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *)type1, (PyTypeObject *)type2)
2111static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
2112static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
2113static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
2114static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
2115#else
2116#define __Pyx_TypeCheck(obj, type)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *
)type)
PyObject_TypeCheck(obj, (PyTypeObject *)type)PyObject_TypeCheck(((PyObject*)((obj))), (PyTypeObject *)type
)
2117#define __Pyx_TypeCheck2(obj, type1, type2)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject
*)type1, (PyTypeObject *)type2)
(PyObject_TypeCheck(obj, (PyTypeObject *)type1)PyObject_TypeCheck(((PyObject*)((obj))), (PyTypeObject *)type1
)
|| PyObject_TypeCheck(obj, (PyTypeObject *)type2)PyObject_TypeCheck(((PyObject*)((obj))), (PyTypeObject *)type2
)
)
2118#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
2119#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
2120#endif
2121#define __Pyx_PyErr_ExceptionMatches2(err1, err2)__Pyx_PyErr_GivenExceptionMatches2((__pyx_tstate->curexc_type
), err1, err2)
__Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType()(__pyx_tstate->curexc_type), err1, err2)
2122#define __Pyx_PyException_Check(obj)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *
)PyExc_Exception)
__Pyx_TypeCheck(obj, PyExc_Exception)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *
)PyExc_Exception)
2123
2124/* CheckBinaryVersion.proto */
2125static unsigned long __Pyx_get_runtime_version(void);
2126static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
2127
2128/* InitStrings.proto */
2129static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
2130
2131/* #### Code section: module_declarations ### */
2132
2133/* Module declarations from "cEGADS" */
2134
2135/* Module declarations from "cpython.version" */
2136
2137/* Module declarations from "nastranOP2Reader" */
2138__PYX_EXTERN_Cextern int nastran_getObjective(char const *, int *, double **); /*proto*/
2139/* #### Code section: typeinfo ### */
2140/* #### Code section: before_global_var ### */
2141#define __Pyx_MODULE_NAME"nastranOP2Reader" "nastranOP2Reader"
2142extern int __pyx_module_is_main_nastranOP2Reader;
2143int __pyx_module_is_main_nastranOP2Reader = 0;
2144
2145/* Implementation of "nastranOP2Reader" */
2146/* #### Code section: global_var ### */
2147static PyObject *__pyx_builtin_MemoryError;
2148/* #### Code section: string_decls ### */
2149static const char __pyx_k_[] = ".";
2150static const char __pyx_k__5[] = "?";
2151static const char __pyx_k_OP2[] = "OP2";
2152static const char __pyx_k_key[] = "key";
2153static const char __pyx_k_str[] = "_str";
2154static const char __pyx_k_data[] = "data";
2155static const char __pyx_k_item[] = "item";
2156static const char __pyx_k_main[] = "__main__";
2157static const char __pyx_k_name[] = "__name__";
2158static const char __pyx_k_test[] = "__test__";
2159static const char __pyx_k_debug[] = "debug";
2160static const char __pyx_k_utf_8[] = "utf-8";
2161static const char __pyx_k_value[] = "value";
2162static const char __pyx_k_decode[] = "decode";
2163static const char __pyx_k_import[] = "__import__";
2164static const char __pyx_k_read_op2[] = "read_op2";
2165static const char __pyx_k_iteritems[] = "iteritems";
2166static const char __pyx_k_responses[] = "responses";
2167static const char __pyx_k_MemoryError[] = "MemoryError";
2168static const char __pyx_k_obj_initial[] = "obj_initial";
2169static const char __pyx_k_op2_results[] = "op2_results";
2170static const char __pyx_k_ignore_dicts[] = "ignore_dicts";
2171static const char __pyx_k_is_coroutine[] = "_is_coroutine";
2172static const char __pyx_k_class_getitem[] = "__class_getitem__";
2173static const char __pyx_k_convergence_data[] = "convergence_data";
2174static const char __pyx_k_nastranOP2Reader[] = "nastranOP2Reader";
2175static const char __pyx_k_pyNastran_op2_op2[] = "pyNastran.op2.op2";
2176static const char __pyx_k_asyncio_coroutines[] = "asyncio.coroutines";
2177static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
2178static const char __pyx_k_nastranOP2Reader_pyx[] = "nastranOP2Reader.pyx";
2179/* #### Code section: decls ### */
2180static PyObject *__pyx_pf_16nastranOP2Reader__str(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_data, PyObject *__pyx_v_ignore_dicts); /* proto */
2181/* #### Code section: late_includes ### */
2182/* #### Code section: module_state ### */
2183typedef struct {
2184 PyObject *__pyx_d__pyx_mstate_global->__pyx_d;
2185 PyObject *__pyx_b__pyx_mstate_global->__pyx_b;
2186 PyObject *__pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime;
2187 PyObject *__pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple;
2188 PyObject *__pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes;
2189 PyObject *__pyx_empty_unicode__pyx_mstate_global->__pyx_empty_unicode;
2190 #ifdef __Pyx_CyFunction_USED
2191 PyTypeObject *__pyx_CyFunctionType__pyx_mstate_global->__pyx_CyFunctionType;
2192 #endif
2193 #ifdef __Pyx_FusedFunction_USED
2194 PyTypeObject *__pyx_FusedFunctionType;
2195 #endif
2196 #ifdef __Pyx_Generator_USED
2197 PyTypeObject *__pyx_GeneratorType;
2198 #endif
2199 #ifdef __Pyx_IterableCoroutine_USED
2200 PyTypeObject *__pyx_IterableCoroutineType;
2201 #endif
2202 #ifdef __Pyx_Coroutine_USED
2203 PyTypeObject *__pyx_CoroutineAwaitType;
2204 #endif
2205 #ifdef __Pyx_Coroutine_USED
2206 PyTypeObject *__pyx_CoroutineType;
2207 #endif
2208 #if CYTHON_USE_MODULE_STATE0
2209 #endif
2210 #if CYTHON_USE_MODULE_STATE0
2211 #endif
2212 #if CYTHON_USE_MODULE_STATE0
2213 #endif
2214 PyObject *__pyx_kp_u___pyx_mstate_global->__pyx_kp_u_;
2215 PyObject *__pyx_n_s_MemoryError__pyx_mstate_global->__pyx_n_s_MemoryError;
2216 PyObject *__pyx_n_s_OP2__pyx_mstate_global->__pyx_n_s_OP2;
2217 PyObject *__pyx_n_s__5__pyx_mstate_global->__pyx_n_s__5;
2218 PyObject *__pyx_n_s_asyncio_coroutines__pyx_mstate_global->__pyx_n_s_asyncio_coroutines;
2219 PyObject *__pyx_n_s_class_getitem__pyx_mstate_global->__pyx_n_s_class_getitem;
2220 PyObject *__pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback;
2221 PyObject *__pyx_n_s_convergence_data__pyx_mstate_global->__pyx_n_s_convergence_data;
2222 PyObject *__pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data;
2223 PyObject *__pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug;
2224 PyObject *__pyx_n_s_decode__pyx_mstate_global->__pyx_n_s_decode;
2225 PyObject *__pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts;
2226 PyObject *__pyx_n_s_import__pyx_mstate_global->__pyx_n_s_import;
2227 PyObject *__pyx_n_s_is_coroutine__pyx_mstate_global->__pyx_n_s_is_coroutine;
2228 PyObject *__pyx_n_s_item__pyx_mstate_global->__pyx_n_s_item;
2229 PyObject *__pyx_n_s_iteritems__pyx_mstate_global->__pyx_n_s_iteritems;
2230 PyObject *__pyx_n_s_key__pyx_mstate_global->__pyx_n_s_key;
2231 PyObject *__pyx_n_s_main__pyx_mstate_global->__pyx_n_s_main;
2232 PyObject *__pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name;
2233 PyObject *__pyx_n_s_nastranOP2Reader__pyx_mstate_global->__pyx_n_s_nastranOP2Reader;
2234 PyObject *__pyx_kp_s_nastranOP2Reader_pyx__pyx_mstate_global->__pyx_kp_s_nastranOP2Reader_pyx;
2235 PyObject *__pyx_n_s_obj_initial__pyx_mstate_global->__pyx_n_s_obj_initial;
2236 PyObject *__pyx_n_s_op2_results__pyx_mstate_global->__pyx_n_s_op2_results;
2237 PyObject *__pyx_n_s_pyNastran_op2_op2__pyx_mstate_global->__pyx_n_s_pyNastran_op2_op2;
2238 PyObject *__pyx_n_s_read_op2__pyx_mstate_global->__pyx_n_s_read_op2;
2239 PyObject *__pyx_n_s_responses__pyx_mstate_global->__pyx_n_s_responses;
2240 PyObject *__pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str;
2241 PyObject *__pyx_n_s_test__pyx_mstate_global->__pyx_n_s_test;
2242 PyObject *__pyx_kp_s_utf_8__pyx_mstate_global->__pyx_kp_s_utf_8;
2243 PyObject *__pyx_n_s_value__pyx_mstate_global->__pyx_n_s_value;
2244 PyObject *__pyx_int_0__pyx_mstate_global->__pyx_int_0;
2245 PyObject *__pyx_int_1__pyx_mstate_global->__pyx_int_1;
2246 PyObject *__pyx_tuple__2__pyx_mstate_global->__pyx_tuple__2;
2247 PyObject *__pyx_tuple__4__pyx_mstate_global->__pyx_tuple__4;
2248 PyObject *__pyx_codeobj__3__pyx_mstate_global->__pyx_codeobj__3;
2249} __pyx_mstate;
2250
2251#if CYTHON_USE_MODULE_STATE0
2252#ifdef __cplusplus
2253namespace {
2254 extern struct PyModuleDef __pyx_moduledef;
2255} /* anonymous namespace */
2256#else
2257static struct PyModuleDef __pyx_moduledef;
2258#endif
2259
2260#define __pyx_mstate(o) ((__pyx_mstate *)__Pyx_PyModule_GetState(o))
2261
2262#define __pyx_mstate_global (__pyx_mstate(PyState_FindModule(&__pyx_moduledef)))
2263
2264#define __pyx_m (PyState_FindModule(&__pyx_moduledef))
2265#else
2266static __pyx_mstate __pyx_mstate_global_static =
2267#ifdef __cplusplus
2268 {};
2269#else
2270 {0};
2271#endif
2272static __pyx_mstate *__pyx_mstate_global = &__pyx_mstate_global_static;
2273#endif
2274/* #### Code section: module_state_clear ### */
2275#if CYTHON_USE_MODULE_STATE0
2276static int __pyx_m_clear(PyObject *m) {
2277 __pyx_mstate *clear_module_state = __pyx_mstate(m);
2278 if (!clear_module_state) return 0;
2279 Py_CLEAR(clear_module_state->__pyx_d)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_d))); if (_py_tmp != ((void*)0)
) { (clear_module_state->__pyx_mstate_global->__pyx_d) =
((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (
0)
;
2280 Py_CLEAR(clear_module_state->__pyx_b)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_b))); if (_py_tmp != ((void*)0)
) { (clear_module_state->__pyx_mstate_global->__pyx_b) =
((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (
0)
;
2281 Py_CLEAR(clear_module_state->__pyx_cython_runtime)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_cython_runtime))); if (_py_tmp !=
((void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_cython_runtime) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2282 Py_CLEAR(clear_module_state->__pyx_empty_tuple)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_empty_tuple))); if (_py_tmp != (
(void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_empty_tuple) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2283 Py_CLEAR(clear_module_state->__pyx_empty_bytes)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_empty_bytes))); if (_py_tmp != (
(void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_empty_bytes) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2284 Py_CLEAR(clear_module_state->__pyx_empty_unicode)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_empty_unicode))); if (_py_tmp !=
((void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_empty_unicode) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2285 #ifdef __Pyx_CyFunction_USED
2286 Py_CLEAR(clear_module_state->__pyx_CyFunctionType)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_CyFunctionType))); if (_py_tmp !=
((void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_CyFunctionType) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2287 #endif
2288 #ifdef __Pyx_FusedFunction_USED
2289 Py_CLEAR(clear_module_state->__pyx_FusedFunctionType)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_FusedFunctionType))); if (_py_tmp != ((void*)0)) { (clear_module_state
->__pyx_FusedFunctionType) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
2290 #endif
2291 Py_CLEAR(clear_module_state->__pyx_kp_u_)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_kp_u_))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_kp_u_
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2292 Py_CLEAR(clear_module_state->__pyx_n_s_MemoryError)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_MemoryError))); if (_py_tmp
!= ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_MemoryError) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
2293 Py_CLEAR(clear_module_state->__pyx_n_s_OP2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_OP2))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_OP2
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2294 Py_CLEAR(clear_module_state->__pyx_n_s__5)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s__5))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s__5
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2295 Py_CLEAR(clear_module_state->__pyx_n_s_asyncio_coroutines)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_asyncio_coroutines))); if (
_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_asyncio_coroutines) = ((void*)0); Py_DECREF(((
PyObject*)((_py_tmp)))); } } while (0)
;
2296 Py_CLEAR(clear_module_state->__pyx_n_s_class_getitem)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_class_getitem))); if (_py_tmp
!= ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_class_getitem) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
2297 Py_CLEAR(clear_module_state->__pyx_n_s_cline_in_traceback)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_cline_in_traceback))); if (
_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_cline_in_traceback) = ((void*)0); Py_DECREF(((
PyObject*)((_py_tmp)))); } } while (0)
;
2298 Py_CLEAR(clear_module_state->__pyx_n_s_convergence_data)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_convergence_data))); if (_py_tmp
!= ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_convergence_data) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
2299 Py_CLEAR(clear_module_state->__pyx_n_s_data)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_data))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_data
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2300 Py_CLEAR(clear_module_state->__pyx_n_s_debug)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_debug))); if (_py_tmp != ((
void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_debug
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2301 Py_CLEAR(clear_module_state->__pyx_n_s_decode)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_decode))); if (_py_tmp != (
(void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_n_s_decode) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2302 Py_CLEAR(clear_module_state->__pyx_n_s_ignore_dicts)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_ignore_dicts))); if (_py_tmp
!= ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_ignore_dicts) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
2303 Py_CLEAR(clear_module_state->__pyx_n_s_import)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_import))); if (_py_tmp != (
(void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_n_s_import) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2304 Py_CLEAR(clear_module_state->__pyx_n_s_is_coroutine)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_is_coroutine))); if (_py_tmp
!= ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_is_coroutine) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
2305 Py_CLEAR(clear_module_state->__pyx_n_s_item)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_item))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_item
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2306 Py_CLEAR(clear_module_state->__pyx_n_s_iteritems)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_iteritems))); if (_py_tmp !=
((void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_n_s_iteritems) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2307 Py_CLEAR(clear_module_state->__pyx_n_s_key)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_key))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_key
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2308 Py_CLEAR(clear_module_state->__pyx_n_s_main)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_main))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_main
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2309 Py_CLEAR(clear_module_state->__pyx_n_s_name)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_name))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_name
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2310 Py_CLEAR(clear_module_state->__pyx_n_s_nastranOP2Reader)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_nastranOP2Reader))); if (_py_tmp
!= ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_nastranOP2Reader) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
2311 Py_CLEAR(clear_module_state->__pyx_kp_s_nastranOP2Reader_pyx)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_kp_s_nastranOP2Reader_pyx))); if
(_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_kp_s_nastranOP2Reader_pyx) = ((void*)0); Py_DECREF
(((PyObject*)((_py_tmp)))); } } while (0)
;
2312 Py_CLEAR(clear_module_state->__pyx_n_s_obj_initial)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_obj_initial))); if (_py_tmp
!= ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_obj_initial) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
2313 Py_CLEAR(clear_module_state->__pyx_n_s_op2_results)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_op2_results))); if (_py_tmp
!= ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_op2_results) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
2314 Py_CLEAR(clear_module_state->__pyx_n_s_pyNastran_op2_op2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_pyNastran_op2_op2))); if (_py_tmp
!= ((void*)0)) { (clear_module_state->__pyx_mstate_global
->__pyx_n_s_pyNastran_op2_op2) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
2315 Py_CLEAR(clear_module_state->__pyx_n_s_read_op2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_read_op2))); if (_py_tmp !=
((void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_n_s_read_op2) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2316 Py_CLEAR(clear_module_state->__pyx_n_s_responses)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_responses))); if (_py_tmp !=
((void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_n_s_responses) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2317 Py_CLEAR(clear_module_state->__pyx_n_s_str)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_str))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_str
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2318 Py_CLEAR(clear_module_state->__pyx_n_s_test)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_test))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_test
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2319 Py_CLEAR(clear_module_state->__pyx_kp_s_utf_8)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_kp_s_utf_8))); if (_py_tmp != (
(void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_kp_s_utf_8) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2320 Py_CLEAR(clear_module_state->__pyx_n_s_value)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_n_s_value))); if (_py_tmp != ((
void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_value
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2321 Py_CLEAR(clear_module_state->__pyx_int_0)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_int_0))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_0
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2322 Py_CLEAR(clear_module_state->__pyx_int_1)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_int_1))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_1
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2323 Py_CLEAR(clear_module_state->__pyx_tuple__2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_tuple__2))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__2
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2324 Py_CLEAR(clear_module_state->__pyx_tuple__4)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_tuple__4))); if (_py_tmp != ((void
*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__4
) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while
(0)
;
2325 Py_CLEAR(clear_module_state->__pyx_codeobj__3)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state->
__pyx_mstate_global->__pyx_codeobj__3))); if (_py_tmp != (
(void*)0)) { (clear_module_state->__pyx_mstate_global->
__pyx_codeobj__3) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
2326 return 0;
2327}
2328#endif
2329/* #### Code section: module_state_traverse ### */
2330#if CYTHON_USE_MODULE_STATE0
2331static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
2332 __pyx_mstate *traverse_module_state = __pyx_mstate(m);
2333 if (!traverse_module_state) return 0;
2334 Py_VISIT(traverse_module_state->__pyx_d)do { if (traverse_module_state->__pyx_mstate_global->__pyx_d
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_d))), arg); if (vret) return vret
; } } while (0)
;
2335 Py_VISIT(traverse_module_state->__pyx_b)do { if (traverse_module_state->__pyx_mstate_global->__pyx_b
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_b))), arg); if (vret) return vret
; } } while (0)
;
2336 Py_VISIT(traverse_module_state->__pyx_cython_runtime)do { if (traverse_module_state->__pyx_mstate_global->__pyx_cython_runtime
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_cython_runtime))), arg); if (vret
) return vret; } } while (0)
;
2337 Py_VISIT(traverse_module_state->__pyx_empty_tuple)do { if (traverse_module_state->__pyx_mstate_global->__pyx_empty_tuple
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_empty_tuple))), arg); if (vret)
return vret; } } while (0)
;
2338 Py_VISIT(traverse_module_state->__pyx_empty_bytes)do { if (traverse_module_state->__pyx_mstate_global->__pyx_empty_bytes
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_empty_bytes))), arg); if (vret)
return vret; } } while (0)
;
2339 Py_VISIT(traverse_module_state->__pyx_empty_unicode)do { if (traverse_module_state->__pyx_mstate_global->__pyx_empty_unicode
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_empty_unicode))), arg); if (vret
) return vret; } } while (0)
;
2340 #ifdef __Pyx_CyFunction_USED
2341 Py_VISIT(traverse_module_state->__pyx_CyFunctionType)do { if (traverse_module_state->__pyx_mstate_global->__pyx_CyFunctionType
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_CyFunctionType))), arg); if (vret
) return vret; } } while (0)
;
2342 #endif
2343 #ifdef __Pyx_FusedFunction_USED
2344 Py_VISIT(traverse_module_state->__pyx_FusedFunctionType)do { if (traverse_module_state->__pyx_FusedFunctionType) {
int vret = visit(((PyObject*)((traverse_module_state->__pyx_FusedFunctionType
))), arg); if (vret) return vret; } } while (0)
;
2345 #endif
2346 Py_VISIT(traverse_module_state->__pyx_kp_u_)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_kp_u_))), arg); if (vret) return
vret; } } while (0)
;
2347 Py_VISIT(traverse_module_state->__pyx_n_s_MemoryError)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_MemoryError
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_MemoryError))), arg); if (vret
) return vret; } } while (0)
;
2348 Py_VISIT(traverse_module_state->__pyx_n_s_OP2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_OP2
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_OP2))), arg); if (vret) return
vret; } } while (0)
;
2349 Py_VISIT(traverse_module_state->__pyx_n_s__5)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s__5
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s__5))), arg); if (vret) return
vret; } } while (0)
;
2350 Py_VISIT(traverse_module_state->__pyx_n_s_asyncio_coroutines)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_asyncio_coroutines
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_asyncio_coroutines))), arg)
; if (vret) return vret; } } while (0)
;
2351 Py_VISIT(traverse_module_state->__pyx_n_s_class_getitem)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_class_getitem
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_class_getitem))), arg); if (
vret) return vret; } } while (0)
;
2352 Py_VISIT(traverse_module_state->__pyx_n_s_cline_in_traceback)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_cline_in_traceback
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_cline_in_traceback))), arg)
; if (vret) return vret; } } while (0)
;
2353 Py_VISIT(traverse_module_state->__pyx_n_s_convergence_data)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_convergence_data
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_convergence_data))), arg); if
(vret) return vret; } } while (0)
;
2354 Py_VISIT(traverse_module_state->__pyx_n_s_data)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_data
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_data))), arg); if (vret) return
vret; } } while (0)
;
2355 Py_VISIT(traverse_module_state->__pyx_n_s_debug)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_debug
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_debug))), arg); if (vret) return
vret; } } while (0)
;
2356 Py_VISIT(traverse_module_state->__pyx_n_s_decode)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_decode
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_decode))), arg); if (vret) return
vret; } } while (0)
;
2357 Py_VISIT(traverse_module_state->__pyx_n_s_ignore_dicts)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_ignore_dicts
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_ignore_dicts))), arg); if (
vret) return vret; } } while (0)
;
2358 Py_VISIT(traverse_module_state->__pyx_n_s_import)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_import
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_import))), arg); if (vret) return
vret; } } while (0)
;
2359 Py_VISIT(traverse_module_state->__pyx_n_s_is_coroutine)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_is_coroutine
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_is_coroutine))), arg); if (
vret) return vret; } } while (0)
;
2360 Py_VISIT(traverse_module_state->__pyx_n_s_item)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_item
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_item))), arg); if (vret) return
vret; } } while (0)
;
2361 Py_VISIT(traverse_module_state->__pyx_n_s_iteritems)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_iteritems
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_iteritems))), arg); if (vret
) return vret; } } while (0)
;
2362 Py_VISIT(traverse_module_state->__pyx_n_s_key)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_key
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_key))), arg); if (vret) return
vret; } } while (0)
;
2363 Py_VISIT(traverse_module_state->__pyx_n_s_main)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_main
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_main))), arg); if (vret) return
vret; } } while (0)
;
2364 Py_VISIT(traverse_module_state->__pyx_n_s_name)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_name
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_name))), arg); if (vret) return
vret; } } while (0)
;
2365 Py_VISIT(traverse_module_state->__pyx_n_s_nastranOP2Reader)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_nastranOP2Reader
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_nastranOP2Reader))), arg); if
(vret) return vret; } } while (0)
;
2366 Py_VISIT(traverse_module_state->__pyx_kp_s_nastranOP2Reader_pyx)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_s_nastranOP2Reader_pyx
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_kp_s_nastranOP2Reader_pyx))), arg
); if (vret) return vret; } } while (0)
;
2367 Py_VISIT(traverse_module_state->__pyx_n_s_obj_initial)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_obj_initial
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_obj_initial))), arg); if (vret
) return vret; } } while (0)
;
2368 Py_VISIT(traverse_module_state->__pyx_n_s_op2_results)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_op2_results
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_op2_results))), arg); if (vret
) return vret; } } while (0)
;
2369 Py_VISIT(traverse_module_state->__pyx_n_s_pyNastran_op2_op2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_pyNastran_op2_op2
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_pyNastran_op2_op2))), arg);
if (vret) return vret; } } while (0)
;
2370 Py_VISIT(traverse_module_state->__pyx_n_s_read_op2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_read_op2
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_read_op2))), arg); if (vret
) return vret; } } while (0)
;
2371 Py_VISIT(traverse_module_state->__pyx_n_s_responses)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_responses
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_responses))), arg); if (vret
) return vret; } } while (0)
;
2372 Py_VISIT(traverse_module_state->__pyx_n_s_str)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_str
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_str))), arg); if (vret) return
vret; } } while (0)
;
2373 Py_VISIT(traverse_module_state->__pyx_n_s_test)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_test
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_test))), arg); if (vret) return
vret; } } while (0)
;
2374 Py_VISIT(traverse_module_state->__pyx_kp_s_utf_8)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_s_utf_8
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_kp_s_utf_8))), arg); if (vret) return
vret; } } while (0)
;
2375 Py_VISIT(traverse_module_state->__pyx_n_s_value)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_value
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_n_s_value))), arg); if (vret) return
vret; } } while (0)
;
2376 Py_VISIT(traverse_module_state->__pyx_int_0)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_0
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_int_0))), arg); if (vret) return
vret; } } while (0)
;
2377 Py_VISIT(traverse_module_state->__pyx_int_1)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_1
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_int_1))), arg); if (vret) return
vret; } } while (0)
;
2378 Py_VISIT(traverse_module_state->__pyx_tuple__2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__2
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_tuple__2))), arg); if (vret) return
vret; } } while (0)
;
2379 Py_VISIT(traverse_module_state->__pyx_tuple__4)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__4
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_tuple__4))), arg); if (vret) return
vret; } } while (0)
;
2380 Py_VISIT(traverse_module_state->__pyx_codeobj__3)do { if (traverse_module_state->__pyx_mstate_global->__pyx_codeobj__3
) { int vret = visit(((PyObject*)((traverse_module_state->
__pyx_mstate_global->__pyx_codeobj__3))), arg); if (vret) return
vret; } } while (0)
;
2381 return 0;
2382}
2383#endif
2384/* #### Code section: module_state_defines ### */
2385#define __pyx_d__pyx_mstate_global->__pyx_d __pyx_mstate_global->__pyx_d__pyx_mstate_global->__pyx_d
2386#define __pyx_b__pyx_mstate_global->__pyx_b __pyx_mstate_global->__pyx_b__pyx_mstate_global->__pyx_b
2387#define __pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime __pyx_mstate_global->__pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime
2388#define __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple __pyx_mstate_global->__pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple
2389#define __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes __pyx_mstate_global->__pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes
2390#define __pyx_empty_unicode__pyx_mstate_global->__pyx_empty_unicode __pyx_mstate_global->__pyx_empty_unicode__pyx_mstate_global->__pyx_empty_unicode
2391#ifdef __Pyx_CyFunction_USED
2392#define __pyx_CyFunctionType__pyx_mstate_global->__pyx_CyFunctionType __pyx_mstate_global->__pyx_CyFunctionType__pyx_mstate_global->__pyx_CyFunctionType
2393#endif
2394#ifdef __Pyx_FusedFunction_USED
2395#define __pyx_FusedFunctionType __pyx_mstate_global->__pyx_FusedFunctionType
2396#endif
2397#ifdef __Pyx_Generator_USED
2398#define __pyx_GeneratorType __pyx_mstate_global->__pyx_GeneratorType
2399#endif
2400#ifdef __Pyx_IterableCoroutine_USED
2401#define __pyx_IterableCoroutineType __pyx_mstate_global->__pyx_IterableCoroutineType
2402#endif
2403#ifdef __Pyx_Coroutine_USED
2404#define __pyx_CoroutineAwaitType __pyx_mstate_global->__pyx_CoroutineAwaitType
2405#endif
2406#ifdef __Pyx_Coroutine_USED
2407#define __pyx_CoroutineType __pyx_mstate_global->__pyx_CoroutineType
2408#endif
2409#if CYTHON_USE_MODULE_STATE0
2410#endif
2411#if CYTHON_USE_MODULE_STATE0
2412#endif
2413#if CYTHON_USE_MODULE_STATE0
2414#endif
2415#define __pyx_kp_u___pyx_mstate_global->__pyx_kp_u_ __pyx_mstate_global->__pyx_kp_u___pyx_mstate_global->__pyx_kp_u_
2416#define __pyx_n_s_MemoryError__pyx_mstate_global->__pyx_n_s_MemoryError __pyx_mstate_global->__pyx_n_s_MemoryError__pyx_mstate_global->__pyx_n_s_MemoryError
2417#define __pyx_n_s_OP2__pyx_mstate_global->__pyx_n_s_OP2 __pyx_mstate_global->__pyx_n_s_OP2__pyx_mstate_global->__pyx_n_s_OP2
2418#define __pyx_n_s__5__pyx_mstate_global->__pyx_n_s__5 __pyx_mstate_global->__pyx_n_s__5__pyx_mstate_global->__pyx_n_s__5
2419#define __pyx_n_s_asyncio_coroutines__pyx_mstate_global->__pyx_n_s_asyncio_coroutines __pyx_mstate_global->__pyx_n_s_asyncio_coroutines__pyx_mstate_global->__pyx_n_s_asyncio_coroutines
2420#define __pyx_n_s_class_getitem__pyx_mstate_global->__pyx_n_s_class_getitem __pyx_mstate_global->__pyx_n_s_class_getitem__pyx_mstate_global->__pyx_n_s_class_getitem
2421#define __pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback __pyx_mstate_global->__pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback
2422#define __pyx_n_s_convergence_data__pyx_mstate_global->__pyx_n_s_convergence_data __pyx_mstate_global->__pyx_n_s_convergence_data__pyx_mstate_global->__pyx_n_s_convergence_data
2423#define __pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data __pyx_mstate_global->__pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data
2424#define __pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug __pyx_mstate_global->__pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug
2425#define __pyx_n_s_decode__pyx_mstate_global->__pyx_n_s_decode __pyx_mstate_global->__pyx_n_s_decode__pyx_mstate_global->__pyx_n_s_decode
2426#define __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts __pyx_mstate_global->__pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts
2427#define __pyx_n_s_import__pyx_mstate_global->__pyx_n_s_import __pyx_mstate_global->__pyx_n_s_import__pyx_mstate_global->__pyx_n_s_import
2428#define __pyx_n_s_is_coroutine__pyx_mstate_global->__pyx_n_s_is_coroutine __pyx_mstate_global->__pyx_n_s_is_coroutine__pyx_mstate_global->__pyx_n_s_is_coroutine
2429#define __pyx_n_s_item__pyx_mstate_global->__pyx_n_s_item __pyx_mstate_global->__pyx_n_s_item__pyx_mstate_global->__pyx_n_s_item
2430#define __pyx_n_s_iteritems__pyx_mstate_global->__pyx_n_s_iteritems __pyx_mstate_global->__pyx_n_s_iteritems__pyx_mstate_global->__pyx_n_s_iteritems
2431#define __pyx_n_s_key__pyx_mstate_global->__pyx_n_s_key __pyx_mstate_global->__pyx_n_s_key__pyx_mstate_global->__pyx_n_s_key
2432#define __pyx_n_s_main__pyx_mstate_global->__pyx_n_s_main __pyx_mstate_global->__pyx_n_s_main__pyx_mstate_global->__pyx_n_s_main
2433#define __pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name __pyx_mstate_global->__pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name
2434#define __pyx_n_s_nastranOP2Reader__pyx_mstate_global->__pyx_n_s_nastranOP2Reader __pyx_mstate_global->__pyx_n_s_nastranOP2Reader__pyx_mstate_global->__pyx_n_s_nastranOP2Reader
2435#define __pyx_kp_s_nastranOP2Reader_pyx__pyx_mstate_global->__pyx_kp_s_nastranOP2Reader_pyx __pyx_mstate_global->__pyx_kp_s_nastranOP2Reader_pyx__pyx_mstate_global->__pyx_kp_s_nastranOP2Reader_pyx
2436#define __pyx_n_s_obj_initial__pyx_mstate_global->__pyx_n_s_obj_initial __pyx_mstate_global->__pyx_n_s_obj_initial__pyx_mstate_global->__pyx_n_s_obj_initial
2437#define __pyx_n_s_op2_results__pyx_mstate_global->__pyx_n_s_op2_results __pyx_mstate_global->__pyx_n_s_op2_results__pyx_mstate_global->__pyx_n_s_op2_results
2438#define __pyx_n_s_pyNastran_op2_op2__pyx_mstate_global->__pyx_n_s_pyNastran_op2_op2 __pyx_mstate_global->__pyx_n_s_pyNastran_op2_op2__pyx_mstate_global->__pyx_n_s_pyNastran_op2_op2
2439#define __pyx_n_s_read_op2__pyx_mstate_global->__pyx_n_s_read_op2 __pyx_mstate_global->__pyx_n_s_read_op2__pyx_mstate_global->__pyx_n_s_read_op2
2440#define __pyx_n_s_responses__pyx_mstate_global->__pyx_n_s_responses __pyx_mstate_global->__pyx_n_s_responses__pyx_mstate_global->__pyx_n_s_responses
2441#define __pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str __pyx_mstate_global->__pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str
2442#define __pyx_n_s_test__pyx_mstate_global->__pyx_n_s_test __pyx_mstate_global->__pyx_n_s_test__pyx_mstate_global->__pyx_n_s_test
2443#define __pyx_kp_s_utf_8__pyx_mstate_global->__pyx_kp_s_utf_8 __pyx_mstate_global->__pyx_kp_s_utf_8__pyx_mstate_global->__pyx_kp_s_utf_8
2444#define __pyx_n_s_value__pyx_mstate_global->__pyx_n_s_value __pyx_mstate_global->__pyx_n_s_value__pyx_mstate_global->__pyx_n_s_value
2445#define __pyx_int_0__pyx_mstate_global->__pyx_int_0 __pyx_mstate_global->__pyx_int_0__pyx_mstate_global->__pyx_int_0
2446#define __pyx_int_1__pyx_mstate_global->__pyx_int_1 __pyx_mstate_global->__pyx_int_1__pyx_mstate_global->__pyx_int_1
2447#define __pyx_tuple__2__pyx_mstate_global->__pyx_tuple__2 __pyx_mstate_global->__pyx_tuple__2__pyx_mstate_global->__pyx_tuple__2
2448#define __pyx_tuple__4__pyx_mstate_global->__pyx_tuple__4 __pyx_mstate_global->__pyx_tuple__4__pyx_mstate_global->__pyx_tuple__4
2449#define __pyx_codeobj__3__pyx_mstate_global->__pyx_codeobj__3 __pyx_mstate_global->__pyx_codeobj__3__pyx_mstate_global->__pyx_codeobj__3
2450/* #### Code section: module_code ### */
2451
2452/* "nastranOP2Reader.pyx":39
2453 *
2454 * # Handles all byte to uni-code and and byte conversion.
2455 * def _str(data,ignore_dicts = False): # <<<<<<<<<<<<<<
2456 *
2457 * if PY_MAJOR_VERSION >= 3:
2458 */
2459
2460/* Python wrapper */
2461static PyObject *__pyx_pw_16nastranOP2Reader_1_str(PyObject *__pyx_self,
2462#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
2463PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
2464#else
2465PyObject *__pyx_args, PyObject *__pyx_kwds
2466#endif
2467); /*proto*/
2468static PyMethodDef __pyx_mdef_16nastranOP2Reader_1_str = {"_str", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords)__pyx_pw_16nastranOP2Reader_1_str, __Pyx_METH_FASTCALL0x0080|METH_KEYWORDS0x0002, 0};
2469static PyObject *__pyx_pw_16nastranOP2Reader_1_str(PyObject *__pyx_self,
2470#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
2471PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
2472#else
2473PyObject *__pyx_args, PyObject *__pyx_kwds
2474#endif
2475) {
2476 PyObject *__pyx_v_data = 0;
2477 PyObject *__pyx_v_ignore_dicts = 0;
2478 #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
2479 CYTHON_UNUSED__attribute__ ((__unused__)) Py_ssize_t __pyx_nargs;
2480 #endif
2481 CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *const *__pyx_kwvalues;
2482 PyObject* values[2] = {0,0};
2483 int __pyx_lineno = 0;
2484 const char *__pyx_filename = NULL((void*)0);
2485 int __pyx_clineno = 0;
2486 PyObject *__pyx_r = 0;
2487 __Pyx_RefNannyDeclarations
2488 __Pyx_RefNannySetupContext("_str (wrapper)", 0);
2489 #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
2490 #if CYTHON_ASSUME_SAFE_MACROS1
2491 __pyx_nargs = PyTuple_GET_SIZE(__pyx_args)PyTuple_GET_SIZE(((PyObject*)((__pyx_args))));
2492 #else
2493 __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)__builtin_expect(!!(__pyx_nargs < 0), 0)) return NULL((void*)0);
2494 #endif
2495 #endif
2496 __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs)((__pyx_args) + (__pyx_nargs));
2497 {
2498 PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data,&__pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts,0};
2499 values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)((PyObject *)Py_False)))((PyObject *)((PyObject *)((PyObject *) &_Py_FalseStruct)
))
;
2500 if (__pyx_kwds) {
2501 Py_ssize_t kw_args;
2502 switch (__pyx_nargs) {
2503 case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1];
2504 CYTHON_FALLTHROUGH__attribute__((fallthrough));
2505 case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0];
2506 CYTHON_FALLTHROUGH__attribute__((fallthrough));
2507 case 0: break;
2508 default: goto __pyx_L5_argtuple_error;
2509 }
2510 kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds)PyTuple_GET_SIZE(((PyObject*)((__pyx_kwds))));
2511 switch (__pyx_nargs) {
2512 case 0:
2513 if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)__builtin_expect(!!((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds
, __pyx_kwvalues, __pyx_mstate_global->__pyx_n_s_data)) !=
0), 1)
) {
2514 (void)__Pyx_Arg_NewRef_FASTCALL(values[0])values[0];
2515 kw_args--;
2516 }
2517 else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 39, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 39; (void)__pyx_lineno; __pyx_clineno = 2517; (void)__pyx_clineno
; } goto __pyx_L3_error; }
2518 else goto __pyx_L5_argtuple_error;
2519 CYTHON_FALLTHROUGH__attribute__((fallthrough));
2520 case 1:
2521 if (kw_args > 0) {
2522 PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts);
2523 if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value)value; kw_args--; }
2524 else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 39, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 39; (void)__pyx_lineno; __pyx_clineno = 2524; (void)__pyx_clineno
; } goto __pyx_L3_error; }
2525 }
2526 }
2527 if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) {
2528 const Py_ssize_t kwd_pos_args = __pyx_nargs;
2529 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_str") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues
, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_str") <
0), 0)
) __PYX_ERR(0, 39, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 39; (void)__pyx_lineno; __pyx_clineno = 2529; (void)__pyx_clineno
; } goto __pyx_L3_error; }
2530 }
2531 } else {
2532 switch (__pyx_nargs) {
2533 case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1];
2534 CYTHON_FALLTHROUGH__attribute__((fallthrough));
2535 case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0];
2536 break;
2537 default: goto __pyx_L5_argtuple_error;
2538 }
2539 }
2540 __pyx_v_data = values[0];
2541 __pyx_v_ignore_dicts = values[1];
2542 }
2543 goto __pyx_L6_skip;
2544 __pyx_L5_argtuple_error:;
2545 __Pyx_RaiseArgtupleInvalid("_str", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 39, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 39; (void)__pyx_lineno; __pyx_clineno = 2545; (void)__pyx_clineno
; } goto __pyx_L3_error; }
2546 __pyx_L6_skip:;
2547 goto __pyx_L4_argument_unpacking_done;
2548 __pyx_L3_error:;
2549 {
2550 Py_ssize_t __pyx_temp;
2551 for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
2552 __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
2553 }
2554 }
2555 __Pyx_AddTraceback("nastranOP2Reader._str", __pyx_clineno, __pyx_lineno, __pyx_filename);
2556 __Pyx_RefNannyFinishContext();
2557 return NULL((void*)0);
2558 __pyx_L4_argument_unpacking_done:;
2559 __pyx_r = __pyx_pf_16nastranOP2Reader__str(__pyx_self, __pyx_v_data, __pyx_v_ignore_dicts);
2560
2561 /* function exit code */
2562 {
2563 Py_ssize_t __pyx_temp;
2564 for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
2565 __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
2566 }
2567 }
2568 __Pyx_RefNannyFinishContext();
2569 return __pyx_r;
2570}
2571
2572static PyObject *__pyx_pf_16nastranOP2Reader__str(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_data, PyObject *__pyx_v_ignore_dicts) {
2573 PyObject *__pyx_v_item = NULL((void*)0);
2574 PyObject *__pyx_7genexpr__pyx_v_key = NULL((void*)0);
2575 PyObject *__pyx_7genexpr__pyx_v_value = NULL((void*)0);
2576 PyObject *__pyx_r = NULL((void*)0);
2577 __Pyx_RefNannyDeclarations
2578 int __pyx_t_1;
2579 PyObject *__pyx_t_2 = NULL((void*)0);
2580 PyObject *__pyx_t_3 = NULL((void*)0);
2581 PyObject *__pyx_t_4 = NULL((void*)0);
2582 int __pyx_t_5;
2583 Py_ssize_t __pyx_t_6;
2584 PyObject *(*__pyx_t_7)(PyObject *);
2585 PyObject *__pyx_t_8 = NULL((void*)0);
2586 PyObject *__pyx_t_9 = NULL((void*)0);
2587 PyObject *__pyx_t_10 = NULL((void*)0);
2588 int __pyx_t_11;
2589 int __pyx_t_12;
2590 Py_ssize_t __pyx_t_13;
2591 int __pyx_t_14;
2592 PyObject *__pyx_t_15 = NULL((void*)0);
2593 int __pyx_lineno = 0;
2594 const char *__pyx_filename = NULL((void*)0);
2595 int __pyx_clineno = 0;
2596 __Pyx_RefNannySetupContext("_str", 1);
2597
2598 /* "nastranOP2Reader.pyx":41
2599 * def _str(data,ignore_dicts = False):
2600 *
2601 * if PY_MAJOR_VERSION >= 3: # <<<<<<<<<<<<<<
2602 * if isinstance(data, bytes):
2603 * return data.decode("utf-8")
2604 */
2605 __pyx_t_1 = (PY_MAJOR_VERSION3 >= 3);
2606 if (__pyx_t_1) {
2607
2608 /* "nastranOP2Reader.pyx":42
2609 *
2610 * if PY_MAJOR_VERSION >= 3:
2611 * if isinstance(data, bytes): # <<<<<<<<<<<<<<
2612 * return data.decode("utf-8")
2613 *
2614 */
2615 __pyx_t_1 = PyBytes_Check(__pyx_v_data)PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_v_data)))), (1UL
<< 27))
;
2616 if (__pyx_t_1) {
2617
2618 /* "nastranOP2Reader.pyx":43
2619 * if PY_MAJOR_VERSION >= 3:
2620 * if isinstance(data, bytes):
2621 * return data.decode("utf-8") # <<<<<<<<<<<<<<
2622 *
2623 * if isinstance(data,list):
2624 */
2625 __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r))));
2626 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_decode__pyx_mstate_global->__pyx_n_s_decode); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 43, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 43; (void)__pyx_lineno; __pyx_clineno = 2626; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2627 __Pyx_GOTREF(__pyx_t_3);
2628 __pyx_t_4 = NULL((void*)0);
2629 __pyx_t_5 = 0;
2630 #if CYTHON_UNPACK_METHODS1
2631 if (likely(PyMethod_Check(__pyx_t_3))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_3))), &
PyMethod_Type)), 1)
) {
2632 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3)(((PyMethodObject *)__pyx_t_3) -> im_self);
2633 if (likely(__pyx_t_4)__builtin_expect(!!(__pyx_t_4), 1)) {
2634 PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3)(((PyMethodObject *)__pyx_t_3) -> im_func);
2635 __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4))));
2636 __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function))));
2637 __Pyx_DECREF_SET(__pyx_t_3, function)do { PyObject *tmp = (PyObject *) __pyx_t_3; __pyx_t_3 = function
; Py_DECREF(((PyObject*)((tmp)))); } while (0)
;
2638 __pyx_t_5 = 1;
2639 }
2640 }
2641 #endif
2642 {
2643 PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_kp_s_utf_8__pyx_mstate_global->__pyx_kp_s_utf_8};
2644 __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5)__Pyx_PyObject_FastCallDict(__pyx_t_3, __pyx_callargs+1-__pyx_t_5
, (size_t)(1+__pyx_t_5), ((void*)0))
;
2645 __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0;
2646 if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 43, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 43; (void)__pyx_lineno; __pyx_clineno = 2646; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2647 __Pyx_GOTREF(__pyx_t_2);
2648 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
2649 }
2650 __pyx_r = __pyx_t_2;
2651 __pyx_t_2 = 0;
2652 goto __pyx_L0;
2653
2654 /* "nastranOP2Reader.pyx":42
2655 *
2656 * if PY_MAJOR_VERSION >= 3:
2657 * if isinstance(data, bytes): # <<<<<<<<<<<<<<
2658 * return data.decode("utf-8")
2659 *
2660 */
2661 }
2662
2663 /* "nastranOP2Reader.pyx":45
2664 * return data.decode("utf-8")
2665 *
2666 * if isinstance(data,list): # <<<<<<<<<<<<<<
2667 * return [_str(item,ignore_dicts=True) for item in data]
2668 * if isinstance(data, dict) and not ignore_dicts:
2669 */
2670 __pyx_t_1 = PyList_Check(__pyx_v_data)PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_v_data)))), (1UL
<< 25))
;
2671 if (__pyx_t_1) {
2672
2673 /* "nastranOP2Reader.pyx":46
2674 *
2675 * if isinstance(data,list):
2676 * return [_str(item,ignore_dicts=True) for item in data] # <<<<<<<<<<<<<<
2677 * if isinstance(data, dict) and not ignore_dicts:
2678 * return {
2679 */
2680 __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r))));
2681 __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2681; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2682 __Pyx_GOTREF(__pyx_t_2);
2683 if (likely(PyList_CheckExact(__pyx_v_data))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_data))),
&PyList_Type)), 1)
|| PyTuple_CheckExact(__pyx_v_data)Py_IS_TYPE(((PyObject*)((__pyx_v_data))), &PyTuple_Type)) {
2684 __pyx_t_3 = __pyx_v_data; __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3))));
2685 __pyx_t_6 = 0;
2686 __pyx_t_7 = NULL((void*)0);
2687 } else {
2688 __pyx_t_6 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_data); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2688; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2689 __Pyx_GOTREF(__pyx_t_3);
2690 __pyx_t_7 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3)(Py_TYPE(((PyObject*)((__pyx_t_3))))->tp_iternext); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2690; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2691 }
2692 for (;;) {
2693 if (likely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 1)) {
2694 if (likely(PyList_CheckExact(__pyx_t_3))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_3))), &
PyList_Type)), 1)
) {
2695 {
2696 Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3)PyList_GET_SIZE(((PyObject*)((__pyx_t_3))));
2697 #if !CYTHON_ASSUME_SAFE_MACROS1
2698 if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2698; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2699 #endif
2700 if (__pyx_t_6 >= __pyx_temp) break;
2701 }
2702 #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0
2703 __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_6)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_3
)))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((__pyx_t_3)))), (1UL << 25))) ; else
__assert_fail ("PyList_Check(__pyx_t_3)", "nastranOP2Reader.c"
, 2703, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject
*)((__pyx_t_3))))->ob_item[__pyx_t_6])
; __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); __pyx_t_6++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2703; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2704 #else
2705 __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6)( Py_TYPE(((PyObject*)((__pyx_t_3))))->tp_as_sequence->
sq_item(__pyx_t_3, __pyx_t_6) )
; __pyx_t_6++; if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2705; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2706 __Pyx_GOTREF(__pyx_t_4);
2707 #endif
2708 } else {
2709 {
2710 Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3)PyTuple_GET_SIZE(((PyObject*)((__pyx_t_3))));
2711 #if !CYTHON_ASSUME_SAFE_MACROS1
2712 if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2712; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2713 #endif
2714 if (__pyx_t_6 >= __pyx_temp) break;
2715 }
2716 #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0
2717 __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_3
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((__pyx_t_3)))), (1UL << 26))) ; else
__assert_fail ("PyTuple_Check(__pyx_t_3)", "nastranOP2Reader.c"
, 2717, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject
*)((__pyx_t_3))))->ob_item[__pyx_t_6])
; __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); __pyx_t_6++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2717; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2718 #else
2719 __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6)( Py_TYPE(((PyObject*)((__pyx_t_3))))->tp_as_sequence->
sq_item(__pyx_t_3, __pyx_t_6) )
; __pyx_t_6++; if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2719; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2720 __Pyx_GOTREF(__pyx_t_4);
2721 #endif
2722 }
2723 } else {
2724 __pyx_t_4 = __pyx_t_7(__pyx_t_3);
2725 if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {
2726 PyObject* exc_type = PyErr_Occurred();
2727 if (exc_type) {
2728 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(__Pyx_PyErr_GivenExceptionMatches(exc_type
, PyExc_StopIteration)), 1)
) PyErr_Clear();
2729 else __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2729; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2730 }
2731 break;
2732 }
2733 __Pyx_GOTREF(__pyx_t_4);
2734 }
2735 __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4)do { PyObject *tmp = (PyObject *) __pyx_v_item; __pyx_v_item =
__pyx_t_4; Py_XDECREF(((PyObject*)((tmp)))); } while (0)
;
2736 __pyx_t_4 = 0;
2737 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_str)do { static uint64_t __pyx_dict_version = 0; static PyObject *
__pyx_dict_cached_value = ((void*)0); (__pyx_t_4) = (__builtin_expect
(!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global
->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect(
!!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value
)))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global
->__pyx_n_s_str)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global
->__pyx_n_s_str, &__pyx_dict_version, &__pyx_dict_cached_value
);} while(0)
; if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2737; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2738 __Pyx_GOTREF(__pyx_t_4);
2739 __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2739; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2740 __Pyx_GOTREF(__pyx_t_8);
2741 __Pyx_INCREF(__pyx_v_item)Py_INCREF(((PyObject*)((__pyx_v_item))));
2742 __Pyx_GIVEREF(__pyx_v_item);
2743 if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_item)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_8))), 0, ((PyObject*)
((__pyx_v_item)))), (0))
) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2743; (void)__pyx_clineno
; } goto __pyx_L1_error; }
;
2744 __pyx_t_9 = __Pyx_PyDict_NewPresized(1)((1 <= 8) ? PyDict_New() : _PyDict_NewPresized(1)); if (unlikely(!__pyx_t_9)__builtin_expect(!!(!__pyx_t_9), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2744; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2745 __Pyx_GOTREF(__pyx_t_9);
2746 if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts, Py_True((PyObject *) &_Py_TrueStruct)) < 0) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2746; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2747 __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2747; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2748 __Pyx_GOTREF(__pyx_t_10);
2749 __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0;
2750 __Pyx_DECREF(__pyx_t_8)Py_DECREF(((PyObject*)((__pyx_t_8)))); __pyx_t_8 = 0;
2751 __Pyx_DECREF(__pyx_t_9)Py_DECREF(((PyObject*)((__pyx_t_9)))); __pyx_t_9 = 0;
2752 if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_10))__builtin_expect(!!(__Pyx_ListComp_Append(__pyx_t_2, (PyObject
*)__pyx_t_10)), 0)
) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 46; (void)__pyx_lineno; __pyx_clineno = 2752; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2753 __Pyx_DECREF(__pyx_t_10)Py_DECREF(((PyObject*)((__pyx_t_10)))); __pyx_t_10 = 0;
2754 }
2755 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
2756 __pyx_r = __pyx_t_2;
2757 __pyx_t_2 = 0;
2758 goto __pyx_L0;
2759
2760 /* "nastranOP2Reader.pyx":45
2761 * return data.decode("utf-8")
2762 *
2763 * if isinstance(data,list): # <<<<<<<<<<<<<<
2764 * return [_str(item,ignore_dicts=True) for item in data]
2765 * if isinstance(data, dict) and not ignore_dicts:
2766 */
2767 }
2768
2769 /* "nastranOP2Reader.pyx":47
2770 * if isinstance(data,list):
2771 * return [_str(item,ignore_dicts=True) for item in data]
2772 * if isinstance(data, dict) and not ignore_dicts: # <<<<<<<<<<<<<<
2773 * return {
2774 * _str(key,ignore_dicts=True): _str(value, ignore_dicts=True)
2775 */
2776 __pyx_t_11 = PyDict_Check(__pyx_v_data)PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_v_data)))), (1UL
<< 29))
;
2777 if (__pyx_t_11) {
2778 } else {
2779 __pyx_t_1 = __pyx_t_11;
2780 goto __pyx_L10_bool_binop_done;
2781 }
2782 __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_dicts); if (unlikely((__pyx_t_11 < 0))__builtin_expect(!!((__pyx_t_11 < 0)), 0)) __PYX_ERR(0, 47, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 47; (void)__pyx_lineno; __pyx_clineno = 2782; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2783 __pyx_t_12 = (!__pyx_t_11);
2784 __pyx_t_1 = __pyx_t_12;
2785 __pyx_L10_bool_binop_done:;
2786 if (__pyx_t_1) {
2787
2788 /* "nastranOP2Reader.pyx":48
2789 * return [_str(item,ignore_dicts=True) for item in data]
2790 * if isinstance(data, dict) and not ignore_dicts:
2791 * return { # <<<<<<<<<<<<<<
2792 * _str(key,ignore_dicts=True): _str(value, ignore_dicts=True)
2793 * for key, value in data.iteritems()
2794 */
2795 __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r))));
2796 { /* enter inner scope */
2797 __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 48, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 48; (void)__pyx_lineno; __pyx_clineno = 2797; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2798 __Pyx_GOTREF(__pyx_t_2);
2799
2800 /* "nastranOP2Reader.pyx":50
2801 * return {
2802 * _str(key,ignore_dicts=True): _str(value, ignore_dicts=True)
2803 * for key, value in data.iteritems() # <<<<<<<<<<<<<<
2804 * }
2805 * return data
2806 */
2807 __pyx_t_6 = 0;
2808 if (unlikely(__pyx_v_data == Py_None)__builtin_expect(!!(__pyx_v_data == (&_Py_NoneStruct)), 0
)
) {
2809 PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "iteritems");
2810 __PYX_ERR(0, 50, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 50; (void)__pyx_lineno; __pyx_clineno = 2810; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2811 }
2812 __pyx_t_10 = __Pyx_dict_iterator(__pyx_v_data, 0, __pyx_n_s_iteritems__pyx_mstate_global->__pyx_n_s_iteritems, (&__pyx_t_13), (&__pyx_t_5)); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) __PYX_ERR(0, 50, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 50; (void)__pyx_lineno; __pyx_clineno = 2812; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2813 __Pyx_GOTREF(__pyx_t_10);
2814 __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3))));
2815 __pyx_t_3 = __pyx_t_10;
2816 __pyx_t_10 = 0;
2817 while (1) {
2818 __pyx_t_14 = __Pyx_dict_iter_next(__pyx_t_3, __pyx_t_13, &__pyx_t_6, &__pyx_t_10, &__pyx_t_9, NULL((void*)0), __pyx_t_5);
2819 if (unlikely(__pyx_t_14 == 0)__builtin_expect(!!(__pyx_t_14 == 0), 0)) break;
2820 if (unlikely(__pyx_t_14 == -1)__builtin_expect(!!(__pyx_t_14 == -1), 0)) __PYX_ERR(0, 50, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 50; (void)__pyx_lineno; __pyx_clineno = 2820; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2821 __Pyx_GOTREF(__pyx_t_10);
2822 __Pyx_GOTREF(__pyx_t_9);
2823 __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_key, __pyx_t_10)do { PyObject *tmp = (PyObject *) __pyx_7genexpr__pyx_v_key; __pyx_7genexpr__pyx_v_key
= __pyx_t_10; Py_XDECREF(((PyObject*)((tmp)))); } while (0)
;
2824 __pyx_t_10 = 0;
2825 __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_value, __pyx_t_9)do { PyObject *tmp = (PyObject *) __pyx_7genexpr__pyx_v_value
; __pyx_7genexpr__pyx_v_value = __pyx_t_9; Py_XDECREF(((PyObject
*)((tmp)))); } while (0)
;
2826 __pyx_t_9 = 0;
2827
2828 /* "nastranOP2Reader.pyx":49
2829 * if isinstance(data, dict) and not ignore_dicts:
2830 * return {
2831 * _str(key,ignore_dicts=True): _str(value, ignore_dicts=True) # <<<<<<<<<<<<<<
2832 * for key, value in data.iteritems()
2833 * }
2834 */
2835 __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_str)do { static uint64_t __pyx_dict_version = 0; static PyObject *
__pyx_dict_cached_value = ((void*)0); (__pyx_t_9) = (__builtin_expect
(!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global
->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect(
!!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value
)))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global
->__pyx_n_s_str)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global
->__pyx_n_s_str, &__pyx_dict_version, &__pyx_dict_cached_value
);} while(0)
; if (unlikely(!__pyx_t_9)__builtin_expect(!!(!__pyx_t_9), 0)) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2835; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2836 __Pyx_GOTREF(__pyx_t_9);
2837 __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2837; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2838 __Pyx_GOTREF(__pyx_t_10);
2839 __Pyx_INCREF(__pyx_7genexpr__pyx_v_key)Py_INCREF(((PyObject*)((__pyx_7genexpr__pyx_v_key))));
2840 __Pyx_GIVEREF(__pyx_7genexpr__pyx_v_key);
2841 if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_7genexpr__pyx_v_key)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_10))), 0, ((PyObject*
)((__pyx_7genexpr__pyx_v_key)))), (0))
) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2841; (void)__pyx_clineno
; } goto __pyx_L14_error; }
;
2842 __pyx_t_8 = __Pyx_PyDict_NewPresized(1)((1 <= 8) ? PyDict_New() : _PyDict_NewPresized(1)); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2842; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2843 __Pyx_GOTREF(__pyx_t_8);
2844 if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts, Py_True((PyObject *) &_Py_TrueStruct)) < 0) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2844; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2845 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, __pyx_t_8); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2845; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2846 __Pyx_GOTREF(__pyx_t_4);
2847 __Pyx_DECREF(__pyx_t_9)Py_DECREF(((PyObject*)((__pyx_t_9)))); __pyx_t_9 = 0;
2848 __Pyx_DECREF(__pyx_t_10)Py_DECREF(((PyObject*)((__pyx_t_10)))); __pyx_t_10 = 0;
2849 __Pyx_DECREF(__pyx_t_8)Py_DECREF(((PyObject*)((__pyx_t_8)))); __pyx_t_8 = 0;
2850 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_str)do { static uint64_t __pyx_dict_version = 0; static PyObject *
__pyx_dict_cached_value = ((void*)0); (__pyx_t_8) = (__builtin_expect
(!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global
->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect(
!!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value
)))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global
->__pyx_n_s_str)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global
->__pyx_n_s_str, &__pyx_dict_version, &__pyx_dict_cached_value
);} while(0)
; if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2850; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2851 __Pyx_GOTREF(__pyx_t_8);
2852 __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2852; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2853 __Pyx_GOTREF(__pyx_t_10);
2854 __Pyx_INCREF(__pyx_7genexpr__pyx_v_value)Py_INCREF(((PyObject*)((__pyx_7genexpr__pyx_v_value))));
2855 __Pyx_GIVEREF(__pyx_7genexpr__pyx_v_value);
2856 if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_7genexpr__pyx_v_value)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_10))), 0, ((PyObject*
)((__pyx_7genexpr__pyx_v_value)))), (0))
) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2856; (void)__pyx_clineno
; } goto __pyx_L14_error; }
;
2857 __pyx_t_9 = __Pyx_PyDict_NewPresized(1)((1 <= 8) ? PyDict_New() : _PyDict_NewPresized(1)); if (unlikely(!__pyx_t_9)__builtin_expect(!!(!__pyx_t_9), 0)) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2857; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2858 __Pyx_GOTREF(__pyx_t_9);
2859 if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts, Py_True((PyObject *) &_Py_TrueStruct)) < 0) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2859; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2860 __pyx_t_15 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_15)__builtin_expect(!!(!__pyx_t_15), 0)) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2860; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2861 __Pyx_GOTREF(__pyx_t_15);
2862 __Pyx_DECREF(__pyx_t_8)Py_DECREF(((PyObject*)((__pyx_t_8)))); __pyx_t_8 = 0;
2863 __Pyx_DECREF(__pyx_t_10)Py_DECREF(((PyObject*)((__pyx_t_10)))); __pyx_t_10 = 0;
2864 __Pyx_DECREF(__pyx_t_9)Py_DECREF(((PyObject*)((__pyx_t_9)))); __pyx_t_9 = 0;
2865 if (unlikely(PyDict_SetItem(__pyx_t_2, (PyObject*)__pyx_t_4, (PyObject*)__pyx_t_15))__builtin_expect(!!(PyDict_SetItem(__pyx_t_2, (PyObject*)__pyx_t_4
, (PyObject*)__pyx_t_15)), 0)
) __PYX_ERR(0, 49, __pyx_L14_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 49; (void)__pyx_lineno; __pyx_clineno = 2865; (void)__pyx_clineno
; } goto __pyx_L14_error; }
2866 __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0;
2867 __Pyx_DECREF(__pyx_t_15)Py_DECREF(((PyObject*)((__pyx_t_15)))); __pyx_t_15 = 0;
2868 }
2869 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
2870 __Pyx_XDECREF(__pyx_7genexpr__pyx_v_key)Py_XDECREF(((PyObject*)((__pyx_7genexpr__pyx_v_key)))); __pyx_7genexpr__pyx_v_key = 0;
2871 __Pyx_XDECREF(__pyx_7genexpr__pyx_v_value)Py_XDECREF(((PyObject*)((__pyx_7genexpr__pyx_v_value)))); __pyx_7genexpr__pyx_v_value = 0;
2872 goto __pyx_L17_exit_scope;
2873 __pyx_L14_error:;
2874 __Pyx_XDECREF(__pyx_7genexpr__pyx_v_key)Py_XDECREF(((PyObject*)((__pyx_7genexpr__pyx_v_key)))); __pyx_7genexpr__pyx_v_key = 0;
2875 __Pyx_XDECREF(__pyx_7genexpr__pyx_v_value)Py_XDECREF(((PyObject*)((__pyx_7genexpr__pyx_v_value)))); __pyx_7genexpr__pyx_v_value = 0;
2876 goto __pyx_L1_error;
2877 __pyx_L17_exit_scope:;
2878 } /* exit inner scope */
2879 __pyx_r = __pyx_t_2;
2880 __pyx_t_2 = 0;
2881 goto __pyx_L0;
2882
2883 /* "nastranOP2Reader.pyx":47
2884 * if isinstance(data,list):
2885 * return [_str(item,ignore_dicts=True) for item in data]
2886 * if isinstance(data, dict) and not ignore_dicts: # <<<<<<<<<<<<<<
2887 * return {
2888 * _str(key,ignore_dicts=True): _str(value, ignore_dicts=True)
2889 */
2890 }
2891
2892 /* "nastranOP2Reader.pyx":41
2893 * def _str(data,ignore_dicts = False):
2894 *
2895 * if PY_MAJOR_VERSION >= 3: # <<<<<<<<<<<<<<
2896 * if isinstance(data, bytes):
2897 * return data.decode("utf-8")
2898 */
2899 }
2900
2901 /* "nastranOP2Reader.pyx":52
2902 * for key, value in data.iteritems()
2903 * }
2904 * return data # <<<<<<<<<<<<<<
2905 *
2906 * # Get objective results
2907 */
2908 __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r))));
2909 __Pyx_INCREF(__pyx_v_data)Py_INCREF(((PyObject*)((__pyx_v_data))));
2910 __pyx_r = __pyx_v_data;
2911 goto __pyx_L0;
2912
2913 /* "nastranOP2Reader.pyx":39
2914 *
2915 * # Handles all byte to uni-code and and byte conversion.
2916 * def _str(data,ignore_dicts = False): # <<<<<<<<<<<<<<
2917 *
2918 * if PY_MAJOR_VERSION >= 3:
2919 */
2920
2921 /* function exit code */
2922 __pyx_L1_error:;
2923 __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2))));
2924 __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3))));
2925 __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4))));
2926 __Pyx_XDECREF(__pyx_t_8)Py_XDECREF(((PyObject*)((__pyx_t_8))));
2927 __Pyx_XDECREF(__pyx_t_9)Py_XDECREF(((PyObject*)((__pyx_t_9))));
2928 __Pyx_XDECREF(__pyx_t_10)Py_XDECREF(((PyObject*)((__pyx_t_10))));
2929 __Pyx_XDECREF(__pyx_t_15)Py_XDECREF(((PyObject*)((__pyx_t_15))));
2930 __Pyx_AddTraceback("nastranOP2Reader._str", __pyx_clineno, __pyx_lineno, __pyx_filename);
2931 __pyx_r = NULL((void*)0);
2932 __pyx_L0:;
2933 __Pyx_XDECREF(__pyx_v_item)Py_XDECREF(((PyObject*)((__pyx_v_item))));
2934 __Pyx_XDECREF(__pyx_7genexpr__pyx_v_key)Py_XDECREF(((PyObject*)((__pyx_7genexpr__pyx_v_key))));
2935 __Pyx_XDECREF(__pyx_7genexpr__pyx_v_value)Py_XDECREF(((PyObject*)((__pyx_7genexpr__pyx_v_value))));
2936 __Pyx_XGIVEREF(__pyx_r);
2937 __Pyx_RefNannyFinishContext();
2938 return __pyx_r;
2939}
2940
2941/* "nastranOP2Reader.pyx":55
2942 *
2943 * # Get objective results
2944 * cdef public int nastran_getObjective(const char *filename, int *numObjective, double **objective) except -1: # <<<<<<<<<<<<<<
2945 *
2946 * cdef:
2947 */
2948
2949int nastran_getObjective(char const *__pyx_v_filename, int *__pyx_v_numObjective, double **__pyx_v_objective) {
2950 int __pyx_v_numData;
2951 double *__pyx_v_data;
2952 PyObject *__pyx_v_results = NULL((void*)0);
2953 PyObject *__pyx_v_objFunc = NULL((void*)0);
2954 PyObject *__pyx_v_i = NULL((void*)0);
2955 int __pyx_r;
2956 __Pyx_RefNannyDeclarations
2957 PyObject *__pyx_t_1 = NULL((void*)0);
2958 PyObject *__pyx_t_2 = NULL((void*)0);
2959 PyObject *__pyx_t_3 = NULL((void*)0);
2960 PyObject *__pyx_t_4 = NULL((void*)0);
2961 PyObject *__pyx_t_5 = NULL((void*)0);
2962 PyObject *__pyx_t_6 = NULL((void*)0);
2963 int __pyx_t_7;
2964 Py_ssize_t __pyx_t_8;
2965 int __pyx_t_9;
2966 double __pyx_t_10;
2967 int __pyx_lineno = 0;
2968 const char *__pyx_filename = NULL((void*)0);
2969 int __pyx_clineno = 0;
2970 __Pyx_RefNannySetupContext("nastran_getObjective", 1);
2971
2972 /* "nastranOP2Reader.pyx":59
2973 * cdef:
2974 * int numData
2975 * double *data=NULL # <<<<<<<<<<<<<<
2976 *
2977 * results = OP2(debug=False)
2978 */
2979 __pyx_v_data = NULL((void*)0);
2980
2981 /* "nastranOP2Reader.pyx":61
2982 * double *data=NULL
2983 *
2984 * results = OP2(debug=False) # <<<<<<<<<<<<<<
2985 * results.read_op2(_str(filename))
2986 * objFunc = results.op2_results.responses.convergence_data.obj_initial
2987 */
2988 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_OP2)do { static uint64_t __pyx_dict_version = 0; static PyObject *
__pyx_dict_cached_value = ((void*)0); (__pyx_t_1) = (__builtin_expect
(!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global
->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect(
!!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value
)))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global
->__pyx_n_s_OP2)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global
->__pyx_n_s_OP2, &__pyx_dict_version, &__pyx_dict_cached_value
);} while(0)
; if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 61, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 61; (void)__pyx_lineno; __pyx_clineno = 2988; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2989 __Pyx_GOTREF(__pyx_t_1);
2990 __pyx_t_2 = __Pyx_PyDict_NewPresized(1)((1 <= 8) ? PyDict_New() : _PyDict_NewPresized(1)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 61, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 61; (void)__pyx_lineno; __pyx_clineno = 2990; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2991 __Pyx_GOTREF(__pyx_t_2);
2992 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug, Py_False((PyObject *) &_Py_FalseStruct)) < 0) __PYX_ERR(0, 61, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 61; (void)__pyx_lineno; __pyx_clineno = 2992; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2993 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 61, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 61; (void)__pyx_lineno; __pyx_clineno = 2993; (void)__pyx_clineno
; } goto __pyx_L1_error; }
2994 __Pyx_GOTREF(__pyx_t_3);
2995 __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0;
2996 __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0;
2997 __pyx_v_results = __pyx_t_3;
2998 __pyx_t_3 = 0;
2999
3000 /* "nastranOP2Reader.pyx":62
3001 *
3002 * results = OP2(debug=False)
3003 * results.read_op2(_str(filename)) # <<<<<<<<<<<<<<
3004 * objFunc = results.op2_results.responses.convergence_data.obj_initial
3005 * numData = int(len(objFunc))
3006 */
3007 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_results, __pyx_n_s_read_op2__pyx_mstate_global->__pyx_n_s_read_op2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 62, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 62; (void)__pyx_lineno; __pyx_clineno = 3007; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3008 __Pyx_GOTREF(__pyx_t_2);
3009 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_str)do { static uint64_t __pyx_dict_version = 0; static PyObject *
__pyx_dict_cached_value = ((void*)0); (__pyx_t_4) = (__builtin_expect
(!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global
->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect(
!!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value
)))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global
->__pyx_n_s_str)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global
->__pyx_n_s_str, &__pyx_dict_version, &__pyx_dict_cached_value
);} while(0)
; if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 62, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 62; (void)__pyx_lineno; __pyx_clineno = 3009; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3010 __Pyx_GOTREF(__pyx_t_4);
3011 __pyx_t_5 = __Pyx_PyBytes_FromStringPyBytes_FromString(__pyx_v_filename); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) __PYX_ERR(0, 62, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 62; (void)__pyx_lineno; __pyx_clineno = 3011; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3012 __Pyx_GOTREF(__pyx_t_5);
3013 __pyx_t_6 = NULL((void*)0);
3014 __pyx_t_7 = 0;
3015 #if CYTHON_UNPACK_METHODS1
3016 if (unlikely(PyMethod_Check(__pyx_t_4))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_4))), &
PyMethod_Type)), 0)
) {
3017 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_self);
3018 if (likely(__pyx_t_6)__builtin_expect(!!(__pyx_t_6), 1)) {
3019 PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_func);
3020 __Pyx_INCREF(__pyx_t_6)Py_INCREF(((PyObject*)((__pyx_t_6))));
3021 __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function))));
3022 __Pyx_DECREF_SET(__pyx_t_4, function)do { PyObject *tmp = (PyObject *) __pyx_t_4; __pyx_t_4 = function
; Py_DECREF(((PyObject*)((tmp)))); } while (0)
;
3023 __pyx_t_7 = 1;
3024 }
3025 }
3026 #endif
3027 {
3028 PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5};
3029 __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7)__Pyx_PyObject_FastCallDict(__pyx_t_4, __pyx_callargs+1-__pyx_t_7
, (size_t)(1+__pyx_t_7), ((void*)0))
;
3030 __Pyx_XDECREF(__pyx_t_6)Py_XDECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0;
3031 __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0;
3032 if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 62, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 62; (void)__pyx_lineno; __pyx_clineno = 3032; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3033 __Pyx_GOTREF(__pyx_t_1);
3034 __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0;
3035 }
3036 __pyx_t_4 = NULL((void*)0);
3037 __pyx_t_7 = 0;
3038 #if CYTHON_UNPACK_METHODS1
3039 if (likely(PyMethod_Check(__pyx_t_2))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_2))), &
PyMethod_Type)), 1)
) {
3040 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_self);
3041 if (likely(__pyx_t_4)__builtin_expect(!!(__pyx_t_4), 1)) {
3042 PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_func);
3043 __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4))));
3044 __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function))));
3045 __Pyx_DECREF_SET(__pyx_t_2, function)do { PyObject *tmp = (PyObject *) __pyx_t_2; __pyx_t_2 = function
; Py_DECREF(((PyObject*)((tmp)))); } while (0)
;
3046 __pyx_t_7 = 1;
3047 }
3048 }
3049 #endif
3050 {
3051 PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_1};
3052 __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7)__Pyx_PyObject_FastCallDict(__pyx_t_2, __pyx_callargs+1-__pyx_t_7
, (size_t)(1+__pyx_t_7), ((void*)0))
;
3053 __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0;
3054 __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0;
3055 if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 62, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 62; (void)__pyx_lineno; __pyx_clineno = 3055; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3056 __Pyx_GOTREF(__pyx_t_3);
3057 __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0;
3058 }
3059 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
3060
3061 /* "nastranOP2Reader.pyx":63
3062 * results = OP2(debug=False)
3063 * results.read_op2(_str(filename))
3064 * objFunc = results.op2_results.responses.convergence_data.obj_initial # <<<<<<<<<<<<<<
3065 * numData = int(len(objFunc))
3066 * data = <double *> cEGADS.EG_alloc(numData*sizeof(double))
3067 */
3068 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_results, __pyx_n_s_op2_results__pyx_mstate_global->__pyx_n_s_op2_results); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 63, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 63; (void)__pyx_lineno; __pyx_clineno = 3068; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3069 __Pyx_GOTREF(__pyx_t_3);
3070 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_responses__pyx_mstate_global->__pyx_n_s_responses); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 63, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 63; (void)__pyx_lineno; __pyx_clineno = 3070; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3071 __Pyx_GOTREF(__pyx_t_2);
3072 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
3073 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_convergence_data__pyx_mstate_global->__pyx_n_s_convergence_data); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 63, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 63; (void)__pyx_lineno; __pyx_clineno = 3073; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3074 __Pyx_GOTREF(__pyx_t_3);
3075 __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0;
3076 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_obj_initial__pyx_mstate_global->__pyx_n_s_obj_initial); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 63, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 63; (void)__pyx_lineno; __pyx_clineno = 3076; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3077 __Pyx_GOTREF(__pyx_t_2);
3078 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
3079 __pyx_v_objFunc = __pyx_t_2;
3080 __pyx_t_2 = 0;
3081
3082 /* "nastranOP2Reader.pyx":64
3083 * results.read_op2(_str(filename))
3084 * objFunc = results.op2_results.responses.convergence_data.obj_initial
3085 * numData = int(len(objFunc)) # <<<<<<<<<<<<<<
3086 * data = <double *> cEGADS.EG_alloc(numData*sizeof(double))
3087 * if not data:
3088 */
3089 __pyx_t_8 = PyObject_LengthPyObject_Size(__pyx_v_objFunc); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))__builtin_expect(!!(__pyx_t_8 == ((Py_ssize_t)-1)), 0)) __PYX_ERR(0, 64, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 64; (void)__pyx_lineno; __pyx_clineno = 3089; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3090 __pyx_v_numData = ((int)__pyx_t_8);
3091
3092 /* "nastranOP2Reader.pyx":65
3093 * objFunc = results.op2_results.responses.convergence_data.obj_initial
3094 * numData = int(len(objFunc))
3095 * data = <double *> cEGADS.EG_alloc(numData*sizeof(double)) # <<<<<<<<<<<<<<
3096 * if not data:
3097 * raise MemoryError()
3098 */
3099 __pyx_v_data = ((double *)EG_alloc((__pyx_v_numData * (sizeof(double)))));
3100
3101 /* "nastranOP2Reader.pyx":66
3102 * numData = int(len(objFunc))
3103 * data = <double *> cEGADS.EG_alloc(numData*sizeof(double))
3104 * if not data: # <<<<<<<<<<<<<<
3105 * raise MemoryError()
3106 *
3107 */
3108 __pyx_t_9 = (!(__pyx_v_data != 0));
3109 if (unlikely(__pyx_t_9)__builtin_expect(!!(__pyx_t_9), 0)) {
3110
3111 /* "nastranOP2Reader.pyx":67
3112 * data = <double *> cEGADS.EG_alloc(numData*sizeof(double))
3113 * if not data:
3114 * raise MemoryError() # <<<<<<<<<<<<<<
3115 *
3116 * i = 0
3117 */
3118 PyErr_NoMemory(); __PYX_ERR(0, 67, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 67; (void)__pyx_lineno; __pyx_clineno = 3118; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3119
3120 /* "nastranOP2Reader.pyx":66
3121 * numData = int(len(objFunc))
3122 * data = <double *> cEGADS.EG_alloc(numData*sizeof(double))
3123 * if not data: # <<<<<<<<<<<<<<
3124 * raise MemoryError()
3125 *
3126 */
3127 }
3128
3129 /* "nastranOP2Reader.pyx":69
3130 * raise MemoryError()
3131 *
3132 * i = 0 # <<<<<<<<<<<<<<
3133 * while i < numData:
3134 * data[i] = objFunc[i]
3135 */
3136 __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0))
))
;
3137 __pyx_v_i = __pyx_int_0__pyx_mstate_global->__pyx_int_0;
3138
3139 /* "nastranOP2Reader.pyx":70
3140 *
3141 * i = 0
3142 * while i < numData: # <<<<<<<<<<<<<<
3143 * data[i] = objFunc[i]
3144 * i += 1
3145 */
3146 while (1) {
3147 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_numData); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 70, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 70; (void)__pyx_lineno; __pyx_clineno = 3147; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3148 __Pyx_GOTREF(__pyx_t_2);
3149 __pyx_t_3 = PyObject_RichCompare(__pyx_v_i, __pyx_t_2, Py_LT0); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 70, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 70; (void)__pyx_lineno; __pyx_clineno = 3149; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3150 __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0;
3151 __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_9 < 0))__builtin_expect(!!((__pyx_t_9 < 0)), 0)) __PYX_ERR(0, 70, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 70; (void)__pyx_lineno; __pyx_clineno = 3151; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3152 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
3153 if (!__pyx_t_9) break;
3154
3155 /* "nastranOP2Reader.pyx":71
3156 * i = 0
3157 * while i < numData:
3158 * data[i] = objFunc[i] # <<<<<<<<<<<<<<
3159 * i += 1
3160 *
3161 */
3162 __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_objFunc, __pyx_v_i); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 71, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 71; (void)__pyx_lineno; __pyx_clineno = 3162; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3163 __Pyx_GOTREF(__pyx_t_3);
3164 __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_3)(Py_IS_TYPE(((PyObject*)((__pyx_t_3))), &PyFloat_Type) ? (
((PyFloatObject *)(__pyx_t_3))->ob_fval) : PyFloat_AsDouble
(__pyx_t_3))
; if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_10 == (double)-1) && PyErr_Occurred
()), 0)
) __PYX_ERR(0, 71, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 71; (void)__pyx_lineno; __pyx_clineno = 3164; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3165 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
3166 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred
()), 0)
) __PYX_ERR(0, 71, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 71; (void)__pyx_lineno; __pyx_clineno = 3166; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3167 (__pyx_v_data[__pyx_t_8]) = __pyx_t_10;
3168
3169 /* "nastranOP2Reader.pyx":72
3170 * while i < numData:
3171 * data[i] = objFunc[i]
3172 * i += 1 # <<<<<<<<<<<<<<
3173 *
3174 * numObjective[0] = numData
3175 */
3176 __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 72, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 72; (void)__pyx_lineno; __pyx_clineno = 3176; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3177 __Pyx_GOTREF(__pyx_t_3);
3178 __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v_i; __pyx_v_i = __pyx_t_3
; Py_DECREF(((PyObject*)((tmp)))); } while (0)
;
3179 __pyx_t_3 = 0;
3180 }
3181
3182 /* "nastranOP2Reader.pyx":74
3183 * i += 1
3184 *
3185 * numObjective[0] = numData # <<<<<<<<<<<<<<
3186 * objective[0] = data
3187 *
3188 */
3189 (__pyx_v_numObjective[0]) = __pyx_v_numData;
3190
3191 /* "nastranOP2Reader.pyx":75
3192 *
3193 * numObjective[0] = numData
3194 * objective[0] = data # <<<<<<<<<<<<<<
3195 *
3196 * return 0
3197 */
3198 (__pyx_v_objective[0]) = __pyx_v_data;
3199
3200 /* "nastranOP2Reader.pyx":77
3201 * objective[0] = data
3202 *
3203 * return 0 # <<<<<<<<<<<<<<
3204 */
3205 __pyx_r = 0;
3206 goto __pyx_L0;
3207
3208 /* "nastranOP2Reader.pyx":55
3209 *
3210 * # Get objective results
3211 * cdef public int nastran_getObjective(const char *filename, int *numObjective, double **objective) except -1: # <<<<<<<<<<<<<<
3212 *
3213 * cdef:
3214 */
3215
3216 /* function exit code */
3217 __pyx_L1_error:;
3218 __Pyx_XDECREF(__pyx_t_1)Py_XDECREF(((PyObject*)((__pyx_t_1))));
3219 __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2))));
3220 __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3))));
3221 __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4))));
3222 __Pyx_XDECREF(__pyx_t_5)Py_XDECREF(((PyObject*)((__pyx_t_5))));
3223 __Pyx_XDECREF(__pyx_t_6)Py_XDECREF(((PyObject*)((__pyx_t_6))));
3224 __Pyx_AddTraceback("nastranOP2Reader.nastran_getObjective", __pyx_clineno, __pyx_lineno, __pyx_filename);
3225 __pyx_r = -1;
3226 __pyx_L0:;
3227 __Pyx_XDECREF(__pyx_v_results)Py_XDECREF(((PyObject*)((__pyx_v_results))));
3228 __Pyx_XDECREF(__pyx_v_objFunc)Py_XDECREF(((PyObject*)((__pyx_v_objFunc))));
3229 __Pyx_XDECREF(__pyx_v_i)Py_XDECREF(((PyObject*)((__pyx_v_i))));
3230 __Pyx_RefNannyFinishContext();
3231 return __pyx_r;
3232}
3233
3234static PyMethodDef __pyx_methods[] = {
3235 {0, 0, 0, 0}
3236};
3237#ifndef CYTHON_SMALL_CODE
3238#if defined(__clang__1)
3239 #define CYTHON_SMALL_CODE
3240#elif defined(__GNUC__4) && (__GNUC__4 > 4 || (__GNUC__4 == 4 && __GNUC_MINOR__2 >= 3))
3241 #define CYTHON_SMALL_CODE __attribute__((cold))
3242#else
3243 #define CYTHON_SMALL_CODE
3244#endif
3245#endif
3246/* #### Code section: pystring_table ### */
3247
3248static int __Pyx_CreateStringTabAndInitStrings(void) {
3249 __Pyx_StringTabEntry __pyx_string_tab[] = {
3250 {&__pyx_kp_u___pyx_mstate_global->__pyx_kp_u_, __pyx_k_, sizeof(__pyx_k_), 0, 1, 0, 0},
3251 {&__pyx_n_s_MemoryError__pyx_mstate_global->__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1},
3252 {&__pyx_n_s_OP2__pyx_mstate_global->__pyx_n_s_OP2, __pyx_k_OP2, sizeof(__pyx_k_OP2), 0, 0, 1, 1},
3253 {&__pyx_n_s__5__pyx_mstate_global->__pyx_n_s__5, __pyx_k__5, sizeof(__pyx_k__5), 0, 0, 1, 1},
3254 {&__pyx_n_s_asyncio_coroutines__pyx_mstate_global->__pyx_n_s_asyncio_coroutines, __pyx_k_asyncio_coroutines, sizeof(__pyx_k_asyncio_coroutines), 0, 0, 1, 1},
3255 {&__pyx_n_s_class_getitem__pyx_mstate_global->__pyx_n_s_class_getitem, __pyx_k_class_getitem, sizeof(__pyx_k_class_getitem), 0, 0, 1, 1},
3256 {&__pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
3257 {&__pyx_n_s_convergence_data__pyx_mstate_global->__pyx_n_s_convergence_data, __pyx_k_convergence_data, sizeof(__pyx_k_convergence_data), 0, 0, 1, 1},
3258 {&__pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1},
3259 {&__pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug, __pyx_k_debug, sizeof(__pyx_k_debug), 0, 0, 1, 1},
3260 {&__pyx_n_s_decode__pyx_mstate_global->__pyx_n_s_decode, __pyx_k_decode, sizeof(__pyx_k_decode), 0, 0, 1, 1},
3261 {&__pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts, __pyx_k_ignore_dicts, sizeof(__pyx_k_ignore_dicts), 0, 0, 1, 1},
3262 {&__pyx_n_s_import__pyx_mstate_global->__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
3263 {&__pyx_n_s_is_coroutine__pyx_mstate_global->__pyx_n_s_is_coroutine, __pyx_k_is_coroutine, sizeof(__pyx_k_is_coroutine), 0, 0, 1, 1},
3264 {&__pyx_n_s_item__pyx_mstate_global->__pyx_n_s_item, __pyx_k_item, sizeof(__pyx_k_item), 0, 0, 1, 1},
3265 {&__pyx_n_s_iteritems__pyx_mstate_global->__pyx_n_s_iteritems, __pyx_k_iteritems, sizeof(__pyx_k_iteritems), 0, 0, 1, 1},
3266 {&__pyx_n_s_key__pyx_mstate_global->__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1},
3267 {&__pyx_n_s_main__pyx_mstate_global->__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
3268 {&__pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
3269 {&__pyx_n_s_nastranOP2Reader__pyx_mstate_global->__pyx_n_s_nastranOP2Reader, __pyx_k_nastranOP2Reader, sizeof(__pyx_k_nastranOP2Reader), 0, 0, 1, 1},
3270 {&__pyx_kp_s_nastranOP2Reader_pyx__pyx_mstate_global->__pyx_kp_s_nastranOP2Reader_pyx, __pyx_k_nastranOP2Reader_pyx, sizeof(__pyx_k_nastranOP2Reader_pyx), 0, 0, 1, 0},
3271 {&__pyx_n_s_obj_initial__pyx_mstate_global->__pyx_n_s_obj_initial, __pyx_k_obj_initial, sizeof(__pyx_k_obj_initial), 0, 0, 1, 1},
3272 {&__pyx_n_s_op2_results__pyx_mstate_global->__pyx_n_s_op2_results, __pyx_k_op2_results, sizeof(__pyx_k_op2_results), 0, 0, 1, 1},
3273 {&__pyx_n_s_pyNastran_op2_op2__pyx_mstate_global->__pyx_n_s_pyNastran_op2_op2, __pyx_k_pyNastran_op2_op2, sizeof(__pyx_k_pyNastran_op2_op2), 0, 0, 1, 1},
3274 {&__pyx_n_s_read_op2__pyx_mstate_global->__pyx_n_s_read_op2, __pyx_k_read_op2, sizeof(__pyx_k_read_op2), 0, 0, 1, 1},
3275 {&__pyx_n_s_responses__pyx_mstate_global->__pyx_n_s_responses, __pyx_k_responses, sizeof(__pyx_k_responses), 0, 0, 1, 1},
3276 {&__pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str, __pyx_k_str, sizeof(__pyx_k_str), 0, 0, 1, 1},
3277 {&__pyx_n_s_test__pyx_mstate_global->__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
3278 {&__pyx_kp_s_utf_8__pyx_mstate_global->__pyx_kp_s_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 0, 1, 0},
3279 {&__pyx_n_s_value__pyx_mstate_global->__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1},
3280 {0, 0, 0, 0, 0, 0, 0}
3281 };
3282 return __Pyx_InitStrings(__pyx_string_tab);
3283}
3284/* #### Code section: cached_builtins ### */
3285static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
3286 __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError__pyx_mstate_global->__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(0, 67, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 67; (void)__pyx_lineno; __pyx_clineno = 3286; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3287 return 0;
3288 __pyx_L1_error:;
3289 return -1;
3290}
3291/* #### Code section: cached_constants ### */
3292
3293static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
3294 __Pyx_RefNannyDeclarations
3295 __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
3296
3297 /* "nastranOP2Reader.pyx":39
3298 *
3299 * # Handles all byte to uni-code and and byte conversion.
3300 * def _str(data,ignore_dicts = False): # <<<<<<<<<<<<<<
3301 *
3302 * if PY_MAJOR_VERSION >= 3:
3303 */
3304 __pyx_tuple__2__pyx_mstate_global->__pyx_tuple__2 = PyTuple_Pack(5, __pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data, __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts, __pyx_n_s_item__pyx_mstate_global->__pyx_n_s_item, __pyx_n_s_key__pyx_mstate_global->__pyx_n_s_key, __pyx_n_s_value__pyx_mstate_global->__pyx_n_s_value); if (unlikely(!__pyx_tuple__2)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__2),
0)
) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 39; (void)__pyx_lineno; __pyx_clineno = 3304; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3305 __Pyx_GOTREF(__pyx_tuple__2);
3306 __Pyx_GIVEREF(__pyx_tuple__2);
3307 __pyx_codeobj__3__pyx_mstate_global->__pyx_codeobj__3 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED0x0001|CO_NEWLOCALS0x0002, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_tuple__2__pyx_mstate_global->__pyx_tuple__2, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_kp_s_nastranOP2Reader_pyx__pyx_mstate_global->__pyx_kp_s_nastranOP2Reader_pyx, __pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str, 39, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes); if (unlikely(!__pyx_codeobj__3)__builtin_expect(!!(!__pyx_mstate_global->__pyx_codeobj__3
), 0)
) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 39; (void)__pyx_lineno; __pyx_clineno = 3307; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3308 __pyx_tuple__4__pyx_mstate_global->__pyx_tuple__4 = PyTuple_Pack(1, ((PyObject *)Py_False((PyObject *) &_Py_FalseStruct))); if (unlikely(!__pyx_tuple__4)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__4),
0)
) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 39; (void)__pyx_lineno; __pyx_clineno = 3308; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3309 __Pyx_GOTREF(__pyx_tuple__4);
3310 __Pyx_GIVEREF(__pyx_tuple__4);
3311 __Pyx_RefNannyFinishContext();
3312 return 0;
3313 __pyx_L1_error:;
3314 __Pyx_RefNannyFinishContext();
3315 return -1;
3316}
3317/* #### Code section: init_constants ### */
3318
3319static CYTHON_SMALL_CODE int __Pyx_InitConstants(void) {
3320 if (__Pyx_CreateStringTabAndInitStrings() < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3320; (void)__pyx_clineno
; } goto __pyx_L1_error; }
;
3321 __pyx_int_0__pyx_mstate_global->__pyx_int_0 = PyInt_FromLongPyLong_FromLong(0); if (unlikely(!__pyx_int_0)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_0), 0)) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3321; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3322 __pyx_int_1__pyx_mstate_global->__pyx_int_1 = PyInt_FromLongPyLong_FromLong(1); if (unlikely(!__pyx_int_1)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_1), 0)) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3322; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3323 return 0;
3324 __pyx_L1_error:;
3325 return -1;
3326}
3327/* #### Code section: init_globals ### */
3328
3329static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
3330 return 0;
3331}
3332/* #### Code section: init_module ### */
3333
3334static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
3335static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
3336static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
3337static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
3338static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
3339static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
3340static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/
3341
3342static int __Pyx_modinit_global_init_code(void) {
3343 __Pyx_RefNannyDeclarations
3344 __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
3345 /*--- Global init code ---*/
3346 __Pyx_RefNannyFinishContext();
3347 return 0;
3348}
3349
3350static int __Pyx_modinit_variable_export_code(void) {
3351 __Pyx_RefNannyDeclarations
3352 __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
3353 /*--- Variable export code ---*/
3354 __Pyx_RefNannyFinishContext();
3355 return 0;
3356}
3357
3358static int __Pyx_modinit_function_export_code(void) {
3359 __Pyx_RefNannyDeclarations
3360 __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
3361 /*--- Function export code ---*/
3362 __Pyx_RefNannyFinishContext();
3363 return 0;
3364}
3365
3366static int __Pyx_modinit_type_init_code(void) {
3367 __Pyx_RefNannyDeclarations
3368 __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
3369 /*--- Type init code ---*/
3370 __Pyx_RefNannyFinishContext();
3371 return 0;
3372}
3373
3374static int __Pyx_modinit_type_import_code(void) {
3375 __Pyx_RefNannyDeclarations
3376 __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
3377 /*--- Type import code ---*/
3378 __Pyx_RefNannyFinishContext();
3379 return 0;
3380}
3381
3382static int __Pyx_modinit_variable_import_code(void) {
3383 __Pyx_RefNannyDeclarations
3384 __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
3385 /*--- Variable import code ---*/
3386 __Pyx_RefNannyFinishContext();
3387 return 0;
3388}
3389
3390static int __Pyx_modinit_function_import_code(void) {
3391 __Pyx_RefNannyDeclarations
3392 __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
3393 /*--- Function import code ---*/
3394 __Pyx_RefNannyFinishContext();
3395 return 0;
3396}
3397
3398
3399#if PY_MAJOR_VERSION3 >= 3
3400#if CYTHON_PEP489_MULTI_PHASE_INIT1
3401static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
3402static int __pyx_pymod_exec_nastranOP2Reader(PyObject* module); /*proto*/
3403static PyModuleDef_Slot __pyx_moduledef_slots[] = {
3404 {Py_mod_create1, (void*)__pyx_pymod_create},
3405 {Py_mod_exec2, (void*)__pyx_pymod_exec_nastranOP2Reader},
3406 {0, NULL((void*)0)}
3407};
3408#endif
3409
3410#ifdef __cplusplus
3411namespace {
3412 struct PyModuleDef __pyx_moduledef =
3413 #else
3414 static struct PyModuleDef __pyx_moduledef =
3415 #endif
3416 {
3417 PyModuleDef_HEAD_INIT{ { 1, ((void*)0) }, ((void*)0), 0, ((void*)0), },
3418 "nastranOP2Reader",
3419 0, /* m_doc */
3420 #if CYTHON_PEP489_MULTI_PHASE_INIT1
3421 0, /* m_size */
3422 #elif CYTHON_USE_MODULE_STATE0
3423 sizeof(__pyx_mstate), /* m_size */
3424 #else
3425 -1, /* m_size */
3426 #endif
3427 __pyx_methods /* m_methods */,
3428 #if CYTHON_PEP489_MULTI_PHASE_INIT1
3429 __pyx_moduledef_slots, /* m_slots */
3430 #else
3431 NULL((void*)0), /* m_reload */
3432 #endif
3433 #if CYTHON_USE_MODULE_STATE0
3434 __pyx_m_traverse, /* m_traverse */
3435 __pyx_m_clear, /* m_clear */
3436 NULL((void*)0) /* m_free */
3437 #else
3438 NULL((void*)0), /* m_traverse */
3439 NULL((void*)0), /* m_clear */
3440 NULL((void*)0) /* m_free */
3441 #endif
3442 };
3443 #ifdef __cplusplus
3444} /* anonymous namespace */
3445#endif
3446#endif
3447
3448#ifndef CYTHON_NO_PYINIT_EXPORT
3449#define __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject*
3450#elif PY_MAJOR_VERSION3 < 3
3451#ifdef __cplusplus
3452#define __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* extern "C" void
3453#else
3454#define __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* void
3455#endif
3456#else
3457#ifdef __cplusplus
3458#define __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* extern "C" PyObject *
3459#else
3460#define __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* PyObject *
3461#endif
3462#endif
3463
3464
3465#if PY_MAJOR_VERSION3 < 3
3466__Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* initnastranOP2Reader(void) CYTHON_SMALL_CODE; /*proto*/
3467__Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* initnastranOP2Reader(void)
3468#else
3469__Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* PyInit_nastranOP2Reader(void) CYTHON_SMALL_CODE; /*proto*/
3470__Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* PyInit_nastranOP2Reader(void)
3471#if CYTHON_PEP489_MULTI_PHASE_INIT1
3472{
3473 return PyModuleDef_Init(&__pyx_moduledef);
3474}
3475static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
3476 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030700A1
3477 static PY_INT64_Tint64_t main_interpreter_id = -1;
3478 PY_INT64_Tint64_t current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
3479 if (main_interpreter_id == -1) {
3480 main_interpreter_id = current_id;
3481 return (unlikely(current_id == -1)__builtin_expect(!!(current_id == -1), 0)) ? -1 : 0;
3482 } else if (unlikely(main_interpreter_id != current_id)__builtin_expect(!!(main_interpreter_id != current_id), 0))
3483 #else
3484 static PyInterpreterState *main_interpreter = NULL((void*)0);
3485 PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
3486 if (!main_interpreter) {
3487 main_interpreter = current_interpreter;
3488 } else if (unlikely(main_interpreter != current_interpreter)__builtin_expect(!!(main_interpreter != current_interpreter),
0)
)
3489 #endif
3490 {
3491 PyErr_SetString(
3492 PyExc_ImportError,
3493 "Interpreter change detected - this module can only be loaded into one interpreter per process.");
3494 return -1;
3495 }
3496 return 0;
3497}
3498#if CYTHON_COMPILING_IN_LIMITED_API0
3499static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *module, const char* from_name, const char* to_name, int allow_none)
3500#else
3501static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
3502#endif
3503{
3504 PyObject *value = PyObject_GetAttrString(spec, from_name);
3505 int result = 0;
3506 if (likely(value)__builtin_expect(!!(value), 1)) {
3507 if (allow_none || value != Py_None(&_Py_NoneStruct)) {
3508#if CYTHON_COMPILING_IN_LIMITED_API0
3509 result = PyModule_AddObject(module, to_name, value);
3510#else
3511 result = PyDict_SetItemString(moddict, to_name, value);
3512#endif
3513 }
3514 Py_DECREF(value)Py_DECREF(((PyObject*)((value))));
3515 } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
3516 PyErr_Clear();
3517 } else {
3518 result = -1;
3519 }
3520 return result;
3521}
3522static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) {
3523 PyObject *module = NULL((void*)0), *moddict, *modname;
3524 CYTHON_UNUSED_VAR(def)(void)(def);
3525 if (__Pyx_check_single_interpreter())
3526 return NULL((void*)0);
3527 if (__pyx_m)
3528 return __Pyx_NewRef(__pyx_m)(Py_INCREF(((PyObject*)((__pyx_m)))), __pyx_m);
3529 modname = PyObject_GetAttrString(spec, "name");
3530 if (unlikely(!modname)__builtin_expect(!!(!modname), 0)) goto bad;
3531 module = PyModule_NewObject(modname);
3532 Py_DECREF(modname)Py_DECREF(((PyObject*)((modname))));
3533 if (unlikely(!module)__builtin_expect(!!(!module), 0)) goto bad;
3534#if CYTHON_COMPILING_IN_LIMITED_API0
3535 moddict = module;
3536#else
3537 moddict = PyModule_GetDict(module);
3538 if (unlikely(!moddict)__builtin_expect(!!(!moddict), 0)) goto bad;
3539#endif
3540 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)__builtin_expect(!!(__Pyx_copy_spec_to_module(spec, moddict, "loader"
, "__loader__", 1) < 0), 0)
) goto bad;
3541 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)__builtin_expect(!!(__Pyx_copy_spec_to_module(spec, moddict, "origin"
, "__file__", 1) < 0), 0)
) goto bad;
3542 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)__builtin_expect(!!(__Pyx_copy_spec_to_module(spec, moddict, "parent"
, "__package__", 1) < 0), 0)
) goto bad;
3543 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)__builtin_expect(!!(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations"
, "__path__", 0) < 0), 0)
) goto bad;
3544 return module;
3545bad:
3546 Py_XDECREF(module)Py_XDECREF(((PyObject*)((module))));
3547 return NULL((void*)0);
3548}
3549
3550
3551static CYTHON_SMALL_CODE int __pyx_pymod_exec_nastranOP2Reader(PyObject *__pyx_pyinit_module)
3552#endif
3553#endif
3554{
3555 int stringtab_initialized = 0;
3556 #if CYTHON_USE_MODULE_STATE0
3557 int pystate_addmodule_run = 0;
3558 #endif
3559 PyObject *__pyx_t_1 = NULL((void*)0);
3560 PyObject *__pyx_t_2 = NULL((void*)0);
3561 PyObject *__pyx_t_3 = NULL((void*)0);
3562 int __pyx_lineno = 0;
3563 const char *__pyx_filename = NULL((void*)0);
3564 int __pyx_clineno = 0;
3565 __Pyx_RefNannyDeclarations
3566 #if CYTHON_PEP489_MULTI_PHASE_INIT1
3567 if (__pyx_m) {
3568 if (__pyx_m == __pyx_pyinit_module) return 0;
3569 PyErr_SetString(PyExc_RuntimeError, "Module 'nastranOP2Reader' has already been imported. Re-initialisation is not supported.");
3570 return -1;
3571 }
3572 #elif PY_MAJOR_VERSION3 >= 3
3573 if (__pyx_m) return __Pyx_NewRef(__pyx_m)(Py_INCREF(((PyObject*)((__pyx_m)))), __pyx_m);
3574 #endif
3575 /*--- Module creation code ---*/
3576 #if CYTHON_PEP489_MULTI_PHASE_INIT1
3577 __pyx_m = __pyx_pyinit_module;
3578 Py_INCREF(__pyx_m)Py_INCREF(((PyObject*)((__pyx_m))));
3579 #else
3580 #if PY_MAJOR_VERSION3 < 3
3581 __pyx_m = Py_InitModule4("nastranOP2Reader", __pyx_methods, 0, 0, PYTHON_API_VERSION1013); Py_XINCREF(__pyx_m)Py_XINCREF(((PyObject*)((__pyx_m))));
3582 if (unlikely(!__pyx_m)__builtin_expect(!!(!__pyx_m), 0)) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3582; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3583 #elif CYTHON_USE_MODULE_STATE0
3584 __pyx_t_1 = PyModule_Create(&__pyx_moduledef)PyModule_Create2(&__pyx_moduledef, 1013); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3584; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3585 {
3586 int add_module_result = PyState_AddModule(__pyx_t_1, &__pyx_moduledef);
3587 __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to nastranOP2Reader pseudovariable */
3588 if (unlikely((add_module_result < 0))__builtin_expect(!!((add_module_result < 0)), 0)) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3588; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3589 pystate_addmodule_run = 1;
3590 }
3591 #else
3592 __pyx_m = PyModule_Create(&__pyx_moduledef)PyModule_Create2(&__pyx_moduledef, 1013);
3593 if (unlikely(!__pyx_m)__builtin_expect(!!(!__pyx_m), 0)) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3593; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3594 #endif
3595 #endif
3596 CYTHON_UNUSED_VAR(__pyx_t_1)(void)(__pyx_t_1);
3597 __pyx_d__pyx_mstate_global->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)__builtin_expect(!!(!__pyx_mstate_global->__pyx_d), 0)) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3597; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3598 Py_INCREF(__pyx_d)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_d))));
3599 __pyx_b__pyx_mstate_global->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME"builtins"); if (unlikely(!__pyx_b)__builtin_expect(!!(!__pyx_mstate_global->__pyx_b), 0)) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3599; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3600 __pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef((const char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)__builtin_expect(!!(!__pyx_mstate_global->__pyx_cython_runtime
), 0)
) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3600; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3601 if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b__pyx_mstate_global->__pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3601; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3602 #if CYTHON_REFNANNY0
3603__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
3604if (!__Pyx_RefNanny) {
3605 PyErr_Clear();
3606 __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
3607 if (!__Pyx_RefNanny)
3608 Py_FatalError("failed to import 'refnanny' module")_Py_FatalErrorFunc(__func__, "failed to import 'refnanny' module"
)
;
3609}
3610#endif
3611 __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_nastranOP2Reader(void)", 0);
3612 if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API0) < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3612; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3613 #ifdef __Pxy_PyFrame_Initialize_Offsets
3614 __Pxy_PyFrame_Initialize_Offsets();
3615 #endif
3616 __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)__builtin_expect(!!(!__pyx_mstate_global->__pyx_empty_tuple
), 0)
) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3616; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3617 __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)__builtin_expect(!!(!__pyx_mstate_global->__pyx_empty_bytes
), 0)
) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3617; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3618 __pyx_empty_unicode__pyx_mstate_global->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)__builtin_expect(!!(!__pyx_mstate_global->__pyx_empty_unicode
), 0)
) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3618; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3619 #ifdef __Pyx_CyFunction_USED
3620 if (__pyx_CyFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3620; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3621 #endif
3622 #ifdef __Pyx_FusedFunction_USED
3623 if (__pyx_FusedFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3623; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3624 #endif
3625 #ifdef __Pyx_Coroutine_USED
3626 if (__pyx_Coroutine_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3626; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3627 #endif
3628 #ifdef __Pyx_Generator_USED
3629 if (__pyx_Generator_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3629; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3630 #endif
3631 #ifdef __Pyx_AsyncGen_USED
3632 if (__pyx_AsyncGen_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3632; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3633 #endif
3634 #ifdef __Pyx_StopAsyncIteration_USED
3635 if (__pyx_StopAsyncIteration_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3635; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3636 #endif
3637 /*--- Library function declarations ---*/
3638 /*--- Threads initialization code ---*/
3639 #if defined(WITH_THREAD) && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS0) && __PYX_FORCE_INIT_THREADS0
3640 PyEval_InitThreads();
3641 #endif
3642 /*--- Initialize various global constants etc. ---*/
3643 if (__Pyx_InitConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3643; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3644 stringtab_initialized = 1;
3645 if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3645; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3646 #if PY_MAJOR_VERSION3 < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0))
3647 if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3647; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3648 #endif
3649 if (__pyx_module_is_main_nastranOP2Reader) {
3650 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name, __pyx_n_s_main__pyx_mstate_global->__pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3650; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3651 }
3652 #if PY_MAJOR_VERSION3 >= 3
3653 {
3654 PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)__builtin_expect(!!(!modules), 0)) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3654; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3655 if (!PyDict_GetItemString(modules, "nastranOP2Reader")) {
3656 if (unlikely((PyDict_SetItemString(modules, "nastranOP2Reader", __pyx_m) < 0))__builtin_expect(!!((PyDict_SetItemString(modules, "nastranOP2Reader"
, __pyx_m) < 0)), 0)
) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3656; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3657 }
3658 }
3659 #endif
3660 /*--- Builtin init code ---*/
3661 if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3661; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3662 /*--- Constants init code ---*/
3663 if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3663; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3664 /*--- Global type/function init code ---*/
3665 (void)__Pyx_modinit_global_init_code();
3666 (void)__Pyx_modinit_variable_export_code();
3667 (void)__Pyx_modinit_function_export_code();
3668 (void)__Pyx_modinit_type_init_code();
3669 (void)__Pyx_modinit_type_import_code();
3670 (void)__Pyx_modinit_variable_import_code();
3671 (void)__Pyx_modinit_function_import_code();
3672 /*--- Execution code ---*/
3673 #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
3674 if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3674; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3675 #endif
3676
3677 /* "nastranOP2Reader.pyx":36
3678 * from cpython.version cimport PY_MAJOR_VERSION
3679 *
3680 * from pyNastran.op2.op2 import OP2 # <<<<<<<<<<<<<<
3681 *
3682 * # Handles all byte to uni-code and and byte conversion.
3683 */
3684 __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 36, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 36; (void)__pyx_lineno; __pyx_clineno = 3684; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3685 __Pyx_GOTREF(__pyx_t_2);
3686 __Pyx_INCREF(__pyx_n_s_OP2)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_n_s_OP2
))))
;
3687 __Pyx_GIVEREF(__pyx_n_s_OP2);
3688 if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_OP2)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*)(
(__pyx_mstate_global->__pyx_n_s_OP2)))), (0))
) __PYX_ERR(0, 36, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 36; (void)__pyx_lineno; __pyx_clineno = 3688; (void)__pyx_clineno
; } goto __pyx_L1_error; }
;
3689 __pyx_t_3 = __Pyx_Import(__pyx_n_s_pyNastran_op2_op2__pyx_mstate_global->__pyx_n_s_pyNastran_op2_op2, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 36, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 36; (void)__pyx_lineno; __pyx_clineno = 3689; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3690 __Pyx_GOTREF(__pyx_t_3);
3691 __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0;
3692 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_OP2__pyx_mstate_global->__pyx_n_s_OP2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 36, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 36; (void)__pyx_lineno; __pyx_clineno = 3692; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3693 __Pyx_GOTREF(__pyx_t_2);
3694 if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_OP2__pyx_mstate_global->__pyx_n_s_OP2, __pyx_t_2) < 0) __PYX_ERR(0, 36, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 36; (void)__pyx_lineno; __pyx_clineno = 3694; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3695 __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0;
3696 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
3697
3698 /* "nastranOP2Reader.pyx":39
3699 *
3700 * # Handles all byte to uni-code and and byte conversion.
3701 * def _str(data,ignore_dicts = False): # <<<<<<<<<<<<<<
3702 *
3703 * if PY_MAJOR_VERSION >= 3:
3704 */
3705 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_16nastranOP2Reader_1_str, 0, __pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str, NULL((void*)0), __pyx_n_s_nastranOP2Reader__pyx_mstate_global->__pyx_n_s_nastranOP2Reader, __pyx_d__pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_codeobj__3__pyx_mstate_global->__pyx_codeobj__3)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 39; (void)__pyx_lineno; __pyx_clineno = 3705; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3706 __Pyx_GOTREF(__pyx_t_3);
3707 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__4__pyx_mstate_global->__pyx_tuple__4);
3708 if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str, __pyx_t_3) < 0) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 39; (void)__pyx_lineno; __pyx_clineno = 3708; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3709 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
3710
3711 /* "nastranOP2Reader.pyx":1
3712 * # This software has been cleared for public release on 05 Nov 2020, case number 88ABW-2020-3462. # <<<<<<<<<<<<<<
3713 *
3714 * # Import Cython *.pxds
3715 */
3716 __pyx_t_3 = __Pyx_PyDict_NewPresized(0)((0 <= 8) ? PyDict_New() : _PyDict_NewPresized(0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3716; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3717 __Pyx_GOTREF(__pyx_t_3);
3718 if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_test__pyx_mstate_global->__pyx_n_s_test, __pyx_t_3) < 0) __PYX_ERR(0, 1, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno
= 1; (void)__pyx_lineno; __pyx_clineno = 3718; (void)__pyx_clineno
; } goto __pyx_L1_error; }
3719 __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0;
3720
3721 /*--- Wrapped vars code ---*/
3722
3723 goto __pyx_L0;
3724 __pyx_L1_error:;
3725 __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2))));
3726 __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3))));
3727 if (__pyx_m) {
3728 if (__pyx_d__pyx_mstate_global->__pyx_d && stringtab_initialized) {
3729 __Pyx_AddTraceback("init nastranOP2Reader", __pyx_clineno, __pyx_lineno, __pyx_filename);
3730 }
3731 #if !CYTHON_USE_MODULE_STATE0
3732 Py_CLEAR(__pyx_m)do { PyObject *_py_tmp = ((PyObject*)((__pyx_m))); if (_py_tmp
!= ((void*)0)) { (__pyx_m) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
3733 #else
3734 Py_DECREF(__pyx_m)Py_DECREF(((PyObject*)((__pyx_m))));
3735 if (pystate_addmodule_run) {
3736 PyObject *tp, *value, *tb;
3737 PyErr_Fetch(&tp, &value, &tb);
3738 PyState_RemoveModule(&__pyx_moduledef);
3739 PyErr_Restore(tp, value, tb);
3740 }
3741 #endif
3742 } else if (!PyErr_Occurred()) {
3743 PyErr_SetString(PyExc_ImportError, "init nastranOP2Reader");
3744 }
3745 __pyx_L0:;
3746 __Pyx_RefNannyFinishContext();
3747 #if CYTHON_PEP489_MULTI_PHASE_INIT1
3748 return (__pyx_m != NULL((void*)0)) ? 0 : -1;
3749 #elif PY_MAJOR_VERSION3 >= 3
3750 return __pyx_m;
3751 #else
3752 return;
3753 #endif
3754}
3755/* #### Code section: cleanup_globals ### */
3756/* #### Code section: cleanup_module ### */
3757/* #### Code section: main_method ### */
3758/* #### Code section: utility_code_pragmas ### */
3759#ifdef _MSC_VER
3760#pragma warning( push )
3761/* Warning 4127: conditional expression is constant
3762 * Cython uses constant conditional expressions to allow in inline functions to be optimized at
3763 * compile-time, so this warning is not useful
3764 */
3765#pragma warning( disable : 4127 )
3766#endif
3767
3768
3769
3770/* #### Code section: utility_code_def ### */
3771
3772/* --- Runtime support code --- */
3773/* Refnanny */
3774#if CYTHON_REFNANNY0
3775static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
3776 PyObject *m = NULL((void*)0), *p = NULL((void*)0);
3777 void *r = NULL((void*)0);
3778 m = PyImport_ImportModule(modname);
3779 if (!m) goto end;
3780 p = PyObject_GetAttrString(m, "RefNannyAPI");
3781 if (!p) goto end;
3782 r = PyLong_AsVoidPtr(p);
3783end:
3784 Py_XDECREF(p)Py_XDECREF(((PyObject*)((p))));
3785 Py_XDECREF(m)Py_XDECREF(((PyObject*)((m))));
3786 return (__Pyx_RefNannyAPIStruct *)r;
3787}
3788#endif
3789
3790/* PyErrExceptionMatches */
3791#if CYTHON_FAST_THREAD_STATE1
3792static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
3793 Py_ssize_t i, n;
3794 n = PyTuple_GET_SIZE(tuple)PyTuple_GET_SIZE(((PyObject*)((tuple))));
3795#if PY_MAJOR_VERSION3 >= 3
3796 for (i=0; i<n; i++) {
3797 if (exc_type == PyTuple_GET_ITEM(tuple, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(tuple)", "nastranOP2Reader.c", 3797, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))->
ob_item[i])
) return 1;
3798 }
3799#endif
3800 for (i=0; i<n; i++) {
3801 if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(tuple)", "nastranOP2Reader.c", 3801, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))->
ob_item[i])
)) return 1;
3802 }
3803 return 0;
3804}
3805static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
3806 int result;
3807 PyObject *exc_type;
3808#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030C00A6
3809 PyObject *current_exception = tstate->current_exception;
3810 if (unlikely(!current_exception)__builtin_expect(!!(!current_exception), 0)) return 0;
3811 exc_type = (PyObject*) Py_TYPE(current_exception)Py_TYPE(((PyObject*)((current_exception))));
3812 if (exc_type == err) return 1;
3813#else
3814 exc_type = tstate->curexc_type;
3815 if (exc_type == err) return 1;
3816 if (unlikely(!exc_type)__builtin_expect(!!(!exc_type), 0)) return 0;
3817#endif
3818 #if CYTHON_AVOID_BORROWED_REFS0
3819 Py_INCREF(exc_type)Py_INCREF(((PyObject*)((exc_type))));
3820 #endif
3821 if (unlikely(PyTuple_Check(err))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((err
)))), (1UL << 26))), 0)
) {
3822 result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
3823 } else {
3824 result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
3825 }
3826 #if CYTHON_AVOID_BORROWED_REFS0
3827 Py_DECREF(exc_type)Py_DECREF(((PyObject*)((exc_type))));
3828 #endif
3829 return result;
3830}
3831#endif
3832
3833/* PyErrFetchRestore */
3834#if CYTHON_FAST_THREAD_STATE1
3835static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
3836#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030C00A6
3837 PyObject *tmp_value;
3838 assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)))((void) sizeof ((type == ((void*)0) || (value != ((void*)0) &&
type == (PyObject*) Py_TYPE(((PyObject*)((value)))))) ? 1 : 0
), __extension__ ({ if (type == ((void*)0) || (value != ((void
*)0) && type == (PyObject*) Py_TYPE(((PyObject*)((value
)))))) ; else __assert_fail ("type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value))"
, "nastranOP2Reader.c", 3838, __extension__ __PRETTY_FUNCTION__
); }))
;
3839 if (value) {
3840 #if CYTHON_COMPILING_IN_CPYTHON1
3841 if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb)__builtin_expect(!!(((PyBaseExceptionObject*) value)->traceback
!= tb), 0)
)
3842 #endif
3843 PyException_SetTraceback(value, tb);
3844 }
3845 tmp_value = tstate->current_exception;
3846 tstate->current_exception = value;
3847 Py_XDECREF(tmp_value)Py_XDECREF(((PyObject*)((tmp_value))));
3848 Py_XDECREF(type)Py_XDECREF(((PyObject*)((type))));
3849 Py_XDECREF(tb)Py_XDECREF(((PyObject*)((tb))));
3850#else
3851 PyObject *tmp_type, *tmp_value, *tmp_tb;
3852 tmp_type = tstate->curexc_type;
3853 tmp_value = tstate->curexc_value;
3854 tmp_tb = tstate->curexc_traceback;
3855 tstate->curexc_type = type;
3856 tstate->curexc_value = value;
3857 tstate->curexc_traceback = tb;
3858 Py_XDECREF(tmp_type)Py_XDECREF(((PyObject*)((tmp_type))));
3859 Py_XDECREF(tmp_value)Py_XDECREF(((PyObject*)((tmp_value))));
3860 Py_XDECREF(tmp_tb)Py_XDECREF(((PyObject*)((tmp_tb))));
3861#endif
3862}
3863static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
3864#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030C00A6
3865 PyObject* exc_value;
3866 exc_value = tstate->current_exception;
3867 tstate->current_exception = 0;
3868 *value = exc_value;
3869 *type = NULL((void*)0);
3870 *tb = NULL((void*)0);
3871 if (exc_value) {
3872 *type = (PyObject*) Py_TYPE(exc_value)Py_TYPE(((PyObject*)((exc_value))));
3873 Py_INCREF(*type)Py_INCREF(((PyObject*)((*type))));
3874 #if CYTHON_COMPILING_IN_CPYTHON1
3875 *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
3876 Py_XINCREF(*tb)Py_XINCREF(((PyObject*)((*tb))));
3877 #else
3878 *tb = PyException_GetTraceback(exc_value);
3879 #endif
3880 }
3881#else
3882 *type = tstate->curexc_type;
3883 *value = tstate->curexc_value;
3884 *tb = tstate->curexc_traceback;
3885 tstate->curexc_type = 0;
3886 tstate->curexc_value = 0;
3887 tstate->curexc_traceback = 0;
3888#endif
3889}
3890#endif
3891
3892/* PyObjectGetAttrStr */
3893#if CYTHON_USE_TYPE_SLOTS1
3894static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
3895 PyTypeObject* tp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))));
3896 if (likely(tp->tp_getattro)__builtin_expect(!!(tp->tp_getattro), 1))
3897 return tp->tp_getattro(obj, attr_name);
3898#if PY_MAJOR_VERSION3 < 3
3899 if (likely(tp->tp_getattr)__builtin_expect(!!(tp->tp_getattr), 1))
3900 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
3901#endif
3902 return PyObject_GetAttr(obj, attr_name);
3903}
3904#endif
3905
3906/* PyObjectGetAttrStrNoError */
3907#if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030d00A1
3908static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
3909 __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate;
3910 __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet();
3911 if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError))__builtin_expect(!!(__Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate
, PyExc_AttributeError)), 1)
)
3912 __Pyx_PyErr_Clear()__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0),
((void*)0))
;
3913}
3914#endif
3915static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
3916 PyObject *result;
3917#if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030d00A1
3918 (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
3919 return result;
3920#else
3921#if CYTHON_COMPILING_IN_CPYTHON1 && CYTHON_USE_TYPE_SLOTS1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030700B1
3922 PyTypeObject* tp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))));
3923 if (likely(tp->tp_getattro == PyObject_GenericGetAttr)__builtin_expect(!!(tp->tp_getattro == PyObject_GenericGetAttr
), 1)
) {
3924 return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL((void*)0), 1);
3925 }
3926#endif
3927 result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
3928 if (unlikely(!result)__builtin_expect(!!(!result), 0)) {
3929 __Pyx_PyObject_GetAttrStr_ClearAttributeError();
3930 }
3931 return result;
3932#endif
3933}
3934
3935/* GetBuiltinName */
3936static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
3937 PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_b__pyx_mstate_global->__pyx_b, name);
3938 if (unlikely(!result)__builtin_expect(!!(!result), 0) && !PyErr_Occurred()) {
3939 PyErr_Format(PyExc_NameError,
3940#if PY_MAJOR_VERSION3 >= 3
3941 "name '%U' is not defined", name);
3942#else
3943 "name '%.200s' is not defined", PyString_AS_STRING(name));
3944#endif
3945 }
3946 return result;
3947}
3948
3949/* TupleAndListFromArray */
3950#if CYTHON_COMPILING_IN_CPYTHON1
3951static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT__restrict__ src, PyObject** CYTHON_RESTRICT__restrict__ dest, Py_ssize_t length) {
3952 PyObject *v;
3953 Py_ssize_t i;
3954 for (i = 0; i < length; i++) {
3955 v = dest[i] = src[i];
3956 Py_INCREF(v)Py_INCREF(((PyObject*)((v))));
3957 }
3958}
3959static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *
3960__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
3961{
3962 PyObject *res;
3963 if (n <= 0) {
3964 Py_INCREF(__pyx_empty_tuple)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_empty_tuple
))))
;
3965 return __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple;
3966 }
3967 res = PyTuple_New(n);
3968 if (unlikely(res == NULL)__builtin_expect(!!(res == ((void*)0)), 0)) return NULL((void*)0);
3969 __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
3970 return res;
3971}
3972static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *
3973__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
3974{
3975 PyObject *res;
3976 if (n <= 0) {
3977 return PyList_New(0);
3978 }
3979 res = PyList_New(n);
3980 if (unlikely(res == NULL)__builtin_expect(!!(res == ((void*)0)), 0)) return NULL((void*)0);
3981 __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
3982 return res;
3983}
3984#endif
3985
3986/* BytesEquals */
3987static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
3988#if CYTHON_COMPILING_IN_PYPY0 || CYTHON_COMPILING_IN_LIMITED_API0
3989 return PyObject_RichCompareBool(s1, s2, equals);
3990#else
3991 if (s1 == s2) {
3992 return (equals == Py_EQ2);
3993 } else if (PyBytes_CheckExact(s1)Py_IS_TYPE(((PyObject*)((s1))), &PyBytes_Type) & PyBytes_CheckExact(s2)Py_IS_TYPE(((PyObject*)((s2))), &PyBytes_Type)) {
3994 const char *ps1, *ps2;
3995 Py_ssize_t length = PyBytes_GET_SIZE(s1)PyBytes_GET_SIZE(((PyObject*)((s1))));
3996 if (length != PyBytes_GET_SIZE(s2)PyBytes_GET_SIZE(((PyObject*)((s2)))))
3997 return (equals == Py_NE3);
3998 ps1 = PyBytes_AS_STRING(s1)PyBytes_AS_STRING(((PyObject*)((s1))));
3999 ps2 = PyBytes_AS_STRING(s2)PyBytes_AS_STRING(((PyObject*)((s2))));
4000 if (ps1[0] != ps2[0]) {
4001 return (equals == Py_NE3);
4002 } else if (length == 1) {
4003 return (equals == Py_EQ2);
4004 } else {
4005 int result;
4006#if CYTHON_USE_UNICODE_INTERNALS1 && (PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030B0000)
4007 Py_hash_t hash1, hash2;
4008 hash1 = ((PyBytesObject*)s1)->ob_shash;
4009 hash2 = ((PyBytesObject*)s2)->ob_shash;
4010 if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
4011 return (equals == Py_NE3);
4012 }
4013#endif
4014 result = memcmp(ps1, ps2, (size_t)length);
4015 return (equals == Py_EQ2) ? (result == 0) : (result != 0);
4016 }
4017 } else if ((s1 == Py_None(&_Py_NoneStruct)) & PyBytes_CheckExact(s2)Py_IS_TYPE(((PyObject*)((s2))), &PyBytes_Type)) {
4018 return (equals == Py_NE3);
4019 } else if ((s2 == Py_None(&_Py_NoneStruct)) & PyBytes_CheckExact(s1)Py_IS_TYPE(((PyObject*)((s1))), &PyBytes_Type)) {
4020 return (equals == Py_NE3);
4021 } else {
4022 int result;
4023 PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
4024 if (!py_result)
4025 return -1;
4026 result = __Pyx_PyObject_IsTrue(py_result);
4027 Py_DECREF(py_result)Py_DECREF(((PyObject*)((py_result))));
4028 return result;
4029 }
4030#endif
4031}
4032
4033/* UnicodeEquals */
4034static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
4035#if CYTHON_COMPILING_IN_PYPY0 || CYTHON_COMPILING_IN_LIMITED_API0
4036 return PyObject_RichCompareBool(s1, s2, equals);
4037#else
4038#if PY_MAJOR_VERSION3 < 3
4039 PyObject* owned_ref = NULL((void*)0);
4040#endif
4041 int s1_is_unicode, s2_is_unicode;
4042 if (s1 == s2) {
4043 goto return_eq;
4044 }
4045 s1_is_unicode = PyUnicode_CheckExact(s1)Py_IS_TYPE(((PyObject*)((s1))), &PyUnicode_Type);
4046 s2_is_unicode = PyUnicode_CheckExact(s2)Py_IS_TYPE(((PyObject*)((s2))), &PyUnicode_Type);
4047#if PY_MAJOR_VERSION3 < 3
4048 if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)Py_IS_TYPE(((PyObject*)((s2))), &PyUnicode_Type)) {
4049 owned_ref = PyUnicode_FromObject(s2);
4050 if (unlikely(!owned_ref)__builtin_expect(!!(!owned_ref), 0))
4051 return -1;
4052 s2 = owned_ref;
4053 s2_is_unicode = 1;
4054 } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)Py_IS_TYPE(((PyObject*)((s1))), &PyUnicode_Type)) {
4055 owned_ref = PyUnicode_FromObject(s1);
4056 if (unlikely(!owned_ref)__builtin_expect(!!(!owned_ref), 0))
4057 return -1;
4058 s1 = owned_ref;
4059 s1_is_unicode = 1;
4060 } else if (((!s2_is_unicode) & (!s1_is_unicode))) {
4061 return __Pyx_PyBytes_Equals(s1, s2, equals);
4062 }
4063#endif
4064 if (s1_is_unicode & s2_is_unicode) {
4065 Py_ssize_t length;
4066 int kind;
4067 void *data1, *data2;
4068 if (unlikely(__Pyx_PyUnicode_READY(s1) < 0)__builtin_expect(!!((__builtin_expect(!!(PyUnicode_IS_READY((
(PyObject*)((s1))))), 1) ? 0 : _PyUnicode_Ready((PyObject *)(
s1))) < 0), 0)
|| unlikely(__Pyx_PyUnicode_READY(s2) < 0)__builtin_expect(!!((__builtin_expect(!!(PyUnicode_IS_READY((
(PyObject*)((s2))))), 1) ? 0 : _PyUnicode_Ready((PyObject *)(
s2))) < 0), 0)
)
4069 return -1;
4070 length = __Pyx_PyUnicode_GET_LENGTH(s1)PyUnicode_GET_LENGTH(((PyObject*)((s1))));
4071 if (length != __Pyx_PyUnicode_GET_LENGTH(s2)PyUnicode_GET_LENGTH(((PyObject*)((s2))))) {
4072 goto return_ne;
4073 }
4074#if CYTHON_USE_UNICODE_INTERNALS1
4075 {
4076 Py_hash_t hash1, hash2;
4077 #if CYTHON_PEP393_ENABLED1
4078 hash1 = ((PyASCIIObject*)s1)->hash;
4079 hash2 = ((PyASCIIObject*)s2)->hash;
4080 #else
4081 hash1 = ((PyUnicodeObject*)s1)->hash;
4082 hash2 = ((PyUnicodeObject*)s2)->hash;
4083 #endif
4084 if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
4085 goto return_ne;
4086 }
4087 }
4088#endif
4089 kind = __Pyx_PyUnicode_KIND(s1)((int)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((s1))
))) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject
*)((s1))))) ; else __assert_fail ("PyUnicode_IS_READY(s1)", "nastranOP2Reader.c"
, 4089, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof
((PyType_HasFeature(Py_TYPE(((PyObject*)((s1)))), (1UL <<
28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE
(((PyObject*)((s1)))), (1UL << 28))) ; else __assert_fail
("PyUnicode_Check(s1)", "nastranOP2Reader.c", 4089, __extension__
__PRETTY_FUNCTION__); })), ((PyASCIIObject*)((s1))))->state
.kind))
;
4090 if (kind != __Pyx_PyUnicode_KIND(s2)((int)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((s2))
))) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject
*)((s2))))) ; else __assert_fail ("PyUnicode_IS_READY(s2)", "nastranOP2Reader.c"
, 4090, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof
((PyType_HasFeature(Py_TYPE(((PyObject*)((s2)))), (1UL <<
28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE
(((PyObject*)((s2)))), (1UL << 28))) ; else __assert_fail
("PyUnicode_Check(s2)", "nastranOP2Reader.c", 4090, __extension__
__PRETTY_FUNCTION__); })), ((PyASCIIObject*)((s2))))->state
.kind))
) {
4091 goto return_ne;
4092 }
4093 data1 = __Pyx_PyUnicode_DATA(s1)PyUnicode_DATA(((PyObject*)((s1))));
4094 data2 = __Pyx_PyUnicode_DATA(s2)PyUnicode_DATA(((PyObject*)((s2))));
4095 if (__Pyx_PyUnicode_READ(kind, data1, 0)PyUnicode_READ(((int)(kind)), ((const void*)(data1)), (0)) != __Pyx_PyUnicode_READ(kind, data2, 0)PyUnicode_READ(((int)(kind)), ((const void*)(data2)), (0))) {
4096 goto return_ne;
4097 } else if (length == 1) {
4098 goto return_eq;
4099 } else {
4100 int result = memcmp(data1, data2, (size_t)(length * kind));
4101 #if PY_MAJOR_VERSION3 < 3
4102 Py_XDECREF(owned_ref)Py_XDECREF(((PyObject*)((owned_ref))));
4103 #endif
4104 return (equals == Py_EQ2) ? (result == 0) : (result != 0);
4105 }
4106 } else if ((s1 == Py_None(&_Py_NoneStruct)) & s2_is_unicode) {
4107 goto return_ne;
4108 } else if ((s2 == Py_None(&_Py_NoneStruct)) & s1_is_unicode) {
4109 goto return_ne;
4110 } else {
4111 int result;
4112 PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
4113 #if PY_MAJOR_VERSION3 < 3
4114 Py_XDECREF(owned_ref)Py_XDECREF(((PyObject*)((owned_ref))));
4115 #endif
4116 if (!py_result)
4117 return -1;
4118 result = __Pyx_PyObject_IsTrue(py_result);
4119 Py_DECREF(py_result)Py_DECREF(((PyObject*)((py_result))));
4120 return result;
4121 }
4122return_eq:
4123 #if PY_MAJOR_VERSION3 < 3
4124 Py_XDECREF(owned_ref)Py_XDECREF(((PyObject*)((owned_ref))));
4125 #endif
4126 return (equals == Py_EQ2);
4127return_ne:
4128 #if PY_MAJOR_VERSION3 < 3
4129 Py_XDECREF(owned_ref)Py_XDECREF(((PyObject*)((owned_ref))));
4130 #endif
4131 return (equals == Py_NE3);
4132#endif
4133}
4134
4135/* fastcall */
4136#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
4137static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
4138{
4139 Py_ssize_t i, n = PyTuple_GET_SIZE(kwnames)PyTuple_GET_SIZE(((PyObject*)((kwnames))));
4140 for (i = 0; i < n; i++)
4141 {
4142 if (s == PyTuple_GET_ITEM(kwnames, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kwnames
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((kwnames)))), (1UL << 26))) ; else
__assert_fail ("PyTuple_Check(kwnames)", "nastranOP2Reader.c"
, 4142, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject
*)((kwnames))))->ob_item[i])
) return kwvalues[i];
4143 }
4144 for (i = 0; i < n; i++)
4145 {
4146 int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kwnames
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((kwnames)))), (1UL << 26))) ; else
__assert_fail ("PyTuple_Check(kwnames)", "nastranOP2Reader.c"
, 4146, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject
*)((kwnames))))->ob_item[i])
, Py_EQ2);
4147 if (unlikely(eq != 0)__builtin_expect(!!(eq != 0), 0)) {
4148 if (unlikely(eq < 0)__builtin_expect(!!(eq < 0), 0)) return NULL((void*)0); // error
4149 return kwvalues[i];
4150 }
4151 }
4152 return NULL((void*)0); // not found (no exception set)
4153}
4154#if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030d0000
4155static CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues)_PyStack_AsDict(PyObject *const *kwvalues, PyObject *kwnames) {
4156 Py_ssize_t i, nkwargs = PyTuple_GET_SIZE(kwnames)PyTuple_GET_SIZE(((PyObject*)((kwnames))));
4157 PyObject *dict;
4158 dict = PyDict_New();
4159 if (unlikely(!dict)__builtin_expect(!!(!dict), 0))
4160 return NULL((void*)0);
4161 for (i=0; i<nkwargs; i++) {
4162 PyObject *key = PyTuple_GET_ITEM(kwnames, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kwnames
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((kwnames)))), (1UL << 26))) ; else
__assert_fail ("PyTuple_Check(kwnames)", "nastranOP2Reader.c"
, 4162, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject
*)((kwnames))))->ob_item[i])
;
4163 if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0)__builtin_expect(!!(PyDict_SetItem(dict, key, kwvalues[i]) <
0), 0)
)
4164 goto bad;
4165 }
4166 return dict;
4167bad:
4168 Py_DECREF(dict)Py_DECREF(((PyObject*)((dict))));
4169 return NULL((void*)0);
4170}
4171#endif
4172#endif
4173
4174/* RaiseDoubleKeywords */
4175static void __Pyx_RaiseDoubleKeywordsError(
4176 const char* func_name,
4177 PyObject* kw_name)
4178{
4179 PyErr_Format(PyExc_TypeError,
4180 #if PY_MAJOR_VERSION3 >= 3
4181 "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
4182 #else
4183 "%s() got multiple values for keyword argument '%s'", func_name,
4184 PyString_AsString(kw_name));
4185 #endif
4186}
4187
4188/* ParseKeywords */
4189static int __Pyx_ParseOptionalKeywords(
4190 PyObject *kwds,
4191 PyObject *const *kwvalues,
4192 PyObject **argnames[],
4193 PyObject *kwds2,
4194 PyObject *values[],
4195 Py_ssize_t num_pos_args,
4196 const char* function_name)
4197{
4198 PyObject *key = 0, *value = 0;
4199 Py_ssize_t pos = 0;
4200 PyObject*** name;
4201 PyObject*** first_kw_arg = argnames + num_pos_args;
4202 int kwds_is_tuple = CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
&& likely(PyTuple_Check(kwds))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((kwds
)))), (1UL << 26))), 1)
;
4203 while (1) {
4204 Py_XDECREF(key)Py_XDECREF(((PyObject*)((key)))); key = NULL((void*)0);
4205 Py_XDECREF(value)Py_XDECREF(((PyObject*)((value)))); value = NULL((void*)0);
4206 if (kwds_is_tuple) {
4207 Py_ssize_t size;
4208#if CYTHON_ASSUME_SAFE_MACROS1
4209 size = PyTuple_GET_SIZE(kwds)PyTuple_GET_SIZE(((PyObject*)((kwds))));
4210#else
4211 size = PyTuple_Size(kwds);
4212 if (size < 0) goto bad;
4213#endif
4214 if (pos >= size) break;
4215#if CYTHON_AVOID_BORROWED_REFS0
4216 key = __Pyx_PySequence_ITEM(kwds, pos)( Py_TYPE(((PyObject*)((kwds))))->tp_as_sequence->sq_item
(kwds, pos) )
;
4217 if (!key) goto bad;
4218#elif CYTHON_ASSUME_SAFE_MACROS1
4219 key = PyTuple_GET_ITEM(kwds, pos)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kwds
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((kwds)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(kwds)", "nastranOP2Reader.c", 4219, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((kwds))))->ob_item
[pos])
;
4220#else
4221 key = PyTuple_GetItem(kwds, pos);
4222 if (!key) goto bad;
4223#endif
4224 value = kwvalues[pos];
4225 pos++;
4226 }
4227 else
4228 {
4229 if (!PyDict_Next(kwds, &pos, &key, &value)) break;
4230#if CYTHON_AVOID_BORROWED_REFS0
4231 Py_INCREF(key)Py_INCREF(((PyObject*)((key))));
4232#endif
4233 }
4234 name = first_kw_arg;
4235 while (*name && (**name != key)) name++;
4236 if (*name) {
4237 values[name-argnames] = value;
4238#if CYTHON_AVOID_BORROWED_REFS0
4239 Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); // transfer ownership of value to values
4240 Py_DECREF(key)Py_DECREF(((PyObject*)((key))));
4241#endif
4242 key = NULL((void*)0);
4243 value = NULL((void*)0);
4244 continue;
4245 }
4246#if !CYTHON_AVOID_BORROWED_REFS0
4247 Py_INCREF(key)Py_INCREF(((PyObject*)((key))));
4248#endif
4249 Py_INCREF(value)Py_INCREF(((PyObject*)((value))));
4250 name = first_kw_arg;
4251 #if PY_MAJOR_VERSION3 < 3
4252 if (likely(PyString_Check(key))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((key
)))), (1UL << 28))), 1)
) {
4253 while (*name) {
4254 if ((CYTHON_COMPILING_IN_PYPY0 || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
4255 && _PyString_Eq(**name, key)) {
4256 values[name-argnames] = value;
4257#if CYTHON_AVOID_BORROWED_REFS0
4258 value = NULL((void*)0); // ownership transferred to values
4259#endif
4260 break;
4261 }
4262 name++;
4263 }
4264 if (*name) continue;
4265 else {
4266 PyObject*** argname = argnames;
4267 while (argname != first_kw_arg) {
4268 if ((**argname == key) || (
4269 (CYTHON_COMPILING_IN_PYPY0 || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
4270 && _PyString_Eq(**argname, key))) {
4271 goto arg_passed_twice;
4272 }
4273 argname++;
4274 }
4275 }
4276 } else
4277 #endif
4278 if (likely(PyUnicode_Check(key))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((key
)))), (1UL << 28))), 1)
) {
4279 while (*name) {
4280 int cmp = (
4281 #if !CYTHON_COMPILING_IN_PYPY0 && PY_MAJOR_VERSION3 >= 3
4282 (__Pyx_PyUnicode_GET_LENGTH(**name)PyUnicode_GET_LENGTH(((PyObject*)((**name)))) != __Pyx_PyUnicode_GET_LENGTH(key)PyUnicode_GET_LENGTH(((PyObject*)((key))))) ? 1 :
4283 #endif
4284 PyUnicode_Compare(**name, key)
4285 );
4286 if (cmp < 0 && unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) goto bad;
4287 if (cmp == 0) {
4288 values[name-argnames] = value;
4289#if CYTHON_AVOID_BORROWED_REFS0
4290 value = NULL((void*)0); // ownership transferred to values
4291#endif
4292 break;
4293 }
4294 name++;
4295 }
4296 if (*name) continue;
4297 else {
4298 PyObject*** argname = argnames;
4299 while (argname != first_kw_arg) {
4300 int cmp = (**argname == key) ? 0 :
4301 #if !CYTHON_COMPILING_IN_PYPY0 && PY_MAJOR_VERSION3 >= 3
4302 (__Pyx_PyUnicode_GET_LENGTH(**argname)PyUnicode_GET_LENGTH(((PyObject*)((**argname)))) != __Pyx_PyUnicode_GET_LENGTH(key)PyUnicode_GET_LENGTH(((PyObject*)((key))))) ? 1 :
4303 #endif
4304 PyUnicode_Compare(**argname, key);
4305 if (cmp < 0 && unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) goto bad;
4306 if (cmp == 0) goto arg_passed_twice;
4307 argname++;
4308 }
4309 }
4310 } else
4311 goto invalid_keyword_type;
4312 if (kwds2) {
4313 if (unlikely(PyDict_SetItem(kwds2, key, value))__builtin_expect(!!(PyDict_SetItem(kwds2, key, value)), 0)) goto bad;
4314 } else {
4315 goto invalid_keyword;
4316 }
4317 }
4318 Py_XDECREF(key)Py_XDECREF(((PyObject*)((key))));
4319 Py_XDECREF(value)Py_XDECREF(((PyObject*)((value))));
4320 return 0;
4321arg_passed_twice:
4322 __Pyx_RaiseDoubleKeywordsError(function_name, key);
4323 goto bad;
4324invalid_keyword_type:
4325 PyErr_Format(PyExc_TypeError,
4326 "%.200s() keywords must be strings", function_name);
4327 goto bad;
4328invalid_keyword:
4329 #if PY_MAJOR_VERSION3 < 3
4330 PyErr_Format(PyExc_TypeError,
4331 "%.200s() got an unexpected keyword argument '%.200s'",
4332 function_name, PyString_AsString(key));
4333 #else
4334 PyErr_Format(PyExc_TypeError,
4335 "%s() got an unexpected keyword argument '%U'",
4336 function_name, key);
4337 #endif
4338bad:
4339 Py_XDECREF(key)Py_XDECREF(((PyObject*)((key))));
4340 Py_XDECREF(value)Py_XDECREF(((PyObject*)((value))));
4341 return -1;
4342}
4343
4344/* RaiseArgTupleInvalid */
4345static void __Pyx_RaiseArgtupleInvalid(
4346 const char* func_name,
4347 int exact,
4348 Py_ssize_t num_min,
4349 Py_ssize_t num_max,
4350 Py_ssize_t num_found)
4351{
4352 Py_ssize_t num_expected;
4353 const char *more_or_less;
4354 if (num_found < num_min) {
4355 num_expected = num_min;
4356 more_or_less = "at least";
4357 } else {
4358 num_expected = num_max;
4359 more_or_less = "at most";
4360 }
4361 if (exact) {
4362 more_or_less = "exactly";
4363 }
4364 PyErr_Format(PyExc_TypeError,
4365 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T"z" "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T"z" "d given)",
4366 func_name, more_or_less, num_expected,
4367 (num_expected == 1) ? "" : "s", num_found);
4368}
4369
4370/* PyFunctionFastCall */
4371#if CYTHON_FAST_PYCALL1 && !CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030800B1)
4372static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
4373 PyObject *globals) {
4374 PyFrameObject *f;
4375 PyThreadState *tstate = __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet();
4376 PyObject **fastlocals;
4377 Py_ssize_t i;
4378 PyObject *result;
4379 assert(globals != NULL)((void) sizeof ((globals != ((void*)0)) ? 1 : 0), __extension__
({ if (globals != ((void*)0)) ; else __assert_fail ("globals != NULL"
, "nastranOP2Reader.c", 4379, __extension__ __PRETTY_FUNCTION__
); }))
;
4380 /* XXX Perhaps we should create a specialized
4381 PyFrame_New() that doesn't take locals, but does
4382 take builtins without sanity checking them.
4383 */
4384 assert(tstate != NULL)((void) sizeof ((tstate != ((void*)0)) ? 1 : 0), __extension__
({ if (tstate != ((void*)0)) ; else __assert_fail ("tstate != NULL"
, "nastranOP2Reader.c", 4384, __extension__ __PRETTY_FUNCTION__
); }))
;
4385 f = PyFrame_New(tstate, co, globals, NULL((void*)0));
4386 if (f == NULL((void*)0)) {
4387 return NULL((void*)0);
4388 }
4389 fastlocals = __Pyx_PyFrame_GetLocalsplus(f);
4390 for (i = 0; i < na; i++) {
4391 Py_INCREF(*args)Py_INCREF(((PyObject*)((*args))));
4392 fastlocals[i] = *args++;
4393 }
4394 result = PyEval_EvalFrameEx(f,0);
4395 ++tstate->recursion_depth;
4396 Py_DECREF(f)Py_DECREF(((PyObject*)((f))));
4397 --tstate->recursion_depth;
4398 return result;
4399}
4400static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
4401 PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func)(((PyFunctionObject *)func) -> func_code);
4402 PyObject *globals = PyFunction_GET_GLOBALS(func)(((PyFunctionObject *)func) -> func_globals);
4403 PyObject *argdefs = PyFunction_GET_DEFAULTS(func)(((PyFunctionObject *)func) -> func_defaults);
4404 PyObject *closure;
4405#if PY_MAJOR_VERSION3 >= 3
4406 PyObject *kwdefs;
4407#endif
4408 PyObject *kwtuple, **k;
4409 PyObject **d;
4410 Py_ssize_t nd;
4411 Py_ssize_t nk;
4412 PyObject *result;
4413 assert(kwargs == NULL || PyDict_Check(kwargs))((void) sizeof ((kwargs == ((void*)0) || PyType_HasFeature(Py_TYPE
(((PyObject*)((kwargs)))), (1UL << 29))) ? 1 : 0), __extension__
({ if (kwargs == ((void*)0) || PyType_HasFeature(Py_TYPE(((PyObject
*)((kwargs)))), (1UL << 29))) ; else __assert_fail ("kwargs == NULL || PyDict_Check(kwargs)"
, "nastranOP2Reader.c", 4413, __extension__ __PRETTY_FUNCTION__
); }))
;
4414 nk = kwargs ? PyDict_Size(kwargs) : 0;
4415 #if PY_MAJOR_VERSION3 < 3
4416 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall((char*)" while calling a Python object"
)), 0)
) {
4417 return NULL((void*)0);
4418 }
4419 #else
4420 if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall(" while calling a Python object"
)), 0)
) {
4421 return NULL((void*)0);
4422 }
4423 #endif
4424 if (
4425#if PY_MAJOR_VERSION3 >= 3
4426 co->co_kwonlyargcount == 0 &&
4427#endif
4428 likely(kwargs == NULL || nk == 0)__builtin_expect(!!(kwargs == ((void*)0) || nk == 0), 1) &&
4429 co->co_flags == (CO_OPTIMIZED0x0001 | CO_NEWLOCALS0x0002 | CO_NOFREE)) {
4430 if (argdefs == NULL((void*)0) && co->co_argcount == nargs) {
4431 result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
4432 goto done;
4433 }
4434 else if (nargs == 0 && argdefs != NULL((void*)0)
4435 && co->co_argcount == Py_SIZE(argdefs)Py_SIZE(((PyObject*)((argdefs))))) {
4436 /* function called with no arguments, but all parameters have
4437 a default value: use default values as arguments .*/
4438 args = &PyTuple_GET_ITEM(argdefs, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((argdefs
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((argdefs)))), (1UL << 26))) ; else
__assert_fail ("PyTuple_Check(argdefs)", "nastranOP2Reader.c"
, 4438, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject
*)((argdefs))))->ob_item[0])
;
4439 result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs)Py_SIZE(((PyObject*)((argdefs)))), globals);
4440 goto done;
4441 }
4442 }
4443 if (kwargs != NULL((void*)0)) {
4444 Py_ssize_t pos, i;
4445 kwtuple = PyTuple_New(2 * nk);
4446 if (kwtuple == NULL((void*)0)) {
4447 result = NULL((void*)0);
4448 goto done;
4449 }
4450 k = &PyTuple_GET_ITEM(kwtuple, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kwtuple
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((kwtuple)))), (1UL << 26))) ; else
__assert_fail ("PyTuple_Check(kwtuple)", "nastranOP2Reader.c"
, 4450, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject
*)((kwtuple))))->ob_item[0])
;
4451 pos = i = 0;
4452 while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
4453 Py_INCREF(k[i])Py_INCREF(((PyObject*)((k[i]))));
4454 Py_INCREF(k[i+1])Py_INCREF(((PyObject*)((k[i+1]))));
4455 i += 2;
4456 }
4457 nk = i / 2;
4458 }
4459 else {
4460 kwtuple = NULL((void*)0);
4461 k = NULL((void*)0);
4462 }
4463 closure = PyFunction_GET_CLOSURE(func)(((PyFunctionObject *)func) -> func_closure);
4464#if PY_MAJOR_VERSION3 >= 3
4465 kwdefs = PyFunction_GET_KW_DEFAULTS(func)(((PyFunctionObject *)func) -> func_kwdefaults);
4466#endif
4467 if (argdefs != NULL((void*)0)) {
4468 d = &PyTuple_GET_ITEM(argdefs, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((argdefs
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((argdefs)))), (1UL << 26))) ; else
__assert_fail ("PyTuple_Check(argdefs)", "nastranOP2Reader.c"
, 4468, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject
*)((argdefs))))->ob_item[0])
;
4469 nd = Py_SIZE(argdefs)Py_SIZE(((PyObject*)((argdefs))));
4470 }
4471 else {
4472 d = NULL((void*)0);
4473 nd = 0;
4474 }
4475#if PY_MAJOR_VERSION3 >= 3
4476 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL((void*)0),
4477 args, (int)nargs,
4478 k, (int)nk,
4479 d, (int)nd, kwdefs, closure);
4480#else
4481 result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL((void*)0),
4482 args, (int)nargs,
4483 k, (int)nk,
4484 d, (int)nd, closure);
4485#endif
4486 Py_XDECREF(kwtuple)Py_XDECREF(((PyObject*)((kwtuple))));
4487done:
4488 Py_LeaveRecursiveCall();
4489 return result;
4490}
4491#endif
4492
4493/* PyObjectCall */
4494#if CYTHON_COMPILING_IN_CPYTHON1
4495static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
4496 PyObject *result;
4497 ternaryfunc call = Py_TYPE(func)Py_TYPE(((PyObject*)((func))))->tp_call;
4498 if (unlikely(!call)__builtin_expect(!!(!call), 0))
4499 return PyObject_Call(func, arg, kw);
4500 #if PY_MAJOR_VERSION3 < 3
4501 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall((char*)" while calling a Python object"
)), 0)
)
4502 return NULL((void*)0);
4503 #else
4504 if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall(" while calling a Python object"
)), 0)
)
4505 return NULL((void*)0);
4506 #endif
4507 result = (*call)(func, arg, kw);
4508 Py_LeaveRecursiveCall();
4509 if (unlikely(!result)__builtin_expect(!!(!result), 0) && unlikely(!PyErr_Occurred())__builtin_expect(!!(!PyErr_Occurred()), 0)) {
4510 PyErr_SetString(
4511 PyExc_SystemError,
4512 "NULL result without error in PyObject_Call");
4513 }
4514 return result;
4515}
4516#endif
4517
4518/* PyObjectCallMethO */
4519#if CYTHON_COMPILING_IN_CPYTHON1
4520static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
4521 PyObject *self, *result;
4522 PyCFunction cfunc;
4523 cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func)(((PyCFunctionObject*)(func))->m_ml->ml_meth);
4524 self = __Pyx_CyOrPyCFunction_GET_SELF(func);
4525 #if PY_MAJOR_VERSION3 < 3
4526 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall((char*)" while calling a Python object"
)), 0)
)
4527 return NULL((void*)0);
4528 #else
4529 if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall(" while calling a Python object"
)), 0)
)
4530 return NULL((void*)0);
4531 #endif
4532 result = cfunc(self, arg);
4533 Py_LeaveRecursiveCall();
4534 if (unlikely(!result)__builtin_expect(!!(!result), 0) && unlikely(!PyErr_Occurred())__builtin_expect(!!(!PyErr_Occurred()), 0)) {
4535 PyErr_SetString(
4536 PyExc_SystemError,
4537 "NULL result without error in PyObject_Call");
4538 }
4539 return result;
4540}
4541#endif
4542
4543/* PyObjectFastCall */
4544#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API0
4545static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs) {
4546 PyObject *argstuple;
4547 PyObject *result = 0;
4548 size_t i;
4549 argstuple = PyTuple_New((Py_ssize_t)nargs);
4550 if (unlikely(!argstuple)__builtin_expect(!!(!argstuple), 0)) return NULL((void*)0);
4551 for (i = 0; i < nargs; i++) {
4552 Py_INCREF(args[i])Py_INCREF(((PyObject*)((args[i]))));
4553 if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i])(PyTuple_SET_ITEM(((PyObject*)((argstuple))), (Py_ssize_t)i, (
(PyObject*)((args[i])))), (0))
< 0) goto bad;
4554 }
4555 result = __Pyx_PyObject_Call(func, argstuple, kwargs);
4556 bad:
4557 Py_DECREF(argstuple)Py_DECREF(((PyObject*)((argstuple))));
4558 return result;
4559}
4560#endif
4561static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t _nargs, PyObject *kwargs) {
4562 Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs)PyVectorcall_NARGS((size_t)(_nargs));
4563#if CYTHON_COMPILING_IN_CPYTHON1
4564 if (nargs == 0 && kwargs == NULL((void*)0)) {
4565 if (__Pyx_CyOrPyCFunction_Check(func)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((func)))), (PyTypeObject
*)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject
*)&PyCFunction_Type)
&& likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS)__builtin_expect(!!((((PyCFunctionObject*)(func))->m_ml->
ml_flags) & 0x0004), 1)
)
4566 return __Pyx_PyObject_CallMethO(func, NULL((void*)0));
4567 }
4568 else if (nargs == 1 && kwargs == NULL((void*)0)) {
4569 if (__Pyx_CyOrPyCFunction_Check(func)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((func)))), (PyTypeObject
*)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject
*)&PyCFunction_Type)
&& likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O)__builtin_expect(!!((((PyCFunctionObject*)(func))->m_ml->
ml_flags) & 0x0008), 1)
)
4570 return __Pyx_PyObject_CallMethO(func, args[0]);
4571 }
4572#endif
4573 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030800B1
4574 #if CYTHON_FAST_PYCCALL(1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1)
4575 if (PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type
)
) {
4576 if (kwargs) {
4577 return _PyCFunction_FastCallDict(func, args, nargs, kwargs);
4578 } else {
4579 return _PyCFunction_FastCallKeywords(func, args, nargs, NULL((void*)0));
4580 }
4581 }
4582 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030700A1
4583 if (!kwargs && __Pyx_IS_TYPE(func, &PyMethodDescr_Type)Py_IS_TYPE(((PyObject*)((func))), &PyMethodDescr_Type)) {
4584 return _PyMethodDescr_FastCallKeywords(func, args, nargs, NULL((void*)0));
4585 }
4586 #endif
4587 #endif
4588 #if CYTHON_FAST_PYCALL1
4589 if (PyFunction_Check(func)Py_IS_TYPE(((PyObject*)((func))), &PyFunction_Type)) {
4590 return __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs);
4591 }
4592 #endif
4593 #endif
4594 if (kwargs == NULL((void*)0)) {
4595 #if CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 <<
8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) &&
((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030800B1)
4596 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03090000
4597 vectorcallfunc f = _PyVectorcall_FunctionPyVectorcall_Function(func);
4598 #else
4599 vectorcallfunc f = PyVectorcall_Function(func);
4600 #endif
4601 if (f) {
4602 return f(func, args, (size_t)nargs, NULL((void*)0));
4603 }
4604 #elif defined(__Pyx_CyFunction_USED) && CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
4605 if (__Pyx_CyFunction_CheckExact(func)Py_IS_TYPE(((PyObject*)((func))), __pyx_mstate_global->__pyx_CyFunctionType
)
) {
4606 __pyx_vectorcallfuncvectorcallfunc f = __Pyx_CyFunction_func_vectorcall(func)(((PyCFunctionObject*)func)->vectorcall);
4607 if (f) return f(func, args, (size_t)nargs, NULL((void*)0));
4608 }
4609 #endif
4610 }
4611 if (nargs == 0) {
4612 return __Pyx_PyObject_Call(func, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, kwargs);
4613 }
4614 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API0
4615 return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs);
4616 #else
4617 return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
4618 #endif
4619}
4620
4621/* PyDictVersioning */
4622#if CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
&& CYTHON_USE_TYPE_SLOTS1
4623static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PY_UINT64_Tuint64_t __Pyx_get_tp_dict_version(PyObject *obj) {
4624 PyObject *dict = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_dict;
4625 return likely(dict)__builtin_expect(!!(dict), 1) ? __PYX_GET_DICT_VERSION(dict)(((PyDictObject*)(dict))->ma_version_tag) : 0;
4626}
4627static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PY_UINT64_Tuint64_t __Pyx_get_object_dict_version(PyObject *obj) {
4628 PyObject **dictptr = NULL((void*)0);
4629 Py_ssize_t offset = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_dictoffset;
4630 if (offset) {
4631#if CYTHON_COMPILING_IN_CPYTHON1
4632 dictptr = (likely(offset > 0)__builtin_expect(!!(offset > 0), 1)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
4633#else
4634 dictptr = _PyObject_GetDictPtr(obj);
4635#endif
4636 }
4637 return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr)(((PyDictObject*)(*dictptr))->ma_version_tag) : 0;
4638}
4639static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_Tuint64_t tp_dict_version, PY_UINT64_Tuint64_t obj_dict_version) {
4640 PyObject *dict = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_dict;
4641 if (unlikely(!dict)__builtin_expect(!!(!dict), 0) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))__builtin_expect(!!(tp_dict_version != (((PyDictObject*)(dict
))->ma_version_tag)), 0)
)
4642 return 0;
4643 return obj_dict_version == __Pyx_get_object_dict_version(obj);
4644}
4645#endif
4646
4647/* GetModuleGlobalName */
4648#if CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030C00A5)
4649static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_Tuint64_t *dict_version, PyObject **dict_cached_value)
4650#else
4651static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
4652#endif
4653{
4654 PyObject *result;
4655#if !CYTHON_AVOID_BORROWED_REFS0
4656#if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030500A1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030d0000
4657 result = _PyDict_GetItem_KnownHash(__pyx_d__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash);
4658 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)(*dict_version) = (((PyDictObject*)(__pyx_mstate_global->__pyx_d
))->ma_version_tag); (*dict_cached_value) = (result);
4659 if (likely(result)__builtin_expect(!!(result), 1)) {
4660 return __Pyx_NewRef(result)(Py_INCREF(((PyObject*)((result)))), result);
4661 } else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) {
4662 return NULL((void*)0);
4663 }
4664#elif CYTHON_COMPILING_IN_LIMITED_API0
4665 if (unlikely(!__pyx_m)__builtin_expect(!!(!__pyx_m), 0)) {
4666 return NULL((void*)0);
4667 }
4668 result = PyObject_GetAttr(__pyx_m, name);
4669 if (likely(result)__builtin_expect(!!(result), 1)) {
4670 return result;
4671 }
4672#else
4673 result = PyDict_GetItem(__pyx_d__pyx_mstate_global->__pyx_d, name);
4674 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)(*dict_version) = (((PyDictObject*)(__pyx_mstate_global->__pyx_d
))->ma_version_tag); (*dict_cached_value) = (result);
4675 if (likely(result)__builtin_expect(!!(result), 1)) {
4676 return __Pyx_NewRef(result)(Py_INCREF(((PyObject*)((result)))), result);
4677 }
4678#endif
4679#else
4680 result = PyObject_GetItem(__pyx_d__pyx_mstate_global->__pyx_d, name);
4681 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)(*dict_version) = (((PyDictObject*)(__pyx_mstate_global->__pyx_d
))->ma_version_tag); (*dict_cached_value) = (result);
4682 if (likely(result)__builtin_expect(!!(result), 1)) {
4683 return __Pyx_NewRef(result)(Py_INCREF(((PyObject*)((result)))), result);
4684 }
4685 PyErr_Clear();
4686#endif
4687 return __Pyx_GetBuiltinName(name);
4688}
4689
4690/* IterFinish */
4691static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IterFinish(void) {
4692 __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate;
4693 __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet();
4694 PyObject* exc_type = __Pyx_PyErr_CurrentExceptionType()(__pyx_tstate->curexc_type);
4695 if (unlikely(exc_type)__builtin_expect(!!(exc_type), 0)) {
4696 if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(!__Pyx_PyErr_GivenExceptionMatches(exc_type
, PyExc_StopIteration)), 0)
)
4697 return -1;
4698 __Pyx_PyErr_Clear()__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0),
((void*)0))
;
4699 return 0;
4700 }
4701 return 0;
4702}
4703
4704/* PyObjectCallNoArg */
4705static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
4706 PyObject *arg[2] = {NULL((void*)0), NULL((void*)0)};
4707 return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)__Pyx_PyObject_FastCallDict(func, arg + 1, (size_t)(0 | (((size_t
)(1)) << (8 * sizeof(size_t) - 1))), ((void*)0))
;
4708}
4709
4710/* PyObjectCallOneArg */
4711static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
4712 PyObject *args[2] = {NULL((void*)0), arg};
4713 return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)__Pyx_PyObject_FastCallDict(func, args+1, (size_t)(1 | (((size_t
)(1)) << (8 * sizeof(size_t) - 1))), ((void*)0))
;
4714}
4715
4716/* PyObjectGetMethod */
4717static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
4718 PyObject *attr;
4719#if CYTHON_UNPACK_METHODS1 && CYTHON_COMPILING_IN_CPYTHON1 && CYTHON_USE_PYTYPE_LOOKUP1
4720 __Pyx_TypeName type_name;
4721 PyTypeObject *tp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))));
4722 PyObject *descr;
4723 descrgetfunc f = NULL((void*)0);
4724 PyObject **dictptr, *dict;
4725 int meth_found = 0;
4726 assert (*method == NULL)((void) sizeof ((*method == ((void*)0)) ? 1 : 0), __extension__
({ if (*method == ((void*)0)) ; else __assert_fail ("*method == NULL"
, "nastranOP2Reader.c", 4726, __extension__ __PRETTY_FUNCTION__
); }))
;
4727 if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)__builtin_expect(!!(tp->tp_getattro != PyObject_GenericGetAttr
), 0)
) {
4728 attr = __Pyx_PyObject_GetAttrStr(obj, name);
4729 goto try_unpack;
4730 }
4731 if (unlikely(tp->tp_dict == NULL)__builtin_expect(!!(tp->tp_dict == ((void*)0)), 0) && unlikely(PyType_Ready(tp) < 0)__builtin_expect(!!(PyType_Ready(tp) < 0), 0)) {
4732 return 0;
4733 }
4734 descr = _PyType_Lookup(tp, name);
4735 if (likely(descr != NULL)__builtin_expect(!!(descr != ((void*)0)), 1)) {
4736 Py_INCREF(descr)Py_INCREF(((PyObject*)((descr))));
4737#if defined(Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17)) && Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17)
4738 if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR)(((((PyTypeObject *)Py_TYPE(((PyObject*)((descr)))))->tp_flags
) & ((1UL << 17))) != 0)
)
4739#elif PY_MAJOR_VERSION3 >= 3
4740 #ifdef __Pyx_CyFunction_USED
4741 if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((descr))), &PyFunction_Type
) || Py_IS_TYPE(((PyObject*)((descr))), &PyMethodDescr_Type
) || __Pyx_IsSubtype(Py_TYPE(((PyObject*)((descr)))), (PyTypeObject
*)__pyx_mstate_global->__pyx_CyFunctionType)), 1)
)
4742 #else
4743 if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((descr))), &PyFunction_Type
) || Py_IS_TYPE(((PyObject*)((descr))), &PyMethodDescr_Type
)), 1)
)
4744 #endif
4745#else
4746 #ifdef __Pyx_CyFunction_USED
4747 if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((descr))), &PyFunction_Type
) || __Pyx_IsSubtype(Py_TYPE(((PyObject*)((descr)))), (PyTypeObject
*)__pyx_mstate_global->__pyx_CyFunctionType)), 1)
)
4748 #else
4749 if (likely(PyFunction_Check(descr))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((descr))), &PyFunction_Type
)), 1)
)
4750 #endif
4751#endif
4752 {
4753 meth_found = 1;
4754 } else {
4755 f = Py_TYPE(descr)Py_TYPE(((PyObject*)((descr))))->tp_descr_get;
4756 if (f != NULL((void*)0) && PyDescr_IsData(descr)) {
4757 attr = f(descr, obj, (PyObject *)Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))));
4758 Py_DECREF(descr)Py_DECREF(((PyObject*)((descr))));
4759 goto try_unpack;
4760 }
4761 }
4762 }
4763 dictptr = _PyObject_GetDictPtr(obj);
4764 if (dictptr != NULL((void*)0) && (dict = *dictptr) != NULL((void*)0)) {
4765 Py_INCREF(dict)Py_INCREF(((PyObject*)((dict))));
4766 attr = __Pyx_PyDict_GetItemStr(dict, name);
4767 if (attr != NULL((void*)0)) {
4768 Py_INCREF(attr)Py_INCREF(((PyObject*)((attr))));
4769 Py_DECREF(dict)Py_DECREF(((PyObject*)((dict))));
4770 Py_XDECREF(descr)Py_XDECREF(((PyObject*)((descr))));
4771 goto try_unpack;
4772 }
4773 Py_DECREF(dict)Py_DECREF(((PyObject*)((dict))));
4774 }
4775 if (meth_found) {
4776 *method = descr;
4777 return 1;
4778 }
4779 if (f != NULL((void*)0)) {
4780 attr = f(descr, obj, (PyObject *)Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))));
4781 Py_DECREF(descr)Py_DECREF(((PyObject*)((descr))));
4782 goto try_unpack;
4783 }
4784 if (likely(descr != NULL)__builtin_expect(!!(descr != ((void*)0)), 1)) {
4785 *method = descr;
4786 return 0;
4787 }
4788 type_name = __Pyx_PyType_GetName(tp)((tp)->tp_name);
4789 PyErr_Format(PyExc_AttributeError,
4790#if PY_MAJOR_VERSION3 >= 3
4791 "'" __Pyx_FMT_TYPENAME"%.200s" "' object has no attribute '%U'",
4792 type_name, name);
4793#else
4794 "'" __Pyx_FMT_TYPENAME"%.200s" "' object has no attribute '%.400s'",
4795 type_name, PyString_AS_STRING(name));
4796#endif
4797 __Pyx_DECREF_TypeName(type_name);
4798 return 0;
4799#else
4800 attr = __Pyx_PyObject_GetAttrStr(obj, name);
4801 goto try_unpack;
4802#endif
4803try_unpack:
4804#if CYTHON_UNPACK_METHODS1
4805 if (likely(attr)__builtin_expect(!!(attr), 1) && PyMethod_Check(attr)Py_IS_TYPE(((PyObject*)((attr))), &PyMethod_Type) && likely(PyMethod_GET_SELF(attr) == obj)__builtin_expect(!!((((PyMethodObject *)attr) -> im_self) ==
obj), 1)
) {
4806 PyObject *function = PyMethod_GET_FUNCTION(attr)(((PyMethodObject *)attr) -> im_func);
4807 Py_INCREF(function)Py_INCREF(((PyObject*)((function))));
4808 Py_DECREF(attr)Py_DECREF(((PyObject*)((attr))));
4809 *method = function;
4810 return 1;
4811 }
4812#endif
4813 *method = attr;
4814 return 0;
4815}
4816
4817/* PyObjectCallMethod0 */
4818static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
4819 PyObject *method = NULL((void*)0), *result = NULL((void*)0);
4820 int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
4821 if (likely(is_method)__builtin_expect(!!(is_method), 1)) {
4822 result = __Pyx_PyObject_CallOneArg(method, obj);
4823 Py_DECREF(method)Py_DECREF(((PyObject*)((method))));
4824 return result;
4825 }
4826 if (unlikely(!method)__builtin_expect(!!(!method), 0)) goto bad;
4827 result = __Pyx_PyObject_CallNoArg(method);
4828 Py_DECREF(method)Py_DECREF(((PyObject*)((method))));
4829bad:
4830 return result;
4831}
4832
4833/* RaiseNeedMoreValuesToUnpack */
4834static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
4835 PyErr_Format(PyExc_ValueError,
4836 "need more than %" CYTHON_FORMAT_SSIZE_T"z" "d value%.1s to unpack",
4837 index, (index == 1) ? "" : "s");
4838}
4839
4840/* RaiseTooManyValuesToUnpack */
4841static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
4842 PyErr_Format(PyExc_ValueError,
4843 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T"z" "d)", expected);
4844}
4845
4846/* UnpackItemEndCheck */
4847static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
4848 if (unlikely(retval)__builtin_expect(!!(retval), 0)) {
4849 Py_DECREF(retval)Py_DECREF(((PyObject*)((retval))));
4850 __Pyx_RaiseTooManyValuesError(expected);
4851 return -1;
4852 }
4853 return __Pyx_IterFinish();
4854}
4855
4856/* RaiseNoneIterError */
4857static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseNoneNotIterableError(void) {
4858 PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
4859}
4860
4861/* UnpackTupleError */
4862static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
4863 if (t == Py_None(&_Py_NoneStruct)) {
4864 __Pyx_RaiseNoneNotIterableError();
4865 } else if (PyTuple_GET_SIZE(t)PyTuple_GET_SIZE(((PyObject*)((t)))) < index) {
4866 __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t)PyTuple_GET_SIZE(((PyObject*)((t)))));
4867 } else {
4868 __Pyx_RaiseTooManyValuesError(index);
4869 }
4870}
4871
4872/* UnpackTuple2 */
4873static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_unpack_tuple2_exact(
4874 PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
4875 PyObject *value1 = NULL((void*)0), *value2 = NULL((void*)0);
4876#if CYTHON_COMPILING_IN_PYPY0
4877 value1 = PySequence_ITEM(tuple, 0)( Py_TYPE(((PyObject*)((tuple))))->tp_as_sequence->sq_item
(tuple, 0) )
; if (unlikely(!value1)__builtin_expect(!!(!value1), 0)) goto bad;
4878 value2 = PySequence_ITEM(tuple, 1)( Py_TYPE(((PyObject*)((tuple))))->tp_as_sequence->sq_item
(tuple, 1) )
; if (unlikely(!value2)__builtin_expect(!!(!value2), 0)) goto bad;
4879#else
4880 value1 = PyTuple_GET_ITEM(tuple, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(tuple)", "nastranOP2Reader.c", 4880, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))->
ob_item[0])
; Py_INCREF(value1)Py_INCREF(((PyObject*)((value1))));
4881 value2 = PyTuple_GET_ITEM(tuple, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(tuple)", "nastranOP2Reader.c", 4881, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))->
ob_item[1])
; Py_INCREF(value2)Py_INCREF(((PyObject*)((value2))));
4882#endif
4883 if (decref_tuple) {
4884 Py_DECREF(tuple)Py_DECREF(((PyObject*)((tuple))));
4885 }
4886 *pvalue1 = value1;
4887 *pvalue2 = value2;
4888 return 0;
4889#if CYTHON_COMPILING_IN_PYPY0
4890bad:
4891 Py_XDECREF(value1)Py_XDECREF(((PyObject*)((value1))));
4892 Py_XDECREF(value2)Py_XDECREF(((PyObject*)((value2))));
4893 if (decref_tuple) { Py_XDECREF(tuple)Py_XDECREF(((PyObject*)((tuple)))); }
4894 return -1;
4895#endif
4896}
4897static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
4898 int has_known_size, int decref_tuple) {
4899 Py_ssize_t index;
4900 PyObject *value1 = NULL((void*)0), *value2 = NULL((void*)0), *iter = NULL((void*)0);
4901 iternextfunc iternext;
4902 iter = PyObject_GetIter(tuple);
4903 if (unlikely(!iter)__builtin_expect(!!(!iter), 0)) goto bad;
4904 if (decref_tuple) { Py_DECREF(tuple)Py_DECREF(((PyObject*)((tuple)))); tuple = NULL((void*)0); }
4905 iternext = __Pyx_PyObject_GetIterNextFunc(iter)(Py_TYPE(((PyObject*)((iter))))->tp_iternext);
4906 value1 = iternext(iter); if (unlikely(!value1)__builtin_expect(!!(!value1), 0)) { index = 0; goto unpacking_failed; }
4907 value2 = iternext(iter); if (unlikely(!value2)__builtin_expect(!!(!value2), 0)) { index = 1; goto unpacking_failed; }
4908 if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))__builtin_expect(!!(__Pyx_IternextUnpackEndCheck(iternext(iter
), 2)), 0)
) goto bad;
4909 Py_DECREF(iter)Py_DECREF(((PyObject*)((iter))));
4910 *pvalue1 = value1;
4911 *pvalue2 = value2;
4912 return 0;
4913unpacking_failed:
4914 if (!has_known_size && __Pyx_IterFinish() == 0)
4915 __Pyx_RaiseNeedMoreValuesError(index);
4916bad:
4917 Py_XDECREF(iter)Py_XDECREF(((PyObject*)((iter))));
4918 Py_XDECREF(value1)Py_XDECREF(((PyObject*)((value1))));
4919 Py_XDECREF(value2)Py_XDECREF(((PyObject*)((value2))));
4920 if (decref_tuple) { Py_XDECREF(tuple)Py_XDECREF(((PyObject*)((tuple)))); }
4921 return -1;
4922}
4923
4924/* dict_iter */
4925#if CYTHON_COMPILING_IN_PYPY0 && PY_MAJOR_VERSION3 >= 3
4926#include <string.h>
4927#endif
4928static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
4929 Py_ssize_t* p_orig_length, int* p_source_is_dict) {
4930 is_dict = is_dict || likely(PyDict_CheckExact(iterable))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((iterable))), &
PyDict_Type)), 1)
;
4931 *p_source_is_dict = is_dict;
4932 if (is_dict) {
4933#if !CYTHON_COMPILING_IN_PYPY0
4934 *p_orig_length = PyDict_Size(iterable);
4935 Py_INCREF(iterable)Py_INCREF(((PyObject*)((iterable))));
4936 return iterable;
4937#elif PY_MAJOR_VERSION3 >= 3
4938 static PyObject *py_items = NULL((void*)0), *py_keys = NULL((void*)0), *py_values = NULL((void*)0);
4939 PyObject **pp = NULL((void*)0);
4940 if (method_name) {
4941 const char *name = PyUnicode_AsUTF8(method_name);
4942 if (strcmp(name, "iteritems") == 0) pp = &py_items;
4943 else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
4944 else if (strcmp(name, "itervalues") == 0) pp = &py_values;
4945 if (pp) {
4946 if (!*pp) {
4947 *pp = PyUnicode_FromString(name + 4);
4948 if (!*pp)
4949 return NULL((void*)0);
4950 }
4951 method_name = *pp;
4952 }
4953 }
4954#endif
4955 }
4956 *p_orig_length = 0;
4957 if (method_name) {
4958 PyObject* iter;
4959 iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
4960 if (!iterable)
4961 return NULL((void*)0);
4962#if !CYTHON_COMPILING_IN_PYPY0
4963 if (PyTuple_CheckExact(iterable)Py_IS_TYPE(((PyObject*)((iterable))), &PyTuple_Type) || PyList_CheckExact(iterable)Py_IS_TYPE(((PyObject*)((iterable))), &PyList_Type))
4964 return iterable;
4965#endif
4966 iter = PyObject_GetIter(iterable);
4967 Py_DECREF(iterable)Py_DECREF(((PyObject*)((iterable))));
4968 return iter;
4969 }
4970 return PyObject_GetIter(iterable);
4971}
4972static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_dict_iter_next(
4973 PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
4974 PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
4975 PyObject* next_item;
4976#if !CYTHON_COMPILING_IN_PYPY0
4977 if (source_is_dict) {
4978 PyObject *key, *value;
4979 if (unlikely(orig_length != PyDict_Size(iter_obj))__builtin_expect(!!(orig_length != PyDict_Size(iter_obj)), 0)) {
4980 PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
4981 return -1;
4982 }
4983 if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))__builtin_expect(!!(!PyDict_Next(iter_obj, ppos, &key, &
value)), 0)
) {
4984 return 0;
4985 }
4986 if (pitem) {
4987 PyObject* tuple = PyTuple_New(2);
4988 if (unlikely(!tuple)__builtin_expect(!!(!tuple), 0)) {
4989 return -1;
4990 }
4991 Py_INCREF(key)Py_INCREF(((PyObject*)((key))));
4992 Py_INCREF(value)Py_INCREF(((PyObject*)((value))));
4993 PyTuple_SET_ITEM(tuple, 0, key)PyTuple_SET_ITEM(((PyObject*)((tuple))), 0, ((PyObject*)((key
))))
;
4994 PyTuple_SET_ITEM(tuple, 1, value)PyTuple_SET_ITEM(((PyObject*)((tuple))), 1, ((PyObject*)((value
))))
;
4995 *pitem = tuple;
4996 } else {
4997 if (pkey) {
4998 Py_INCREF(key)Py_INCREF(((PyObject*)((key))));
4999 *pkey = key;
5000 }
5001 if (pvalue) {
5002 Py_INCREF(value)Py_INCREF(((PyObject*)((value))));
5003 *pvalue = value;
5004 }
5005 }
5006 return 1;
5007 } else if (PyTuple_CheckExact(iter_obj)Py_IS_TYPE(((PyObject*)((iter_obj))), &PyTuple_Type)) {
5008 Py_ssize_t pos = *ppos;
5009 if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))__builtin_expect(!!(pos >= PyTuple_GET_SIZE(((PyObject*)((
iter_obj))))), 0)
) return 0;
5010 *ppos = pos + 1;
5011 next_item = PyTuple_GET_ITEM(iter_obj, pos)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((iter_obj
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((iter_obj)))), (1UL << 26))) ; else
__assert_fail ("PyTuple_Check(iter_obj)", "nastranOP2Reader.c"
, 5011, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject
*)((iter_obj))))->ob_item[pos])
;
5012 Py_INCREF(next_item)Py_INCREF(((PyObject*)((next_item))));
5013 } else if (PyList_CheckExact(iter_obj)Py_IS_TYPE(((PyObject*)((iter_obj))), &PyList_Type)) {
5014 Py_ssize_t pos = *ppos;
5015 if (unlikely(pos >= PyList_GET_SIZE(iter_obj))__builtin_expect(!!(pos >= PyList_GET_SIZE(((PyObject*)((iter_obj
))))), 0)
) return 0;
5016 *ppos = pos + 1;
5017 next_item = PyList_GET_ITEM(iter_obj, pos)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((iter_obj
)))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((iter_obj)))), (1UL << 25))) ; else
__assert_fail ("PyList_Check(iter_obj)", "nastranOP2Reader.c"
, 5017, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject
*)((iter_obj))))->ob_item[pos])
;
5018 Py_INCREF(next_item)Py_INCREF(((PyObject*)((next_item))));
5019 } else
5020#endif
5021 {
5022 next_item = PyIter_Next(iter_obj);
5023 if (unlikely(!next_item)__builtin_expect(!!(!next_item), 0)) {
5024 return __Pyx_IterFinish();
5025 }
5026 }
5027 if (pitem) {
5028 *pitem = next_item;
5029 } else if (pkey && pvalue) {
5030 if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1)(__builtin_expect(!!(source_is_dict || PyType_HasFeature(Py_TYPE
(((PyObject*)((next_item)))), (1UL << 26))), 1) ? (__builtin_expect
(!!(source_is_dict || PyTuple_GET_SIZE(((PyObject*)((next_item
)))) == 2), 1) ? __Pyx_unpack_tuple2_exact(next_item, pkey, pvalue
, 1) : (__Pyx_UnpackTupleError(next_item, 2), -1)) : __Pyx_unpack_tuple2_generic
(next_item, pkey, pvalue, source_is_dict, 1))
)
5031 return -1;
5032 } else if (pkey) {
5033 *pkey = next_item;
5034 } else {
5035 *pvalue = next_item;
5036 }
5037 return 1;
5038}
5039
5040/* GetItemInt */
5041static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
5042 PyObject *r;
5043 if (unlikely(!j)__builtin_expect(!!(!j), 0)) return NULL((void*)0);
5044 r = PyObject_GetItem(o, j);
5045 Py_DECREF(j)Py_DECREF(((PyObject*)((j))));
5046 return r;
5047}
5048static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
5049 CYTHON_NCP_UNUSED int wraparound,
5050 CYTHON_NCP_UNUSED int boundscheck) {
5051#if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0
5052 Py_ssize_t wrapped_i = i;
5053 if (wraparound & unlikely(i < 0)__builtin_expect(!!(i < 0), 0)) {
5054 wrapped_i += PyList_GET_SIZE(o)PyList_GET_SIZE(((PyObject*)((o))));
5055 }
5056 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))__builtin_expect(!!(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE
(((PyObject*)((o)))))), 1)
) {
5057 PyObject *r = PyList_GET_ITEM(o, wrapped_i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((o)
))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((o)))), (1UL << 25))) ; else __assert_fail
("PyList_Check(o)", "nastranOP2Reader.c", 5057, __extension__
__PRETTY_FUNCTION__); })), ((PyListObject*)((o))))->ob_item
[wrapped_i])
;
5058 Py_INCREF(r)Py_INCREF(((PyObject*)((r))));
5059 return r;
5060 }
5061 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_tPyLong_FromSsize_t(i));
5062#else
5063 return PySequence_GetItem(o, i);
5064#endif
5065}
5066static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
5067 CYTHON_NCP_UNUSED int wraparound,
5068 CYTHON_NCP_UNUSED int boundscheck) {
5069#if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0
5070 Py_ssize_t wrapped_i = i;
5071 if (wraparound & unlikely(i < 0)__builtin_expect(!!(i < 0), 0)) {
5072 wrapped_i += PyTuple_GET_SIZE(o)PyTuple_GET_SIZE(((PyObject*)((o))));
5073 }
5074 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))__builtin_expect(!!(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE
(((PyObject*)((o)))))), 1)
) {
5075 PyObject *r = PyTuple_GET_ITEM(o, wrapped_i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((o)
))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((o)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(o)", "nastranOP2Reader.c", 5075, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((o))))->ob_item
[wrapped_i])
;
5076 Py_INCREF(r)Py_INCREF(((PyObject*)((r))));
5077 return r;
5078 }
5079 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_tPyLong_FromSsize_t(i));
5080#else
5081 return PySequence_GetItem(o, i);
5082#endif
5083}
5084static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
5085 CYTHON_NCP_UNUSED int wraparound,
5086 CYTHON_NCP_UNUSED int boundscheck) {
5087#if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 && CYTHON_USE_TYPE_SLOTS1
5088 if (is_list || PyList_CheckExact(o)Py_IS_TYPE(((PyObject*)((o))), &PyList_Type)) {
5089 Py_ssize_t n = ((!wraparound) | likely(i >= 0)__builtin_expect(!!(i >= 0), 1)) ? i : i + PyList_GET_SIZE(o)PyList_GET_SIZE(((PyObject*)((o))));
5090 if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o)))__builtin_expect(!!(__Pyx_is_valid_index(n, PyList_GET_SIZE((
(PyObject*)((o)))))), 1)
)) {
5091 PyObject *r = PyList_GET_ITEM(o, n)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((o)
))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((o)))), (1UL << 25))) ; else __assert_fail
("PyList_Check(o)", "nastranOP2Reader.c", 5091, __extension__
__PRETTY_FUNCTION__); })), ((PyListObject*)((o))))->ob_item
[n])
;
5092 Py_INCREF(r)Py_INCREF(((PyObject*)((r))));
5093 return r;
5094 }
5095 }
5096 else if (PyTuple_CheckExact(o)Py_IS_TYPE(((PyObject*)((o))), &PyTuple_Type)) {
5097 Py_ssize_t n = ((!wraparound) | likely(i >= 0)__builtin_expect(!!(i >= 0), 1)) ? i : i + PyTuple_GET_SIZE(o)PyTuple_GET_SIZE(((PyObject*)((o))));
5098 if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))__builtin_expect(!!(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(
((PyObject*)((o)))))), 1)
) {
5099 PyObject *r = PyTuple_GET_ITEM(o, n)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((o)
))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((o)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(o)", "nastranOP2Reader.c", 5099, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((o))))->ob_item
[n])
;
5100 Py_INCREF(r)Py_INCREF(((PyObject*)((r))));
5101 return r;
5102 }
5103 } else {
5104 PyMappingMethods *mm = Py_TYPE(o)Py_TYPE(((PyObject*)((o))))->tp_as_mapping;
5105 PySequenceMethods *sm = Py_TYPE(o)Py_TYPE(((PyObject*)((o))))->tp_as_sequence;
5106 if (mm && mm->mp_subscript) {
5107 PyObject *r, *key = PyInt_FromSsize_tPyLong_FromSsize_t(i);
5108 if (unlikely(!key)__builtin_expect(!!(!key), 0)) return NULL((void*)0);
5109 r = mm->mp_subscript(o, key);
5110 Py_DECREF(key)Py_DECREF(((PyObject*)((key))));
5111 return r;
5112 }
5113 if (likely(sm && sm->sq_item)__builtin_expect(!!(sm && sm->sq_item), 1)) {
5114 if (wraparound && unlikely(i < 0)__builtin_expect(!!(i < 0), 0) && likely(sm->sq_length)__builtin_expect(!!(sm->sq_length), 1)) {
5115 Py_ssize_t l = sm->sq_length(o);
5116 if (likely(l >= 0)__builtin_expect(!!(l >= 0), 1)) {
5117 i += l;
5118 } else {
5119 if (!PyErr_ExceptionMatches(PyExc_OverflowError))
5120 return NULL((void*)0);
5121 PyErr_Clear();
5122 }
5123 }
5124 return sm->sq_item(o, i);
5125 }
5126 }
5127#else
5128 if (is_list || PySequence_Check(o)) {
5129 return PySequence_GetItem(o, i);
5130 }
5131#endif
5132 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_tPyLong_FromSsize_t(i));
5133}
5134
5135/* ObjectGetItem */
5136#if CYTHON_USE_TYPE_SLOTS1
5137static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject *index) {
5138 PyObject *runerr = NULL((void*)0);
5139 Py_ssize_t key_value;
5140 key_value = __Pyx_PyIndex_AsSsize_t(index);
5141 if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))__builtin_expect(!!(key_value != -1 || !(runerr = PyErr_Occurred
())), 1)
) {
5142 return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
5143 }
5144 if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
5145 __Pyx_TypeName index_type_name = __Pyx_PyType_GetName(Py_TYPE(index))((Py_TYPE(((PyObject*)((index)))))->tp_name);
5146 PyErr_Clear();
5147 PyErr_Format(PyExc_IndexError,
5148 "cannot fit '" __Pyx_FMT_TYPENAME"%.200s" "' into an index-sized integer", index_type_name);
5149 __Pyx_DECREF_TypeName(index_type_name);
5150 }
5151 return NULL((void*)0);
5152}
5153static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) {
5154 __Pyx_TypeName obj_type_name;
5155 if (likely(PyType_Check(obj))__builtin_expect(!!(PyType_Check(((PyObject*)((obj))))), 1)) {
5156 PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(obj, __pyx_n_s_class_getitem__pyx_mstate_global->__pyx_n_s_class_getitem);
5157 if (!meth) {
5158 PyErr_Clear();
5159 } else {
5160 PyObject *result = __Pyx_PyObject_CallOneArg(meth, key);
5161 Py_DECREF(meth)Py_DECREF(((PyObject*)((meth))));
5162 return result;
5163 }
5164 }
5165 obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj))((Py_TYPE(((PyObject*)((obj)))))->tp_name);
5166 PyErr_Format(PyExc_TypeError,
5167 "'" __Pyx_FMT_TYPENAME"%.200s" "' object is not subscriptable", obj_type_name);
5168 __Pyx_DECREF_TypeName(obj_type_name);
5169 return NULL((void*)0);
5170}
5171static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) {
5172 PyTypeObject *tp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))));
5173 PyMappingMethods *mm = tp->tp_as_mapping;
5174 PySequenceMethods *sm = tp->tp_as_sequence;
5175 if (likely(mm && mm->mp_subscript)__builtin_expect(!!(mm && mm->mp_subscript), 1)) {
5176 return mm->mp_subscript(obj, key);
5177 }
5178 if (likely(sm && sm->sq_item)__builtin_expect(!!(sm && sm->sq_item), 1)) {
5179 return __Pyx_PyObject_GetIndex(obj, key);
5180 }
5181 return __Pyx_PyObject_GetItem_Slow(obj, key);
5182}
5183#endif
5184
5185/* PyIntBinop */
5186#if !CYTHON_COMPILING_IN_PYPY0
5187static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
5188 CYTHON_MAYBE_UNUSED_VAR(intval)(void)(intval);
5189 CYTHON_MAYBE_UNUSED_VAR(inplace)(void)(inplace);
5190 CYTHON_UNUSED_VAR(zerodivision_check)(void)(zerodivision_check);
5191 #if PY_MAJOR_VERSION3 < 3
5192 if (likely(PyInt_CheckExact(op1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((op1))), &PyLong_Type
)), 1)
) {
5193 const long b = intval;
5194 long x;
5195 long a = PyInt_AS_LONG(op1)PyLong_AsLong(op1);
5196
5197 x = (long)((unsigned long)a + (unsigned long)b);
5198 if (likely((x^a) >= 0 || (x^b) >= 0)__builtin_expect(!!((x^a) >= 0 || (x^b) >= 0), 1))
5199 return PyInt_FromLongPyLong_FromLong(x);
5200 return PyLong_Type.tp_as_number->nb_add(op1, op2);
5201 }
5202 #endif
5203 #if CYTHON_USE_PYLONG_INTERNALS1
5204 if (likely(PyLong_CheckExact(op1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((op1))), &PyLong_Type
)), 1)
) {
5205 const long b = intval;
5206 long a, x;
5207#ifdef HAVE_LONG_LONG1
5208 const PY_LONG_LONGlong long llb = intval;
5209 PY_LONG_LONGlong long lla, llx;
5210#endif
5211 if (unlikely(__Pyx_PyLong_IsZero(op1))__builtin_expect(!!((Py_SIZE(((PyObject*)((op1)))) == 0)), 0)) {
5212 return __Pyx_NewRef(op2)(Py_INCREF(((PyObject*)((op2)))), op2);
5213 }
5214 if (likely(__Pyx_PyLong_IsCompact(op1))__builtin_expect(!!((Py_SIZE(((PyObject*)((op1)))) == 0 || Py_SIZE
(((PyObject*)((op1)))) == 1 || Py_SIZE(((PyObject*)((op1)))) ==
-1)), 1)
) {
5215 a = __Pyx_PyLong_CompactValue(op1)((Py_SIZE(((PyObject*)((op1)))) == 0) ? (sdigit) 0 : ((Py_SIZE
(((PyObject*)((op1)))) < 0) ? -(sdigit)(((PyLongObject*)op1
)->ob_digit)[0] : (sdigit)(((PyLongObject*)op1)->ob_digit
)[0]))
;
5216 } else {
5217 const digit* digits = __Pyx_PyLong_Digits(op1)(((PyLongObject*)op1)->ob_digit);
5218 const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(op1)Py_SIZE(((PyObject*)((op1))));
5219 switch (size) {
5220 case -2:
5221 if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT30) {
5222 a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0]));
5223 break;
5224 #ifdef HAVE_LONG_LONG1
5225 } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 2 * PyLong_SHIFT30) {
5226 lla = -(PY_LONG_LONGlong long) (((((unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0]));
5227 goto long_long;
5228 #endif
5229 }
5230 CYTHON_FALLTHROUGH__attribute__((fallthrough));
5231 case 2:
5232 if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT30) {
5233 a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0]));
5234 break;
5235 #ifdef HAVE_LONG_LONG1
5236 } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 2 * PyLong_SHIFT30) {
5237 lla = (PY_LONG_LONGlong long) (((((unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0]));
5238 goto long_long;
5239 #endif
5240 }
5241 CYTHON_FALLTHROUGH__attribute__((fallthrough));
5242 case -3:
5243 if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT30) {
5244 a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT30) | (unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0]));
5245 break;
5246 #ifdef HAVE_LONG_LONG1
5247 } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 3 * PyLong_SHIFT30) {
5248 lla = -(PY_LONG_LONGlong long) (((((((unsigned PY_LONG_LONGlong long)digits[2]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0]));
5249 goto long_long;
5250 #endif
5251 }
5252 CYTHON_FALLTHROUGH__attribute__((fallthrough));
5253 case 3:
5254 if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT30) {
5255 a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT30) | (unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0]));
5256 break;
5257 #ifdef HAVE_LONG_LONG1
5258 } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 3 * PyLong_SHIFT30) {
5259 lla = (PY_LONG_LONGlong long) (((((((unsigned PY_LONG_LONGlong long)digits[2]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0]));
5260 goto long_long;
5261 #endif
5262 }
5263 CYTHON_FALLTHROUGH__attribute__((fallthrough));
5264 case -4:
5265 if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT30) {
5266 a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT30) | (unsigned long)digits[2]) << PyLong_SHIFT30) | (unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0]));
5267 break;
5268 #ifdef HAVE_LONG_LONG1
5269 } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 4 * PyLong_SHIFT30) {
5270 lla = -(PY_LONG_LONGlong long) (((((((((unsigned PY_LONG_LONGlong long)digits[3]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[2]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0]));
5271 goto long_long;
5272 #endif
5273 }
5274 CYTHON_FALLTHROUGH__attribute__((fallthrough));
5275 case 4:
5276 if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT30) {
5277 a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT30) | (unsigned long)digits[2]) << PyLong_SHIFT30) | (unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0]));
5278 break;
5279 #ifdef HAVE_LONG_LONG1
5280 } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 4 * PyLong_SHIFT30) {
5281 lla = (PY_LONG_LONGlong long) (((((((((unsigned PY_LONG_LONGlong long)digits[3]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[2]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0]));
5282 goto long_long;
5283 #endif
5284 }
5285 CYTHON_FALLTHROUGH__attribute__((fallthrough));
5286 default: return PyLong_Type.tp_as_number->nb_add(op1, op2);
5287 }
5288 }
5289 x = a + b;
5290 return PyLong_FromLong(x);
5291#ifdef HAVE_LONG_LONG1
5292 long_long:
5293 llx = lla + llb;
5294 return PyLong_FromLongLong(llx);
5295#endif
5296
5297
5298 }
5299 #endif
5300 if (PyFloat_CheckExact(op1)Py_IS_TYPE(((PyObject*)((op1))), &PyFloat_Type)) {
5301 const long b = intval;
5302#if CYTHON_COMPILING_IN_LIMITED_API0
5303 double a = __pyx_PyFloat_AsDouble(op1)(Py_IS_TYPE(((PyObject*)((op1))), &PyFloat_Type) ? (((PyFloatObject
*)(op1))->ob_fval) : PyFloat_AsDouble(op1))
;
5304#else
5305 double a = PyFloat_AS_DOUBLE(op1)(((PyFloatObject *)(op1))->ob_fval);
5306#endif
5307 double result;
5308
5309 PyFPE_START_PROTECT("add", return NULL)
5310 result = ((double)a) + (double)b;
5311 PyFPE_END_PROTECT(result)
5312 return PyFloat_FromDouble(result);
5313 }
5314 return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
5315}
5316#endif
5317
5318/* Import */
5319static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
5320 PyObject *module = 0;
5321 PyObject *empty_dict = 0;
5322 PyObject *empty_list = 0;
5323 #if PY_MAJOR_VERSION3 < 3
5324 PyObject *py_import;
5325 py_import = __Pyx_PyObject_GetAttrStr(__pyx_b__pyx_mstate_global->__pyx_b, __pyx_n_s_import__pyx_mstate_global->__pyx_n_s_import);
5326 if (unlikely(!py_import)__builtin_expect(!!(!py_import), 0))
5327 goto bad;
5328 if (!from_list) {
5329 empty_list = PyList_New(0);
5330 if (unlikely(!empty_list)__builtin_expect(!!(!empty_list), 0))
5331 goto bad;
5332 from_list = empty_list;
5333 }
5334 #endif
5335 empty_dict = PyDict_New();
5336 if (unlikely(!empty_dict)__builtin_expect(!!(!empty_dict), 0))
5337 goto bad;
5338 {
5339 #if PY_MAJOR_VERSION3 >= 3
5340 if (level == -1) {
5341 if (strchr(__Pyx_MODULE_NAME"nastranOP2Reader", '.') != NULL((void*)0)) {
5342 module = PyImport_ImportModuleLevelObject(
5343 name, __pyx_d__pyx_mstate_global->__pyx_d, empty_dict, from_list, 1);
5344 if (unlikely(!module)__builtin_expect(!!(!module), 0)) {
5345 if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError))__builtin_expect(!!(!PyErr_ExceptionMatches(PyExc_ImportError
)), 0)
)
5346 goto bad;
5347 PyErr_Clear();
5348 }
5349 }
5350 level = 0;
5351 }
5352 #endif
5353 if (!module) {
5354 #if PY_MAJOR_VERSION3 < 3
5355 PyObject *py_level = PyInt_FromLongPyLong_FromLong(level);
5356 if (unlikely(!py_level)__builtin_expect(!!(!py_level), 0))
5357 goto bad;
5358 module = PyObject_CallFunctionObjArgs(py_import,
5359 name, __pyx_d__pyx_mstate_global->__pyx_d, empty_dict, from_list, py_level, (PyObject *)NULL((void*)0));
5360 Py_DECREF(py_level)Py_DECREF(((PyObject*)((py_level))));
5361 #else
5362 module = PyImport_ImportModuleLevelObject(
5363 name, __pyx_d__pyx_mstate_global->__pyx_d, empty_dict, from_list, level);
5364 #endif
5365 }
5366 }
5367bad:
5368 Py_XDECREF(empty_dict)Py_XDECREF(((PyObject*)((empty_dict))));
5369 Py_XDECREF(empty_list)Py_XDECREF(((PyObject*)((empty_list))));
5370 #if PY_MAJOR_VERSION3 < 3
5371 Py_XDECREF(py_import)Py_XDECREF(((PyObject*)((py_import))));
5372 #endif
5373 return module;
5374}
5375
5376/* ImportFrom */
5377static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
5378 PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
5379 if (unlikely(!value)__builtin_expect(!!(!value), 0) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
5380 const char* module_name_str = 0;
5381 PyObject* module_name = 0;
5382 PyObject* module_dot = 0;
5383 PyObject* full_name = 0;
5384 PyErr_Clear();
5385 module_name_str = PyModule_GetName(module);
5386 if (unlikely(!module_name_str)__builtin_expect(!!(!module_name_str), 0)) { goto modbad; }
5387 module_name = PyUnicode_FromString(module_name_str);
5388 if (unlikely(!module_name)__builtin_expect(!!(!module_name), 0)) { goto modbad; }
5389 module_dot = PyUnicode_Concat(module_name, __pyx_kp_u___pyx_mstate_global->__pyx_kp_u_);
5390 if (unlikely(!module_dot)__builtin_expect(!!(!module_dot), 0)) { goto modbad; }
5391 full_name = PyUnicode_Concat(module_dot, name);
5392 if (unlikely(!full_name)__builtin_expect(!!(!full_name), 0)) { goto modbad; }
5393 #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030700A1 || (CYTHON_COMPILING_IN_PYPY0 && PYPY_VERSION_NUM < 0x07030400)
5394 {
5395 PyObject *modules = PyImport_GetModuleDict();
5396 if (unlikely(!modules)__builtin_expect(!!(!modules), 0))
5397 goto modbad;
5398 value = PyObject_GetItem(modules, full_name);
5399 }
5400 #else
5401 value = PyImport_GetModule(full_name);
5402 #endif
5403 modbad:
5404 Py_XDECREF(full_name)Py_XDECREF(((PyObject*)((full_name))));
5405 Py_XDECREF(module_dot)Py_XDECREF(((PyObject*)((module_dot))));
5406 Py_XDECREF(module_name)Py_XDECREF(((PyObject*)((module_name))));
5407 }
5408 if (unlikely(!value)__builtin_expect(!!(!value), 0)) {
5409 PyErr_Format(PyExc_ImportError,
5410 #if PY_MAJOR_VERSION3 < 3
5411 "cannot import name %.230s", PyString_AS_STRING(name));
5412 #else
5413 "cannot import name %S", name);
5414 #endif
5415 }
5416 return value;
5417}
5418
5419/* FixUpExtensionType */
5420#if CYTHON_USE_TYPE_SPECS0
5421static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) {
5422#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
> 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API0
5423 CYTHON_UNUSED_VAR(spec)(void)(spec);
5424 CYTHON_UNUSED_VAR(type)(void)(type);
5425#else
5426 const PyType_Slot *slot = spec->slots;
5427 while (slot && slot->slot && slot->slot != Py_tp_members72)
5428 slot++;
5429 if (slot && slot->slot == Py_tp_members72) {
5430 int changed = 0;
5431#if !(PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON1)
5432 const
5433#endif
5434 PyMemberDef *memb = (PyMemberDef*) slot->pfunc;
5435 while (memb && memb->name) {
5436 if (memb->name[0] == '_' && memb->name[1] == '_') {
5437#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030900b1
5438 if (strcmp(memb->name, "__weaklistoffset__") == 0) {
5439 assert(memb->type == T_PYSSIZET)((void) sizeof ((memb->type == 19) ? 1 : 0), __extension__
({ if (memb->type == 19) ; else __assert_fail ("memb->type == T_PYSSIZET"
, "nastranOP2Reader.c", 5439, __extension__ __PRETTY_FUNCTION__
); }))
;
5440 assert(memb->flags == READONLY)((void) sizeof ((memb->flags == 1) ? 1 : 0), __extension__
({ if (memb->flags == 1) ; else __assert_fail ("memb->flags == READONLY"
, "nastranOP2Reader.c", 5440, __extension__ __PRETTY_FUNCTION__
); }))
;
5441 type->tp_weaklistoffset = memb->offset;
5442 changed = 1;
5443 }
5444 else if (strcmp(memb->name, "__dictoffset__") == 0) {
5445 assert(memb->type == T_PYSSIZET)((void) sizeof ((memb->type == 19) ? 1 : 0), __extension__
({ if (memb->type == 19) ; else __assert_fail ("memb->type == T_PYSSIZET"
, "nastranOP2Reader.c", 5445, __extension__ __PRETTY_FUNCTION__
); }))
;
5446 assert(memb->flags == READONLY)((void) sizeof ((memb->flags == 1) ? 1 : 0), __extension__
({ if (memb->flags == 1) ; else __assert_fail ("memb->flags == READONLY"
, "nastranOP2Reader.c", 5446, __extension__ __PRETTY_FUNCTION__
); }))
;
5447 type->tp_dictoffset = memb->offset;
5448 changed = 1;
5449 }
5450#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
5451 else if (strcmp(memb->name, "__vectorcalloffset__") == 0) {
5452 assert(memb->type == T_PYSSIZET)((void) sizeof ((memb->type == 19) ? 1 : 0), __extension__
({ if (memb->type == 19) ; else __assert_fail ("memb->type == T_PYSSIZET"
, "nastranOP2Reader.c", 5452, __extension__ __PRETTY_FUNCTION__
); }))
;
5453 assert(memb->flags == READONLY)((void) sizeof ((memb->flags == 1) ? 1 : 0), __extension__
({ if (memb->flags == 1) ; else __assert_fail ("memb->flags == READONLY"
, "nastranOP2Reader.c", 5453, __extension__ __PRETTY_FUNCTION__
); }))
;
5454#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030800b4
5455 type->tp_vectorcall_offset = memb->offset;
5456#else
5457 type->tp_print = (printfunc) memb->offset;
5458#endif
5459 changed = 1;
5460 }
5461#endif
5462#else
5463 if ((0));
5464#endif
5465#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON1
5466 else if (strcmp(memb->name, "__module__") == 0) {
5467 PyObject *descr;
5468 assert(memb->type == T_OBJECT)((void) sizeof ((memb->type == 6) ? 1 : 0), __extension__ (
{ if (memb->type == 6) ; else __assert_fail ("memb->type == T_OBJECT"
, "nastranOP2Reader.c", 5468, __extension__ __PRETTY_FUNCTION__
); }))
;
5469 assert(memb->flags == 0 || memb->flags == READONLY)((void) sizeof ((memb->flags == 0 || memb->flags == 1) ?
1 : 0), __extension__ ({ if (memb->flags == 0 || memb->
flags == 1) ; else __assert_fail ("memb->flags == 0 || memb->flags == READONLY"
, "nastranOP2Reader.c", 5469, __extension__ __PRETTY_FUNCTION__
); }))
;
5470 descr = PyDescr_NewMember(type, memb);
5471 if (unlikely(!descr)__builtin_expect(!!(!descr), 0))
5472 return -1;
5473 if (unlikely(PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr) < 0)__builtin_expect(!!(PyDict_SetItem(type->tp_dict, (((PyDescrObject
*)(descr))->d_name), descr) < 0), 0)
) {
5474 Py_DECREF(descr)Py_DECREF(((PyObject*)((descr))));
5475 return -1;
5476 }
5477 Py_DECREF(descr)Py_DECREF(((PyObject*)((descr))));
5478 changed = 1;
5479 }
5480#endif
5481 }
5482 memb++;
5483 }
5484 if (changed)
5485 PyType_Modified(type);
5486 }
5487#endif
5488 return 0;
5489}
5490#endif
5491
5492/* FetchSharedCythonModule */
5493static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
5494 return __Pyx_PyImport_AddModuleRef((char*) __PYX_ABI_MODULE_NAME"_cython_" "3_0_5" "");
5495}
5496
5497/* FetchCommonType */
5498static int __Pyx_VerifyCachedType(PyObject *cached_type,
5499 const char *name,
5500 Py_ssize_t basicsize,
5501 Py_ssize_t expected_basicsize) {
5502 if (!PyType_Check(cached_type)PyType_Check(((PyObject*)((cached_type))))) {
5503 PyErr_Format(PyExc_TypeError,
5504 "Shared Cython type %.200s is not a type object", name);
5505 return -1;
5506 }
5507 if (basicsize != expected_basicsize) {
5508 PyErr_Format(PyExc_TypeError,
5509 "Shared Cython type %.200s has the wrong size, try recompiling",
5510 name);
5511 return -1;
5512 }
5513 return 0;
5514}
5515#if !CYTHON_USE_TYPE_SPECS0
5516static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) {
5517 PyObject* abi_module;
5518 const char* object_name;
5519 PyTypeObject *cached_type = NULL((void*)0);
5520 abi_module = __Pyx_FetchSharedCythonABIModule();
5521 if (!abi_module) return NULL((void*)0);
5522 object_name = strrchr(type->tp_name, '.');
5523 object_name = object_name ? object_name+1 : type->tp_name;
5524 cached_type = (PyTypeObject*) PyObject_GetAttrString(abi_module, object_name);
5525 if (cached_type) {
5526 if (__Pyx_VerifyCachedType(
5527 (PyObject *)cached_type,
5528 object_name,
5529 cached_type->tp_basicsize,
5530 type->tp_basicsize) < 0) {
5531 goto bad;
5532 }
5533 goto done;
5534 }
5535 if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
5536 PyErr_Clear();
5537 if (PyType_Ready(type) < 0) goto bad;
5538 if (PyObject_SetAttrString(abi_module, object_name, (PyObject *)type) < 0)
5539 goto bad;
5540 Py_INCREF(type)Py_INCREF(((PyObject*)((type))));
5541 cached_type = type;
5542done:
5543 Py_DECREF(abi_module)Py_DECREF(((PyObject*)((abi_module))));
5544 return cached_type;
5545bad:
5546 Py_XDECREF(cached_type)Py_XDECREF(((PyObject*)((cached_type))));
5547 cached_type = NULL((void*)0);
5548 goto done;
5549}
5550#else
5551static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases) {
5552 PyObject *abi_module, *cached_type = NULL((void*)0);
5553 const char* object_name = strrchr(spec->name, '.');
5554 object_name = object_name ? object_name+1 : spec->name;
5555 abi_module = __Pyx_FetchSharedCythonABIModule();
5556 if (!abi_module) return NULL((void*)0);
5557 cached_type = PyObject_GetAttrString(abi_module, object_name);
5558 if (cached_type) {
5559 Py_ssize_t basicsize;
5560#if CYTHON_COMPILING_IN_LIMITED_API0
5561 PyObject *py_basicsize;
5562 py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
5563 if (unlikely(!py_basicsize)__builtin_expect(!!(!py_basicsize), 0)) goto bad;
5564 basicsize = PyLong_AsSsize_t(py_basicsize);
5565 Py_DECREF(py_basicsize)Py_DECREF(((PyObject*)((py_basicsize))));
5566 py_basicsize = 0;
5567 if (unlikely(basicsize == (Py_ssize_t)-1)__builtin_expect(!!(basicsize == (Py_ssize_t)-1), 0) && PyErr_Occurred()) goto bad;
5568#else
5569 basicsize = likely(PyType_Check(cached_type))__builtin_expect(!!(PyType_Check(((PyObject*)((cached_type)))
)), 1)
? ((PyTypeObject*) cached_type)->tp_basicsize : -1;
5570#endif
5571 if (__Pyx_VerifyCachedType(
5572 cached_type,
5573 object_name,
5574 basicsize,
5575 spec->basicsize) < 0) {
5576 goto bad;
5577 }
5578 goto done;
5579 }
5580 if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
5581 PyErr_Clear();
5582 CYTHON_UNUSED_VAR(module)(void)(module);
5583 cached_type = __Pyx_PyType_FromModuleAndSpec(abi_module, spec, bases)PyType_FromModuleAndSpec(abi_module, spec, bases);
5584 if (unlikely(!cached_type)__builtin_expect(!!(!cached_type), 0)) goto bad;
5585 if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)__builtin_expect(!!(__Pyx_fix_up_extension_type_from_spec(spec
, (PyTypeObject *) cached_type) < 0), 0)
) goto bad;
5586 if (PyObject_SetAttrString(abi_module, object_name, cached_type) < 0) goto bad;
5587done:
5588 Py_DECREF(abi_module)Py_DECREF(((PyObject*)((abi_module))));
5589 assert(cached_type == NULL || PyType_Check(cached_type))((void) sizeof ((cached_type == ((void*)0) || PyType_Check(((
PyObject*)((cached_type))))) ? 1 : 0), __extension__ ({ if (cached_type
== ((void*)0) || PyType_Check(((PyObject*)((cached_type)))))
; else __assert_fail ("cached_type == NULL || PyType_Check(cached_type)"
, "nastranOP2Reader.c", 5589, __extension__ __PRETTY_FUNCTION__
); }))
;
5590 return (PyTypeObject *) cached_type;
5591bad:
5592 Py_XDECREF(cached_type)Py_XDECREF(((PyObject*)((cached_type))));
5593 cached_type = NULL((void*)0);
5594 goto done;
5595}
5596#endif
5597
5598/* PyVectorcallFastCallDict */
5599#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
5600static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfuncvectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
5601{
5602 PyObject *res = NULL((void*)0);
5603 PyObject *kwnames;
5604 PyObject **newargs;
5605 PyObject **kwvalues;
5606 Py_ssize_t i, pos;
5607 size_t j;
5608 PyObject *key, *value;
5609 unsigned long keys_are_strings;
5610 Py_ssize_t nkw = PyDict_GET_SIZE(kw)(((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kw)
))), (1UL << 29))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((kw)))), (1UL << 29))) ; else __assert_fail
("PyDict_Check(kw)", "nastranOP2Reader.c", 5610, __extension__
__PRETTY_FUNCTION__); })),((PyDictObject *)kw)->ma_used)
;
5611 newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0]));
5612 if (unlikely(newargs == NULL)__builtin_expect(!!(newargs == ((void*)0)), 0)) {
5613 PyErr_NoMemory();
5614 return NULL((void*)0);
5615 }
5616 for (j = 0; j < nargs; j++) newargs[j] = args[j];
5617 kwnames = PyTuple_New(nkw);
5618 if (unlikely(kwnames == NULL)__builtin_expect(!!(kwnames == ((void*)0)), 0)) {
5619 PyMem_Free(newargs);
5620 return NULL((void*)0);
5621 }
5622 kwvalues = newargs + nargs;
5623 pos = i = 0;
5624 keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS(1UL << 28);
5625 while (PyDict_Next(kw, &pos, &key, &value)) {
5626 keys_are_strings &= Py_TYPE(key)Py_TYPE(((PyObject*)((key))))->tp_flags;
5627 Py_INCREF(key)Py_INCREF(((PyObject*)((key))));
5628 Py_INCREF(value)Py_INCREF(((PyObject*)((value))));
5629 PyTuple_SET_ITEM(kwnames, i, key)PyTuple_SET_ITEM(((PyObject*)((kwnames))), i, ((PyObject*)((key
))))
;
5630 kwvalues[i] = value;
5631 i++;
5632 }
5633 if (unlikely(!keys_are_strings)__builtin_expect(!!(!keys_are_strings), 0)) {
5634 PyErr_SetString(PyExc_TypeError, "keywords must be strings");
5635 goto cleanup;
5636 }
5637 res = vc(func, newargs, nargs, kwnames);
5638cleanup:
5639 Py_DECREF(kwnames)Py_DECREF(((PyObject*)((kwnames))));
5640 for (i = 0; i < nkw; i++)
5641 Py_DECREF(kwvalues[i])Py_DECREF(((PyObject*)((kwvalues[i]))));
5642 PyMem_Free(newargs);
5643 return res;
5644}
5645static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfuncvectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
5646{
5647 if (likely(kw == NULL)__builtin_expect(!!(kw == ((void*)0)), 1) || PyDict_GET_SIZE(kw)(((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kw)
))), (1UL << 29))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((kw)))), (1UL << 29))) ; else __assert_fail
("PyDict_Check(kw)", "nastranOP2Reader.c", 5647, __extension__
__PRETTY_FUNCTION__); })),((PyDictObject *)kw)->ma_used)
== 0) {
5648 return vc(func, args, nargs, NULL((void*)0));
5649 }
5650 return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
5651}
5652#endif
5653
5654/* CythonFunctionShared */
5655#if CYTHON_COMPILING_IN_LIMITED_API0
5656static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) {
5657 if (__Pyx_CyFunction_Check(func)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((func)))), (PyTypeObject
*)__pyx_mstate_global->__pyx_CyFunctionType)
) {
5658 return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc;
5659 } else if (PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type
)
) {
5660 return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
5661 }
5662 return 0;
5663}
5664#else
5665static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) {
5666 return __Pyx_CyOrPyCFunction_Check(func)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((func)))), (PyTypeObject
*)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject
*)&PyCFunction_Type)
&& __Pyx_CyOrPyCFunction_GET_FUNCTION(func)(((PyCFunctionObject*)(func))->m_ml->ml_meth) == (PyCFunction) cfunc;
5667}
5668#endif
5669static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
5670#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API0
5671 __Pyx_Py_XDECREF_SET(do { PyObject *tmp = (PyObject *) ((PyObject*) ((PyCMethodObject
*) (f))->mm_class); ((PyObject*) ((PyCMethodObject *) (f)
)->mm_class) = ((classobj) ? (Py_INCREF(((PyObject*)((classobj
)))), classobj) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp))
)); } while (0)
5672 __Pyx_CyFunction_GetClassObj(f),do { PyObject *tmp = (PyObject *) ((PyObject*) ((PyCMethodObject
*) (f))->mm_class); ((PyObject*) ((PyCMethodObject *) (f)
)->mm_class) = ((classobj) ? (Py_INCREF(((PyObject*)((classobj
)))), classobj) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp))
)); } while (0)
5673 ((classobj) ? __Pyx_NewRef(classobj) : NULL))do { PyObject *tmp = (PyObject *) ((PyObject*) ((PyCMethodObject
*) (f))->mm_class); ((PyObject*) ((PyCMethodObject *) (f)
)->mm_class) = ((classobj) ? (Py_INCREF(((PyObject*)((classobj
)))), classobj) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp))
)); } while (0)
;
5674#else
5675 __Pyx_Py_XDECREF_SET(do { PyObject *tmp = (PyObject *) ((PyCMethodObject *) (f))->
mm_class; ((PyCMethodObject *) (f))->mm_class = (PyTypeObject
*)((classobj) ? (Py_INCREF(((PyObject*)((classobj)))), classobj
) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp)))); } while (0
)
5676 ((PyCMethodObject *) (f))->mm_class,do { PyObject *tmp = (PyObject *) ((PyCMethodObject *) (f))->
mm_class; ((PyCMethodObject *) (f))->mm_class = (PyTypeObject
*)((classobj) ? (Py_INCREF(((PyObject*)((classobj)))), classobj
) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp)))); } while (0
)
5677 (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL))do { PyObject *tmp = (PyObject *) ((PyCMethodObject *) (f))->
mm_class; ((PyCMethodObject *) (f))->mm_class = (PyTypeObject
*)((classobj) ? (Py_INCREF(((PyObject*)((classobj)))), classobj
) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp)))); } while (0
)
;
5678#endif
5679}
5680static PyObject *
5681__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure)
5682{
5683 CYTHON_UNUSED_VAR(closure)(void)(closure);
5684 if (unlikely(op->func_doc == NULL)__builtin_expect(!!(op->func_doc == ((void*)0)), 0)) {
5685#if CYTHON_COMPILING_IN_LIMITED_API0
5686 op->func_doc = PyObject_GetAttrString(op->func, "__doc__");
5687 if (unlikely(!op->func_doc)__builtin_expect(!!(!op->func_doc), 0)) return NULL((void*)0);
5688#else
5689 if (((PyCFunctionObject*)op)->m_ml->ml_doc) {
5690#if PY_MAJOR_VERSION3 >= 3
5691 op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
5692#else
5693 op->func_doc = PyString_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
5694#endif
5695 if (unlikely(op->func_doc == NULL)__builtin_expect(!!(op->func_doc == ((void*)0)), 0))
5696 return NULL((void*)0);
5697 } else {
5698 Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct)))));
5699 return Py_None(&_Py_NoneStruct);
5700 }
5701#endif
5702 }
5703 Py_INCREF(op->func_doc)Py_INCREF(((PyObject*)((op->func_doc))));
5704 return op->func_doc;
5705}
5706static int
5707__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context)
5708{
5709 CYTHON_UNUSED_VAR(context)(void)(context);
5710 if (value == NULL((void*)0)) {
5711 value = Py_None(&_Py_NoneStruct);
5712 }
5713 Py_INCREF(value)Py_INCREF(((PyObject*)((value))));
5714 __Pyx_Py_XDECREF_SET(op->func_doc, value)do { PyObject *tmp = (PyObject *) op->func_doc; op->func_doc
= value; Py_XDECREF(((PyObject*)((tmp)))); } while (0)
;
5715 return 0;
5716}
5717static PyObject *
5718__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context)
5719{
5720 CYTHON_UNUSED_VAR(context)(void)(context);
5721 if (unlikely(op->func_name == NULL)__builtin_expect(!!(op->func_name == ((void*)0)), 0)) {
5722#if CYTHON_COMPILING_IN_LIMITED_API0
5723 op->func_name = PyObject_GetAttrString(op->func, "__name__");
5724#elif PY_MAJOR_VERSION3 >= 3
5725 op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
5726#else
5727 op->func_name = PyString_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
5728#endif
5729 if (unlikely(op->func_name == NULL)__builtin_expect(!!(op->func_name == ((void*)0)), 0))
5730 return NULL((void*)0);
5731 }
5732 Py_INCREF(op->func_name)Py_INCREF(((PyObject*)((op->func_name))));
5733 return op->func_name;
5734}
5735static int
5736__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context)
5737{
5738 CYTHON_UNUSED_VAR(context)(void)(context);
5739#if PY_MAJOR_VERSION3 >= 3
5740 if (unlikely(value == NULL || !PyUnicode_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature
(Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)
)
5741#else
5742 if (unlikely(value == NULL || !PyString_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature
(Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)
)
5743#endif
5744 {
5745 PyErr_SetString(PyExc_TypeError,
5746 "__name__ must be set to a string object");
5747 return -1;
5748 }
5749 Py_INCREF(value)Py_INCREF(((PyObject*)((value))));
5750 __Pyx_Py_XDECREF_SET(op->func_name, value)do { PyObject *tmp = (PyObject *) op->func_name; op->func_name
= value; Py_XDECREF(((PyObject*)((tmp)))); } while (0)
;
5751 return 0;
5752}
5753static PyObject *
5754__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context)
5755{
5756 CYTHON_UNUSED_VAR(context)(void)(context);
5757 Py_INCREF(op->func_qualname)Py_INCREF(((PyObject*)((op->func_qualname))));
5758 return op->func_qualname;
5759}
5760static int
5761__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context)
5762{
5763 CYTHON_UNUSED_VAR(context)(void)(context);
5764#if PY_MAJOR_VERSION3 >= 3
5765 if (unlikely(value == NULL || !PyUnicode_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature
(Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)
)
5766#else
5767 if (unlikely(value == NULL || !PyString_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature
(Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)
)
5768#endif
5769 {
5770 PyErr_SetString(PyExc_TypeError,
5771 "__qualname__ must be set to a string object");
5772 return -1;
5773 }
5774 Py_INCREF(value)Py_INCREF(((PyObject*)((value))));
5775 __Pyx_Py_XDECREF_SET(op->func_qualname, value)do { PyObject *tmp = (PyObject *) op->func_qualname; op->
func_qualname = value; Py_XDECREF(((PyObject*)((tmp)))); } while
(0)
;
5776 return 0;
5777}
5778static PyObject *
5779__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context)
5780{
5781 CYTHON_UNUSED_VAR(context)(void)(context);
5782 if (unlikely(op->func_dict == NULL)__builtin_expect(!!(op->func_dict == ((void*)0)), 0)) {
5783 op->func_dict = PyDict_New();
5784 if (unlikely(op->func_dict == NULL)__builtin_expect(!!(op->func_dict == ((void*)0)), 0))
5785 return NULL((void*)0);
5786 }
5787 Py_INCREF(op->func_dict)Py_INCREF(((PyObject*)((op->func_dict))));
5788 return op->func_dict;
5789}
5790static int
5791__Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, void *context)
5792{
5793 CYTHON_UNUSED_VAR(context)(void)(context);
5794 if (unlikely(value == NULL)__builtin_expect(!!(value == ((void*)0)), 0)) {
5795 PyErr_SetString(PyExc_TypeError,
5796 "function's dictionary may not be deleted");
5797 return -1;
5798 }
5799 if (unlikely(!PyDict_Check(value))__builtin_expect(!!(!PyType_HasFeature(Py_TYPE(((PyObject*)((
value)))), (1UL << 29))), 0)
) {
5800 PyErr_SetString(PyExc_TypeError,
5801 "setting function's dictionary to a non-dict");
5802 return -1;
5803 }
5804 Py_INCREF(value)Py_INCREF(((PyObject*)((value))));
5805 __Pyx_Py_XDECREF_SET(op->func_dict, value)do { PyObject *tmp = (PyObject *) op->func_dict; op->func_dict
= value; Py_XDECREF(((PyObject*)((tmp)))); } while (0)
;
5806 return 0;
5807}
5808static PyObject *
5809__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context)
5810{
5811 CYTHON_UNUSED_VAR(context)(void)(context);
5812 Py_INCREF(op->func_globals)Py_INCREF(((PyObject*)((op->func_globals))));
5813 return op->func_globals;
5814}
5815static PyObject *
5816__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context)
5817{
5818 CYTHON_UNUSED_VAR(op)(void)(op);
5819 CYTHON_UNUSED_VAR(context)(void)(context);
5820 Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct)))));
5821 return Py_None(&_Py_NoneStruct);
5822}
5823static PyObject *
5824__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context)
5825{
5826 PyObject* result = (op->func_code) ? op->func_code : Py_None(&_Py_NoneStruct);
5827 CYTHON_UNUSED_VAR(context)(void)(context);
5828 Py_INCREF(result)Py_INCREF(((PyObject*)((result))));
5829 return result;
5830}
5831static int
5832__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
5833 int result = 0;
5834 PyObject *res = op->defaults_getter((PyObject *) op);
5835 if (unlikely(!res)__builtin_expect(!!(!res), 0))
5836 return -1;
5837 #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0
5838 op->defaults_tuple = PyTuple_GET_ITEM(res, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((res
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((res)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(res)", "nastranOP2Reader.c", 5838, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((res))))->ob_item
[0])
;
5839 Py_INCREF(op->defaults_tuple)Py_INCREF(((PyObject*)((op->defaults_tuple))));
5840 op->defaults_kwdict = PyTuple_GET_ITEM(res, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((res
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((res)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(res)", "nastranOP2Reader.c", 5840, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((res))))->ob_item
[1])
;
5841 Py_INCREF(op->defaults_kwdict)Py_INCREF(((PyObject*)((op->defaults_kwdict))));
5842 #else
5843 op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0)( Py_TYPE(((PyObject*)((res))))->tp_as_sequence->sq_item
(res, 0) )
;
5844 if (unlikely(!op->defaults_tuple)__builtin_expect(!!(!op->defaults_tuple), 0)) result = -1;
5845 else {
5846 op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1)( Py_TYPE(((PyObject*)((res))))->tp_as_sequence->sq_item
(res, 1) )
;
5847 if (unlikely(!op->defaults_kwdict)__builtin_expect(!!(!op->defaults_kwdict), 0)) result = -1;
5848 }
5849 #endif
5850 Py_DECREF(res)Py_DECREF(((PyObject*)((res))));
5851 return result;
5852}
5853static int
5854__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
5855 CYTHON_UNUSED_VAR(context)(void)(context);
5856 if (!value) {
5857 value = Py_None(&_Py_NoneStruct);
5858 } else if (unlikely(value != Py_None && !PyTuple_Check(value))__builtin_expect(!!(value != (&_Py_NoneStruct) &&
!PyType_HasFeature(Py_TYPE(((PyObject*)((value)))), (1UL <<
26))), 0)
) {
5859 PyErr_SetString(PyExc_TypeError,
5860 "__defaults__ must be set to a tuple object");
5861 return -1;
5862 }
5863 PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not "
5864 "currently affect the values used in function calls", 1);
5865 Py_INCREF(value)Py_INCREF(((PyObject*)((value))));
5866 __Pyx_Py_XDECREF_SET(op->defaults_tuple, value)do { PyObject *tmp = (PyObject *) op->defaults_tuple; op->
defaults_tuple = value; Py_XDECREF(((PyObject*)((tmp)))); } while
(0)
;
5867 return 0;
5868}
5869static PyObject *
5870__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) {
5871 PyObject* result = op->defaults_tuple;
5872 CYTHON_UNUSED_VAR(context)(void)(context);
5873 if (unlikely(!result)__builtin_expect(!!(!result), 0)) {
5874 if (op->defaults_getter) {
5875 if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)__builtin_expect(!!(__Pyx_CyFunction_init_defaults(op) < 0
), 0)
) return NULL((void*)0);
5876 result = op->defaults_tuple;
5877 } else {
5878 result = Py_None(&_Py_NoneStruct);
5879 }
5880 }
5881 Py_INCREF(result)Py_INCREF(((PyObject*)((result))));
5882 return result;
5883}
5884static int
5885__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
5886 CYTHON_UNUSED_VAR(context)(void)(context);
5887 if (!value) {
5888 value = Py_None(&_Py_NoneStruct);
5889 } else if (unlikely(value != Py_None && !PyDict_Check(value))__builtin_expect(!!(value != (&_Py_NoneStruct) &&
!PyType_HasFeature(Py_TYPE(((PyObject*)((value)))), (1UL <<
29))), 0)
) {
5890 PyErr_SetString(PyExc_TypeError,
5891 "__kwdefaults__ must be set to a dict object");
5892 return -1;
5893 }
5894 PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not "
5895 "currently affect the values used in function calls", 1);
5896 Py_INCREF(value)Py_INCREF(((PyObject*)((value))));
5897 __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value)do { PyObject *tmp = (PyObject *) op->defaults_kwdict; op->
defaults_kwdict = value; Py_XDECREF(((PyObject*)((tmp)))); } while
(0)
;
5898 return 0;
5899}
5900static PyObject *
5901__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) {
5902 PyObject* result = op->defaults_kwdict;
5903 CYTHON_UNUSED_VAR(context)(void)(context);
5904 if (unlikely(!result)__builtin_expect(!!(!result), 0)) {
5905 if (op->defaults_getter) {
5906 if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)__builtin_expect(!!(__Pyx_CyFunction_init_defaults(op) < 0
), 0)
) return NULL((void*)0);
5907 result = op->defaults_kwdict;
5908 } else {
5909 result = Py_None(&_Py_NoneStruct);
5910 }
5911 }
5912 Py_INCREF(result)Py_INCREF(((PyObject*)((result))));
5913 return result;
5914}
5915static int
5916__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
5917 CYTHON_UNUSED_VAR(context)(void)(context);
5918 if (!value || value == Py_None(&_Py_NoneStruct)) {
5919 value = NULL((void*)0);
5920 } else if (unlikely(!PyDict_Check(value))__builtin_expect(!!(!PyType_HasFeature(Py_TYPE(((PyObject*)((
value)))), (1UL << 29))), 0)
) {
5921 PyErr_SetString(PyExc_TypeError,
5922 "__annotations__ must be set to a dict object");
5923 return -1;
5924 }
5925 Py_XINCREF(value)Py_XINCREF(((PyObject*)((value))));
5926 __Pyx_Py_XDECREF_SET(op->func_annotations, value)do { PyObject *tmp = (PyObject *) op->func_annotations; op
->func_annotations = value; Py_XDECREF(((PyObject*)((tmp))
)); } while (0)
;
5927 return 0;
5928}
5929static PyObject *
5930__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) {
5931 PyObject* result = op->func_annotations;
5932 CYTHON_UNUSED_VAR(context)(void)(context);
5933 if (unlikely(!result)__builtin_expect(!!(!result), 0)) {
5934 result = PyDict_New();
5935 if (unlikely(!result)__builtin_expect(!!(!result), 0)) return NULL((void*)0);
5936 op->func_annotations = result;
5937 }
5938 Py_INCREF(result)Py_INCREF(((PyObject*)((result))));
5939 return result;
5940}
5941static PyObject *
5942__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) {
5943 int is_coroutine;
5944 CYTHON_UNUSED_VAR(context)(void)(context);
5945 if (op->func_is_coroutine) {
5946 return __Pyx_NewRef(op->func_is_coroutine)(Py_INCREF(((PyObject*)((op->func_is_coroutine)))), op->
func_is_coroutine)
;
5947 }
5948 is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE0x08;
5949#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03050000
5950 if (is_coroutine) {
5951 PyObject *module, *fromlist, *marker = __pyx_n_s_is_coroutine__pyx_mstate_global->__pyx_n_s_is_coroutine;
5952 fromlist = PyList_New(1);
5953 if (unlikely(!fromlist)__builtin_expect(!!(!fromlist), 0)) return NULL((void*)0);
5954 Py_INCREF(marker)Py_INCREF(((PyObject*)((marker))));
5955#if CYTHON_ASSUME_SAFE_MACROS1
5956 PyList_SET_ITEM(fromlist, 0, marker)PyList_SET_ITEM(((PyObject*)((fromlist))), 0, ((PyObject*)((marker
))))
;
5957#else
5958 if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)__builtin_expect(!!(PyList_SetItem(fromlist, 0, marker) < 0
), 0)
) {
5959 Py_DECREF(marker)Py_DECREF(((PyObject*)((marker))));
5960 Py_DECREF(fromlist)Py_DECREF(((PyObject*)((fromlist))));
5961 return NULL((void*)0);
5962 }
5963#endif
5964 module = PyImport_ImportModuleLevelObject(__pyx_n_s_asyncio_coroutines__pyx_mstate_global->__pyx_n_s_asyncio_coroutines, NULL((void*)0), NULL((void*)0), fromlist, 0);
5965 Py_DECREF(fromlist)Py_DECREF(((PyObject*)((fromlist))));
5966 if (unlikely(!module)__builtin_expect(!!(!module), 0)) goto ignore;
5967 op->func_is_coroutine = __Pyx_PyObject_GetAttrStr(module, marker);
5968 Py_DECREF(module)Py_DECREF(((PyObject*)((module))));
5969 if (likely(op->func_is_coroutine)__builtin_expect(!!(op->func_is_coroutine), 1)) {
5970 return __Pyx_NewRef(op->func_is_coroutine)(Py_INCREF(((PyObject*)((op->func_is_coroutine)))), op->
func_is_coroutine)
;
5971 }
5972ignore:
5973 PyErr_Clear();
5974 }
5975#endif
5976 op->func_is_coroutine = __Pyx_PyBool_FromLong(is_coroutine);
5977 return __Pyx_NewRef(op->func_is_coroutine)(Py_INCREF(((PyObject*)((op->func_is_coroutine)))), op->
func_is_coroutine)
;
5978}
5979#if CYTHON_COMPILING_IN_LIMITED_API0
5980static PyObject *
5981__Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) {
5982 CYTHON_UNUSED_VAR(context)(void)(context);
5983 return PyObject_GetAttrString(op->func, "__module__");
5984}
5985static int
5986__Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
5987 CYTHON_UNUSED_VAR(context)(void)(context);
5988 return PyObject_SetAttrString(op->func, "__module__", value);
5989}
5990#endif
5991static PyGetSetDef __pyx_CyFunction_getsets[] = {
5992 {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
5993 {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
5994 {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
5995 {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
5996 {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
5997 {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
5998 {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
5999 {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
6000 {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
6001 {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
6002 {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
6003 {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
6004 {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
6005 {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
6006 {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
6007 {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
6008 {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
6009 {(char *) "_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0},
6010#if CYTHON_COMPILING_IN_LIMITED_API0
6011 {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0},
6012#endif
6013 {0, 0, 0, 0, 0}
6014};
6015static PyMemberDef __pyx_CyFunction_members[] = {
6016#if !CYTHON_COMPILING_IN_LIMITED_API0
6017 {(char *) "__module__", T_OBJECT6, offsetof(PyCFunctionObject, m_module)__builtin_offsetof(PyCFunctionObject, m_module), 0, 0},
6018#endif
6019#if CYTHON_USE_TYPE_SPECS0
6020 {(char *) "__dictoffset__", T_PYSSIZET19, offsetof(__pyx_CyFunctionObject, func_dict)__builtin_offsetof(__pyx_CyFunctionObject, func_dict), READONLY1, 0},
6021#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
6022#if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
6023 {(char *) "__vectorcalloffset__", T_PYSSIZET19, offsetof(__pyx_CyFunctionObject, func_vectorcall)__builtin_offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY1, 0},
6024#else
6025#if !CYTHON_COMPILING_IN_LIMITED_API0
6026 {(char *) "__vectorcalloffset__", T_PYSSIZET19, offsetof(PyCFunctionObject, vectorcall)__builtin_offsetof(PyCFunctionObject, vectorcall), READONLY1, 0},
6027#endif
6028#endif
6029#endif
6030#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API0
6031 {(char *) "__weaklistoffset__", T_PYSSIZET19, offsetof(__pyx_CyFunctionObject, func_weakreflist)__builtin_offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY1, 0},
6032#else
6033 {(char *) "__weaklistoffset__", T_PYSSIZET19, offsetof(PyCFunctionObject, m_weakreflist)__builtin_offsetof(PyCFunctionObject, m_weakreflist), READONLY1, 0},
6034#endif
6035#endif
6036 {0, 0, 0, 0, 0}
6037};
6038static PyObject *
6039__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args)
6040{
6041 CYTHON_UNUSED_VAR(args)(void)(args);
6042#if PY_MAJOR_VERSION3 >= 3
6043 Py_INCREF(m->func_qualname)Py_INCREF(((PyObject*)((m->func_qualname))));
6044 return m->func_qualname;
6045#else
6046 return PyString_FromString(((PyCFunctionObject*)m)->m_ml->ml_name);
6047#endif
6048}
6049static PyMethodDef __pyx_CyFunction_methods[] = {
6050 {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS0x0001, 0},
6051 {0, 0, 0, 0}
6052};
6053#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API0
6054#define __Pyx_CyFunction_weakreflist(cyfunc)(((PyCFunctionObject*)cyfunc)->m_weakreflist) ((cyfunc)->func_weakreflist)
6055#else
6056#define __Pyx_CyFunction_weakreflist(cyfunc)(((PyCFunctionObject*)cyfunc)->m_weakreflist) (((PyCFunctionObject*)cyfunc)->m_weakreflist)
6057#endif
6058static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
6059 PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
6060#if !CYTHON_COMPILING_IN_LIMITED_API0
6061 PyCFunctionObject *cf = (PyCFunctionObject*) op;
6062#endif
6063 if (unlikely(op == NULL)__builtin_expect(!!(op == ((void*)0)), 0))
6064 return NULL((void*)0);
6065#if CYTHON_COMPILING_IN_LIMITED_API0
6066 op->func = PyCFunction_NewEx(ml, (PyObject*)op, module)PyCMethod_New((ml), ((PyObject*)op), (module), ((void*)0));
6067 if (unlikely(!op->func)__builtin_expect(!!(!op->func), 0)) return NULL((void*)0);
6068#endif
6069 op->flags = flags;
6070 __Pyx_CyFunction_weakreflist(op)(((PyCFunctionObject*)op)->m_weakreflist) = NULL((void*)0);
6071#if !CYTHON_COMPILING_IN_LIMITED_API0
6072 cf->m_ml = ml;
6073 cf->m_self = (PyObject *) op;
6074#endif
6075 Py_XINCREF(closure)Py_XINCREF(((PyObject*)((closure))));
6076 op->func_closure = closure;
6077#if !CYTHON_COMPILING_IN_LIMITED_API0
6078 Py_XINCREF(module)Py_XINCREF(((PyObject*)((module))));
6079 cf->m_module = module;
6080#endif
6081 op->func_dict = NULL((void*)0);
6082 op->func_name = NULL((void*)0);
6083 Py_INCREF(qualname)Py_INCREF(((PyObject*)((qualname))));
6084 op->func_qualname = qualname;
6085 op->func_doc = NULL((void*)0);
6086#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API0
6087 op->func_classobj = NULL((void*)0);
6088#else
6089 ((PyCMethodObject*)op)->mm_class = NULL((void*)0);
6090#endif
6091 op->func_globals = globals;
6092 Py_INCREF(op->func_globals)Py_INCREF(((PyObject*)((op->func_globals))));
6093 Py_XINCREF(code)Py_XINCREF(((PyObject*)((code))));
6094 op->func_code = code;
6095 op->defaults_pyobjects = 0;
6096 op->defaults_size = 0;
6097 op->defaults = NULL((void*)0);
6098 op->defaults_tuple = NULL((void*)0);
6099 op->defaults_kwdict = NULL((void*)0);
6100 op->defaults_getter = NULL((void*)0);
6101 op->func_annotations = NULL((void*)0);
6102 op->func_is_coroutine = NULL((void*)0);
6103#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
6104 switch (ml->ml_flags & (METH_VARARGS0x0001 | METH_FASTCALL0x0080 | METH_NOARGS0x0004 | METH_O0x0008 | METH_KEYWORDS0x0002 | METH_METHOD0x0200)) {
6105 case METH_NOARGS0x0004:
6106 __Pyx_CyFunction_func_vectorcall(op)(((PyCFunctionObject*)op)->vectorcall) = __Pyx_CyFunction_Vectorcall_NOARGS;
6107 break;
6108 case METH_O0x0008:
6109 __Pyx_CyFunction_func_vectorcall(op)(((PyCFunctionObject*)op)->vectorcall) = __Pyx_CyFunction_Vectorcall_O;
6110 break;
6111 case METH_METHOD0x0200 | METH_FASTCALL0x0080 | METH_KEYWORDS0x0002:
6112 __Pyx_CyFunction_func_vectorcall(op)(((PyCFunctionObject*)op)->vectorcall) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD;
6113 break;
6114 case METH_FASTCALL0x0080 | METH_KEYWORDS0x0002:
6115 __Pyx_CyFunction_func_vectorcall(op)(((PyCFunctionObject*)op)->vectorcall) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
6116 break;
6117 case METH_VARARGS0x0001 | METH_KEYWORDS0x0002:
6118 __Pyx_CyFunction_func_vectorcall(op)(((PyCFunctionObject*)op)->vectorcall) = NULL((void*)0);
6119 break;
6120 default:
6121 PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
6122 Py_DECREF(op)Py_DECREF(((PyObject*)((op))));
6123 return NULL((void*)0);
6124 }
6125#endif
6126 return (PyObject *) op;
6127}
6128static int
6129__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
6130{
6131 Py_CLEAR(m->func_closure)do { PyObject *_py_tmp = ((PyObject*)((m->func_closure)));
if (_py_tmp != ((void*)0)) { (m->func_closure) = ((void*)
0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0)
;
6132#if CYTHON_COMPILING_IN_LIMITED_API0
6133 Py_CLEAR(m->func)do { PyObject *_py_tmp = ((PyObject*)((m->func))); if (_py_tmp
!= ((void*)0)) { (m->func) = ((void*)0); Py_DECREF(((PyObject
*)((_py_tmp)))); } } while (0)
;
6134#else
6135 Py_CLEAR(((PyCFunctionObject*)m)->m_module)do { PyObject *_py_tmp = ((PyObject*)((((PyCFunctionObject*)m
)->m_module))); if (_py_tmp != ((void*)0)) { (((PyCFunctionObject
*)m)->m_module) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp
)))); } } while (0)
;
6136#endif
6137 Py_CLEAR(m->func_dict)do { PyObject *_py_tmp = ((PyObject*)((m->func_dict))); if
(_py_tmp != ((void*)0)) { (m->func_dict) = ((void*)0); Py_DECREF
(((PyObject*)((_py_tmp)))); } } while (0)
;
6138 Py_CLEAR(m->func_name)do { PyObject *_py_tmp = ((PyObject*)((m->func_name))); if
(_py_tmp != ((void*)0)) { (m->func_name) = ((void*)0); Py_DECREF
(((PyObject*)((_py_tmp)))); } } while (0)
;
6139 Py_CLEAR(m->func_qualname)do { PyObject *_py_tmp = ((PyObject*)((m->func_qualname)))
; if (_py_tmp != ((void*)0)) { (m->func_qualname) = ((void
*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0)
;
6140 Py_CLEAR(m->func_doc)do { PyObject *_py_tmp = ((PyObject*)((m->func_doc))); if (
_py_tmp != ((void*)0)) { (m->func_doc) = ((void*)0); Py_DECREF
(((PyObject*)((_py_tmp)))); } } while (0)
;
6141 Py_CLEAR(m->func_globals)do { PyObject *_py_tmp = ((PyObject*)((m->func_globals)));
if (_py_tmp != ((void*)0)) { (m->func_globals) = ((void*)
0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0)
;
6142 Py_CLEAR(m->func_code)do { PyObject *_py_tmp = ((PyObject*)((m->func_code))); if
(_py_tmp != ((void*)0)) { (m->func_code) = ((void*)0); Py_DECREF
(((PyObject*)((_py_tmp)))); } } while (0)
;
6143#if !CYTHON_COMPILING_IN_LIMITED_API0
6144#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030900B1
6145 Py_CLEAR(__Pyx_CyFunction_GetClassObj(m))do { PyObject *_py_tmp = ((PyObject*)((((PyObject*) ((PyCMethodObject
*) (m))->mm_class)))); if (_py_tmp != ((void*)0)) { (((PyObject
*) ((PyCMethodObject *) (m))->mm_class)) = ((void*)0); Py_DECREF
(((PyObject*)((_py_tmp)))); } } while (0)
;
6146#else
6147 {
6148 PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class;
6149 ((PyCMethodObject *) (m))->mm_class = NULL((void*)0);
6150 Py_XDECREF(cls)Py_XDECREF(((PyObject*)((cls))));
6151 }
6152#endif
6153#endif
6154 Py_CLEAR(m->defaults_tuple)do { PyObject *_py_tmp = ((PyObject*)((m->defaults_tuple))
); if (_py_tmp != ((void*)0)) { (m->defaults_tuple) = ((void
*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0)
;
6155 Py_CLEAR(m->defaults_kwdict)do { PyObject *_py_tmp = ((PyObject*)((m->defaults_kwdict)
)); if (_py_tmp != ((void*)0)) { (m->defaults_kwdict) = ((
void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0)
;
6156 Py_CLEAR(m->func_annotations)do { PyObject *_py_tmp = ((PyObject*)((m->func_annotations
))); if (_py_tmp != ((void*)0)) { (m->func_annotations) = (
(void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0)
;
6157 Py_CLEAR(m->func_is_coroutine)do { PyObject *_py_tmp = ((PyObject*)((m->func_is_coroutine
))); if (_py_tmp != ((void*)0)) { (m->func_is_coroutine) =
((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (
0)
;
6158 if (m->defaults) {
6159 PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m)((PyObject * *)(((__pyx_CyFunctionObject *) (m))->defaults
))
;
6160 int i;
6161 for (i = 0; i < m->defaults_pyobjects; i++)
6162 Py_XDECREF(pydefaults[i])Py_XDECREF(((PyObject*)((pydefaults[i]))));
6163 PyObject_Free(m->defaults);
6164 m->defaults = NULL((void*)0);
6165 }
6166 return 0;
6167}
6168static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
6169{
6170 if (__Pyx_CyFunction_weakreflist(m)(((PyCFunctionObject*)m)->m_weakreflist) != NULL((void*)0))
6171 PyObject_ClearWeakRefs((PyObject *) m);
6172 __Pyx_CyFunction_clear(m);
6173 __Pyx_PyHeapTypeObject_GC_Del(m)PyObject_GC_Del(m);
6174}
6175static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
6176{
6177 PyObject_GC_UnTrack(m);
6178 __Pyx__CyFunction_dealloc(m);
6179}
6180static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
6181{
6182 Py_VISIT(m->func_closure)do { if (m->func_closure) { int vret = visit(((PyObject*)(
(m->func_closure))), arg); if (vret) return vret; } } while
(0)
;
6183#if CYTHON_COMPILING_IN_LIMITED_API0
6184 Py_VISIT(m->func)do { if (m->func) { int vret = visit(((PyObject*)((m->func
))), arg); if (vret) return vret; } } while (0)
;
6185#else
6186 Py_VISIT(((PyCFunctionObject*)m)->m_module)do { if (((PyCFunctionObject*)m)->m_module) { int vret = visit
(((PyObject*)((((PyCFunctionObject*)m)->m_module))), arg);
if (vret) return vret; } } while (0)
;
6187#endif
6188 Py_VISIT(m->func_dict)do { if (m->func_dict) { int vret = visit(((PyObject*)((m->
func_dict))), arg); if (vret) return vret; } } while (0)
;
6189 Py_VISIT(m->func_name)do { if (m->func_name) { int vret = visit(((PyObject*)((m->
func_name))), arg); if (vret) return vret; } } while (0)
;
6190 Py_VISIT(m->func_qualname)do { if (m->func_qualname) { int vret = visit(((PyObject*)
((m->func_qualname))), arg); if (vret) return vret; } } while
(0)
;
6191 Py_VISIT(m->func_doc)do { if (m->func_doc) { int vret = visit(((PyObject*)((m->
func_doc))), arg); if (vret) return vret; } } while (0)
;
6192 Py_VISIT(m->func_globals)do { if (m->func_globals) { int vret = visit(((PyObject*)(
(m->func_globals))), arg); if (vret) return vret; } } while
(0)
;
6193 Py_VISIT(m->func_code)do { if (m->func_code) { int vret = visit(((PyObject*)((m->
func_code))), arg); if (vret) return vret; } } while (0)
;
6194#if !CYTHON_COMPILING_IN_LIMITED_API0
6195 Py_VISIT(__Pyx_CyFunction_GetClassObj(m))do { if (((PyObject*) ((PyCMethodObject *) (m))->mm_class)
) { int vret = visit(((PyObject*)((((PyObject*) ((PyCMethodObject
*) (m))->mm_class)))), arg); if (vret) return vret; } } while
(0)
;
6196#endif
6197 Py_VISIT(m->defaults_tuple)do { if (m->defaults_tuple) { int vret = visit(((PyObject*
)((m->defaults_tuple))), arg); if (vret) return vret; } } while
(0)
;
6198 Py_VISIT(m->defaults_kwdict)do { if (m->defaults_kwdict) { int vret = visit(((PyObject
*)((m->defaults_kwdict))), arg); if (vret) return vret; } }
while (0)
;
6199 Py_VISIT(m->func_is_coroutine)do { if (m->func_is_coroutine) { int vret = visit(((PyObject
*)((m->func_is_coroutine))), arg); if (vret) return vret; }
} while (0)
;
6200 if (m->defaults) {
6201 PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m)((PyObject * *)(((__pyx_CyFunctionObject *) (m))->defaults
))
;
6202 int i;
6203 for (i = 0; i < m->defaults_pyobjects; i++)
6204 Py_VISIT(pydefaults[i])do { if (pydefaults[i]) { int vret = visit(((PyObject*)((pydefaults
[i]))), arg); if (vret) return vret; } } while (0)
;
6205 }
6206 return 0;
6207}
6208static PyObject*
6209__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
6210{
6211#if PY_MAJOR_VERSION3 >= 3
6212 return PyUnicode_FromFormat("<cyfunction %U at %p>",
6213 op->func_qualname, (void *)op);
6214#else
6215 return PyString_FromFormat("<cyfunction %s at %p>",
6216 PyString_AsString(op->func_qualname), (void *)op);
6217#endif
6218}
6219static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
6220#if CYTHON_COMPILING_IN_LIMITED_API0
6221 PyObject *f = ((__pyx_CyFunctionObject*)func)->func;
6222 PyObject *py_name = NULL((void*)0);
6223 PyCFunction meth;
6224 int flags;
6225 meth = PyCFunction_GetFunction(f);
6226 if (unlikely(!meth)__builtin_expect(!!(!meth), 0)) return NULL((void*)0);
6227 flags = PyCFunction_GetFlags(f);
6228 if (unlikely(flags < 0)__builtin_expect(!!(flags < 0), 0)) return NULL((void*)0);
6229#else
6230 PyCFunctionObject* f = (PyCFunctionObject*)func;
6231 PyCFunction meth = f->m_ml->ml_meth;
6232 int flags = f->m_ml->ml_flags;
6233#endif
6234 Py_ssize_t size;
6235 switch (flags & (METH_VARARGS0x0001 | METH_KEYWORDS0x0002 | METH_NOARGS0x0004 | METH_O0x0008)) {
6236 case METH_VARARGS0x0001:
6237 if (likely(kw == NULL || PyDict_Size(kw) == 0)__builtin_expect(!!(kw == ((void*)0) || PyDict_Size(kw) == 0)
, 1)
)
6238 return (*meth)(self, arg);
6239 break;
6240 case METH_VARARGS0x0001 | METH_KEYWORDS0x0002:
6241 return (*(PyCFunctionWithKeywords)(void*)meth)(self, arg, kw);
6242 case METH_NOARGS0x0004:
6243 if (likely(kw == NULL || PyDict_Size(kw) == 0)__builtin_expect(!!(kw == ((void*)0) || PyDict_Size(kw) == 0)
, 1)
) {
6244#if CYTHON_ASSUME_SAFE_MACROS1
6245 size = PyTuple_GET_SIZE(arg)PyTuple_GET_SIZE(((PyObject*)((arg))));
6246#else
6247 size = PyTuple_Size(arg);
6248 if (unlikely(size < 0)__builtin_expect(!!(size < 0), 0)) return NULL((void*)0);
6249#endif
6250 if (likely(size == 0)__builtin_expect(!!(size == 0), 1))
6251 return (*meth)(self, NULL((void*)0));
6252#if CYTHON_COMPILING_IN_LIMITED_API0
6253 py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL((void*)0));
6254 if (!py_name) return NULL((void*)0);
6255 PyErr_Format(PyExc_TypeError,
6256 "%.200S() takes no arguments (%" CYTHON_FORMAT_SSIZE_T"z" "d given)",
6257 py_name, size);
6258 Py_DECREF(py_name)Py_DECREF(((PyObject*)((py_name))));
6259#else
6260 PyErr_Format(PyExc_TypeError,
6261 "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T"z" "d given)",
6262 f->m_ml->ml_name, size);
6263#endif
6264 return NULL((void*)0);
6265 }
6266 break;
6267 case METH_O0x0008:
6268 if (likely(kw == NULL || PyDict_Size(kw) == 0)__builtin_expect(!!(kw == ((void*)0) || PyDict_Size(kw) == 0)
, 1)
) {
6269#if CYTHON_ASSUME_SAFE_MACROS1
6270 size = PyTuple_GET_SIZE(arg)PyTuple_GET_SIZE(((PyObject*)((arg))));
6271#else
6272 size = PyTuple_Size(arg);
6273 if (unlikely(size < 0)__builtin_expect(!!(size < 0), 0)) return NULL((void*)0);
6274#endif
6275 if (likely(size == 1)__builtin_expect(!!(size == 1), 1)) {
6276 PyObject *result, *arg0;
6277 #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0
6278 arg0 = PyTuple_GET_ITEM(arg, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((arg
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((arg)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(arg)", "nastranOP2Reader.c", 6278, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((arg))))->ob_item
[0])
;
6279 #else
6280 arg0 = __Pyx_PySequence_ITEM(arg, 0)( Py_TYPE(((PyObject*)((arg))))->tp_as_sequence->sq_item
(arg, 0) )
; if (unlikely(!arg0)__builtin_expect(!!(!arg0), 0)) return NULL((void*)0);
6281 #endif
6282 result = (*meth)(self, arg0);
6283 #if !(CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0)
6284 Py_DECREF(arg0)Py_DECREF(((PyObject*)((arg0))));
6285 #endif
6286 return result;
6287 }
6288#if CYTHON_COMPILING_IN_LIMITED_API0
6289 py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL((void*)0));
6290 if (!py_name) return NULL((void*)0);
6291 PyErr_Format(PyExc_TypeError,
6292 "%.200S() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T"z" "d given)",
6293 py_name, size);
6294 Py_DECREF(py_name)Py_DECREF(((PyObject*)((py_name))));
6295#else
6296 PyErr_Format(PyExc_TypeError,
6297 "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T"z" "d given)",
6298 f->m_ml->ml_name, size);
6299#endif
6300 return NULL((void*)0);
6301 }
6302 break;
6303 default:
6304 PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
6305 return NULL((void*)0);
6306 }
6307#if CYTHON_COMPILING_IN_LIMITED_API0
6308 py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL((void*)0));
6309 if (!py_name) return NULL((void*)0);
6310 PyErr_Format(PyExc_TypeError, "%.200S() takes no keyword arguments",
6311 py_name);
6312 Py_DECREF(py_name)Py_DECREF(((PyObject*)((py_name))));
6313#else
6314 PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments",
6315 f->m_ml->ml_name);
6316#endif
6317 return NULL((void*)0);
6318}
6319static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
6320 PyObject *self, *result;
6321#if CYTHON_COMPILING_IN_LIMITED_API0
6322 self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func);
6323 if (unlikely(!self)__builtin_expect(!!(!self), 0) && PyErr_Occurred()) return NULL((void*)0);
6324#else
6325 self = ((PyCFunctionObject*)func)->m_self;
6326#endif
6327 result = __Pyx_CyFunction_CallMethod(func, self, arg, kw);
6328 return result;
6329}
6330static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
6331 PyObject *result;
6332 __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
6333#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
6334 __pyx_vectorcallfuncvectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc)(((PyCFunctionObject*)cyfunc)->vectorcall);
6335 if (vc) {
6336#if CYTHON_ASSUME_SAFE_MACROS1
6337 return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(args)", "nastranOP2Reader.c", 6337, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item
[0])
, (size_t)PyTuple_GET_SIZE(args)PyTuple_GET_SIZE(((PyObject*)((args)))), kw);
6338#else
6339 (void) &__Pyx_PyVectorcall_FastCallDict;
6340 return PyVectorcall_Call(func, args, kw);
6341#endif
6342 }
6343#endif
6344 if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS0x04) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD0x01)) {
6345 Py_ssize_t argc;
6346 PyObject *new_args;
6347 PyObject *self;
6348#if CYTHON_ASSUME_SAFE_MACROS1
6349 argc = PyTuple_GET_SIZE(args)PyTuple_GET_SIZE(((PyObject*)((args))));
6350#else
6351 argc = PyTuple_Size(args);
6352 if (unlikely(!argc)__builtin_expect(!!(!argc), 0) < 0) return NULL((void*)0);
6353#endif
6354 new_args = PyTuple_GetSlice(args, 1, argc);
6355 if (unlikely(!new_args)__builtin_expect(!!(!new_args), 0))
6356 return NULL((void*)0);
6357 self = PyTuple_GetItem(args, 0);
6358 if (unlikely(!self)__builtin_expect(!!(!self), 0)) {
6359 Py_DECREF(new_args)Py_DECREF(((PyObject*)((new_args))));
6360#if PY_MAJOR_VERSION3 > 2
6361 PyErr_Format(PyExc_TypeError,
6362 "unbound method %.200S() needs an argument",
6363 cyfunc->func_qualname);
6364#else
6365 PyErr_SetString(PyExc_TypeError,
6366 "unbound method needs an argument");
6367#endif
6368 return NULL((void*)0);
6369 }
6370 result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
6371 Py_DECREF(new_args)Py_DECREF(((PyObject*)((new_args))));
6372 } else {
6373 result = __Pyx_CyFunction_Call(func, args, kw);
6374 }
6375 return result;
6376}
6377#if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
6378static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
6379{
6380 int ret = 0;
6381 if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS0x04) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD0x01)) {
6382 if (unlikely(nargs < 1)__builtin_expect(!!(nargs < 1), 0)) {
6383 PyErr_Format(PyExc_TypeError, "%.200s() needs an argument",
6384 ((PyCFunctionObject*)cyfunc)->m_ml->ml_name);
6385 return -1;
6386 }
6387 ret = 1;
6388 }
6389 if (unlikely(kwnames)__builtin_expect(!!(kwnames), 0) && unlikely(PyTuple_GET_SIZE(kwnames))__builtin_expect(!!(PyTuple_GET_SIZE(((PyObject*)((kwnames)))
)), 0)
) {
6390 PyErr_Format(PyExc_TypeError,
6391 "%.200s() takes no keyword arguments", ((PyCFunctionObject*)cyfunc)->m_ml->ml_name);
6392 return -1;
6393 }
6394 return ret;
6395}
6396static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
6397{
6398 __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
6399 PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
6400#if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
6401 Py_ssize_t nargs = (Py_ssize_t)nargsf;
6402#else
6403 Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
6404#endif
6405 PyObject *self;
6406 switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
6407 case 1:
6408 self = args[0];
6409 args += 1;
Value stored to 'args' is never read
6410 nargs -= 1;
6411 break;
6412 case 0:
6413 self = ((PyCFunctionObject*)cyfunc)->m_self;
6414 break;
6415 default:
6416 return NULL((void*)0);
6417 }
6418 if (unlikely(nargs != 0)__builtin_expect(!!(nargs != 0), 0)) {
6419 PyErr_Format(PyExc_TypeError,
6420 "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T"z" "d given)",
6421 def->ml_name, nargs);
6422 return NULL((void*)0);
6423 }
6424 return def->ml_meth(self, NULL((void*)0));
6425}
6426static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
6427{
6428 __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
6429 PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
6430#if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
6431 Py_ssize_t nargs = (Py_ssize_t)nargsf;
6432#else
6433 Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
6434#endif
6435 PyObject *self;
6436 switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
6437 case 1:
6438 self = args[0];
6439 args += 1;
6440 nargs -= 1;
6441 break;
6442 case 0:
6443 self = ((PyCFunctionObject*)cyfunc)->m_self;
6444 break;
6445 default:
6446 return NULL((void*)0);
6447 }
6448 if (unlikely(nargs != 1)__builtin_expect(!!(nargs != 1), 0)) {
6449 PyErr_Format(PyExc_TypeError,
6450 "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T"z" "d given)",
6451 def->ml_name, nargs);
6452 return NULL((void*)0);
6453 }
6454 return def->ml_meth(self, args[0]);
6455}
6456static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
6457{
6458 __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
6459 PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
6460#if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
6461 Py_ssize_t nargs = (Py_ssize_t)nargsf;
6462#else
6463 Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
6464#endif
6465 PyObject *self;
6466 switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL((void*)0))) {
6467 case 1:
6468 self = args[0];
6469 args += 1;
6470 nargs -= 1;
6471 break;
6472 case 0:
6473 self = ((PyCFunctionObject*)cyfunc)->m_self;
6474 break;
6475 default:
6476 return NULL((void*)0);
6477 }
6478 return ((_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames);
6479}
6480static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
6481{
6482 __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
6483 PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
6484 PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc)((PyObject*) ((PyCMethodObject *) (cyfunc))->mm_class);
6485#if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
6486 Py_ssize_t nargs = (Py_ssize_t)nargsf;
6487#else
6488 Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
6489#endif
6490 PyObject *self;
6491 switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL((void*)0))) {
6492 case 1:
6493 self = args[0];
6494 args += 1;
6495 nargs -= 1;
6496 break;
6497 case 0:
6498 self = ((PyCFunctionObject*)cyfunc)->m_self;
6499 break;
6500 default:
6501 return NULL((void*)0);
6502 }
6503 return ((__Pyx_PyCMethodPyCMethod)(void(*)(void))def->ml_meth)(self, cls, args, (size_t)nargs, kwnames);
6504}
6505#endif
6506#if CYTHON_USE_TYPE_SPECS0
6507static PyType_Slot __pyx_CyFunctionType_slots[] = {
6508 {Py_tp_dealloc52, (void *)__Pyx_CyFunction_dealloc},
6509 {Py_tp_repr66, (void *)__Pyx_CyFunction_repr},
6510 {Py_tp_call50, (void *)__Pyx_CyFunction_CallAsMethod},
6511 {Py_tp_traverse71, (void *)__Pyx_CyFunction_traverse},
6512 {Py_tp_clear51, (void *)__Pyx_CyFunction_clear},
6513 {Py_tp_methods64, (void *)__pyx_CyFunction_methods},
6514 {Py_tp_members72, (void *)__pyx_CyFunction_members},
6515 {Py_tp_getset73, (void *)__pyx_CyFunction_getsets},
6516 {Py_tp_descr_get54, (void *)__Pyx_PyMethod_New},
6517 {0, 0},
6518};
6519static PyType_Spec __pyx_CyFunctionType_spec = {
6520 __PYX_TYPE_MODULE_PREFIX"_cython_" "3_0_5" "" "." "cython_function_or_method",
6521 sizeof(__pyx_CyFunctionObject),
6522 0,
6523#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17)
6524 Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17) |
6525#endif
6526#if (defined(_Py_TPFLAGS_HAVE_VECTORCALL(1UL << 11)) && CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
)
6527 _Py_TPFLAGS_HAVE_VECTORCALL(1UL << 11) |
6528#endif
6529 Py_TPFLAGS_DEFAULT( 0 | 0) | Py_TPFLAGS_HAVE_GC(1UL << 14) | Py_TPFLAGS_BASETYPE(1UL << 10),
6530 __pyx_CyFunctionType_slots
6531};
6532#else
6533static PyTypeObject __pyx_CyFunctionType_type = {
6534 PyVarObject_HEAD_INIT(0, 0){ { 1, 0 }, 0 },
6535 __PYX_TYPE_MODULE_PREFIX"_cython_" "3_0_5" "" "." "cython_function_or_method",
6536 sizeof(__pyx_CyFunctionObject),
6537 0,
6538 (destructor) __Pyx_CyFunction_dealloc,
6539#if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
6540 0,
6541#elif CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF
<< 4) | (0 << 0)) >= 0x030700A1) && (
(3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) < 0x030800B1)
6542 (printfunc)offsetof(__pyx_CyFunctionObject, func_vectorcall)__builtin_offsetof(__pyx_CyFunctionObject, func_vectorcall),
6543#else
6544 offsetof(PyCFunctionObject, vectorcall)__builtin_offsetof(PyCFunctionObject, vectorcall),
6545#endif
6546 0,
6547 0,
6548#if PY_MAJOR_VERSION3 < 3
6549 0,
6550#else
6551 0,
6552#endif
6553 (reprfunc) __Pyx_CyFunction_repr,
6554 0,
6555 0,
6556 0,
6557 0,
6558 __Pyx_CyFunction_CallAsMethod,
6559 0,
6560 0,
6561 0,
6562 0,
6563#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17)
6564 Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17) |
6565#endif
6566#if defined(_Py_TPFLAGS_HAVE_VECTORCALL(1UL << 11)) && CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030700A1)
6567 _Py_TPFLAGS_HAVE_VECTORCALL(1UL << 11) |
6568#endif
6569 Py_TPFLAGS_DEFAULT( 0 | 0) | Py_TPFLAGS_HAVE_GC(1UL << 14) | Py_TPFLAGS_BASETYPE(1UL << 10),
6570 0,
6571 (traverseproc) __Pyx_CyFunction_traverse,
6572 (inquiry) __Pyx_CyFunction_clear,
6573 0,
6574#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030500A0
6575 offsetof(__pyx_CyFunctionObject, func_weakreflist)__builtin_offsetof(__pyx_CyFunctionObject, func_weakreflist),
6576#else
6577 offsetof(PyCFunctionObject, m_weakreflist)__builtin_offsetof(PyCFunctionObject, m_weakreflist),
6578#endif
6579 0,
6580 0,
6581 __pyx_CyFunction_methods,
6582 __pyx_CyFunction_members,
6583 __pyx_CyFunction_getsets,
6584 0,
6585 0,
6586 __Pyx_PyMethod_New,
6587 0,
6588 offsetof(__pyx_CyFunctionObject, func_dict)__builtin_offsetof(__pyx_CyFunctionObject, func_dict),
6589 0,
6590 0,
6591 0,
6592 0,
6593 0,
6594 0,
6595 0,
6596 0,
6597 0,
6598 0,
6599 0,
6600 0,
6601#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030400a1
6602 0,
6603#endif
6604#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY0 || PYPY_VERSION_NUM >= 0x07030800)
6605 0,
6606#endif
6607#if __PYX_NEED_TP_PRINT_SLOT(((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0)) >= 0x030800b4 && ((3 <<
24) | (11 << 16) | (6 << 8) | (0xF << 4) |
(0 << 0)) < 0x03090000)
6608 0,
6609#endif
6610#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030C0000
6611 0,
6612#endif
6613#if CYTHON_COMPILING_IN_PYPY0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03090000 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030a0000
6614 0,
6615#endif
6616};
6617#endif
6618static int __pyx_CyFunction_init(PyObject *module) {
6619#if CYTHON_USE_TYPE_SPECS0
6620 __pyx_CyFunctionType__pyx_mstate_global->__pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(module, &__pyx_CyFunctionType_spec, NULL((void*)0));
6621#else
6622 CYTHON_UNUSED_VAR(module)(void)(module);
6623 __pyx_CyFunctionType__pyx_mstate_global->__pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type);
6624#endif
6625 if (unlikely(__pyx_CyFunctionType == NULL)__builtin_expect(!!(__pyx_mstate_global->__pyx_CyFunctionType
== ((void*)0)), 0)
) {
6626 return -1;
6627 }
6628 return 0;
6629}
6630static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) {
6631 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
6632 m->defaults = PyObject_Malloc(size);
6633 if (unlikely(!m->defaults)__builtin_expect(!!(!m->defaults), 0))
6634 return PyErr_NoMemory();
6635 memset(m->defaults, 0, size);
6636 m->defaults_pyobjects = pyobjects;
6637 m->defaults_size = size;
6638 return m->defaults;
6639}
6640static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
6641 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
6642 m->defaults_tuple = tuple;
6643 Py_INCREF(tuple)Py_INCREF(((PyObject*)((tuple))));
6644}
6645static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
6646 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
6647 m->defaults_kwdict = dict;
6648 Py_INCREF(dict)Py_INCREF(((PyObject*)((dict))));
6649}
6650static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
6651 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
6652 m->func_annotations = dict;
6653 Py_INCREF(dict)Py_INCREF(((PyObject*)((dict))));
6654}
6655
6656/* CythonFunction */
6657static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
6658 PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
6659 PyObject *op = __Pyx_CyFunction_Init(
6660 PyObject_GC_New(__pyx_CyFunctionObject, __pyx_CyFunctionType)((__pyx_CyFunctionObject*)(_PyObject_GC_New(__pyx_mstate_global
->__pyx_CyFunctionType)))
,
6661 ml, flags, qualname, closure, module, globals, code
6662 );
6663 if (likely(op)__builtin_expect(!!(op), 1)) {
6664 PyObject_GC_Track(op);
6665 }
6666 return op;
6667}
6668
6669/* CLineInTraceback */
6670#ifndef CYTHON_CLINE_IN_TRACEBACK
6671static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
6672 PyObject *use_cline;
6673 PyObject *ptype, *pvalue, *ptraceback;
6674#if CYTHON_COMPILING_IN_CPYTHON1
6675 PyObject **cython_runtime_dict;
6676#endif
6677 CYTHON_MAYBE_UNUSED_VAR(tstate)(void)(tstate);
6678 if (unlikely(!__pyx_cython_runtime)__builtin_expect(!!(!__pyx_mstate_global->__pyx_cython_runtime
), 0)
) {
6679 return c_line;
6680 }
6681 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
6682#if CYTHON_COMPILING_IN_CPYTHON1
6683 cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime);
6684 if (likely(cython_runtime_dict)__builtin_expect(!!(cython_runtime_dict), 1)) {
6685 __PYX_PY_DICT_LOOKUP_IF_MODIFIED({ static uint64_t __pyx_dict_version = 0; static PyObject *__pyx_dict_cached_value
= ((void*)0); if (__builtin_expect(!!((((PyDictObject*)(*cython_runtime_dict
))->ma_version_tag) == __pyx_dict_version), 1)) { (use_cline
) = __pyx_dict_cached_value; } else { (use_cline) = __pyx_dict_cached_value
= (__Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_mstate_global
->__pyx_n_s_cline_in_traceback)); __pyx_dict_version = (((
PyDictObject*)(*cython_runtime_dict))->ma_version_tag); }}
6686 use_cline, *cython_runtime_dict,{ static uint64_t __pyx_dict_version = 0; static PyObject *__pyx_dict_cached_value
= ((void*)0); if (__builtin_expect(!!((((PyDictObject*)(*cython_runtime_dict
))->ma_version_tag) == __pyx_dict_version), 1)) { (use_cline
) = __pyx_dict_cached_value; } else { (use_cline) = __pyx_dict_cached_value
= (__Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_mstate_global
->__pyx_n_s_cline_in_traceback)); __pyx_dict_version = (((
PyDictObject*)(*cython_runtime_dict))->ma_version_tag); }}
6687 __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback)){ static uint64_t __pyx_dict_version = 0; static PyObject *__pyx_dict_cached_value
= ((void*)0); if (__builtin_expect(!!((((PyDictObject*)(*cython_runtime_dict
))->ma_version_tag) == __pyx_dict_version), 1)) { (use_cline
) = __pyx_dict_cached_value; } else { (use_cline) = __pyx_dict_cached_value
= (__Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_mstate_global
->__pyx_n_s_cline_in_traceback)); __pyx_dict_version = (((
PyDictObject*)(*cython_runtime_dict))->ma_version_tag); }}
6688 } else
6689#endif
6690 {
6691 PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStrNoError(__pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime, __pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback);
6692 if (use_cline_obj) {
6693 use_cline = PyObject_Not(use_cline_obj) ? Py_False((PyObject *) &_Py_FalseStruct) : Py_True((PyObject *) &_Py_TrueStruct);
6694 Py_DECREF(use_cline_obj)Py_DECREF(((PyObject*)((use_cline_obj))));
6695 } else {
6696 PyErr_Clear();
6697 use_cline = NULL((void*)0);
6698 }
6699 }
6700 if (!use_cline) {
6701 c_line = 0;
6702 (void) PyObject_SetAttr(__pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime, __pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback, Py_False((PyObject *) &_Py_FalseStruct));
6703 }
6704 else if (use_cline == Py_False((PyObject *) &_Py_FalseStruct) || (use_cline != Py_True((PyObject *) &_Py_TrueStruct) && PyObject_Not(use_cline) != 0)) {
6705 c_line = 0;
6706 }
6707 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
6708 return c_line;
6709}
6710#endif
6711
6712/* CodeObjectCache */
6713#if !CYTHON_COMPILING_IN_LIMITED_API0
6714static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
6715 int start = 0, mid = 0, end = count - 1;
6716 if (end >= 0 && code_line > entries[end].code_line) {
6717 return count;
6718 }
6719 while (start < end) {
6720 mid = start + (end - start) / 2;
6721 if (code_line < entries[mid].code_line) {
6722 end = mid;
6723 } else if (code_line > entries[mid].code_line) {
6724 start = mid + 1;
6725 } else {
6726 return mid;
6727 }
6728 }
6729 if (code_line <= entries[mid].code_line) {
6730 return mid;
6731 } else {
6732 return mid + 1;
6733 }
6734}
6735static PyCodeObject *__pyx_find_code_object(int code_line) {
6736 PyCodeObject* code_object;
6737 int pos;
6738 if (unlikely(!code_line)__builtin_expect(!!(!code_line), 0) || unlikely(!__pyx_code_cache.entries)__builtin_expect(!!(!__pyx_code_cache.entries), 0)) {
6739 return NULL((void*)0);
6740 }
6741 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
6742 if (unlikely(pos >= __pyx_code_cache.count)__builtin_expect(!!(pos >= __pyx_code_cache.count), 0) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)__builtin_expect(!!(__pyx_code_cache.entries[pos].code_line !=
code_line), 0)
) {
6743 return NULL((void*)0);
6744 }
6745 code_object = __pyx_code_cache.entries[pos].code_object;
6746 Py_INCREF(code_object)Py_INCREF(((PyObject*)((code_object))));
6747 return code_object;
6748}
6749static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
6750 int pos, i;
6751 __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
6752 if (unlikely(!code_line)__builtin_expect(!!(!code_line), 0)) {
6753 return;
6754 }
6755 if (unlikely(!entries)__builtin_expect(!!(!entries), 0)) {
6756 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
6757 if (likely(entries)__builtin_expect(!!(entries), 1)) {
6758 __pyx_code_cache.entries = entries;
6759 __pyx_code_cache.max_count = 64;
6760 __pyx_code_cache.count = 1;
6761 entries[0].code_line = code_line;
6762 entries[0].code_object = code_object;
6763 Py_INCREF(code_object)Py_INCREF(((PyObject*)((code_object))));
6764 }
6765 return;
6766 }
6767 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
6768 if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)__builtin_expect(!!(__pyx_code_cache.entries[pos].code_line ==
code_line), 0)
) {
6769 PyCodeObject* tmp = entries[pos].code_object;
6770 entries[pos].code_object = code_object;
6771 Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));
6772 return;
6773 }
6774 if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
6775 int new_max = __pyx_code_cache.max_count + 64;
6776 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
6777 __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
6778 if (unlikely(!entries)__builtin_expect(!!(!entries), 0)) {
6779 return;
6780 }
6781 __pyx_code_cache.entries = entries;
6782 __pyx_code_cache.max_count = new_max;
6783 }
6784 for (i=__pyx_code_cache.count; i>pos; i--) {
6785 entries[i] = entries[i-1];
6786 }
6787 entries[pos].code_line = code_line;
6788 entries[pos].code_object = code_object;
6789 __pyx_code_cache.count++;
6790 Py_INCREF(code_object)Py_INCREF(((PyObject*)((code_object))));
6791}
6792#endif
6793
6794/* AddTraceback */
6795#include "compile.h"
6796#include "frameobject.h"
6797#include "traceback.h"
6798#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API0
6799 #ifndef Py_BUILD_CORE1
6800 #define Py_BUILD_CORE1 1
6801 #endif
6802 #include "internal/pycore_frame.h"
6803#endif
6804#if CYTHON_COMPILING_IN_LIMITED_API0
6805static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict,
6806 PyObject *firstlineno, PyObject *name) {
6807 PyObject *replace = NULL((void*)0);
6808 if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))__builtin_expect(!!(PyDict_SetItemString(scratch_dict, "co_firstlineno"
, firstlineno)), 0)
) return NULL((void*)0);
6809 if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))__builtin_expect(!!(PyDict_SetItemString(scratch_dict, "co_name"
, name)), 0)
) return NULL((void*)0);
6810 replace = PyObject_GetAttrString(code, "replace");
6811 if (likely(replace)__builtin_expect(!!(replace), 1)) {
6812 PyObject *result;
6813 result = PyObject_Call(replace, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, scratch_dict);
6814 Py_DECREF(replace)Py_DECREF(((PyObject*)((replace))));
6815 return result;
6816 }
6817 PyErr_Clear();
6818 #if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030780000
6819 {
6820 PyObject *compiled = NULL((void*)0), *result = NULL((void*)0);
6821 if (unlikely(PyDict_SetItemString(scratch_dict, "code", code))__builtin_expect(!!(PyDict_SetItemString(scratch_dict, "code"
, code)), 0)
) return NULL((void*)0);
6822 if (unlikely(PyDict_SetItemString(scratch_dict, "type", (PyObject*)(&PyType_Type)))__builtin_expect(!!(PyDict_SetItemString(scratch_dict, "type"
, (PyObject*)(&PyType_Type))), 0)
) return NULL((void*)0);
6823 compiled = Py_CompileString(Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n"
" code.co_flags, code.co_code, code.co_consts, code.co_names,\n"
" code.co_varnames, code.co_filename, co_name, co_firstlineno,\n"
" code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1)
6824 "out = type(code)(\n"Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n"
" code.co_flags, code.co_code, code.co_consts, code.co_names,\n"
" code.co_varnames, code.co_filename, co_name, co_firstlineno,\n"
" code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1)
6825 " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n"Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n"
" code.co_flags, code.co_code, code.co_consts, code.co_names,\n"
" code.co_varnames, code.co_filename, co_name, co_firstlineno,\n"
" code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1)
6826 " code.co_flags, code.co_code, code.co_consts, code.co_names,\n"Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n"
" code.co_flags, code.co_code, code.co_consts, code.co_names,\n"
" code.co_varnames, code.co_filename, co_name, co_firstlineno,\n"
" code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1)
6827 " code.co_varnames, code.co_filename, co_name, co_firstlineno,\n"Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n"
" code.co_flags, code.co_code, code.co_consts, code.co_names,\n"
" code.co_varnames, code.co_filename, co_name, co_firstlineno,\n"
" code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1)
6828 " code.co_lnotab)\n", "<dummy>", Py_file_input)Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n"
" code.co_flags, code.co_code, code.co_consts, code.co_names,\n"
" code.co_varnames, code.co_filename, co_name, co_firstlineno,\n"
" code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1)
;
6829 if (!compiled) return NULL((void*)0);
6830 result = PyEval_EvalCode(compiled, scratch_dict, scratch_dict);
6831 Py_DECREF(compiled)Py_DECREF(((PyObject*)((compiled))));
6832 if (!result) PyErr_Print();
6833 Py_DECREF(result)Py_DECREF(((PyObject*)((result))));
6834 result = PyDict_GetItemString(scratch_dict, "out");
6835 if (result) Py_INCREF(result)Py_INCREF(((PyObject*)((result))));
6836 return result;
6837 }
6838 #else
6839 return NULL((void*)0);
6840 #endif
6841}
6842static void __Pyx_AddTraceback(const char *funcname, int c_line,
6843 int py_line, const char *filename) {
6844 PyObject *code_object = NULL((void*)0), *py_py_line = NULL((void*)0), *py_funcname = NULL((void*)0), *dict = NULL((void*)0);
6845 PyObject *replace = NULL((void*)0), *getframe = NULL((void*)0), *frame = NULL((void*)0);
6846 PyObject *exc_type, *exc_value, *exc_traceback;
6847 int success = 0;
6848 if (c_line) {
6849 (void) __pyx_cfilenm;
6850 (void) __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current_PyThreadState_UncheckedGet(), c_line);
6851 }
6852 PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
6853 code_object = Py_CompileString("_getframe()", filename, Py_eval_input)Py_CompileStringExFlags("_getframe()", filename, 258, ((void*
)0), -1)
;
6854 if (unlikely(!code_object)__builtin_expect(!!(!code_object), 0)) goto bad;
6855 py_py_line = PyLong_FromLong(py_line);
6856 if (unlikely(!py_py_line)__builtin_expect(!!(!py_py_line), 0)) goto bad;
6857 py_funcname = PyUnicode_FromString(funcname);
6858 if (unlikely(!py_funcname)__builtin_expect(!!(!py_funcname), 0)) goto bad;
6859 dict = PyDict_New();
6860 if (unlikely(!dict)__builtin_expect(!!(!dict), 0)) goto bad;
6861 {
6862 PyObject *old_code_object = code_object;
6863 code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname);
6864 Py_DECREF(old_code_object)Py_DECREF(((PyObject*)((old_code_object))));
6865 }
6866 if (unlikely(!code_object)__builtin_expect(!!(!code_object), 0)) goto bad;
6867 getframe = PySys_GetObject("_getframe");
6868 if (unlikely(!getframe)__builtin_expect(!!(!getframe), 0)) goto bad;
6869 if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))__builtin_expect(!!(PyDict_SetItemString(dict, "_getframe", getframe
)), 0)
) goto bad;
6870 frame = PyEval_EvalCode(code_object, dict, dict);
6871 if (unlikely(!frame)__builtin_expect(!!(!frame), 0) || frame == Py_None(&_Py_NoneStruct)) goto bad;
6872 success = 1;
6873 bad:
6874 PyErr_Restore(exc_type, exc_value, exc_traceback);
6875 Py_XDECREF(code_object)Py_XDECREF(((PyObject*)((code_object))));
6876 Py_XDECREF(py_py_line)Py_XDECREF(((PyObject*)((py_py_line))));
6877 Py_XDECREF(py_funcname)Py_XDECREF(((PyObject*)((py_funcname))));
6878 Py_XDECREF(dict)Py_XDECREF(((PyObject*)((dict))));
6879 Py_XDECREF(replace)Py_XDECREF(((PyObject*)((replace))));
6880 if (success) {
6881 PyTraceBack_Here(
6882 (struct _frame*)frame);
6883 }
6884 Py_XDECREF(frame)Py_XDECREF(((PyObject*)((frame))));
6885}
6886#else
6887static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
6888 const char *funcname, int c_line,
6889 int py_line, const char *filename) {
6890 PyCodeObject *py_code = NULL((void*)0);
6891 PyObject *py_funcname = NULL((void*)0);
6892 #if PY_MAJOR_VERSION3 < 3
6893 PyObject *py_srcfile = NULL((void*)0);
6894 py_srcfile = PyString_FromString(filename);
6895 if (!py_srcfile) goto bad;
6896 #endif
6897 if (c_line) {
6898 #if PY_MAJOR_VERSION3 < 3
6899 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
6900 if (!py_funcname) goto bad;
6901 #else
6902 py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
6903 if (!py_funcname) goto bad;
6904 funcname = PyUnicode_AsUTF8(py_funcname);
6905 if (!funcname) goto bad;
6906 #endif
6907 }
6908 else {
6909 #if PY_MAJOR_VERSION3 < 3
6910 py_funcname = PyString_FromString(funcname);
6911 if (!py_funcname) goto bad;
6912 #endif
6913 }
6914 #if PY_MAJOR_VERSION3 < 3
6915 py_code = __Pyx_PyCode_New(
6916 0,
6917 0,
6918 0,
6919 0,
6920 0,
6921 0,
6922 __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes, /*PyObject *code,*/
6923 __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, /*PyObject *consts,*/
6924 __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, /*PyObject *names,*/
6925 __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, /*PyObject *varnames,*/
6926 __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, /*PyObject *freevars,*/
6927 __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, /*PyObject *cellvars,*/
6928 py_srcfile, /*PyObject *filename,*/
6929 py_funcname, /*PyObject *name,*/
6930 py_line,
6931 __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes /*PyObject *lnotab*/
6932 );
6933 Py_DECREF(py_srcfile)Py_DECREF(((PyObject*)((py_srcfile))));
6934 #else
6935 py_code = PyCode_NewEmpty(filename, funcname, py_line);
6936 #endif
6937 Py_XDECREF(py_funcname)Py_XDECREF(((PyObject*)((py_funcname)))); // XDECREF since it's only set on Py3 if cline
6938 return py_code;
6939bad:
6940 Py_XDECREF(py_funcname)Py_XDECREF(((PyObject*)((py_funcname))));
6941 #if PY_MAJOR_VERSION3 < 3
6942 Py_XDECREF(py_srcfile)Py_XDECREF(((PyObject*)((py_srcfile))));
6943 #endif
6944 return NULL((void*)0);
6945}
6946static void __Pyx_AddTraceback(const char *funcname, int c_line,
6947 int py_line, const char *filename) {
6948 PyCodeObject *py_code = 0;
6949 PyFrameObject *py_frame = 0;
6950 PyThreadState *tstate = __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet();
6951 PyObject *ptype, *pvalue, *ptraceback;
6952 if (c_line) {
6953 c_line = __Pyx_CLineForTraceback(tstate, c_line);
6954 }
6955 py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
6956 if (!py_code) {
6957 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
6958 py_code = __Pyx_CreateCodeObjectForTraceback(
6959 funcname, c_line, py_line, filename);
6960 if (!py_code) {
6961 /* If the code object creation fails, then we should clear the
6962 fetched exception references and propagate the new exception */
6963 Py_XDECREF(ptype)Py_XDECREF(((PyObject*)((ptype))));
6964 Py_XDECREF(pvalue)Py_XDECREF(((PyObject*)((pvalue))));
6965 Py_XDECREF(ptraceback)Py_XDECREF(((PyObject*)((ptraceback))));
6966 goto bad;
6967 }
6968 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
6969 __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
6970 }
6971 py_frame = PyFrame_New(
6972 tstate, /*PyThreadState *tstate,*/
6973 py_code, /*PyCodeObject *code,*/
6974 __pyx_d__pyx_mstate_global->__pyx_d, /*PyObject *globals,*/
6975 0 /*PyObject *locals*/
6976 );
6977 if (!py_frame) goto bad;
6978 __Pyx_PyFrame_SetLineNumber(py_frame, py_line)(py_frame)->f_lineno = (py_line);
6979 PyTraceBack_Here(py_frame);
6980bad:
6981 Py_XDECREF(py_code)Py_XDECREF(((PyObject*)((py_code))));
6982 Py_XDECREF(py_frame)Py_XDECREF(((PyObject*)((py_frame))));
6983}
6984#endif
6985
6986/* CIntFromPyVerify */
6987#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value){ func_type value = func_value; if (sizeof(target_type) < sizeof
(func_type)) { if (__builtin_expect(!!(value != (func_type) (
target_type) value), 0)) { func_type zero = 0; if (0 &&
__builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred
()), 0)) return (target_type) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (target_type) value; }
\
6988 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0){ func_type value = func_value; if (sizeof(target_type) < sizeof
(func_type)) { if (__builtin_expect(!!(value != (func_type) (
target_type) value), 0)) { func_type zero = 0; if (0 &&
__builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred
()), 0)) return (target_type) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (target_type) value; }
6989#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value){ func_type value = func_value; if (sizeof(target_type) < sizeof
(func_type)) { if (__builtin_expect(!!(value != (func_type) (
target_type) value), 0)) { func_type zero = 0; if (1 &&
__builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred
()), 0)) return (target_type) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (target_type) value; }
\
6990 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1){ func_type value = func_value; if (sizeof(target_type) < sizeof
(func_type)) { if (__builtin_expect(!!(value != (func_type) (
target_type) value), 0)) { func_type zero = 0; if (1 &&
__builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred
()), 0)) return (target_type) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (target_type) value; }
6991#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc){ func_type value = func_value; if (sizeof(target_type) < sizeof
(func_type)) { if (__builtin_expect(!!(value != (func_type) (
target_type) value), 0)) { func_type zero = 0; if (exc &&
__builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred
()), 0)) return (target_type) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (target_type) value; }
\
6992 {\
6993 func_type value = func_value;\
6994 if (sizeof(target_type) < sizeof(func_type)) {\
6995 if (unlikely(value != (func_type) (target_type) value)__builtin_expect(!!(value != (func_type) (target_type) value)
, 0)
) {\
6996 func_type zero = 0;\
6997 if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred())__builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred
()), 0)
)\
6998 return (target_type) -1;\
6999 if (is_unsigned && unlikely(value < zero)__builtin_expect(!!(value < zero), 0))\
7000 goto raise_neg_overflow;\
7001 else\
7002 goto raise_overflow;\
7003 }\
7004 }\
7005 return (target_type) value;\
7006 }
7007
7008/* CIntFromPy */
7009static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyInt_As_int(PyObject *x) {
7010#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
7011#pragma GCC diagnostic push
7012#pragma GCC diagnostic ignored "-Wconversion"
7013#endif
7014 const int neg_one = (int) -1, const_zero = (int) 0;
7015#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
7016#pragma GCC diagnostic pop
7017#endif
7018 const int is_unsigned = neg_one > const_zero;
7019#if PY_MAJOR_VERSION3 < 3
7020 if (likely(PyInt_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x
)))), (1UL << 24))), 1)
) {
7021 if ((sizeof(int) < sizeof(long))) {
7022 __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)){ long value = PyLong_AsLong(x); if (sizeof(int) < sizeof(
long)) { if (__builtin_expect(!!(value != (long) (int) value)
, 0)) { long zero = 0; if (0 && __builtin_expect(!!(value
== (long)-1 && PyErr_Occurred()), 0)) return (int) -
1; if (is_unsigned && __builtin_expect(!!(value < zero
), 0)) goto raise_neg_overflow; else goto raise_overflow; } }
return (int) value; }
7023 } else {
7024 long val = PyInt_AS_LONG(x)PyLong_AsLong(x);
7025 if (is_unsigned && unlikely(val < 0)__builtin_expect(!!(val < 0), 0)) {
7026 goto raise_neg_overflow;
7027 }
7028 return (int) val;
7029 }
7030 } else
7031#endif
7032 if (likely(PyLong_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x
)))), (1UL << 24))), 1)
) {
7033 if (is_unsigned) {
7034#if CYTHON_USE_PYLONG_INTERNALS1
7035 if (unlikely(__Pyx_PyLong_IsNeg(x))__builtin_expect(!!((Py_SIZE(((PyObject*)((x)))) < 0)), 0)) {
7036 goto raise_neg_overflow;
7037 } else if (__Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x)
))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)
) {
7038 __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x)){ __Pyx_compact_upylong value = ((Py_SIZE(((PyObject*)((x))))
== 0) ? 0 : (((PyLongObject*)x)->ob_digit)[0]); if (sizeof
(int) < sizeof(__Pyx_compact_upylong)) { if (__builtin_expect
(!!(value != (__Pyx_compact_upylong) (int) value), 0)) { __Pyx_compact_upylong
zero = 0; if (0 && __builtin_expect(!!(value == (__Pyx_compact_upylong
)-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned
&& __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow
; else goto raise_overflow; } } return (int) value; }
7039 } else {
7040 const digit* digits = __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit);
7041 assert(__Pyx_PyLong_DigitCount(x) > 1)((void) sizeof ((labs(Py_SIZE(((PyObject*)((x))))) > 1) ? 1
: 0), __extension__ ({ if (labs(Py_SIZE(((PyObject*)((x)))))
> 1) ; else __assert_fail ("__Pyx_PyLong_DigitCount(x) > 1"
, "nastranOP2Reader.c", 7041, __extension__ __PRETTY_FUNCTION__
); }))
;
7042 switch (__Pyx_PyLong_DigitCount(x)labs(Py_SIZE(((PyObject*)((x)))))) {
7043 case 2:
7044 if ((8 * sizeof(int) > 1 * PyLong_SHIFT30)) {
7045 if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) {
7046 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((unsigned long)digits[1]) <<
30) | (unsigned long)digits[0])); if (sizeof(int) < sizeof
(unsigned long)) { if (__builtin_expect(!!(value != (unsigned
long) (int) value), 0)) { unsigned long zero = 0; if (0 &&
__builtin_expect(!!(value == (unsigned long)-1 && PyErr_Occurred
()), 0)) return (int) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (int) value; }
7047 } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT30)) {
7048 return (int) (((((int)digits[1]) << PyLong_SHIFT30) | (int)digits[0]));
7049 }
7050 }
7051 break;
7052 case 3:
7053 if ((8 * sizeof(int) > 2 * PyLong_SHIFT30)) {
7054 if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) {
7055 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((unsigned long)digits[2]) <<
30) | (unsigned long)digits[1]) << 30) | (unsigned long
)digits[0])); if (sizeof(int) < sizeof(unsigned long)) { if
(__builtin_expect(!!(value != (unsigned long) (int) value), 0
)) { unsigned long zero = 0; if (0 && __builtin_expect
(!!(value == (unsigned long)-1 && PyErr_Occurred()), 0
)) return (int) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (int) value; }
7056 } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT30)) {
7057 return (int) (((((((int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0]));
7058 }
7059 }
7060 break;
7061 case 4:
7062 if ((8 * sizeof(int) > 3 * PyLong_SHIFT30)) {
7063 if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) {
7064 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((((unsigned long)digits[3]) <<
30) | (unsigned long)digits[2]) << 30) | (unsigned long
)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof
(int) < sizeof(unsigned long)) { if (__builtin_expect(!!(value
!= (unsigned long) (int) value), 0)) { unsigned long zero = 0
; if (0 && __builtin_expect(!!(value == (unsigned long
)-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned
&& __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow
; else goto raise_overflow; } } return (int) value; }
7065 } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT30)) {
7066 return (int) (((((((((int)digits[3]) << PyLong_SHIFT30) | (int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0]));
7067 }
7068 }
7069 break;
7070 }
7071 }
7072#endif
7073#if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030C00A7
7074 if (unlikely(Py_SIZE(x) < 0)__builtin_expect(!!(Py_SIZE(((PyObject*)((x)))) < 0), 0)) {
7075 goto raise_neg_overflow;
7076 }
7077#else
7078 {
7079 int result = PyObject_RichCompareBool(x, Py_False((PyObject *) &_Py_FalseStruct), Py_LT0);
7080 if (unlikely(result < 0)__builtin_expect(!!(result < 0), 0))
7081 return (int) -1;
7082 if (unlikely(result == 1)__builtin_expect(!!(result == 1), 0))
7083 goto raise_neg_overflow;
7084 }
7085#endif
7086 if ((sizeof(int) <= sizeof(unsigned long))) {
7087 __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)){ unsigned long value = PyLong_AsUnsignedLong(x); if (sizeof(
int) < sizeof(unsigned long)) { if (__builtin_expect(!!(value
!= (unsigned long) (int) value), 0)) { unsigned long zero = 0
; if (1 && __builtin_expect(!!(value == (unsigned long
)-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned
&& __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow
; else goto raise_overflow; } } return (int) value; }
7088#ifdef HAVE_LONG_LONG1
7089 } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONGlong long))) {
7090 __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)){ unsigned long long value = PyLong_AsUnsignedLongLong(x); if
(sizeof(int) < sizeof(unsigned long long)) { if (__builtin_expect
(!!(value != (unsigned long long) (int) value), 0)) { unsigned
long long zero = 0; if (1 && __builtin_expect(!!(value
== (unsigned long long)-1 && PyErr_Occurred()), 0)) return
(int) -1; if (is_unsigned && __builtin_expect(!!(value
< zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (int) value; }
7091#endif
7092 }
7093 } else {
7094#if CYTHON_USE_PYLONG_INTERNALS1
7095 if (__Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x)
))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)
) {
7096 __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x)){ __Pyx_compact_pylong value = ((Py_SIZE(((PyObject*)((x)))) ==
0) ? (sdigit) 0 : ((Py_SIZE(((PyObject*)((x)))) < 0) ? -(
sdigit)(((PyLongObject*)x)->ob_digit)[0] : (sdigit)(((PyLongObject
*)x)->ob_digit)[0])); if (sizeof(int) < sizeof(__Pyx_compact_pylong
)) { if (__builtin_expect(!!(value != (__Pyx_compact_pylong) (
int) value), 0)) { __Pyx_compact_pylong zero = 0; if (0 &&
__builtin_expect(!!(value == (__Pyx_compact_pylong)-1 &&
PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned &&
__builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow
; else goto raise_overflow; } } return (int) value; }
7097 } else {
7098 const digit* digits = __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit);
7099 assert(__Pyx_PyLong_DigitCount(x) > 1)((void) sizeof ((labs(Py_SIZE(((PyObject*)((x))))) > 1) ? 1
: 0), __extension__ ({ if (labs(Py_SIZE(((PyObject*)((x)))))
> 1) ; else __assert_fail ("__Pyx_PyLong_DigitCount(x) > 1"
, "nastranOP2Reader.c", 7099, __extension__ __PRETTY_FUNCTION__
); }))
;
7100 switch (__Pyx_PyLong_SignedDigitCount(x)Py_SIZE(((PyObject*)((x))))) {
7101 case -2:
7102 if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT30)) {
7103 if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) {
7104 __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((unsigned long)digits[1]) <<
30) | (unsigned long)digits[0])); if (sizeof(int) < sizeof
(long)) { if (__builtin_expect(!!(value != (long) (int) value
), 0)) { long zero = 0; if (0 && __builtin_expect(!!(
value == (long)-1 && PyErr_Occurred()), 0)) return (int
) -1; if (is_unsigned && __builtin_expect(!!(value <
zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (int) value; }
7105 } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT30)) {
7106 return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT30) | (int)digits[0])));
7107 }
7108 }
7109 break;
7110 case 2:
7111 if ((8 * sizeof(int) > 1 * PyLong_SHIFT30)) {
7112 if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) {
7113 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((unsigned long)digits[1]) <<
30) | (unsigned long)digits[0])); if (sizeof(int) < sizeof
(unsigned long)) { if (__builtin_expect(!!(value != (unsigned
long) (int) value), 0)) { unsigned long zero = 0; if (0 &&
__builtin_expect(!!(value == (unsigned long)-1 && PyErr_Occurred
()), 0)) return (int) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (int) value; }
7114 } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT30)) {
7115 return (int) ((((((int)digits[1]) << PyLong_SHIFT30) | (int)digits[0])));
7116 }
7117 }
7118 break;
7119 case -3:
7120 if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT30)) {
7121 if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) {
7122 __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((((unsigned long)digits[2]) <<
30) | (unsigned long)digits[1]) << 30) | (unsigned long
)digits[0])); if (sizeof(int) < sizeof(long)) { if (__builtin_expect
(!!(value != (long) (int) value), 0)) { long zero = 0; if (0 &&
__builtin_expect(!!(value == (long)-1 && PyErr_Occurred
()), 0)) return (int) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (int) value; }
7123 } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT30)) {
7124 return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0])));
7125 }
7126 }
7127 break;
7128 case 3:
7129 if ((8 * sizeof(int) > 2 * PyLong_SHIFT30)) {
7130 if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) {
7131 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((unsigned long)digits[2]) <<
30) | (unsigned long)digits[1]) << 30) | (unsigned long
)digits[0])); if (sizeof(int) < sizeof(unsigned long)) { if
(__builtin_expect(!!(value != (unsigned long) (int) value), 0
)) { unsigned long zero = 0; if (0 && __builtin_expect
(!!(value == (unsigned long)-1 && PyErr_Occurred()), 0
)) return (int) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (int) value; }
7132 } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT30)) {
7133 return (int) ((((((((int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0])));
7134 }
7135 }
7136 break;
7137 case -4:
7138 if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT30)) {
7139 if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) {
7140 __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((((((unsigned long)digits[3]) <<
30) | (unsigned long)digits[2]) << 30) | (unsigned long
)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof
(int) < sizeof(long)) { if (__builtin_expect(!!(value != (
long) (int) value), 0)) { long zero = 0; if (0 && __builtin_expect
(!!(value == (long)-1 && PyErr_Occurred()), 0)) return
(int) -1; if (is_unsigned && __builtin_expect(!!(value
< zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (int) value; }
7141 } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT30)) {
7142 return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT30) | (int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0])));
7143 }
7144 }
7145 break;
7146 case 4:
7147 if ((8 * sizeof(int) > 3 * PyLong_SHIFT30)) {
7148 if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) {
7149 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((((unsigned long)digits[3]) <<
30) | (unsigned long)digits[2]) << 30) | (unsigned long
)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof
(int) < sizeof(unsigned long)) { if (__builtin_expect(!!(value
!= (unsigned long) (int) value), 0)) { unsigned long zero = 0
; if (0 && __builtin_expect(!!(value == (unsigned long
)-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned
&& __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow
; else goto raise_overflow; } } return (int) value; }
7150 } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT30)) {
7151 return (int) ((((((((((int)digits[3]) << PyLong_SHIFT30) | (int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0])));
7152 }
7153 }
7154 break;
7155 }
7156 }
7157#endif
7158 if ((sizeof(int) <= sizeof(long))) {
7159 __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)){ long value = PyLong_AsLong(x); if (sizeof(int) < sizeof(
long)) { if (__builtin_expect(!!(value != (long) (int) value)
, 0)) { long zero = 0; if (1 && __builtin_expect(!!(value
== (long)-1 && PyErr_Occurred()), 0)) return (int) -
1; if (is_unsigned && __builtin_expect(!!(value < zero
), 0)) goto raise_neg_overflow; else goto raise_overflow; } }
return (int) value; }
7160#ifdef HAVE_LONG_LONG1
7161 } else if ((sizeof(int) <= sizeof(PY_LONG_LONGlong long))) {
7162 __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)){ long long value = PyLong_AsLongLong(x); if (sizeof(int) <
sizeof(long long)) { if (__builtin_expect(!!(value != (long long
) (int) value), 0)) { long long zero = 0; if (1 && __builtin_expect
(!!(value == (long long)-1 && PyErr_Occurred()), 0)) return
(int) -1; if (is_unsigned && __builtin_expect(!!(value
< zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (int) value; }
7163#endif
7164 }
7165 }
7166 {
7167 int val;
7168 PyObject *v = __Pyx_PyNumber_IntOrLong(x);
7169#if PY_MAJOR_VERSION3 < 3
7170 if (likely(v)__builtin_expect(!!(v), 1) && !PyLong_Check(v)PyType_HasFeature(Py_TYPE(((PyObject*)((v)))), (1UL << 24
))
) {
7171 PyObject *tmp = v;
7172 v = PyNumber_Long(tmp);
7173 Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));
7174 }
7175#endif
7176 if (likely(v)__builtin_expect(!!(v), 1)) {
7177 int ret = -1;
7178#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY0 || CYTHON_COMPILING_IN_LIMITED_API0) || defined(_PyLong_AsByteArray)
7179 int one = 1; int is_little = (int)*(unsigned char *)&one;
7180 unsigned char *bytes = (unsigned char *)&val;
7181 ret = _PyLong_AsByteArray((PyLongObject *)v,
7182 bytes, sizeof(val),
7183 is_little, !is_unsigned);
7184#else
7185 PyObject *stepval = NULL((void*)0), *mask = NULL((void*)0), *shift = NULL((void*)0);
7186 int bits, remaining_bits, is_negative = 0;
7187 long idigit;
7188 int chunk_size = (sizeof(long) < 8) ? 30 : 62;
7189 if (unlikely(!PyLong_CheckExact(v))__builtin_expect(!!(!Py_IS_TYPE(((PyObject*)((v))), &PyLong_Type
)), 0)
) {
7190 PyObject *tmp = v;
7191 v = PyNumber_Long(v);
7192 assert(PyLong_CheckExact(v))((void) sizeof ((Py_IS_TYPE(((PyObject*)((v))), &PyLong_Type
)) ? 1 : 0), __extension__ ({ if (Py_IS_TYPE(((PyObject*)((v)
)), &PyLong_Type)) ; else __assert_fail ("PyLong_CheckExact(v)"
, "nastranOP2Reader.c", 7192, __extension__ __PRETTY_FUNCTION__
); }))
;
7193 Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));
7194 if (unlikely(!v)__builtin_expect(!!(!v), 0)) return (int) -1;
7195 }
7196#if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030B0000
7197 if (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0)
7198 return (int) 0;
7199 is_negative = Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) < 0;
7200#else
7201 {
7202 int result = PyObject_RichCompareBool(x, Py_False((PyObject *) &_Py_FalseStruct), Py_LT0);
7203 if (unlikely(result < 0)__builtin_expect(!!(result < 0), 0))
7204 return (int) -1;
7205 is_negative = result == 1;
7206 }
7207#endif
7208 if (is_unsigned && unlikely(is_negative)__builtin_expect(!!(is_negative), 0)) {
7209 goto raise_neg_overflow;
7210 } else if (is_negative) {
7211 stepval = PyNumber_Invert(v);
7212 if (unlikely(!stepval)__builtin_expect(!!(!stepval), 0))
7213 return (int) -1;
7214 } else {
7215 stepval = __Pyx_NewRef(v)(Py_INCREF(((PyObject*)((v)))), v);
7216 }
7217 val = (int) 0;
7218 mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)__builtin_expect(!!(!mask), 0)) goto done;
7219 shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)__builtin_expect(!!(!shift), 0)) goto done;
7220 for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
7221 PyObject *tmp, *digit;
7222 digit = PyNumber_And(stepval, mask);
7223 if (unlikely(!digit)__builtin_expect(!!(!digit), 0)) goto done;
7224 idigit = PyLong_AsLong(digit);
7225 Py_DECREF(digit)Py_DECREF(((PyObject*)((digit))));
7226 if (unlikely(idigit < 0)__builtin_expect(!!(idigit < 0), 0)) goto done;
7227 tmp = PyNumber_Rshift(stepval, shift);
7228 if (unlikely(!tmp)__builtin_expect(!!(!tmp), 0)) goto done;
7229 Py_DECREF(stepval)Py_DECREF(((PyObject*)((stepval)))); stepval = tmp;
7230 val |= ((int) idigit) << bits;
7231 #if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030B0000
7232 if (Py_SIZE(stepval)Py_SIZE(((PyObject*)((stepval)))) == 0)
7233 goto unpacking_done;
7234 #endif
7235 }
7236 idigit = PyLong_AsLong(stepval);
7237 if (unlikely(idigit < 0)__builtin_expect(!!(idigit < 0), 0)) goto done;
7238 remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
7239 if (unlikely(idigit >= (1L << remaining_bits))__builtin_expect(!!(idigit >= (1L << remaining_bits)
), 0)
)
7240 goto raise_overflow;
7241 val |= ((int) idigit) << bits;
7242 #if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030B0000
7243 unpacking_done:
7244 #endif
7245 if (!is_unsigned) {
7246 if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1)))__builtin_expect(!!(val & (((int) 1) << (sizeof(int
) * 8 - 1))), 0)
)
7247 goto raise_overflow;
7248 if (is_negative)
7249 val = ~val;
7250 }
7251 ret = 0;
7252 done:
7253 Py_XDECREF(shift)Py_XDECREF(((PyObject*)((shift))));
7254 Py_XDECREF(mask)Py_XDECREF(((PyObject*)((mask))));
7255 Py_XDECREF(stepval)Py_XDECREF(((PyObject*)((stepval))));
7256#endif
7257 Py_DECREF(v)Py_DECREF(((PyObject*)((v))));
7258 if (likely(!ret)__builtin_expect(!!(!ret), 1))
7259 return val;
7260 }
7261 return (int) -1;
7262 }
7263 } else {
7264 int val;
7265 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
7266 if (!tmp) return (int) -1;
7267 val = __Pyx_PyInt_As_int(tmp);
7268 Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));
7269 return val;
7270 }
7271raise_overflow:
7272 PyErr_SetString(PyExc_OverflowError,
7273 "value too large to convert to int");
7274 return (int) -1;
7275raise_neg_overflow:
7276 PyErr_SetString(PyExc_OverflowError,
7277 "can't convert negative value to int");
7278 return (int) -1;
7279}
7280
7281/* CIntToPy */
7282static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyInt_From_int(int value) {
7283#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
7284#pragma GCC diagnostic push
7285#pragma GCC diagnostic ignored "-Wconversion"
7286#endif
7287 const int neg_one = (int) -1, const_zero = (int) 0;
7288#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
7289#pragma GCC diagnostic pop
7290#endif
7291 const int is_unsigned = neg_one > const_zero;
7292 if (is_unsigned) {
7293 if (sizeof(int) < sizeof(long)) {
7294 return PyInt_FromLongPyLong_FromLong((long) value);
7295 } else if (sizeof(int) <= sizeof(unsigned long)) {
7296 return PyLong_FromUnsignedLong((unsigned long) value);
7297#ifdef HAVE_LONG_LONG1
7298 } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONGlong long)) {
7299 return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONGlong long) value);
7300#endif
7301 }
7302 } else {
7303 if (sizeof(int) <= sizeof(long)) {
7304 return PyInt_FromLongPyLong_FromLong((long) value);
7305#ifdef HAVE_LONG_LONG1
7306 } else if (sizeof(int) <= sizeof(PY_LONG_LONGlong long)) {
7307 return PyLong_FromLongLong((PY_LONG_LONGlong long) value);
7308#endif
7309 }
7310 }
7311 {
7312 int one = 1; int little = (int)*(unsigned char *)&one;
7313 unsigned char *bytes = (unsigned char *)&value;
7314#if !CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030d0000
7315 return _PyLong_FromByteArray(bytes, sizeof(int),
7316 little, !is_unsigned);
7317#else
7318 PyObject *from_bytes, *result = NULL((void*)0);
7319 PyObject *py_bytes = NULL((void*)0), *arg_tuple = NULL((void*)0), *kwds = NULL((void*)0), *order_str = NULL((void*)0);
7320 from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
7321 if (!from_bytes) return NULL((void*)0);
7322 py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int));
7323 if (!py_bytes) goto limited_bad;
7324 order_str = PyUnicode_FromString(little ? "little" : "big");
7325 if (!order_str) goto limited_bad;
7326 arg_tuple = PyTuple_Pack(2, py_bytes, order_str);
7327 if (!arg_tuple) goto limited_bad;
7328 if (!is_unsigned) {
7329 kwds = PyDict_New();
7330 if (!kwds) goto limited_bad;
7331 if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True)(Py_INCREF(((PyObject*)((((PyObject *) &_Py_TrueStruct)))
)), ((PyObject *) &_Py_TrueStruct))
)) goto limited_bad;
7332 }
7333 result = PyObject_Call(from_bytes, arg_tuple, kwds);
7334 limited_bad:
7335 Py_XDECREF(kwds)Py_XDECREF(((PyObject*)((kwds))));
7336 Py_XDECREF(arg_tuple)Py_XDECREF(((PyObject*)((arg_tuple))));
7337 Py_XDECREF(order_str)Py_XDECREF(((PyObject*)((order_str))));
7338 Py_XDECREF(py_bytes)Py_XDECREF(((PyObject*)((py_bytes))));
7339 Py_XDECREF(from_bytes)Py_XDECREF(((PyObject*)((from_bytes))));
7340 return result;
7341#endif
7342 }
7343}
7344
7345/* FormatTypeName */
7346#if CYTHON_COMPILING_IN_LIMITED_API0
7347static __Pyx_TypeName
7348__Pyx_PyType_GetName(PyTypeObject* tp)((PyTypeObject* tp)->tp_name)
7349{
7350 PyObject *name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
7351 __pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name);
7352 if (unlikely(name == NULL)__builtin_expect(!!(name == ((void*)0)), 0) || unlikely(!PyUnicode_Check(name))__builtin_expect(!!(!PyType_HasFeature(Py_TYPE(((PyObject*)((
name)))), (1UL << 28))), 0)
) {
7353 PyErr_Clear();
7354 Py_XDECREF(name)Py_XDECREF(((PyObject*)((name))));
7355 name = __Pyx_NewRef(__pyx_n_s__5)(Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_n_s__5
)))), __pyx_mstate_global->__pyx_n_s__5)
;
7356 }
7357 return name;
7358}
7359#endif
7360
7361/* CIntToPy */
7362static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyInt_From_long(long value) {
7363#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
7364#pragma GCC diagnostic push
7365#pragma GCC diagnostic ignored "-Wconversion"
7366#endif
7367 const long neg_one = (long) -1, const_zero = (long) 0;
7368#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
7369#pragma GCC diagnostic pop
7370#endif
7371 const int is_unsigned = neg_one > const_zero;
7372 if (is_unsigned) {
7373 if (sizeof(long) < sizeof(long)) {
7374 return PyInt_FromLongPyLong_FromLong((long) value);
7375 } else if (sizeof(long) <= sizeof(unsigned long)) {
7376 return PyLong_FromUnsignedLong((unsigned long) value);
7377#ifdef HAVE_LONG_LONG1
7378 } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONGlong long)) {
7379 return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONGlong long) value);
7380#endif
7381 }
7382 } else {
7383 if (sizeof(long) <= sizeof(long)) {
7384 return PyInt_FromLongPyLong_FromLong((long) value);
7385#ifdef HAVE_LONG_LONG1
7386 } else if (sizeof(long) <= sizeof(PY_LONG_LONGlong long)) {
7387 return PyLong_FromLongLong((PY_LONG_LONGlong long) value);
7388#endif
7389 }
7390 }
7391 {
7392 int one = 1; int little = (int)*(unsigned char *)&one;
7393 unsigned char *bytes = (unsigned char *)&value;
7394#if !CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030d0000
7395 return _PyLong_FromByteArray(bytes, sizeof(long),
7396 little, !is_unsigned);
7397#else
7398 PyObject *from_bytes, *result = NULL((void*)0);
7399 PyObject *py_bytes = NULL((void*)0), *arg_tuple = NULL((void*)0), *kwds = NULL((void*)0), *order_str = NULL((void*)0);
7400 from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
7401 if (!from_bytes) return NULL((void*)0);
7402 py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
7403 if (!py_bytes) goto limited_bad;
7404 order_str = PyUnicode_FromString(little ? "little" : "big");
7405 if (!order_str) goto limited_bad;
7406 arg_tuple = PyTuple_Pack(2, py_bytes, order_str);
7407 if (!arg_tuple) goto limited_bad;
7408 if (!is_unsigned) {
7409 kwds = PyDict_New();
7410 if (!kwds) goto limited_bad;
7411 if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True)(Py_INCREF(((PyObject*)((((PyObject *) &_Py_TrueStruct)))
)), ((PyObject *) &_Py_TrueStruct))
)) goto limited_bad;
7412 }
7413 result = PyObject_Call(from_bytes, arg_tuple, kwds);
7414 limited_bad:
7415 Py_XDECREF(kwds)Py_XDECREF(((PyObject*)((kwds))));
7416 Py_XDECREF(arg_tuple)Py_XDECREF(((PyObject*)((arg_tuple))));
7417 Py_XDECREF(order_str)Py_XDECREF(((PyObject*)((order_str))));
7418 Py_XDECREF(py_bytes)Py_XDECREF(((PyObject*)((py_bytes))));
7419 Py_XDECREF(from_bytes)Py_XDECREF(((PyObject*)((from_bytes))));
7420 return result;
7421#endif
7422 }
7423}
7424
7425/* CIntFromPy */
7426static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) long __Pyx_PyInt_As_long(PyObject *x) {
7427#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
7428#pragma GCC diagnostic push
7429#pragma GCC diagnostic ignored "-Wconversion"
7430#endif
7431 const long neg_one = (long) -1, const_zero = (long) 0;
7432#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
7433#pragma GCC diagnostic pop
7434#endif
7435 const int is_unsigned = neg_one > const_zero;
7436#if PY_MAJOR_VERSION3 < 3
7437 if (likely(PyInt_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x
)))), (1UL << 24))), 1)
) {
7438 if ((sizeof(long) < sizeof(long))) {
7439 __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)){ long value = PyLong_AsLong(x); if (sizeof(long) < sizeof
(long)) { if (__builtin_expect(!!(value != (long) (long) value
), 0)) { long zero = 0; if (0 && __builtin_expect(!!(
value == (long)-1 && PyErr_Occurred()), 0)) return (long
) -1; if (is_unsigned && __builtin_expect(!!(value <
zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7440 } else {
7441 long val = PyInt_AS_LONG(x)PyLong_AsLong(x);
7442 if (is_unsigned && unlikely(val < 0)__builtin_expect(!!(val < 0), 0)) {
7443 goto raise_neg_overflow;
7444 }
7445 return (long) val;
7446 }
7447 } else
7448#endif
7449 if (likely(PyLong_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x
)))), (1UL << 24))), 1)
) {
7450 if (is_unsigned) {
7451#if CYTHON_USE_PYLONG_INTERNALS1
7452 if (unlikely(__Pyx_PyLong_IsNeg(x))__builtin_expect(!!((Py_SIZE(((PyObject*)((x)))) < 0)), 0)) {
7453 goto raise_neg_overflow;
7454 } else if (__Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x)
))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)
) {
7455 __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x)){ __Pyx_compact_upylong value = ((Py_SIZE(((PyObject*)((x))))
== 0) ? 0 : (((PyLongObject*)x)->ob_digit)[0]); if (sizeof
(long) < sizeof(__Pyx_compact_upylong)) { if (__builtin_expect
(!!(value != (__Pyx_compact_upylong) (long) value), 0)) { __Pyx_compact_upylong
zero = 0; if (0 && __builtin_expect(!!(value == (__Pyx_compact_upylong
)-1 && PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned
&& __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow
; else goto raise_overflow; } } return (long) value; }
7456 } else {
7457 const digit* digits = __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit);
7458 assert(__Pyx_PyLong_DigitCount(x) > 1)((void) sizeof ((labs(Py_SIZE(((PyObject*)((x))))) > 1) ? 1
: 0), __extension__ ({ if (labs(Py_SIZE(((PyObject*)((x)))))
> 1) ; else __assert_fail ("__Pyx_PyLong_DigitCount(x) > 1"
, "nastranOP2Reader.c", 7458, __extension__ __PRETTY_FUNCTION__
); }))
;
7459 switch (__Pyx_PyLong_DigitCount(x)labs(Py_SIZE(((PyObject*)((x)))))) {
7460 case 2:
7461 if ((8 * sizeof(long) > 1 * PyLong_SHIFT30)) {
7462 if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) {
7463 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((unsigned long)digits[1]) <<
30) | (unsigned long)digits[0])); if (sizeof(long) < sizeof
(unsigned long)) { if (__builtin_expect(!!(value != (unsigned
long) (long) value), 0)) { unsigned long zero = 0; if (0 &&
__builtin_expect(!!(value == (unsigned long)-1 && PyErr_Occurred
()), 0)) return (long) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7464 } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT30)) {
7465 return (long) (((((long)digits[1]) << PyLong_SHIFT30) | (long)digits[0]));
7466 }
7467 }
7468 break;
7469 case 3:
7470 if ((8 * sizeof(long) > 2 * PyLong_SHIFT30)) {
7471 if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) {
7472 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((unsigned long)digits[2]) <<
30) | (unsigned long)digits[1]) << 30) | (unsigned long
)digits[0])); if (sizeof(long) < sizeof(unsigned long)) { if
(__builtin_expect(!!(value != (unsigned long) (long) value),
0)) { unsigned long zero = 0; if (0 && __builtin_expect
(!!(value == (unsigned long)-1 && PyErr_Occurred()), 0
)) return (long) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7473 } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT30)) {
7474 return (long) (((((((long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0]));
7475 }
7476 }
7477 break;
7478 case 4:
7479 if ((8 * sizeof(long) > 3 * PyLong_SHIFT30)) {
7480 if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) {
7481 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((((unsigned long)digits[3]) <<
30) | (unsigned long)digits[2]) << 30) | (unsigned long
)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof
(long) < sizeof(unsigned long)) { if (__builtin_expect(!!(
value != (unsigned long) (long) value), 0)) { unsigned long zero
= 0; if (0 && __builtin_expect(!!(value == (unsigned
long)-1 && PyErr_Occurred()), 0)) return (long) -1; if
(is_unsigned && __builtin_expect(!!(value < zero)
, 0)) goto raise_neg_overflow; else goto raise_overflow; } } return
(long) value; }
7482 } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT30)) {
7483 return (long) (((((((((long)digits[3]) << PyLong_SHIFT30) | (long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0]));
7484 }
7485 }
7486 break;
7487 }
7488 }
7489#endif
7490#if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030C00A7
7491 if (unlikely(Py_SIZE(x) < 0)__builtin_expect(!!(Py_SIZE(((PyObject*)((x)))) < 0), 0)) {
7492 goto raise_neg_overflow;
7493 }
7494#else
7495 {
7496 int result = PyObject_RichCompareBool(x, Py_False((PyObject *) &_Py_FalseStruct), Py_LT0);
7497 if (unlikely(result < 0)__builtin_expect(!!(result < 0), 0))
7498 return (long) -1;
7499 if (unlikely(result == 1)__builtin_expect(!!(result == 1), 0))
7500 goto raise_neg_overflow;
7501 }
7502#endif
7503 if ((sizeof(long) <= sizeof(unsigned long))) {
7504 __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)){ unsigned long value = PyLong_AsUnsignedLong(x); if (sizeof(
long) < sizeof(unsigned long)) { if (__builtin_expect(!!(value
!= (unsigned long) (long) value), 0)) { unsigned long zero =
0; if (1 && __builtin_expect(!!(value == (unsigned long
)-1 && PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned
&& __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow
; else goto raise_overflow; } } return (long) value; }
7505#ifdef HAVE_LONG_LONG1
7506 } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONGlong long))) {
7507 __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)){ unsigned long long value = PyLong_AsUnsignedLongLong(x); if
(sizeof(long) < sizeof(unsigned long long)) { if (__builtin_expect
(!!(value != (unsigned long long) (long) value), 0)) { unsigned
long long zero = 0; if (1 && __builtin_expect(!!(value
== (unsigned long long)-1 && PyErr_Occurred()), 0)) return
(long) -1; if (is_unsigned && __builtin_expect(!!(value
< zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7508#endif
7509 }
7510 } else {
7511#if CYTHON_USE_PYLONG_INTERNALS1
7512 if (__Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x)
))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)
) {
7513 __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x)){ __Pyx_compact_pylong value = ((Py_SIZE(((PyObject*)((x)))) ==
0) ? (sdigit) 0 : ((Py_SIZE(((PyObject*)((x)))) < 0) ? -(
sdigit)(((PyLongObject*)x)->ob_digit)[0] : (sdigit)(((PyLongObject
*)x)->ob_digit)[0])); if (sizeof(long) < sizeof(__Pyx_compact_pylong
)) { if (__builtin_expect(!!(value != (__Pyx_compact_pylong) (
long) value), 0)) { __Pyx_compact_pylong zero = 0; if (0 &&
__builtin_expect(!!(value == (__Pyx_compact_pylong)-1 &&
PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned &&
__builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow
; else goto raise_overflow; } } return (long) value; }
7514 } else {
7515 const digit* digits = __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit);
7516 assert(__Pyx_PyLong_DigitCount(x) > 1)((void) sizeof ((labs(Py_SIZE(((PyObject*)((x))))) > 1) ? 1
: 0), __extension__ ({ if (labs(Py_SIZE(((PyObject*)((x)))))
> 1) ; else __assert_fail ("__Pyx_PyLong_DigitCount(x) > 1"
, "nastranOP2Reader.c", 7516, __extension__ __PRETTY_FUNCTION__
); }))
;
7517 switch (__Pyx_PyLong_SignedDigitCount(x)Py_SIZE(((PyObject*)((x))))) {
7518 case -2:
7519 if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT30)) {
7520 if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) {
7521 __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((unsigned long)digits[1]) <<
30) | (unsigned long)digits[0])); if (sizeof(long) < sizeof
(long)) { if (__builtin_expect(!!(value != (long) (long) value
), 0)) { long zero = 0; if (0 && __builtin_expect(!!(
value == (long)-1 && PyErr_Occurred()), 0)) return (long
) -1; if (is_unsigned && __builtin_expect(!!(value <
zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7522 } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT30)) {
7523 return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT30) | (long)digits[0])));
7524 }
7525 }
7526 break;
7527 case 2:
7528 if ((8 * sizeof(long) > 1 * PyLong_SHIFT30)) {
7529 if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) {
7530 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((unsigned long)digits[1]) <<
30) | (unsigned long)digits[0])); if (sizeof(long) < sizeof
(unsigned long)) { if (__builtin_expect(!!(value != (unsigned
long) (long) value), 0)) { unsigned long zero = 0; if (0 &&
__builtin_expect(!!(value == (unsigned long)-1 && PyErr_Occurred
()), 0)) return (long) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7531 } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT30)) {
7532 return (long) ((((((long)digits[1]) << PyLong_SHIFT30) | (long)digits[0])));
7533 }
7534 }
7535 break;
7536 case -3:
7537 if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT30)) {
7538 if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) {
7539 __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((((unsigned long)digits[2]) <<
30) | (unsigned long)digits[1]) << 30) | (unsigned long
)digits[0])); if (sizeof(long) < sizeof(long)) { if (__builtin_expect
(!!(value != (long) (long) value), 0)) { long zero = 0; if (0
&& __builtin_expect(!!(value == (long)-1 && PyErr_Occurred
()), 0)) return (long) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7540 } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT30)) {
7541 return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0])));
7542 }
7543 }
7544 break;
7545 case 3:
7546 if ((8 * sizeof(long) > 2 * PyLong_SHIFT30)) {
7547 if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) {
7548 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((unsigned long)digits[2]) <<
30) | (unsigned long)digits[1]) << 30) | (unsigned long
)digits[0])); if (sizeof(long) < sizeof(unsigned long)) { if
(__builtin_expect(!!(value != (unsigned long) (long) value),
0)) { unsigned long zero = 0; if (0 && __builtin_expect
(!!(value == (unsigned long)-1 && PyErr_Occurred()), 0
)) return (long) -1; if (is_unsigned && __builtin_expect
(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7549 } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT30)) {
7550 return (long) ((((((((long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0])));
7551 }
7552 }
7553 break;
7554 case -4:
7555 if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT30)) {
7556 if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) {
7557 __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((((((unsigned long)digits[3]) <<
30) | (unsigned long)digits[2]) << 30) | (unsigned long
)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof
(long) < sizeof(long)) { if (__builtin_expect(!!(value != (
long) (long) value), 0)) { long zero = 0; if (0 && __builtin_expect
(!!(value == (long)-1 && PyErr_Occurred()), 0)) return
(long) -1; if (is_unsigned && __builtin_expect(!!(value
< zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7558 } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT30)) {
7559 return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT30) | (long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0])));
7560 }
7561 }
7562 break;
7563 case 4:
7564 if ((8 * sizeof(long) > 3 * PyLong_SHIFT30)) {
7565 if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) {
7566 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((((unsigned long)digits[3]) <<
30) | (unsigned long)digits[2]) << 30) | (unsigned long
)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof
(long) < sizeof(unsigned long)) { if (__builtin_expect(!!(
value != (unsigned long) (long) value), 0)) { unsigned long zero
= 0; if (0 && __builtin_expect(!!(value == (unsigned
long)-1 && PyErr_Occurred()), 0)) return (long) -1; if
(is_unsigned && __builtin_expect(!!(value < zero)
, 0)) goto raise_neg_overflow; else goto raise_overflow; } } return
(long) value; }
7567 } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT30)) {
7568 return (long) ((((((((((long)digits[3]) << PyLong_SHIFT30) | (long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0])));
7569 }
7570 }
7571 break;
7572 }
7573 }
7574#endif
7575 if ((sizeof(long) <= sizeof(long))) {
7576 __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)){ long value = PyLong_AsLong(x); if (sizeof(long) < sizeof
(long)) { if (__builtin_expect(!!(value != (long) (long) value
), 0)) { long zero = 0; if (1 && __builtin_expect(!!(
value == (long)-1 && PyErr_Occurred()), 0)) return (long
) -1; if (is_unsigned && __builtin_expect(!!(value <
zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7577#ifdef HAVE_LONG_LONG1
7578 } else if ((sizeof(long) <= sizeof(PY_LONG_LONGlong long))) {
7579 __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)){ long long value = PyLong_AsLongLong(x); if (sizeof(long) <
sizeof(long long)) { if (__builtin_expect(!!(value != (long long
) (long) value), 0)) { long long zero = 0; if (1 && __builtin_expect
(!!(value == (long long)-1 && PyErr_Occurred()), 0)) return
(long) -1; if (is_unsigned && __builtin_expect(!!(value
< zero), 0)) goto raise_neg_overflow; else goto raise_overflow
; } } return (long) value; }
7580#endif
7581 }
7582 }
7583 {
7584 long val;
7585 PyObject *v = __Pyx_PyNumber_IntOrLong(x);
7586#if PY_MAJOR_VERSION3 < 3
7587 if (likely(v)__builtin_expect(!!(v), 1) && !PyLong_Check(v)PyType_HasFeature(Py_TYPE(((PyObject*)((v)))), (1UL << 24
))
) {
7588 PyObject *tmp = v;
7589 v = PyNumber_Long(tmp);
7590 Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));
7591 }
7592#endif
7593 if (likely(v)__builtin_expect(!!(v), 1)) {
7594 int ret = -1;
7595#if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY0 || CYTHON_COMPILING_IN_LIMITED_API0) || defined(_PyLong_AsByteArray)
7596 int one = 1; int is_little = (int)*(unsigned char *)&one;
7597 unsigned char *bytes = (unsigned char *)&val;
7598 ret = _PyLong_AsByteArray((PyLongObject *)v,
7599 bytes, sizeof(val),
7600 is_little, !is_unsigned);
7601#else
7602 PyObject *stepval = NULL((void*)0), *mask = NULL((void*)0), *shift = NULL((void*)0);
7603 int bits, remaining_bits, is_negative = 0;
7604 long idigit;
7605 int chunk_size = (sizeof(long) < 8) ? 30 : 62;
7606 if (unlikely(!PyLong_CheckExact(v))__builtin_expect(!!(!Py_IS_TYPE(((PyObject*)((v))), &PyLong_Type
)), 0)
) {
7607 PyObject *tmp = v;
7608 v = PyNumber_Long(v);
7609 assert(PyLong_CheckExact(v))((void) sizeof ((Py_IS_TYPE(((PyObject*)((v))), &PyLong_Type
)) ? 1 : 0), __extension__ ({ if (Py_IS_TYPE(((PyObject*)((v)
)), &PyLong_Type)) ; else __assert_fail ("PyLong_CheckExact(v)"
, "nastranOP2Reader.c", 7609, __extension__ __PRETTY_FUNCTION__
); }))
;
7610 Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));
7611 if (unlikely(!v)__builtin_expect(!!(!v), 0)) return (long) -1;
7612 }
7613#if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030B0000
7614 if (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0)
7615 return (long) 0;
7616 is_negative = Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) < 0;
7617#else
7618 {
7619 int result = PyObject_RichCompareBool(x, Py_False((PyObject *) &_Py_FalseStruct), Py_LT0);
7620 if (unlikely(result < 0)__builtin_expect(!!(result < 0), 0))
7621 return (long) -1;
7622 is_negative = result == 1;
7623 }
7624#endif
7625 if (is_unsigned && unlikely(is_negative)__builtin_expect(!!(is_negative), 0)) {
7626 goto raise_neg_overflow;
7627 } else if (is_negative) {
7628 stepval = PyNumber_Invert(v);
7629 if (unlikely(!stepval)__builtin_expect(!!(!stepval), 0))
7630 return (long) -1;
7631 } else {
7632 stepval = __Pyx_NewRef(v)(Py_INCREF(((PyObject*)((v)))), v);
7633 }
7634 val = (long) 0;
7635 mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)__builtin_expect(!!(!mask), 0)) goto done;
7636 shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)__builtin_expect(!!(!shift), 0)) goto done;
7637 for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
7638 PyObject *tmp, *digit;
7639 digit = PyNumber_And(stepval, mask);
7640 if (unlikely(!digit)__builtin_expect(!!(!digit), 0)) goto done;
7641 idigit = PyLong_AsLong(digit);
7642 Py_DECREF(digit)Py_DECREF(((PyObject*)((digit))));
7643 if (unlikely(idigit < 0)__builtin_expect(!!(idigit < 0), 0)) goto done;
7644 tmp = PyNumber_Rshift(stepval, shift);
7645 if (unlikely(!tmp)__builtin_expect(!!(!tmp), 0)) goto done;
7646 Py_DECREF(stepval)Py_DECREF(((PyObject*)((stepval)))); stepval = tmp;
7647 val |= ((long) idigit) << bits;
7648 #if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030B0000
7649 if (Py_SIZE(stepval)Py_SIZE(((PyObject*)((stepval)))) == 0)
7650 goto unpacking_done;
7651 #endif
7652 }
7653 idigit = PyLong_AsLong(stepval);
7654 if (unlikely(idigit < 0)__builtin_expect(!!(idigit < 0), 0)) goto done;
7655 remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
7656 if (unlikely(idigit >= (1L << remaining_bits))__builtin_expect(!!(idigit >= (1L << remaining_bits)
), 0)
)
7657 goto raise_overflow;
7658 val |= ((long) idigit) << bits;
7659 #if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x030B0000
7660 unpacking_done:
7661 #endif
7662 if (!is_unsigned) {
7663 if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1)))__builtin_expect(!!(val & (((long) 1) << (sizeof(long
) * 8 - 1))), 0)
)
7664 goto raise_overflow;
7665 if (is_negative)
7666 val = ~val;
7667 }
7668 ret = 0;
7669 done:
7670 Py_XDECREF(shift)Py_XDECREF(((PyObject*)((shift))));
7671 Py_XDECREF(mask)Py_XDECREF(((PyObject*)((mask))));
7672 Py_XDECREF(stepval)Py_XDECREF(((PyObject*)((stepval))));
7673#endif
7674 Py_DECREF(v)Py_DECREF(((PyObject*)((v))));
7675 if (likely(!ret)__builtin_expect(!!(!ret), 1))
7676 return val;
7677 }
7678 return (long) -1;
7679 }
7680 } else {
7681 long val;
7682 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
7683 if (!tmp) return (long) -1;
7684 val = __Pyx_PyInt_As_long(tmp);
7685 Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));
7686 return val;
7687 }
7688raise_overflow:
7689 PyErr_SetString(PyExc_OverflowError,
7690 "value too large to convert to long");
7691 return (long) -1;
7692raise_neg_overflow:
7693 PyErr_SetString(PyExc_OverflowError,
7694 "can't convert negative value to long");
7695 return (long) -1;
7696}
7697
7698/* FastTypeChecks */
7699#if CYTHON_COMPILING_IN_CPYTHON1
7700static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
7701 while (a) {
7702 a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*)((a)->tp_base);
7703 if (a == b)
7704 return 1;
7705 }
7706 return b == &PyBaseObject_Type;
7707}
7708static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
7709 PyObject *mro;
7710 if (a == b) return 1;
7711 mro = a->tp_mro;
7712 if (likely(mro)__builtin_expect(!!(mro), 1)) {
7713 Py_ssize_t i, n;
7714 n = PyTuple_GET_SIZE(mro)PyTuple_GET_SIZE(((PyObject*)((mro))));
7715 for (i = 0; i < n; i++) {
7716 if (PyTuple_GET_ITEM(mro, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((mro
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((mro)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(mro)", "nastranOP2Reader.c", 7716, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((mro))))->ob_item
[i])
== (PyObject *)b)
7717 return 1;
7718 }
7719 return 0;
7720 }
7721 return __Pyx_InBases(a, b);
7722}
7723static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
7724 PyObject *mro;
7725 if (cls == a || cls == b) return 1;
7726 mro = cls->tp_mro;
7727 if (likely(mro)__builtin_expect(!!(mro), 1)) {
7728 Py_ssize_t i, n;
7729 n = PyTuple_GET_SIZE(mro)PyTuple_GET_SIZE(((PyObject*)((mro))));
7730 for (i = 0; i < n; i++) {
7731 PyObject *base = PyTuple_GET_ITEM(mro, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((mro
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((mro)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(mro)", "nastranOP2Reader.c", 7731, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((mro))))->ob_item
[i])
;
7732 if (base == (PyObject *)a || base == (PyObject *)b)
7733 return 1;
7734 }
7735 return 0;
7736 }
7737 return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
7738}
7739#if PY_MAJOR_VERSION3 == 2
7740static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
7741 PyObject *exception, *value, *tb;
7742 int res;
7743 __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate;
7744 __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet();
7745 __Pyx_ErrFetch(&exception, &value, &tb)__Pyx_ErrFetchInState(__pyx_tstate, &exception, &value
, &tb)
;
7746 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
7747 if (unlikely(res == -1)__builtin_expect(!!(res == -1), 0)) {
7748 PyErr_WriteUnraisable(err);
7749 res = 0;
7750 }
7751 if (!res) {
7752 res = PyObject_IsSubclass(err, exc_type2);
7753 if (unlikely(res == -1)__builtin_expect(!!(res == -1), 0)) {
7754 PyErr_WriteUnraisable(err);
7755 res = 0;
7756 }
7757 }
7758 __Pyx_ErrRestore(exception, value, tb)__Pyx_ErrRestoreInState(__pyx_tstate, exception, value, tb);
7759 return res;
7760}
7761#else
7762static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
7763 if (exc_type1) {
7764 return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
7765 } else {
7766 return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
7767 }
7768}
7769#endif
7770static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
7771 Py_ssize_t i, n;
7772 assert(PyExceptionClass_Check(exc_type))((void) sizeof (((PyType_Check(((PyObject*)(((exc_type))))) &&
PyType_HasFeature((PyTypeObject*)(exc_type), (1UL << 30
)))) ? 1 : 0), __extension__ ({ if ((PyType_Check(((PyObject*
)(((exc_type))))) && PyType_HasFeature((PyTypeObject*
)(exc_type), (1UL << 30)))) ; else __assert_fail ("PyExceptionClass_Check(exc_type)"
, "nastranOP2Reader.c", 7772, __extension__ __PRETTY_FUNCTION__
); }))
;
7773 n = PyTuple_GET_SIZE(tuple)PyTuple_GET_SIZE(((PyObject*)((tuple))));
7774#if PY_MAJOR_VERSION3 >= 3
7775 for (i=0; i<n; i++) {
7776 if (exc_type == PyTuple_GET_ITEM(tuple, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(tuple)", "nastranOP2Reader.c", 7776, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))->
ob_item[i])
) return 1;
7777 }
7778#endif
7779 for (i=0; i<n; i++) {
7780 PyObject *t = PyTuple_GET_ITEM(tuple, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple
)))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature
(Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail
("PyTuple_Check(tuple)", "nastranOP2Reader.c", 7780, __extension__
__PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))->
ob_item[i])
;
7781 #if PY_MAJOR_VERSION3 < 3
7782 if (likely(exc_type == t)__builtin_expect(!!(exc_type == t), 1)) return 1;
7783 #endif
7784 if (likely(PyExceptionClass_Check(t))__builtin_expect(!!((PyType_Check(((PyObject*)(((t))))) &&
PyType_HasFeature((PyTypeObject*)(t), (1UL << 30)))), 1
)
) {
7785 if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL((void*)0), t)) return 1;
7786 } else {
7787 }
7788 }
7789 return 0;
7790}
7791static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
7792 if (likely(err == exc_type)__builtin_expect(!!(err == exc_type), 1)) return 1;
7793 if (likely(PyExceptionClass_Check(err))__builtin_expect(!!((PyType_Check(((PyObject*)(((err))))) &&
PyType_HasFeature((PyTypeObject*)(err), (1UL << 30))))
, 1)
) {
7794 if (likely(PyExceptionClass_Check(exc_type))__builtin_expect(!!((PyType_Check(((PyObject*)(((exc_type))))
) && PyType_HasFeature((PyTypeObject*)(exc_type), (1UL
<< 30)))), 1)
) {
7795 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL((void*)0), exc_type);
7796 } else if (likely(PyTuple_Check(exc_type))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((exc_type
)))), (1UL << 26))), 1)
) {
7797 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
7798 } else {
7799 }
7800 }
7801 return PyErr_GivenExceptionMatches(err, exc_type);
7802}
7803static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
7804 assert(PyExceptionClass_Check(exc_type1))((void) sizeof (((PyType_Check(((PyObject*)(((exc_type1))))) &&
PyType_HasFeature((PyTypeObject*)(exc_type1), (1UL << 30
)))) ? 1 : 0), __extension__ ({ if ((PyType_Check(((PyObject*
)(((exc_type1))))) && PyType_HasFeature((PyTypeObject
*)(exc_type1), (1UL << 30)))) ; else __assert_fail ("PyExceptionClass_Check(exc_type1)"
, "nastranOP2Reader.c", 7804, __extension__ __PRETTY_FUNCTION__
); }))
;
7805 assert(PyExceptionClass_Check(exc_type2))((void) sizeof (((PyType_Check(((PyObject*)(((exc_type2))))) &&
PyType_HasFeature((PyTypeObject*)(exc_type2), (1UL << 30
)))) ? 1 : 0), __extension__ ({ if ((PyType_Check(((PyObject*
)(((exc_type2))))) && PyType_HasFeature((PyTypeObject
*)(exc_type2), (1UL << 30)))) ; else __assert_fail ("PyExceptionClass_Check(exc_type2)"
, "nastranOP2Reader.c", 7805, __extension__ __PRETTY_FUNCTION__
); }))
;
7806 if (likely(err == exc_type1 || err == exc_type2)__builtin_expect(!!(err == exc_type1 || err == exc_type2), 1)) return 1;
7807 if (likely(PyExceptionClass_Check(err))__builtin_expect(!!((PyType_Check(((PyObject*)(((err))))) &&
PyType_HasFeature((PyTypeObject*)(err), (1UL << 30))))
, 1)
) {
7808 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
7809 }
7810 return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
7811}
7812#endif
7813
7814/* CheckBinaryVersion */
7815static unsigned long __Pyx_get_runtime_version(void) {
7816#if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x030B00A4
7817 return Py_Version & ~0xFFUL;
7818#else
7819 const char* rt_version = Py_GetVersion();
7820 unsigned long version = 0;
7821 unsigned long factor = 0x01000000UL;
7822 unsigned int digit = 0;
7823 int i = 0;
7824 while (factor) {
7825 while ('0' <= rt_version[i] && rt_version[i] <= '9') {
7826 digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
7827 ++i;
7828 }
7829 version += factor * digit;
7830 if (rt_version[i] != '.')
7831 break;
7832 digit = 0;
7833 factor >>= 8;
7834 ++i;
7835 }
7836 return version;
7837#endif
7838}
7839static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
7840 const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
7841 if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
7842 return 0;
7843 if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR))__builtin_expect(!!(allow_newer && (rt_version & MAJOR_MINOR
) > (ct_version & MAJOR_MINOR)), 1)
)
7844 return 1;
7845 {
7846 char message[200];
7847 PyOS_snprintf(message, sizeof(message),
7848 "compile time Python version %d.%d "
7849 "of module '%.100s' "
7850 "%s "
7851 "runtime version %d.%d",
7852 (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
7853 __Pyx_MODULE_NAME"nastranOP2Reader",
7854 (allow_newer) ? "was newer than" : "does not match",
7855 (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
7856 );
7857 return PyErr_WarnEx(NULL((void*)0), message, 1);
7858 }
7859}
7860
7861/* InitStrings */
7862#if PY_MAJOR_VERSION3 >= 3
7863static int __Pyx_InitString(__Pyx_StringTabEntry t, PyObject **str) {
7864 if (t.is_unicode | t.is_str) {
7865 if (t.intern) {
7866 *str = PyUnicode_InternFromString(t.s);
7867 } else if (t.encoding) {
7868 *str = PyUnicode_Decode(t.s, t.n - 1, t.encoding, NULL((void*)0));
7869 } else {
7870 *str = PyUnicode_FromStringAndSize(t.s, t.n - 1);
7871 }
7872 } else {
7873 *str = PyBytes_FromStringAndSize(t.s, t.n - 1);
7874 }
7875 if (!*str)
7876 return -1;
7877 if (PyObject_Hash(*str) == -1)
7878 return -1;
7879 return 0;
7880}
7881#endif
7882static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
7883 while (t->p) {
7884 #if PY_MAJOR_VERSION3 >= 3
7885 __Pyx_InitString(*t, t->p);
7886 #else
7887 if (t->is_unicode) {
7888 *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL((void*)0));
7889 } else if (t->intern) {
7890 *t->p = PyString_InternFromString(t->s);
7891 } else {
7892 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
7893 }
7894 if (!*t->p)
7895 return -1;
7896 if (PyObject_Hash(*t->p) == -1)
7897 return -1;
7898 #endif
7899 ++t;
7900 }
7901 return 0;
7902}
7903
7904#include <string.h>
7905static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_ssize_t __Pyx_ssize_strlen(const char *s) {
7906 size_t len = strlen(s);
7907 if (unlikely(len > (size_t) PY_SSIZE_T_MAX)__builtin_expect(!!(len > (size_t) 9223372036854775807L), 0
)
) {
7908 PyErr_SetString(PyExc_OverflowError, "byte string is too long");
7909 return -1;
7910 }
7911 return (Py_ssize_t) len;
7912}
7913static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
7914 Py_ssize_t len = __Pyx_ssize_strlen(c_str);
7915 if (unlikely(len < 0)__builtin_expect(!!(len < 0), 0)) return NULL((void*)0);
7916 return __Pyx_PyUnicode_FromStringAndSize(c_str, len)PyUnicode_Decode(c_str, len, "", ((void*)0));
7917}
7918static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
7919 Py_ssize_t len = __Pyx_ssize_strlen(c_str);
7920 if (unlikely(len < 0)__builtin_expect(!!(len < 0), 0)) return NULL((void*)0);
7921 return PyByteArray_FromStringAndSize(c_str, len);
7922}
7923static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) const char* __Pyx_PyObject_AsString(PyObject* o) {
7924 Py_ssize_t ignore;
7925 return __Pyx_PyObject_AsStringAndSize(o, &ignore);
7926}
7927#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0)
7928#if !CYTHON_PEP393_ENABLED1
7929static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
7930 char* defenc_c;
7931 PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL((void*)0));
7932 if (!defenc) return NULL((void*)0);
7933 defenc_c = PyBytes_AS_STRING(defenc)PyBytes_AS_STRING(((PyObject*)((defenc))));
7934#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0
7935 {
7936 char* end = defenc_c + PyBytes_GET_SIZE(defenc)PyBytes_GET_SIZE(((PyObject*)((defenc))));
7937 char* c;
7938 for (c = defenc_c; c < end; c++) {
7939 if ((unsigned char) (*c) >= 128) {
7940 PyUnicode_AsASCIIString(o);
7941 return NULL((void*)0);
7942 }
7943 }
7944 }
7945#endif
7946 *length = PyBytes_GET_SIZE(defenc)PyBytes_GET_SIZE(((PyObject*)((defenc))));
7947 return defenc_c;
7948}
7949#else
7950static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
7951 if (unlikely(__Pyx_PyUnicode_READY(o) == -1)__builtin_expect(!!((__builtin_expect(!!(PyUnicode_IS_READY((
(PyObject*)((o))))), 1) ? 0 : _PyUnicode_Ready((PyObject *)(o
))) == -1), 0)
) return NULL((void*)0);
7952#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0
7953 if (likely(PyUnicode_IS_ASCII(o))__builtin_expect(!!(PyUnicode_IS_ASCII(((PyObject*)((o))))), 1
)
) {
7954 *length = PyUnicode_GET_LENGTH(o)PyUnicode_GET_LENGTH(((PyObject*)((o))));
7955 return PyUnicode_AsUTF8(o);
7956 } else {
7957 PyUnicode_AsASCIIString(o);
7958 return NULL((void*)0);
7959 }
7960#else
7961 return PyUnicode_AsUTF8AndSize(o, length);
7962#endif
7963}
7964#endif
7965#endif
7966static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
7967#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0)
7968 if (
7969#if PY_MAJOR_VERSION3 < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0
7970 __Pyx_sys_getdefaultencoding_not_ascii &&
7971#endif
7972 PyUnicode_Check(o)PyType_HasFeature(Py_TYPE(((PyObject*)((o)))), (1UL << 28
))
) {
7973 return __Pyx_PyUnicode_AsStringAndSize(o, length);
7974 } else
7975#endif
7976#if (!CYTHON_COMPILING_IN_PYPY0 && !CYTHON_COMPILING_IN_LIMITED_API0) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
7977 if (PyByteArray_Check(o)PyObject_TypeCheck(((PyObject*)((o))), &PyByteArray_Type)) {
7978 *length = PyByteArray_GET_SIZE(o)PyByteArray_GET_SIZE(((PyObject*)((o))));
7979 return PyByteArray_AS_STRING(o)PyByteArray_AS_STRING(((PyObject*)((o))));
7980 } else
7981#endif
7982 {
7983 char* result;
7984 int r = PyBytes_AsStringAndSize(o, &result, length);
7985 if (unlikely(r < 0)__builtin_expect(!!(r < 0), 0)) {
7986 return NULL((void*)0);
7987 } else {
7988 return result;
7989 }
7990 }
7991}
7992static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyObject_IsTrue(PyObject* x) {
7993 int is_true = x == Py_True((PyObject *) &_Py_TrueStruct);
7994 if (is_true | (x == Py_False((PyObject *) &_Py_FalseStruct)) | (x == Py_None(&_Py_NoneStruct))) return is_true;
7995 else return PyObject_IsTrue(x);
7996}
7997static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
7998 int retval;
7999 if (unlikely(!x)__builtin_expect(!!(!x), 0)) return -1;
8000 retval = __Pyx_PyObject_IsTrue(x);
8001 Py_DECREF(x)Py_DECREF(((PyObject*)((x))));
8002 return retval;
8003}
8004static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
8005 __Pyx_TypeName result_type_name = __Pyx_PyType_GetName(Py_TYPE(result))((Py_TYPE(((PyObject*)((result)))))->tp_name);
8006#if PY_MAJOR_VERSION3 >= 3
8007 if (PyLong_Check(result)PyType_HasFeature(Py_TYPE(((PyObject*)((result)))), (1UL <<
24))
) {
8008 if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
8009 "__int__ returned non-int (type " __Pyx_FMT_TYPENAME"%.200s" "). "
8010 "The ability to return an instance of a strict subclass of int is deprecated, "
8011 "and may be removed in a future version of Python.",
8012 result_type_name)) {
8013 __Pyx_DECREF_TypeName(result_type_name);
8014 Py_DECREF(result)Py_DECREF(((PyObject*)((result))));
8015 return NULL((void*)0);
8016 }
8017 __Pyx_DECREF_TypeName(result_type_name);
8018 return result;
8019 }
8020#endif
8021 PyErr_Format(PyExc_TypeError,
8022 "__%.4s__ returned non-%.4s (type " __Pyx_FMT_TYPENAME"%.200s" ")",
8023 type_name, type_name, result_type_name);
8024 __Pyx_DECREF_TypeName(result_type_name);
8025 Py_DECREF(result)Py_DECREF(((PyObject*)((result))));
8026 return NULL((void*)0);
8027}
8028static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
8029#if CYTHON_USE_TYPE_SLOTS1
8030 PyNumberMethods *m;
8031#endif
8032 const char *name = NULL((void*)0);
8033 PyObject *res = NULL((void*)0);
8034#if PY_MAJOR_VERSION3 < 3
8035 if (likely(PyInt_Check(x) || PyLong_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x
)))), (1UL << 24)) || PyType_HasFeature(Py_TYPE(((PyObject
*)((x)))), (1UL << 24))), 1)
)
8036#else
8037 if (likely(PyLong_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x
)))), (1UL << 24))), 1)
)
8038#endif
8039 return __Pyx_NewRef(x)(Py_INCREF(((PyObject*)((x)))), x);
8040#if CYTHON_USE_TYPE_SLOTS1
8041 m = Py_TYPE(x)Py_TYPE(((PyObject*)((x))))->tp_as_number;
8042 #if PY_MAJOR_VERSION3 < 3
8043 if (m && m->nb_int) {
8044 name = "int";
8045 res = m->nb_int(x);
8046 }
8047 else if (m && m->nb_long) {
8048 name = "long";
8049 res = m->nb_long(x);
8050 }
8051 #else
8052 if (likely(m && m->nb_int)__builtin_expect(!!(m && m->nb_int), 1)) {
8053 name = "int";
8054 res = m->nb_int(x);
8055 }
8056 #endif
8057#else
8058 if (!PyBytes_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyBytes_Type) && !PyUnicode_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyUnicode_Type)) {
8059 res = PyNumber_IntPyNumber_Long(x);
8060 }
8061#endif
8062 if (likely(res)__builtin_expect(!!(res), 1)) {
8063#if PY_MAJOR_VERSION3 < 3
8064 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))__builtin_expect(!!(!PyType_HasFeature(Py_TYPE(((PyObject*)((
res)))), (1UL << 24)) && !PyType_HasFeature(Py_TYPE
(((PyObject*)((res)))), (1UL << 24))), 0)
) {
8065#else
8066 if (unlikely(!PyLong_CheckExact(res))__builtin_expect(!!(!Py_IS_TYPE(((PyObject*)((res))), &PyLong_Type
)), 0)
) {
8067#endif
8068 return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
8069 }
8070 }
8071 else if (!PyErr_Occurred()) {
8072 PyErr_SetString(PyExc_TypeError,
8073 "an integer is required");
8074 }
8075 return res;
8076}
8077static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
8078 Py_ssize_t ival;
8079 PyObject *x;
8080#if PY_MAJOR_VERSION3 < 3
8081 if (likely(PyInt_CheckExact(b))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((b))), &PyLong_Type
)), 1)
) {
8082 if (sizeof(Py_ssize_t) >= sizeof(long))
8083 return PyInt_AS_LONG(b)PyLong_AsLong(b);
8084 else
8085 return PyInt_AsSsize_tPyLong_AsSsize_t(b);
8086 }
8087#endif
8088 if (likely(PyLong_CheckExact(b))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((b))), &PyLong_Type
)), 1)
) {
8089 #if CYTHON_USE_PYLONG_INTERNALS1
8090 if (likely(__Pyx_PyLong_IsCompact(b))__builtin_expect(!!((Py_SIZE(((PyObject*)((b)))) == 0 || Py_SIZE
(((PyObject*)((b)))) == 1 || Py_SIZE(((PyObject*)((b)))) == -
1)), 1)
) {
8091 return __Pyx_PyLong_CompactValue(b)((Py_SIZE(((PyObject*)((b)))) == 0) ? (sdigit) 0 : ((Py_SIZE(
((PyObject*)((b)))) < 0) ? -(sdigit)(((PyLongObject*)b)->
ob_digit)[0] : (sdigit)(((PyLongObject*)b)->ob_digit)[0]))
;
8092 } else {
8093 const digit* digits = __Pyx_PyLong_Digits(b)(((PyLongObject*)b)->ob_digit);
8094 const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b)Py_SIZE(((PyObject*)((b))));
8095 switch (size) {
8096 case 2:
8097 if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT30) {
8098 return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0]));
8099 }
8100 break;
8101 case -2:
8102 if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT30) {
8103 return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0]));
8104 }
8105 break;
8106 case 3:
8107 if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT30) {
8108 return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT30) | (size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0]));
8109 }
8110 break;
8111 case -3:
8112 if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT30) {
8113 return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT30) | (size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0]));
8114 }
8115 break;
8116 case 4:
8117 if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT30) {
8118 return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT30) | (size_t)digits[2]) << PyLong_SHIFT30) | (size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0]));
8119 }
8120 break;
8121 case -4:
8122 if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT30) {
8123 return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT30) | (size_t)digits[2]) << PyLong_SHIFT30) | (size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0]));
8124 }
8125 break;
8126 }
8127 }
8128 #endif
8129 return PyLong_AsSsize_t(b);
8130 }
8131 x = PyNumber_Index(b);
8132 if (!x) return -1;
8133 ival = PyInt_AsSsize_tPyLong_AsSsize_t(x);
8134 Py_DECREF(x)Py_DECREF(((PyObject*)((x))));
8135 return ival;
8136}
8137static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
8138 if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
8139 return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
8140#if PY_MAJOR_VERSION3 < 3
8141 } else if (likely(PyInt_CheckExact(o))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((o))), &PyLong_Type
)), 1)
) {
8142 return PyInt_AS_LONG(o)PyLong_AsLong(o);
8143#endif
8144 } else {
8145 Py_ssize_t ival;
8146 PyObject *x;
8147 x = PyNumber_Index(o);
8148 if (!x) return -1;
8149 ival = PyInt_AsLongPyLong_AsLong(x);
8150 Py_DECREF(x)Py_DECREF(((PyObject*)((x))));
8151 return ival;
8152 }
8153}
8154static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyBool_FromLong(long b) {
8155 return b ? __Pyx_NewRef(Py_True)(Py_INCREF(((PyObject*)((((PyObject *) &_Py_TrueStruct)))
)), ((PyObject *) &_Py_TrueStruct))
: __Pyx_NewRef(Py_False)(Py_INCREF(((PyObject*)((((PyObject *) &_Py_FalseStruct))
))), ((PyObject *) &_Py_FalseStruct))
;
8156}
8157static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
8158 return PyInt_FromSize_tPyLong_FromSize_t(ival);
8159}
8160
8161
8162/* #### Code section: utility_code_pragmas_end ### */
8163#ifdef _MSC_VER
8164#pragma warning( pop )
8165#endif
8166
8167
8168
8169/* #### Code section: end ### */
8170#endif /* Py_PYTHON_H */