blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 3
264
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 0
85
| license_type
stringclasses 2
values | repo_name
stringlengths 5
140
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 905
values | visit_date
timestamp[us]date 2015-08-09 11:21:18
2023-09-06 10:45:07
| revision_date
timestamp[us]date 1997-09-14 05:04:47
2023-09-17 19:19:19
| committer_date
timestamp[us]date 1997-09-14 05:04:47
2023-09-06 06:22:19
| github_id
int64 3.89k
681M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us]date 2012-06-07 00:51:45
2023-09-14 21:58:39
⌀ | gha_created_at
timestamp[us]date 2008-03-27 23:40:48
2023-08-21 23:17:38
⌀ | gha_language
stringclasses 141
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 3
10.4M
| extension
stringclasses 115
values | content
stringlengths 3
10.4M
| authors
sequencelengths 1
1
| author_id
stringlengths 0
158
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
409e4cdc9d0cf84c9121412dd2d60f2924bfbbad | d1b03d4b061305018084b4dc21a4bdba35335c05 | /Plugins/SocketIOClient/Source/ThirdParty/asio/asio/include/asio/windows/random_access_handle.hpp | 60b18fd1688272974a28f40d88b7097562a392ee | [
"BSL-1.0",
"Apache-2.0",
"MIT"
] | permissive | uetopia/ExampleGame | 004b9f1a6f93c725750a82b51cac8d8516c3b769 | 008ab5d3e817ef763fa42ed551715208682a7ecf | refs/heads/master | 2023-03-08T07:56:55.819372 | 2023-02-26T14:59:42 | 2023-02-26T14:59:42 | 205,035,752 | 36 | 16 | Apache-2.0 | 2020-05-23T22:14:35 | 2019-08-28T22:42:22 | C++ | UTF-8 | C++ | false | false | 14,419 | hpp | //
// windows/random_access_handle.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef ASIO_WINDOWS_RANDOM_ACCESS_HANDLE_HPP
#define ASIO_WINDOWS_RANDOM_ACCESS_HANDLE_HPP
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
#include "asio/detail/config.hpp"
#include "asio/windows/overlapped_handle.hpp"
#if defined(ASIO_HAS_WINDOWS_RANDOM_ACCESS_HANDLE) \
|| defined(GENERATING_DOCUMENTATION)
#if defined(ASIO_ENABLE_OLD_SERVICES)
# include "asio/windows/basic_random_access_handle.hpp"
#endif // defined(ASIO_ENABLE_OLD_SERVICES)
#include "asio/detail/push_options.hpp"
namespace asio {
namespace windows {
#if defined(ASIO_ENABLE_OLD_SERVICES)
// Typedef for the typical usage of a random-access handle.
typedef basic_random_access_handle<> random_access_handle;
#else // defined(ASIO_ENABLE_OLD_SERVICES)
/// Provides random-access handle functionality.
/**
* The windows::random_access_handle class provides asynchronous and
* blocking random-access handle functionality.
*
* @par Thread Safety
* @e Distinct @e objects: Safe.@n
* @e Shared @e objects: Unsafe.
*/
class random_access_handle
: public overlapped_handle
{
public:
/// Construct a random_access_handle without opening it.
/**
* This constructor creates a random-access handle without opening it. The
* handle needs to be opened before data can be written to or read from it.
*
* @param io_context The io_context object that the random-access handle will
* use to dispatch handlers for any asynchronous operations performed on the
* handle.
*/
explicit random_access_handle(asio::io_context& io_context)
: overlapped_handle(io_context)
{
}
/// Construct a random_access_handle on an existing native handle.
/**
* This constructor creates a random-access handle object to hold an existing
* native handle.
*
* @param io_context The io_context object that the random-access handle will
* use to dispatch handlers for any asynchronous operations performed on the
* handle.
*
* @param handle The new underlying handle implementation.
*
* @throws asio::system_error Thrown on failure.
*/
random_access_handle(asio::io_context& io_context,
const native_handle_type& handle)
: overlapped_handle(io_context, handle)
{
}
#if defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
/// Move-construct a random_access_handle from another.
/**
* This constructor moves a random-access handle from one object to another.
*
* @param other The other random_access_handle object from which the
* move will occur.
*
* @note Following the move, the moved-from object is in the same state as if
* constructed using the @c random_access_handle(io_context&)
* constructor.
*/
random_access_handle(random_access_handle&& other)
: overlapped_handle(std::move(other))
{
}
/// Move-assign a random_access_handle from another.
/**
* This assignment operator moves a random-access handle from one object to
* another.
*
* @param other The other random_access_handle object from which the
* move will occur.
*
* @note Following the move, the moved-from object is in the same state as if
* constructed using the @c random_access_handle(io_context&)
* constructor.
*/
random_access_handle& operator=(random_access_handle&& other)
{
overlapped_handle::operator=(std::move(other));
return *this;
}
#endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
/// Write some data to the handle at the specified offset.
/**
* This function is used to write data to the random-access handle. The
* function call will block until one or more bytes of the data has been
* written successfully, or until an error occurs.
*
* @param offset The offset at which the data will be written.
*
* @param buffers One or more data buffers to be written to the handle.
*
* @returns The number of bytes written.
*
* @throws asio::system_error Thrown on failure. An error code of
* asio::error::eof indicates that the connection was closed by the
* peer.
*
* @note The write_some_at operation may not write all of the data. Consider
* using the @ref write_at function if you need to ensure that all data is
* written before the blocking operation completes.
*
* @par Example
* To write a single data buffer use the @ref buffer function as follows:
* @code
* handle.write_some_at(42, asio::buffer(data, size));
* @endcode
* See the @ref buffer documentation for information on writing multiple
* buffers in one go, and how to use it with arrays, boost::array or
* std::vector.
*/
template <typename ConstBufferSequence>
std::size_t write_some_at(uint64_t offset,
const ConstBufferSequence& buffers)
{
asio::error_code ec;
std::size_t s = this->get_service().write_some_at(
this->get_implementation(), offset, buffers, ec);
asio::detail::throw_error(ec, "write_some_at");
return s;
}
/// Write some data to the handle at the specified offset.
/**
* This function is used to write data to the random-access handle. The
* function call will block until one or more bytes of the data has been
* written successfully, or until an error occurs.
*
* @param offset The offset at which the data will be written.
*
* @param buffers One or more data buffers to be written to the handle.
*
* @param ec Set to indicate what error occurred, if any.
*
* @returns The number of bytes written. Returns 0 if an error occurred.
*
* @note The write_some operation may not transmit all of the data to the
* peer. Consider using the @ref write_at function if you need to ensure that
* all data is written before the blocking operation completes.
*/
template <typename ConstBufferSequence>
std::size_t write_some_at(uint64_t offset,
const ConstBufferSequence& buffers, asio::error_code& ec)
{
return this->get_service().write_some_at(
this->get_implementation(), offset, buffers, ec);
}
/// Start an asynchronous write at the specified offset.
/**
* This function is used to asynchronously write data to the random-access
* handle. The function call always returns immediately.
*
* @param offset The offset at which the data will be written.
*
* @param buffers One or more data buffers to be written to the handle.
* Although the buffers object may be copied as necessary, ownership of the
* underlying memory blocks is retained by the caller, which must guarantee
* that they remain valid until the handler is called.
*
* @param handler The handler to be called when the write operation completes.
* Copies will be made of the handler as required. The function signature of
* the handler must be:
* @code void handler(
* const asio::error_code& error, // Result of operation.
* std::size_t bytes_transferred // Number of bytes written.
* ); @endcode
* Regardless of whether the asynchronous operation completes immediately or
* not, the handler will not be invoked from within this function. Invocation
* of the handler will be performed in a manner equivalent to using
* asio::io_context::post().
*
* @note The write operation may not transmit all of the data to the peer.
* Consider using the @ref async_write_at function if you need to ensure that
* all data is written before the asynchronous operation completes.
*
* @par Example
* To write a single data buffer use the @ref buffer function as follows:
* @code
* handle.async_write_some_at(42, asio::buffer(data, size), handler);
* @endcode
* See the @ref buffer documentation for information on writing multiple
* buffers in one go, and how to use it with arrays, boost::array or
* std::vector.
*/
template <typename ConstBufferSequence, typename WriteHandler>
ASIO_INITFN_RESULT_TYPE(WriteHandler,
void (asio::error_code, std::size_t))
async_write_some_at(uint64_t offset,
const ConstBufferSequence& buffers,
ASIO_MOVE_ARG(WriteHandler) handler)
{
// If you get an error on the following line it means that your handler does
// not meet the documented type requirements for a WriteHandler.
ASIO_WRITE_HANDLER_CHECK(WriteHandler, handler) type_check;
asio::async_completion<WriteHandler,
void (asio::error_code, std::size_t)> init(handler);
this->get_service().async_write_some_at(this->get_implementation(),
offset, buffers, init.completion_handler);
return init.result.get();
}
/// Read some data from the handle at the specified offset.
/**
* This function is used to read data from the random-access handle. The
* function call will block until one or more bytes of data has been read
* successfully, or until an error occurs.
*
* @param offset The offset at which the data will be read.
*
* @param buffers One or more buffers into which the data will be read.
*
* @returns The number of bytes read.
*
* @throws asio::system_error Thrown on failure. An error code of
* asio::error::eof indicates that the connection was closed by the
* peer.
*
* @note The read_some operation may not read all of the requested number of
* bytes. Consider using the @ref read_at function if you need to ensure that
* the requested amount of data is read before the blocking operation
* completes.
*
* @par Example
* To read into a single data buffer use the @ref buffer function as follows:
* @code
* handle.read_some_at(42, asio::buffer(data, size));
* @endcode
* See the @ref buffer documentation for information on reading into multiple
* buffers in one go, and how to use it with arrays, boost::array or
* std::vector.
*/
template <typename MutableBufferSequence>
std::size_t read_some_at(uint64_t offset,
const MutableBufferSequence& buffers)
{
asio::error_code ec;
std::size_t s = this->get_service().read_some_at(
this->get_implementation(), offset, buffers, ec);
asio::detail::throw_error(ec, "read_some_at");
return s;
}
/// Read some data from the handle at the specified offset.
/**
* This function is used to read data from the random-access handle. The
* function call will block until one or more bytes of data has been read
* successfully, or until an error occurs.
*
* @param offset The offset at which the data will be read.
*
* @param buffers One or more buffers into which the data will be read.
*
* @param ec Set to indicate what error occurred, if any.
*
* @returns The number of bytes read. Returns 0 if an error occurred.
*
* @note The read_some operation may not read all of the requested number of
* bytes. Consider using the @ref read_at function if you need to ensure that
* the requested amount of data is read before the blocking operation
* completes.
*/
template <typename MutableBufferSequence>
std::size_t read_some_at(uint64_t offset,
const MutableBufferSequence& buffers, asio::error_code& ec)
{
return this->get_service().read_some_at(
this->get_implementation(), offset, buffers, ec);
}
/// Start an asynchronous read at the specified offset.
/**
* This function is used to asynchronously read data from the random-access
* handle. The function call always returns immediately.
*
* @param offset The offset at which the data will be read.
*
* @param buffers One or more buffers into which the data will be read.
* Although the buffers object may be copied as necessary, ownership of the
* underlying memory blocks is retained by the caller, which must guarantee
* that they remain valid until the handler is called.
*
* @param handler The handler to be called when the read operation completes.
* Copies will be made of the handler as required. The function signature of
* the handler must be:
* @code void handler(
* const asio::error_code& error, // Result of operation.
* std::size_t bytes_transferred // Number of bytes read.
* ); @endcode
* Regardless of whether the asynchronous operation completes immediately or
* not, the handler will not be invoked from within this function. Invocation
* of the handler will be performed in a manner equivalent to using
* asio::io_context::post().
*
* @note The read operation may not read all of the requested number of bytes.
* Consider using the @ref async_read_at function if you need to ensure that
* the requested amount of data is read before the asynchronous operation
* completes.
*
* @par Example
* To read into a single data buffer use the @ref buffer function as follows:
* @code
* handle.async_read_some_at(42, asio::buffer(data, size), handler);
* @endcode
* See the @ref buffer documentation for information on reading into multiple
* buffers in one go, and how to use it with arrays, boost::array or
* std::vector.
*/
template <typename MutableBufferSequence, typename ReadHandler>
ASIO_INITFN_RESULT_TYPE(ReadHandler,
void (asio::error_code, std::size_t))
async_read_some_at(uint64_t offset,
const MutableBufferSequence& buffers,
ASIO_MOVE_ARG(ReadHandler) handler)
{
// If you get an error on the following line it means that your handler does
// not meet the documented type requirements for a ReadHandler.
ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
asio::async_completion<ReadHandler,
void (asio::error_code, std::size_t)> init(handler);
this->get_service().async_read_some_at(this->get_implementation(),
offset, buffers, init.completion_handler);
return init.result.get();
}
};
#endif // defined(ASIO_ENABLE_OLD_SERVICES)
} // namespace windows
} // namespace asio
#include "asio/detail/pop_options.hpp"
#endif // defined(ASIO_HAS_WINDOWS_RANDOM_ACCESS_HANDLE)
// || defined(GENERATING_DOCUMENTATION)
#endif // ASIO_WINDOWS_RANDOM_ACCESS_HANDLE_HPP
| [
"[email protected]"
] | |
d625fa1e37f003bbecb6f3fffc9ffab38ed2e612 | b2b298f4f3205e16e0491b26f81df7e352dddc7a | /src/FileGDB/samples/ProcessTopologies/ProcessTopologies.cpp | 9870a4b5296210e8ed2f072e2cc31b7bf0566186 | [] | no_license | mustafaemre06/tools | 9e20ded4fb34a5494e15a9f630952133e4c15ec0 | 7135c1376b643d7d3730fb180dafa53dfb2cefe5 | refs/heads/master | 2020-12-12T06:23:53.718215 | 2017-07-05T14:55:58 | 2017-07-05T14:55:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,542 | cpp | // Sample: ProcessTopologies
//
// Demonstrates how to extract the topology rules from a topology. The Definition of the
// topology does not include the names of the origin and destination feature classes. This
// sample uses libXML the extract the feature class names and the topology rules.
//
// Copyright 2017 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
//
// See the use restrictions at <your File Geodatabase API install location>/license/userestrictions.txt.
//
#include <string>
#include <iostream>
#include <fstream>
#include <FileGDBAPI.h>
#include "LibXMLSession.h"
#include "TopologyInterpreter.h"
using namespace std;
using namespace FileGDBAPI;
int main()
{
fgdbError hr;
wstring errorText;
Geodatabase geodatabase;
if ((hr = OpenGeodatabase(wstring(L"../data/Topo.gdb"), geodatabase)) != S_OK)
{
wcout << "An error occurred while opening the geodatabase." << endl;
ErrorInfo::GetErrorDescription(hr, errorText);
wcout << errorText << "(" << hr << ")." << endl;
return -1;
}
vector<string> childrenDefinitions;
if ((hr = geodatabase.GetChildDatasetDefinitions(wstring(L"\\USA"), wstring(L"Feature Class"), childrenDefinitions)) != S_OK)
{
wcout << "Failure getting child definitions" << endl;
ErrorInfo::GetErrorDescription(hr, errorText);
wcout << errorText << "(" << hr << ")." << endl;
return -1;
}
std::string xml;
if ((hr = geodatabase.GetDatasetDefinition(wstring(L"\\USA\\USA_Topology"), wstring(L"Topology"), xml)) != S_OK)
{
wcout << "Failure getting topology def" << endl;
ErrorInfo::GetErrorDescription(hr, errorText);
wcout << errorText << "(" << hr << ")." << endl;
return -1;
}
// manages libxml memory - only call after we are done with geodatabase, etc.
LibXMLSession xmlSession;
try
{
TopologyInterpreter interpreter(xml, childrenDefinitions);
cout << interpreter.Name << endl;
for (size_t idx = 0; idx < interpreter.Records.size(); idx++)
cout << interpreter.Records[idx].Relationship << " Origin Class: " << interpreter.Records[idx].OriginName << " Destination Class: " << interpreter.Records[idx].DestinationName << endl;
}
catch(const wchar_t* e)
{
wcout << e << endl;
return -1;
}
return 0;
}
| [
"[email protected]"
] | |
9c0117abd0a8ffddf2e7e3712d867b2c9feaa1a8 | bae3cce507524b9d5b1f5fc5d3a3bb489f95b8df | /Upsolves/Codeforces/1493E.cpp | 9943ea9c85b2ce6170b1581fa60394ce272d0fd2 | [] | no_license | tauhrick/Competitive-Programming | 487e0221e29e8f28f1d5b65db06271f585541df8 | abcdb18c3e0c48ea576c8b37f7db80c7807cd04c | refs/heads/master | 2023-07-11T05:37:28.700431 | 2021-08-30T15:40:12 | 2021-08-30T15:40:12 | 193,487,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,091 | cpp | #ifndef LOCAL
#include <bits/stdc++.h>
using namespace std;
#define debug(...) 42
#else
#include "Debug.hpp"
#endif
class Task {
public:
void Perform() {
Read();
Solve();
}
private:
int n;
string l, r;
void Read() {
cin >> n >> l >> r;
}
void Solve() {
if (l[0] == '0' && r[0] == '1') {
cout << string(n, '1');
} else {
if (r[n - 1] == '1') {
cout << r;
} else {
if (l == string(n - 1, '0') + string(1, '1') || OkGap()) {
cout << r.substr(0, n - 1) << '1';
} else {
cout << r;
}
}
}
cout << '\n';
}
bool OkGap() {
Increment(l);
Increment(l);
return int(l.size()) == n && l <= r;
}
void Increment(string &s) {
int carry = 1;
for (int i = n - 1; i >= 0; --i) {
int bit = s[i] - '0';
int sum = bit + carry;
s[i] = char('0' + sum % 2);
carry = sum / 2;
}
if (carry) {
s = "1" + s;
}
}
};
int main() {
ios_base::sync_with_stdio(false), cin.tie(nullptr);
Task t;
t.Perform();
return 0;
} | [
"[email protected]"
] | |
db821de150bb4e2d91c71379c37708bd5560d75b | f36cab2b1ad98a84fef194d8176919b3d03f7f8a | /ModelViewer/ViewerFoundation/RayTracing/NuoRayTracingRandom.h | e4176c674e86f5b6525e958eca032d17890c6e64 | [
"BSD-3-Clause"
] | permissive | middlefeng/NuoModelViewer | 74b82d417ee2454f3b7113a82bf66d2bcb9b6bc1 | eb0996b4a8c5559da3d279dc356dc3a27bde5acd | refs/heads/master | 2023-07-25T20:05:46.599373 | 2023-07-25T04:42:25 | 2023-07-25T04:42:25 | 67,608,101 | 314 | 44 | MIT | 2020-01-24T19:28:22 | 2016-09-07T13:17:01 | C++ | UTF-8 | C++ | false | false | 2,036 | h | //
// NuoRayTracingRandom.hpp
// ModelViewer
//
// Created by Dong on 6/3/19.
// Copyright © 2019 middleware. All rights reserved.
//
#ifndef NuoRayTracingRandom_hpp
#define NuoRayTracingRandom_hpp
#include <sys/types.h>
#include "NuoRandomBuffer.h"
#include "NuoRayTracingUniform.h"
template <>
inline void NuoRandomBufferStratified<NuoRayTracingRandomUnit>::UpdateBuffer()
{
const float invSample = 1.0f / (float)_stratification;
for (size_t i = 0; i < _bufferSize; ++i)
{
for (size_t currentDimension = 0; currentDimension < _dimension; ++currentDimension)
{
_buffer[i + _bufferSize * currentDimension] =
{
// _uv
{
((float)_stratCurrentX[currentDimension] + UniformRandom()) * invSample,
((float)_stratCurrentY[currentDimension] + UniformRandom()) * invSample
},
// path determinator
UniformRandom(),
// light source surfce
{
((float)_stratCurrentX[currentDimension] + UniformRandom()) * invSample,
((float)_stratCurrentY[currentDimension] + UniformRandom()) * invSample
},
// light source select
UniformRandom(),
// light source surfce by scatter
{
((float)_stratCurrentX[currentDimension] + UniformRandom()) * invSample,
((float)_stratCurrentY[currentDimension] + UniformRandom()) * invSample
},
// path determinator for the light source scatter
UniformRandom()
};
}
}
UpdateStratification();
}
typedef NuoRandomBufferStratified<NuoRayTracingRandomUnit> NuoRayTracingRandom;
typedef std::shared_ptr<NuoRayTracingRandom> PNuoRayTracingRandom;
#endif /* NuoRayTracingRandom_hpp */
| [
"[email protected]"
] | |
b7fbe806beaa502eddd1bd3712b384808d457967 | 6093c0182534916c34f262443d1f0662a3fc97e5 | /src/JCode/JFrameWork/JString.h | 9765d68d824f55344f222c7a7a4d5b7a001d25e1 | [] | no_license | weiganyi/jphone | 3e413d26c8a9757be892caec05c43725949a022d | f15f3cd6e4c74a79e43143892f45635654f017a5 | refs/heads/master | 2016-09-06T17:40:57.593606 | 2013-10-09T08:54:20 | 2013-10-09T08:54:20 | 11,838,135 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,271 | h | /**********************************************************
* Author: weiganyi
* File: JString.h
* Date: 20121112
* Description:
*
**********************************************************/
#ifndef _JSTRING_H_
#define _JSTRING_H_
namespace JFrameWork{
//JString definition
class JString: public JObject{
public:
JString(JCHAR* pStr=0, JStaticMemory* pAllocator=JNULL);
~JString();
JString(JString& rString);
//assinment operator
JUINT32 operator=(JString& rString);
JUINT32 operator=(JCHAR* pStr);
//equal operator
JBOOL operator==(JString& rString);
JBOOL operator==(JCHAR* pStr);
//unequal operator
JBOOL operator!=(JString& rString);
JBOOL operator!=(JCHAR* pStr);
//add operator
JString& operator+=(JString& rString);
JString& operator+=(JCHAR* pStr);
JUINT32 Clear();
JCHAR* c_str();
JUINT32 GetLength();
JStaticMemory* GetAllocator();
JUINT32 SetAllocator(JStaticMemory* pAllocator);
private:
//static memory handler
JStaticMemory* m_pAllocator;
//data and length
JCHAR* m_pData;
JUINT32 m_uiLen;
JUINT32 Copy(JString& rString);
JUINT32 Copy(JCHAR* pStr);
JBOOL NoEqual(JString& rString);
JBOOL NoEqual(JCHAR* pStr);
};
}
#endif
| [
"[email protected]"
] | |
0697e82dc83f5137ef915f91deeb9322daaa28a9 | 16cc51136912b0e64a8c24656212fa1438be7dfc | /role/tree108153116.cpp | ed713ab75f9a018723b8428e2412983723be2fc2 | [
"MIT"
] | permissive | Taiwanese-person/DSPractice | 3a080733870ce68efb73c1882c038611313890d8 | 740d0fd2fd7ea1f4fd67cc4a4e8812ee1a7ba59c | refs/heads/main | 2023-02-15T04:00:34.472719 | 2021-01-07T04:08:19 | 2021-01-07T04:08:19 | 301,279,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 835 | cpp | #include <iostream>
using namespace std;
struct Node{
int data;
Node *children;
Node *parent;
};
Node *root1,*root2;
Node root() {
return *root1;
}
void addChild(Node *p, Node *n) {
p->children = n;
}
void cut(Node *t) {
root2 = t;
}
void paste(Node *n, Node *t) {
n->children = root2;
}
int main() {
Node *node1, *node2, *node3, *node4, *node5, *node6;
node1=new Node;
node1->data=1;
node2=new Node;
node2->data=2;
node3=new Node;
node3->data=3;
node4=new Node;
node4->data=4;
node5=new Node;
node5->data=5;
root1=node1;
node4->parent=node1;
node2->parent=node1;
node1->children=node4;
node1->children=node2;
node5->parent=node4;
node4->children=node5;
node3->parent=node2;
node2->children=node3;
node3->children=NULL;
node5->children=NULL;
root();
addChild(node1,node6);
cut(node3);
paste(node5,node3);
}
| [
"[email protected]"
] | |
43eed82edf1cf14a3026bbc97a1e1bcb3f260885 | 49c6cf776addc6fbac50c887edfa168d81aa7729 | /Libraries/graphAlgorithms/dijkstra_grid.hpp | d83e4f0fadf801561ce1e9d890ab377ea57c796f | [] | no_license | Ryednap/Coding-Competition | b43e38b4e8d3bfc7eee21750cd1014fb4ce49c54 | a4fd7b97f3898e60800689fe27b8c00ac8a456fa | refs/heads/main | 2023-08-19T06:55:04.344956 | 2021-10-08T05:59:24 | 2021-10-08T05:59:24 | 398,359,907 | 0 | 0 | null | 2021-08-28T12:33:09 | 2021-08-20T17:55:14 | C++ | UTF-8 | C++ | false | false | 1,560 | hpp | #include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
using vi = vector<int>;
constexpr int OO = (int)1e9;
template<typename T>
struct Edge {
pii from, to;
T cost;
Edge () {}
Edge (pii f, pii t, T c) : from(f), to(t), cost(c) {}
bool operator < (const Edge & rhs) const {
return cost > rhs.cost; // for priority_queue
}
};
// debug & operator << (debug & d, cosnt Edge & e) { d << "{ " << from << ", " << to << ", " << cost << " }"; return d;}
array<int, 4> dx = {-1, 1, 0, 0};
array<int, 4> dy = {-1, 1, 0, 0};
/*
type T :- type for storing distance
Assuming cost function is given other modify the * place
*/
template<typename T>
vector<vector<T>> dijkstra (const vector<vi> & grid, const vector<vi> & cost, pii src = 0) {
vector<vector<T>> dist(grid.size(), OO);
dist[src.first][src.second] = 0;
using et = Edge<T>;
priority_queue<et> pq;
pq.push(et(pii(-1, -1), src, 0));
auto valid = [&] (int x, int y) -> bool {
if (x < 0 || y < 0 | x >= (int)grid.size() || y >= (int)grid[0].size()) return false;
// other constraints;
return true;
};
while (!pq.empty()) {
auto v = pq.top(); pq.pop();
int w = v.cost;
pii to = v.to;
if (w > dist[to.first][to.second]) continue; // some other state reached better
for (size_t i = 0; i < dx.size(); ++i) {
int rr = dx[i] + to.first;
int cc = dy[i] + to.second;
if (valid(rr, cc)) {
int c = w + cost[to.first][to.second]; //*
if (c < dist[rr][cc]) {
dist[rr][cc] = c; pq.push(et(to, pii(rr, cc), c));
}
}
}
}
return dist;
} | [
"[email protected]"
] | |
4f7368b1b52e7b4939bfe0db0a2e5364354099b0 | 249b524c323cada38091e83cba617b1c5a63e2a8 | /clock_divider_ut.cpp | dcc2252a467bfc16a23d1007ef6c9946d3c7533c | [] | no_license | m4tice/Viterbi_Encoder | f29d15dd14b71df7531e1fdc31fb16871216024f | ce82822dbfbb5cfffcaf06d9bfa88ec573d16455 | refs/heads/master | 2022-01-12T21:45:32.455299 | 2019-06-28T22:17:04 | 2019-06-28T22:17:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 663 | cpp | #include "sc_test_framework.h"
#include "clock_divider.h""
static const int clock_period = 14;
static const double clock_duty = 0.5;
static const int clock_start = 20;
SC_TEST(clock_divider) {
sc_clock sys_clock("sys_clock", clock_period, clock_duty, clock_start, false);
sc_signal<bool> div_clock_3;
sc_signal<bool> div_clock_4;
SC_TRACE(sys_clock, "sys_clock");
SC_TRACE(div_clock_3, "div_clock_3");
SC_TRACE(div_clock_4, "div_clock_4");
clock_divider<3> div_3("DivideBy3");
clock_divider<4> div_4("DivideBy4");
div_3.clk_in(sys_clock);
div_4.clk_in(sys_clock);
div_3.clk_out(div_clock_3);
div_4.clk_out(div_clock_4);
sc_start(350, SC_NS);
} | [
"[email protected]"
] | |
f88d9e9468fcb973fe07ddc072edf1fa213a80ab | 972da6b1bf7f4dfc15db821f0cc6d474e42c4dd4 | /Day19/part2.cpp | 43f11e82cbd945db2f872da5fe9814a803aaad91 | [] | no_license | arriopolis/AOC2020 | fc3b3593f8bc5a997672ade3a7835f92c99daf05 | 8f2277527421c2775f4a51301b7aae7c32e6211f | refs/heads/master | 2023-02-05T13:34:39.445401 | 2020-12-25T13:07:47 | 2020-12-25T13:07:47 | 318,109,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,018 | cpp | #include <iostream>
#include <string>
#include <map>
#include <set>
#include <vector>
#include <algorithm>
using namespace std;
const int poss_length = 8;
int main() {
string s;
map<int,set<vector<int>>> g;
map<int,vector<string>> a;
while (getline(cin,s)) {
if (s.size() == 0) break;
int rule = stoi(s.substr(0,s.find(':')));
s = s.substr(s.find(':')+2);
if (s[0] == '"') {
s = s.substr(1,s.size()-2);
a[rule].push_back(s);
} else {
vector<int> l;
while (s.find(' ') != -1) {
if (s[0] == '|') {
g[rule].insert(l);
l.clear();
} else l.push_back(stoi(s.substr(0,s.find(' '))));
s = s.substr(s.find(' ')+1);
}
l.push_back(stoi(s));
g[rule].insert(l);
}
}
g[8] = {{42}, {42,8}};
g[11] = {{42,31}, {42,11,31}};
set<string> v;
while (getline(cin,s)) {
v.insert(s);
}
for (auto p : g) {
cout << p.first << ": ";
for (auto i : p.second) {
for (auto j : i) cout << j << ' ';
cout << ", ";
}
cout << endl;
}
for (auto p : a) {
cout << p.first << ": ";
for (string s : p.second) {
cout << s << ", ";
}
cout << endl;
}
bool changed = true;
while (changed) {
changed = false;
for (auto p : g) {
if (a.find(p.first) != a.end()) continue;
bool loop = false;
for (auto i : p.second) {
if (find(i.begin(), i.end(), p.first) != i.end()) {
loop = true;
break;
}
}
if (loop) continue;
bool success = true;
for (auto i : p.second) {
for (int j : i) {
if (a.find(j) == a.end()) {
success = false;
break;
}
}
}
if (success) {
changed = true;
vector<string> pos;
for (auto i : p.second) {
int f = 1;
for (int j : i) f *= a[j].size();
for (int k = 0; k < f; k++) {
string t = "";
int l = k;
for (int j : i) {
t += a[j][l%a[j].size()];
l /= a[j].size();
}
pos.push_back(t);
}
}
a[p.first] = pos;
}
}
}
for (auto p : a) {
cout << p.first << ": ";
for (string s : p.second) {
cout << s << ", ";
}
cout << endl;
}
int ctr = 0;
for (string t : v) {
int ctr42 = 0, ctr31 = 0;
string tmp = t;
while (t.size() >= 2*poss_length && find(a[42].begin(), a[42].end(), t.substr(0,poss_length)) != a[42].end()) {
t = t.substr(poss_length);
ctr42++;
}
while (t.size() >= poss_length && find(a[31].begin(), a[31].end(), t.substr(0,poss_length)) != a[31].end()) {
t = t.substr(poss_length);
ctr31++;
}
if (t.size() == 0 && ctr42 > ctr31 && ctr31 >= 1) {
for (int i = 0; i < ctr42; i++) cout << "42, ";
for (int i = 0; i < ctr31; i++) cout << "31, ";
cout << endl;
ctr++;
}
}
cout << ctr << endl;
}
| [
"[email protected]"
] | |
ef3b02f6d6da9d14627d868ece6380443d8c2535 | c0d958f7254bbb09036ffe7fda383facaa72a494 | /src/Engine/rpg/gui/statusbar/buttons/StatusBarButton.h | f3c647ef1790380e021965d718c328e3dc80ea1e | [
"BSD-2-Clause"
] | permissive | Alicetech/bobsgame | 2780fa9e115c42ca8b5d223bd555f10f4ff63a1b | 40b5c57f62bcc2e289d39b2019a69df323f915fc | refs/heads/master | 2020-04-15T00:34:57.072166 | 2017-08-15T22:28:12 | 2017-08-15T22:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,092 | h | //------------------------------------------------------------------------------
//Copyright Robert Pelloni.
//All Rights Reserved.
//------------------------------------------------------------------------------
#pragma once
#include "bobtypes.h"
class Logger;
class StatusBarButton : public EnginePart
{
public:
static Logger log;
BobTexture* texture = nullptr;
bool pulse = false;
bool pulseInOut = false;
int pulseTicks = 0;
int lastPulseTicks = 0;
float glowAlpha = 1.0f;
bool glow = false;
int offsetX0 = 0;
int offsetX1 = 0; //offset0+60;
int pressedOffsetY = 0;
int offsetY0 = 0;
int offsetY1 = 0;
int dividerX = 0; //offsetX1+20;
int glowX0 = 0; //offsetX0-60;
int glowX1 = 0; //offsetX1+60;
int glowY0 = 0;
int glowY1 = 0;
int clickX0 = 0;
int clickX1 = 0;
bool enabled = true;
StatusBarButton();
StatusBarButton(BGClientEngine* g);
virtual void init();
virtual void setOffsets();
virtual void clicked();
virtual bool isAssociatedMenuActive();
virtual void update();
void setEnabled(bool b);
virtual void render(int layer);
};
| [
"[email protected]"
] | |
a57ba7c560d60cb381abc3a605a761db8f16c67b | 90cd1f7f6ddc33b1bf2d0a6a1ac6fe4be760ead5 | /include/boost/simd/function/scalar/sind.hpp | eb29e4deff4d829120422cf33bbc56dcc19ec881 | [
"BSL-1.0"
] | permissive | williammc/boost.simd | 511f03857ee66178179daba6295533e316d61a94 | b4310d441c7122f974498042ad604d559280431a | refs/heads/master | 2021-01-17T23:56:44.708853 | 2016-08-16T07:14:57 | 2016-08-16T07:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | hpp | //==================================================================================================
/**
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//==================================================================================================
#ifndef BOOST_SIMD_FUNCTION_SCALAR_SIND_HPP_INCLUDED
#define BOOST_SIMD_FUNCTION_SCALAR_SIND_HPP_INCLUDED
#include <boost/simd/function/definition/sind.hpp>
#include <boost/simd/arch/common/generic/function/sind.hpp>
#endif
| [
"[email protected]"
] | |
f37bc68a13bcf8ebb09f550089266a6c2777d6e1 | e1ce5c1c8e403df3446ea6736803cec795b47ec5 | /18-utk-master/src/samplers/SamplerCapCVT/Geex/combinatorics/map_utility.h | 14f3a47532c92abc7e8243dce52252eafcf8933e | [
"BSD-2-Clause"
] | permissive | HannahJHan/BlueNoiseSampling | c33f240221dd91843d0033de144adc4a238f69c7 | 1aec7e67f3e84735054ec79c6b477950095942ca | refs/heads/master | 2022-12-31T16:17:48.937577 | 2020-10-20T10:43:32 | 2020-10-20T10:43:32 | 305,656,275 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 671 | h | #ifndef __UTILITY_H__
#define __UTILITY_H__
#include <Geex/combinatorics/map.h>
namespace Geex {
void GEEX_API normalize_map(Map* map) ;
void GEEX_API normalize_map_area(Map* map) ;
void GEEX_API get_bbox(Map* map, double& xmin, double& ymin, double& zmin, double& xmax, double& ymax, double& zmax) ;
void GEEX_API copy_map(Map* s, Map* t) ;
void GEEX_API measure_quality(Map* map) ;
void GEEX_API get_bbox(Map::Facet* f, vec3& bmin, vec3& bmax) ;
vec3 GEEX_API center(Map::Facet* f) ;
double GEEX_API facet_area(Map::Facet* f) ;
vec3 GEEX_API facet_normal(Map::Facet* f) ;
double GEEX_API facet_min_angle(Map::Facet* f) ;
}
#endif
| [
"[email protected]"
] | |
da0ea22ee67ec105c83f68912f167fc8082a156c | 2c26364881531643453b4b25deb70c1467ce57a8 | /Giai de Thi 2019/Bai_I.cpp | 93af6ea318ef14a71eaba2246de0173d09e85ed6 | [] | no_license | tronghao/On_Olympic | 0f2551ec3ca36e231ecc781c2f643d071f1754c8 | d5bf11ad7dcede8d3878450e39530801195998c6 | refs/heads/master | 2020-08-27T23:34:46.903532 | 2019-10-31T03:25:58 | 2019-10-31T03:25:58 | 217,520,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | #include "stdio.h"
#include "windows.h"
int main()
{
long long int r=100000, g=100000, b=100000, n=100000000000000;
//printf("Nhap R G B n: ");
//scanf("%lld%lld%lld%lld", &r, &g, &b, &n);
//printf("\n%lld", n);
if(n%3 == 2)
{
printf("\nKq: %3lldd %3lldd %3lld", r+g, b, g);
}
else if(n%3 == 0)
{
printf("\nKq: %3lld %3lld %3lld", b, g+b, r);
}
else
{
printf("\nKq: %3lld %3lld %3lld", g, r, b+r);
}
return 0;
}
| [
"[email protected]"
] | |
51bbb7e8ea34054520238b618e73663b7294b379 | 2fa5c8d10d597fe1d590542596994fdbd016fddc | /dataset/simulation_experiment/Type2/T2_2/5/Base9.cpp | 4e96de961aede898090f4d3cffa0082de91cf1cf | [] | no_license | guoliang72/colllectivePR | 715ea332a147e115ac30326a013e19d80f4638a1 | f9223e1d1aaa34ac377e75994c02c69033cd0d7f | refs/heads/master | 2020-04-24T06:55:28.611842 | 2019-02-22T11:31:27 | 2019-02-22T11:31:27 | 171,782,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | #include <stdio.h>
int main(){
int i;
int n;
double a;
double sum;
sum=0;
scanf("%d",&n);
for(i=0;i<n;i=i+1){
scanf("%lf",&a);
if(a<100){
a=0;
}else if(a>=100 && a<200){
a=a*i;
}else if(a>=200 && a<500){
a=0.3*a;
}else if(a>=sum){
a=0.5*a;
}
sum=sum+a;
}
printf("%.2lf\n",sum);
return 0;
}
| [
"[email protected]"
] | |
40b99beb37824809e77a2fcda5e98aec644762e1 | 50092e4021c71af316714df681b74a342738cfce | /spacy/syntax/_parse_features.cpp | a0c0f49dd1600e768944ceec7d747d67cdc5cd06 | [
"MIT"
] | permissive | gghilango/GGH.NLP | d3d925fe77d66ec179ecb307851543bc7cdd4144 | aa756d51c3f45ad9f71e131eee5a14941cef7677 | refs/heads/master | 2021-01-01T17:50:45.563105 | 2017-07-24T09:51:43 | 2017-07-24T09:51:43 | 98,175,267 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 840,465 | cpp | /* Generated by Cython 0.23.5 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
#error Cython requires Python 2.6+ or Python 3.2+.
#else
#define CYTHON_ABI "0_23_5"
#include <stddef.h>
#ifndef offsetof
#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
#ifndef __stdcall
#define __stdcall
#endif
#ifndef __cdecl
#define __cdecl
#endif
#ifndef __fastcall
#define __fastcall
#endif
#endif
#ifndef DL_IMPORT
#define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
#define DL_EXPORT(t) t
#endif
#ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
#define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
#define CYTHON_COMPILING_IN_PYPY 1
#define CYTHON_COMPILING_IN_CPYTHON 0
#else
#define CYTHON_COMPILING_IN_PYPY 0
#define CYTHON_COMPILING_IN_CPYTHON 1
#endif
#if !defined(CYTHON_USE_PYLONG_INTERNALS) && CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x02070000
#define CYTHON_USE_PYLONG_INTERNALS 1
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
#define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
#define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
#define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#define __Pyx_DefaultClassType PyClass_Type
#else
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#define __Pyx_DefaultClassType PyType_Type
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
#define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
#define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
#define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
#define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
#define CYTHON_PEP393_ENABLED 1
#define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
0 : _PyUnicode_Ready((PyObject *)(op)))
#define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
#define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
#define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u)
#define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
#define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
#else
#define CYTHON_PEP393_ENABLED 0
#define __Pyx_PyUnicode_READY(op) (0)
#define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
#define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
#define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE))
#define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
#define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
#endif
#if CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
#define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
#else
#define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
#define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
#define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
#endif
#define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
#else
#define __Pyx_PyString_Format(a, b) PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION >= 3
#define PyBaseString_Type PyUnicode_Type
#define PyStringObject PyUnicodeObject
#define PyString_Type PyUnicode_Type
#define PyString_Check PyUnicode_Check
#define PyString_CheckExact PyUnicode_CheckExact
#endif
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
#define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
#define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
#define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#ifndef PySet_CheckExact
#define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
#endif
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#if PY_MAJOR_VERSION >= 3
#define PyIntObject PyLongObject
#define PyInt_Type PyLong_Type
#define PyInt_Check(op) PyLong_Check(op)
#define PyInt_CheckExact(op) PyLong_CheckExact(op)
#define PyInt_FromString PyLong_FromString
#define PyInt_FromUnicode PyLong_FromUnicode
#define PyInt_FromLong PyLong_FromLong
#define PyInt_FromSize_t PyLong_FromSize_t
#define PyInt_FromSsize_t PyLong_FromSsize_t
#define PyInt_AsLong PyLong_AsLong
#define PyInt_AS_LONG PyLong_AS_LONG
#define PyInt_AsSsize_t PyLong_AsSsize_t
#define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
#define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
#define PyNumber_Int PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
#define PyBoolObject PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
#ifndef PyUnicode_InternFromString
#define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
#endif
#endif
#if PY_VERSION_HEX < 0x030200A4
typedef long Py_hash_t;
#define __Pyx_PyInt_FromHash_t PyInt_FromLong
#define __Pyx_PyInt_AsHash_t PyInt_AsLong
#else
#define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
#define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
#else
#define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#endif
#if PY_VERSION_HEX >= 0x030500B1
#define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
#elif CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
typedef struct {
unaryfunc am_await;
unaryfunc am_aiter;
unaryfunc am_anext;
} __Pyx_PyAsyncMethodsStruct;
#define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
#else
#define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef CYTHON_RESTRICT
#if defined(__GNUC__)
#define CYTHON_RESTRICT __restrict__
#elif defined(_MSC_VER) && _MSC_VER >= 1400
#define CYTHON_RESTRICT __restrict
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define CYTHON_RESTRICT restrict
#else
#define CYTHON_RESTRICT
#endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#ifndef __cplusplus
#error "Cython files generated with the C++ option must be compiled with a C++ compiler."
#endif
#ifndef CYTHON_INLINE
#define CYTHON_INLINE inline
#endif
template<typename T>
void __Pyx_call_destructor(T& x) {
x.~T();
}
template<typename T>
class __Pyx_FakeReference {
public:
__Pyx_FakeReference() : ptr(NULL) { }
__Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { }
T *operator->() { return ptr; }
operator T&() { return *ptr; }
private:
T *ptr;
};
#if defined(WIN32) || defined(MS_WINDOWS)
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
float value;
memset(&value, 0xFF, sizeof(value));
return value;
}
#endif
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
#else
#define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
#endif
#ifndef __PYX_EXTERN_C
#ifdef __cplusplus
#define __PYX_EXTERN_C extern "C"
#else
#define __PYX_EXTERN_C extern
#endif
#endif
#define __PYX_HAVE__spacy__syntax___parse_features
#define __PYX_HAVE_API__spacy__syntax___parse_features
#include "stdint.h"
#include "string.h"
#include <vector>
#include "ios"
#include "new"
#include "stdexcept"
#include "typeinfo"
#include "murmurhash/MurmurHash3.h"
#include "murmurhash/MurmurHash2.h"
#include "stdlib.h"
#include "stdio.h"
#include "numpy/arrayobject.h"
#include "numpy/ufuncobject.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */
#ifdef PYREX_WITHOUT_ASSERTIONS
#define CYTHON_WITHOUT_ASSERTIONS
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
# define CYTHON_UNUSED __attribute__ ((__unused__))
# else
# define CYTHON_UNUSED
# endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
# define CYTHON_UNUSED __attribute__ ((__unused__))
# else
# define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
# define CYTHON_NCP_UNUSED
# else
# define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
typedef struct {PyObject **p; char *s; const Py_ssize_t n; const char* encoding;
const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;
#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\
(sizeof(type) < sizeof(Py_ssize_t)) ||\
(sizeof(type) > sizeof(Py_ssize_t) &&\
likely(v < (type)PY_SSIZE_T_MAX ||\
v == (type)PY_SSIZE_T_MAX) &&\
(!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
v == (type)PY_SSIZE_T_MIN))) ||\
(sizeof(type) == sizeof(Py_ssize_t) &&\
(is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
v == (type)PY_SSIZE_T_MAX))) )
#if defined (__cplusplus) && __cplusplus >= 201103L
#include <cstdlib>
#define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
#define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
#define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER) && defined (_M_X64)
#define __Pyx_sst_abs(value) _abs64(value)
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
#define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
#define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
#define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
#define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString
#define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyObject_AsSString(s) ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#if PY_MAJOR_VERSION < 3
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
{
const Py_UNICODE *u_end = u;
while (*u_end++) ;
return (size_t)(u_end - u - 1);
}
#else
#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen
#endif
#define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
#define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False))
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
#if CYTHON_COMPILING_IN_CPYTHON
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
PyObject* sys;
PyObject* default_encoding = NULL;
PyObject* ascii_chars_u = NULL;
PyObject* ascii_chars_b = NULL;
const char* default_encoding_c;
sys = PyImport_ImportModule("sys");
if (!sys) goto bad;
default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
Py_DECREF(sys);
if (!default_encoding) goto bad;
default_encoding_c = PyBytes_AsString(default_encoding);
if (!default_encoding_c) goto bad;
if (strcmp(default_encoding_c, "ascii") == 0) {
__Pyx_sys_getdefaultencoding_not_ascii = 0;
} else {
char ascii_chars[128];
int c;
for (c = 0; c < 128; c++) {
ascii_chars[c] = c;
}
__Pyx_sys_getdefaultencoding_not_ascii = 1;
ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
if (!ascii_chars_u) goto bad;
ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
PyErr_Format(
PyExc_ValueError,
"This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
default_encoding_c);
goto bad;
}
Py_DECREF(ascii_chars_u);
Py_DECREF(ascii_chars_b);
}
Py_DECREF(default_encoding);
return 0;
bad:
Py_XDECREF(default_encoding);
Py_XDECREF(ascii_chars_u);
Py_XDECREF(ascii_chars_b);
return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
PyObject* sys;
PyObject* default_encoding = NULL;
char* default_encoding_c;
sys = PyImport_ImportModule("sys");
if (!sys) goto bad;
default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
Py_DECREF(sys);
if (!default_encoding) goto bad;
default_encoding_c = PyBytes_AsString(default_encoding);
if (!default_encoding_c) goto bad;
__PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c));
if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
Py_DECREF(default_encoding);
return 0;
bad:
Py_XDECREF(default_encoding);
return -1;
}
#endif
#endif
/* Test for GCC > 2.95 */
#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
#define likely(x) (x)
#define unlikely(x) (x)
#endif /* __GNUC__ */
static PyObject *__pyx_m;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;
#if !defined(CYTHON_CCOMPLEX)
#if defined(__cplusplus)
#define CYTHON_CCOMPLEX 1
#elif defined(_Complex_I)
#define CYTHON_CCOMPLEX 1
#else
#define CYTHON_CCOMPLEX 0
#endif
#endif
#if CYTHON_CCOMPLEX
#ifdef __cplusplus
#include <complex>
#else
#include <complex.h>
#endif
#endif
#if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
#undef _Complex_I
#define _Complex_I 1.0fj
#endif
static const char *__pyx_f[] = {
"__init__.pxd",
"spacy\\lexeme.pxd",
"spacy\\syntax\\stateclass.pxd",
"spacy\\syntax\\_parse_features.pyx",
"cymem.pxd",
"maps.pxd",
"spacy\\strings.pxd",
"spacy\\morphology.pxd",
"spacy\\vocab.pxd",
"type.pxd",
"spacy\\syntax\\_parse_features.pxd",
};
/* "thinc\typedefs.pxd":7
*
*
* ctypedef float weight_t # <<<<<<<<<<<<<<
* ctypedef uint64_t atom_t
* ctypedef uint64_t feat_t
*/
typedef float __pyx_t_5thinc_8typedefs_weight_t;
/* "thinc\typedefs.pxd":8
*
* ctypedef float weight_t
* ctypedef uint64_t atom_t # <<<<<<<<<<<<<<
* ctypedef uint64_t feat_t
* ctypedef uint64_t hash_t
*/
typedef uint64_t __pyx_t_5thinc_8typedefs_atom_t;
/* "thinc\typedefs.pxd":9
* ctypedef float weight_t
* ctypedef uint64_t atom_t
* ctypedef uint64_t feat_t # <<<<<<<<<<<<<<
* ctypedef uint64_t hash_t
* ctypedef int32_t class_t
*/
typedef uint64_t __pyx_t_5thinc_8typedefs_feat_t;
/* "thinc\typedefs.pxd":10
* ctypedef uint64_t atom_t
* ctypedef uint64_t feat_t
* ctypedef uint64_t hash_t # <<<<<<<<<<<<<<
* ctypedef int32_t class_t
* ctypedef uint32_t count_t
*/
typedef uint64_t __pyx_t_5thinc_8typedefs_hash_t;
/* "thinc\typedefs.pxd":11
* ctypedef uint64_t feat_t
* ctypedef uint64_t hash_t
* ctypedef int32_t class_t # <<<<<<<<<<<<<<
* ctypedef uint32_t count_t
* ctypedef uint32_t time_t
*/
typedef int32_t __pyx_t_5thinc_8typedefs_class_t;
/* "thinc\typedefs.pxd":12
* ctypedef uint64_t hash_t
* ctypedef int32_t class_t
* ctypedef uint32_t count_t # <<<<<<<<<<<<<<
* ctypedef uint32_t time_t
* ctypedef int32_t len_t
*/
typedef uint32_t __pyx_t_5thinc_8typedefs_count_t;
/* "thinc\typedefs.pxd":13
* ctypedef int32_t class_t
* ctypedef uint32_t count_t
* ctypedef uint32_t time_t # <<<<<<<<<<<<<<
* ctypedef int32_t len_t
* ctypedef int32_t idx_t
*/
typedef uint32_t __pyx_t_5thinc_8typedefs_time_t;
/* "thinc\typedefs.pxd":14
* ctypedef uint32_t count_t
* ctypedef uint32_t time_t
* ctypedef int32_t len_t # <<<<<<<<<<<<<<
* ctypedef int32_t idx_t
*
*/
typedef int32_t __pyx_t_5thinc_8typedefs_len_t;
/* "thinc\typedefs.pxd":15
* ctypedef uint32_t time_t
* ctypedef int32_t len_t
* ctypedef int32_t idx_t # <<<<<<<<<<<<<<
*
*
*/
typedef int32_t __pyx_t_5thinc_8typedefs_idx_t;
/* "typedefs.pxd":5
*
*
* ctypedef uint64_t hash_t # <<<<<<<<<<<<<<
* ctypedef char* utf8_t
* ctypedef int32_t attr_t
*/
typedef uint64_t __pyx_t_5spacy_8typedefs_hash_t;
/* "typedefs.pxd":7
* ctypedef uint64_t hash_t
* ctypedef char* utf8_t
* ctypedef int32_t attr_t # <<<<<<<<<<<<<<
* ctypedef uint64_t flags_t
* ctypedef uint16_t len_t
*/
typedef int32_t __pyx_t_5spacy_8typedefs_attr_t;
/* "typedefs.pxd":8
* ctypedef char* utf8_t
* ctypedef int32_t attr_t
* ctypedef uint64_t flags_t # <<<<<<<<<<<<<<
* ctypedef uint16_t len_t
* ctypedef uint16_t tag_t
*/
typedef uint64_t __pyx_t_5spacy_8typedefs_flags_t;
/* "typedefs.pxd":9
* ctypedef int32_t attr_t
* ctypedef uint64_t flags_t
* ctypedef uint16_t len_t # <<<<<<<<<<<<<<
* ctypedef uint16_t tag_t
*/
typedef uint16_t __pyx_t_5spacy_8typedefs_len_t;
/* "typedefs.pxd":10
* ctypedef uint64_t flags_t
* ctypedef uint16_t len_t
* ctypedef uint16_t tag_t # <<<<<<<<<<<<<<
*/
typedef uint16_t __pyx_t_5spacy_8typedefs_tag_t;
/* "preshed\maps.pxd":5
*
*
* ctypedef uint64_t key_t # <<<<<<<<<<<<<<
*
*
*/
typedef uint64_t __pyx_t_7preshed_4maps_key_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":725
* # in Cython to enable them only on the right systems.
*
* ctypedef npy_int8 int8_t # <<<<<<<<<<<<<<
* ctypedef npy_int16 int16_t
* ctypedef npy_int32 int32_t
*/
typedef npy_int8 __pyx_t_5numpy_int8_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":726
*
* ctypedef npy_int8 int8_t
* ctypedef npy_int16 int16_t # <<<<<<<<<<<<<<
* ctypedef npy_int32 int32_t
* ctypedef npy_int64 int64_t
*/
typedef npy_int16 __pyx_t_5numpy_int16_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":727
* ctypedef npy_int8 int8_t
* ctypedef npy_int16 int16_t
* ctypedef npy_int32 int32_t # <<<<<<<<<<<<<<
* ctypedef npy_int64 int64_t
* #ctypedef npy_int96 int96_t
*/
typedef npy_int32 __pyx_t_5numpy_int32_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":728
* ctypedef npy_int16 int16_t
* ctypedef npy_int32 int32_t
* ctypedef npy_int64 int64_t # <<<<<<<<<<<<<<
* #ctypedef npy_int96 int96_t
* #ctypedef npy_int128 int128_t
*/
typedef npy_int64 __pyx_t_5numpy_int64_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":732
* #ctypedef npy_int128 int128_t
*
* ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<<
* ctypedef npy_uint16 uint16_t
* ctypedef npy_uint32 uint32_t
*/
typedef npy_uint8 __pyx_t_5numpy_uint8_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":733
*
* ctypedef npy_uint8 uint8_t
* ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<<
* ctypedef npy_uint32 uint32_t
* ctypedef npy_uint64 uint64_t
*/
typedef npy_uint16 __pyx_t_5numpy_uint16_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":734
* ctypedef npy_uint8 uint8_t
* ctypedef npy_uint16 uint16_t
* ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<<
* ctypedef npy_uint64 uint64_t
* #ctypedef npy_uint96 uint96_t
*/
typedef npy_uint32 __pyx_t_5numpy_uint32_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":735
* ctypedef npy_uint16 uint16_t
* ctypedef npy_uint32 uint32_t
* ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<<
* #ctypedef npy_uint96 uint96_t
* #ctypedef npy_uint128 uint128_t
*/
typedef npy_uint64 __pyx_t_5numpy_uint64_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":739
* #ctypedef npy_uint128 uint128_t
*
* ctypedef npy_float32 float32_t # <<<<<<<<<<<<<<
* ctypedef npy_float64 float64_t
* #ctypedef npy_float80 float80_t
*/
typedef npy_float32 __pyx_t_5numpy_float32_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":740
*
* ctypedef npy_float32 float32_t
* ctypedef npy_float64 float64_t # <<<<<<<<<<<<<<
* #ctypedef npy_float80 float80_t
* #ctypedef npy_float128 float128_t
*/
typedef npy_float64 __pyx_t_5numpy_float64_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":749
* # The int types are mapped a bit surprising --
* # numpy.int corresponds to 'l' and numpy.long to 'q'
* ctypedef npy_long int_t # <<<<<<<<<<<<<<
* ctypedef npy_longlong long_t
* ctypedef npy_longlong longlong_t
*/
typedef npy_long __pyx_t_5numpy_int_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":750
* # numpy.int corresponds to 'l' and numpy.long to 'q'
* ctypedef npy_long int_t
* ctypedef npy_longlong long_t # <<<<<<<<<<<<<<
* ctypedef npy_longlong longlong_t
*
*/
typedef npy_longlong __pyx_t_5numpy_long_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":751
* ctypedef npy_long int_t
* ctypedef npy_longlong long_t
* ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<<
*
* ctypedef npy_ulong uint_t
*/
typedef npy_longlong __pyx_t_5numpy_longlong_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":753
* ctypedef npy_longlong longlong_t
*
* ctypedef npy_ulong uint_t # <<<<<<<<<<<<<<
* ctypedef npy_ulonglong ulong_t
* ctypedef npy_ulonglong ulonglong_t
*/
typedef npy_ulong __pyx_t_5numpy_uint_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":754
*
* ctypedef npy_ulong uint_t
* ctypedef npy_ulonglong ulong_t # <<<<<<<<<<<<<<
* ctypedef npy_ulonglong ulonglong_t
*
*/
typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":755
* ctypedef npy_ulong uint_t
* ctypedef npy_ulonglong ulong_t
* ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<<
*
* ctypedef npy_intp intp_t
*/
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":757
* ctypedef npy_ulonglong ulonglong_t
*
* ctypedef npy_intp intp_t # <<<<<<<<<<<<<<
* ctypedef npy_uintp uintp_t
*
*/
typedef npy_intp __pyx_t_5numpy_intp_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":758
*
* ctypedef npy_intp intp_t
* ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<<
*
* ctypedef npy_double float_t
*/
typedef npy_uintp __pyx_t_5numpy_uintp_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":760
* ctypedef npy_uintp uintp_t
*
* ctypedef npy_double float_t # <<<<<<<<<<<<<<
* ctypedef npy_double double_t
* ctypedef npy_longdouble longdouble_t
*/
typedef npy_double __pyx_t_5numpy_float_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":761
*
* ctypedef npy_double float_t
* ctypedef npy_double double_t # <<<<<<<<<<<<<<
* ctypedef npy_longdouble longdouble_t
*
*/
typedef npy_double __pyx_t_5numpy_double_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":762
* ctypedef npy_double float_t
* ctypedef npy_double double_t
* ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<<
*
* ctypedef npy_cfloat cfloat_t
*/
typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
#if CYTHON_CCOMPLEX
#ifdef __cplusplus
typedef ::std::complex< float > __pyx_t_float_complex;
#else
typedef float _Complex __pyx_t_float_complex;
#endif
#else
typedef struct { float real, imag; } __pyx_t_float_complex;
#endif
#if CYTHON_CCOMPLEX
#ifdef __cplusplus
typedef ::std::complex< double > __pyx_t_double_complex;
#else
typedef double _Complex __pyx_t_double_complex;
#endif
#else
typedef struct { double real, imag; } __pyx_t_double_complex;
#endif
/*--- Type declarations ---*/
struct __pyx_obj_5cymem_5cymem_Pool;
struct __pyx_obj_5cymem_5cymem_Address;
struct __pyx_obj_7preshed_4maps_PreshMap;
struct __pyx_obj_7preshed_4maps_PreshMapArray;
struct __pyx_obj_5spacy_7strings_StringStore;
struct __pyx_obj_5spacy_10morphology_Morphology;
struct __pyx_obj_5spacy_5vocab_Vocab;
struct __pyx_obj_5spacy_6lexeme_Lexeme;
struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass;
/* "typedefs.pxd":6
*
* ctypedef uint64_t hash_t
* ctypedef char* utf8_t # <<<<<<<<<<<<<<
* ctypedef int32_t attr_t
* ctypedef uint64_t flags_t
*/
typedef char *__pyx_t_5spacy_8typedefs_utf8_t;
/* "symbols.pxd":1
* cpdef enum symbol_t: # <<<<<<<<<<<<<<
* NIL
* IS_ALPHA
*/
enum __pyx_t_5spacy_7symbols_symbol_t {
__pyx_e_5spacy_7symbols_NIL,
__pyx_e_5spacy_7symbols_IS_ALPHA,
__pyx_e_5spacy_7symbols_IS_ASCII,
__pyx_e_5spacy_7symbols_IS_DIGIT,
__pyx_e_5spacy_7symbols_IS_LOWER,
__pyx_e_5spacy_7symbols_IS_PUNCT,
__pyx_e_5spacy_7symbols_IS_SPACE,
__pyx_e_5spacy_7symbols_IS_TITLE,
__pyx_e_5spacy_7symbols_IS_UPPER,
__pyx_e_5spacy_7symbols_LIKE_URL,
__pyx_e_5spacy_7symbols_LIKE_NUM,
__pyx_e_5spacy_7symbols_LIKE_EMAIL,
__pyx_e_5spacy_7symbols_IS_STOP,
__pyx_e_5spacy_7symbols_IS_OOV,
__pyx_e_5spacy_7symbols_FLAG14 = 14,
__pyx_e_5spacy_7symbols_FLAG15,
__pyx_e_5spacy_7symbols_FLAG16,
__pyx_e_5spacy_7symbols_FLAG17,
__pyx_e_5spacy_7symbols_FLAG18,
__pyx_e_5spacy_7symbols_FLAG19,
__pyx_e_5spacy_7symbols_FLAG20,
__pyx_e_5spacy_7symbols_FLAG21,
__pyx_e_5spacy_7symbols_FLAG22,
__pyx_e_5spacy_7symbols_FLAG23,
__pyx_e_5spacy_7symbols_FLAG24,
__pyx_e_5spacy_7symbols_FLAG25,
__pyx_e_5spacy_7symbols_FLAG26,
__pyx_e_5spacy_7symbols_FLAG27,
__pyx_e_5spacy_7symbols_FLAG28,
__pyx_e_5spacy_7symbols_FLAG29,
__pyx_e_5spacy_7symbols_FLAG30,
__pyx_e_5spacy_7symbols_FLAG31,
__pyx_e_5spacy_7symbols_FLAG32,
__pyx_e_5spacy_7symbols_FLAG33,
__pyx_e_5spacy_7symbols_FLAG34,
__pyx_e_5spacy_7symbols_FLAG35,
__pyx_e_5spacy_7symbols_FLAG36,
__pyx_e_5spacy_7symbols_FLAG37,
__pyx_e_5spacy_7symbols_FLAG38,
__pyx_e_5spacy_7symbols_FLAG39,
__pyx_e_5spacy_7symbols_FLAG40,
__pyx_e_5spacy_7symbols_FLAG41,
__pyx_e_5spacy_7symbols_FLAG42,
__pyx_e_5spacy_7symbols_FLAG43,
__pyx_e_5spacy_7symbols_FLAG44,
__pyx_e_5spacy_7symbols_FLAG45,
__pyx_e_5spacy_7symbols_FLAG46,
__pyx_e_5spacy_7symbols_FLAG47,
__pyx_e_5spacy_7symbols_FLAG48,
__pyx_e_5spacy_7symbols_FLAG49,
__pyx_e_5spacy_7symbols_FLAG50,
__pyx_e_5spacy_7symbols_FLAG51,
__pyx_e_5spacy_7symbols_FLAG52,
__pyx_e_5spacy_7symbols_FLAG53,
__pyx_e_5spacy_7symbols_FLAG54,
__pyx_e_5spacy_7symbols_FLAG55,
__pyx_e_5spacy_7symbols_FLAG56,
__pyx_e_5spacy_7symbols_FLAG57,
__pyx_e_5spacy_7symbols_FLAG58,
__pyx_e_5spacy_7symbols_FLAG59,
__pyx_e_5spacy_7symbols_FLAG60,
__pyx_e_5spacy_7symbols_FLAG61,
__pyx_e_5spacy_7symbols_FLAG62,
__pyx_e_5spacy_7symbols_FLAG63,
__pyx_e_5spacy_7symbols_ID,
__pyx_e_5spacy_7symbols_ORTH,
__pyx_e_5spacy_7symbols_LOWER,
__pyx_e_5spacy_7symbols_NORM,
__pyx_e_5spacy_7symbols_SHAPE,
__pyx_e_5spacy_7symbols_PREFIX,
__pyx_e_5spacy_7symbols_SUFFIX,
__pyx_e_5spacy_7symbols_LENGTH,
__pyx_e_5spacy_7symbols_CLUSTER,
__pyx_e_5spacy_7symbols_LEMMA,
__pyx_e_5spacy_7symbols_POS,
__pyx_e_5spacy_7symbols_TAG,
__pyx_e_5spacy_7symbols_DEP,
__pyx_e_5spacy_7symbols_ENT_IOB,
__pyx_e_5spacy_7symbols_ENT_TYPE,
__pyx_e_5spacy_7symbols_HEAD,
__pyx_e_5spacy_7symbols_SPACY,
__pyx_e_5spacy_7symbols_PROB,
__pyx_e_5spacy_7symbols_ADJ,
__pyx_e_5spacy_7symbols_ADP,
__pyx_e_5spacy_7symbols_ADV,
__pyx_e_5spacy_7symbols_AUX,
__pyx_e_5spacy_7symbols_CONJ,
__pyx_e_5spacy_7symbols_CCONJ,
__pyx_e_5spacy_7symbols_DET,
__pyx_e_5spacy_7symbols_INTJ,
__pyx_e_5spacy_7symbols_NOUN,
__pyx_e_5spacy_7symbols_NUM,
__pyx_e_5spacy_7symbols_PART,
__pyx_e_5spacy_7symbols_PRON,
__pyx_e_5spacy_7symbols_PROPN,
__pyx_e_5spacy_7symbols_PUNCT,
__pyx_e_5spacy_7symbols_SCONJ,
__pyx_e_5spacy_7symbols_SYM,
__pyx_e_5spacy_7symbols_VERB,
__pyx_e_5spacy_7symbols_X,
__pyx_e_5spacy_7symbols_EOL,
__pyx_e_5spacy_7symbols_SPACE,
__pyx_e_5spacy_7symbols_Animacy_anim,
__pyx_e_5spacy_7symbols_Animacy_inam,
__pyx_e_5spacy_7symbols_Animacy_hum,
__pyx_e_5spacy_7symbols_Aspect_freq,
__pyx_e_5spacy_7symbols_Aspect_imp,
__pyx_e_5spacy_7symbols_Aspect_mod,
__pyx_e_5spacy_7symbols_Aspect_none,
__pyx_e_5spacy_7symbols_Aspect_perf,
__pyx_e_5spacy_7symbols_Aspect_iter,
__pyx_e_5spacy_7symbols_Aspect_hab,
__pyx_e_5spacy_7symbols_Case_abe,
__pyx_e_5spacy_7symbols_Case_abl,
__pyx_e_5spacy_7symbols_Case_abs,
__pyx_e_5spacy_7symbols_Case_acc,
__pyx_e_5spacy_7symbols_Case_ade,
__pyx_e_5spacy_7symbols_Case_all,
__pyx_e_5spacy_7symbols_Case_cau,
__pyx_e_5spacy_7symbols_Case_com,
__pyx_e_5spacy_7symbols_Case_cmp,
__pyx_e_5spacy_7symbols_Case_dat,
__pyx_e_5spacy_7symbols_Case_del,
__pyx_e_5spacy_7symbols_Case_dis,
__pyx_e_5spacy_7symbols_Case_ela,
__pyx_e_5spacy_7symbols_Case_equ,
__pyx_e_5spacy_7symbols_Case_ess,
__pyx_e_5spacy_7symbols_Case_gen,
__pyx_e_5spacy_7symbols_Case_ill,
__pyx_e_5spacy_7symbols_Case_ine,
__pyx_e_5spacy_7symbols_Case_ins,
__pyx_e_5spacy_7symbols_Case_loc,
__pyx_e_5spacy_7symbols_Case_lat,
__pyx_e_5spacy_7symbols_Case_nom,
__pyx_e_5spacy_7symbols_Case_par,
__pyx_e_5spacy_7symbols_Case_sub,
__pyx_e_5spacy_7symbols_Case_sup,
__pyx_e_5spacy_7symbols_Case_tem,
__pyx_e_5spacy_7symbols_Case_ter,
__pyx_e_5spacy_7symbols_Case_tra,
__pyx_e_5spacy_7symbols_Case_voc,
__pyx_e_5spacy_7symbols_Definite_two,
__pyx_e_5spacy_7symbols_Definite_def,
__pyx_e_5spacy_7symbols_Definite_red,
__pyx_e_5spacy_7symbols_Definite_cons,
__pyx_e_5spacy_7symbols_Definite_ind,
__pyx_e_5spacy_7symbols_Definite_spec,
__pyx_e_5spacy_7symbols_Degree_cmp,
__pyx_e_5spacy_7symbols_Degree_comp,
__pyx_e_5spacy_7symbols_Degree_none,
__pyx_e_5spacy_7symbols_Degree_pos,
__pyx_e_5spacy_7symbols_Degree_sup,
__pyx_e_5spacy_7symbols_Degree_abs,
__pyx_e_5spacy_7symbols_Degree_com,
__pyx_e_5spacy_7symbols_Degree_dim,
__pyx_e_5spacy_7symbols_Degree_equ,
__pyx_e_5spacy_7symbols_Evident_nfh,
__pyx_e_5spacy_7symbols_Gender_com,
__pyx_e_5spacy_7symbols_Gender_fem,
__pyx_e_5spacy_7symbols_Gender_masc,
__pyx_e_5spacy_7symbols_Gender_neut,
__pyx_e_5spacy_7symbols_Mood_cnd,
__pyx_e_5spacy_7symbols_Mood_imp,
__pyx_e_5spacy_7symbols_Mood_ind,
__pyx_e_5spacy_7symbols_Mood_n,
__pyx_e_5spacy_7symbols_Mood_pot,
__pyx_e_5spacy_7symbols_Mood_sub,
__pyx_e_5spacy_7symbols_Mood_opt,
__pyx_e_5spacy_7symbols_Mood_prp,
__pyx_e_5spacy_7symbols_Mood_adm,
__pyx_e_5spacy_7symbols_Negative_neg,
__pyx_e_5spacy_7symbols_Negative_pos,
__pyx_e_5spacy_7symbols_Negative_yes,
__pyx_e_5spacy_7symbols_Polarity_neg,
__pyx_e_5spacy_7symbols_Polarity_pos,
__pyx_e_5spacy_7symbols_Number_com,
__pyx_e_5spacy_7symbols_Number_dual,
__pyx_e_5spacy_7symbols_Number_none,
__pyx_e_5spacy_7symbols_Number_plur,
__pyx_e_5spacy_7symbols_Number_sing,
__pyx_e_5spacy_7symbols_Number_ptan,
__pyx_e_5spacy_7symbols_Number_count,
__pyx_e_5spacy_7symbols_Number_tri,
__pyx_e_5spacy_7symbols_NumType_card,
__pyx_e_5spacy_7symbols_NumType_dist,
__pyx_e_5spacy_7symbols_NumType_frac,
__pyx_e_5spacy_7symbols_NumType_gen,
__pyx_e_5spacy_7symbols_NumType_mult,
__pyx_e_5spacy_7symbols_NumType_none,
__pyx_e_5spacy_7symbols_NumType_ord,
__pyx_e_5spacy_7symbols_NumType_sets,
__pyx_e_5spacy_7symbols_Person_one,
__pyx_e_5spacy_7symbols_Person_two,
__pyx_e_5spacy_7symbols_Person_three,
__pyx_e_5spacy_7symbols_Person_none,
__pyx_e_5spacy_7symbols_Poss_yes,
__pyx_e_5spacy_7symbols_PronType_advPart,
__pyx_e_5spacy_7symbols_PronType_art,
__pyx_e_5spacy_7symbols_PronType_default,
__pyx_e_5spacy_7symbols_PronType_dem,
__pyx_e_5spacy_7symbols_PronType_ind,
__pyx_e_5spacy_7symbols_PronType_int,
__pyx_e_5spacy_7symbols_PronType_neg,
__pyx_e_5spacy_7symbols_PronType_prs,
__pyx_e_5spacy_7symbols_PronType_rcp,
__pyx_e_5spacy_7symbols_PronType_rel,
__pyx_e_5spacy_7symbols_PronType_tot,
__pyx_e_5spacy_7symbols_PronType_clit,
__pyx_e_5spacy_7symbols_PronType_exc,
__pyx_e_5spacy_7symbols_PronType_emp,
__pyx_e_5spacy_7symbols_Reflex_yes,
__pyx_e_5spacy_7symbols_Tense_fut,
__pyx_e_5spacy_7symbols_Tense_imp,
__pyx_e_5spacy_7symbols_Tense_past,
__pyx_e_5spacy_7symbols_Tense_pres,
__pyx_e_5spacy_7symbols_VerbForm_fin,
__pyx_e_5spacy_7symbols_VerbForm_ger,
__pyx_e_5spacy_7symbols_VerbForm_inf,
__pyx_e_5spacy_7symbols_VerbForm_none,
__pyx_e_5spacy_7symbols_VerbForm_part,
__pyx_e_5spacy_7symbols_VerbForm_partFut,
__pyx_e_5spacy_7symbols_VerbForm_partPast,
__pyx_e_5spacy_7symbols_VerbForm_partPres,
__pyx_e_5spacy_7symbols_VerbForm_sup,
__pyx_e_5spacy_7symbols_VerbForm_trans,
__pyx_e_5spacy_7symbols_VerbForm_conv,
__pyx_e_5spacy_7symbols_VerbForm_gdv,
__pyx_e_5spacy_7symbols_VerbForm_vnoun,
__pyx_e_5spacy_7symbols_Voice_act,
__pyx_e_5spacy_7symbols_Voice_cau,
__pyx_e_5spacy_7symbols_Voice_pass,
__pyx_e_5spacy_7symbols_Voice_mid,
__pyx_e_5spacy_7symbols_Voice_int,
__pyx_e_5spacy_7symbols_Voice_antip,
__pyx_e_5spacy_7symbols_Voice_dir,
__pyx_e_5spacy_7symbols_Voice_inv,
__pyx_e_5spacy_7symbols_Abbr_yes,
__pyx_e_5spacy_7symbols_AdpType_prep,
__pyx_e_5spacy_7symbols_AdpType_post,
__pyx_e_5spacy_7symbols_AdpType_voc,
__pyx_e_5spacy_7symbols_AdpType_comprep,
__pyx_e_5spacy_7symbols_AdpType_circ,
__pyx_e_5spacy_7symbols_AdvType_man,
__pyx_e_5spacy_7symbols_AdvType_loc,
__pyx_e_5spacy_7symbols_AdvType_tim,
__pyx_e_5spacy_7symbols_AdvType_deg,
__pyx_e_5spacy_7symbols_AdvType_cau,
__pyx_e_5spacy_7symbols_AdvType_mod,
__pyx_e_5spacy_7symbols_AdvType_sta,
__pyx_e_5spacy_7symbols_AdvType_ex,
__pyx_e_5spacy_7symbols_AdvType_adadj,
__pyx_e_5spacy_7symbols_ConjType_oper,
__pyx_e_5spacy_7symbols_ConjType_comp,
__pyx_e_5spacy_7symbols_Connegative_yes,
__pyx_e_5spacy_7symbols_Derivation_minen,
__pyx_e_5spacy_7symbols_Derivation_sti,
__pyx_e_5spacy_7symbols_Derivation_inen,
__pyx_e_5spacy_7symbols_Derivation_lainen,
__pyx_e_5spacy_7symbols_Derivation_ja,
__pyx_e_5spacy_7symbols_Derivation_ton,
__pyx_e_5spacy_7symbols_Derivation_vs,
__pyx_e_5spacy_7symbols_Derivation_ttain,
__pyx_e_5spacy_7symbols_Derivation_ttaa,
__pyx_e_5spacy_7symbols_Echo_rdp,
__pyx_e_5spacy_7symbols_Echo_ech,
__pyx_e_5spacy_7symbols_Foreign_foreign,
__pyx_e_5spacy_7symbols_Foreign_fscript,
__pyx_e_5spacy_7symbols_Foreign_tscript,
__pyx_e_5spacy_7symbols_Foreign_yes,
__pyx_e_5spacy_7symbols_Gender_dat_masc,
__pyx_e_5spacy_7symbols_Gender_dat_fem,
__pyx_e_5spacy_7symbols_Gender_erg_masc,
__pyx_e_5spacy_7symbols_Gender_erg_fem,
__pyx_e_5spacy_7symbols_Gender_psor_masc,
__pyx_e_5spacy_7symbols_Gender_psor_fem,
__pyx_e_5spacy_7symbols_Gender_psor_neut,
__pyx_e_5spacy_7symbols_Hyph_yes,
__pyx_e_5spacy_7symbols_InfForm_one,
__pyx_e_5spacy_7symbols_InfForm_two,
__pyx_e_5spacy_7symbols_InfForm_three,
__pyx_e_5spacy_7symbols_NameType_geo,
__pyx_e_5spacy_7symbols_NameType_prs,
__pyx_e_5spacy_7symbols_NameType_giv,
__pyx_e_5spacy_7symbols_NameType_sur,
__pyx_e_5spacy_7symbols_NameType_nat,
__pyx_e_5spacy_7symbols_NameType_com,
__pyx_e_5spacy_7symbols_NameType_pro,
__pyx_e_5spacy_7symbols_NameType_oth,
__pyx_e_5spacy_7symbols_NounType_com,
__pyx_e_5spacy_7symbols_NounType_prop,
__pyx_e_5spacy_7symbols_NounType_class,
__pyx_e_5spacy_7symbols_Number_abs_sing,
__pyx_e_5spacy_7symbols_Number_abs_plur,
__pyx_e_5spacy_7symbols_Number_dat_sing,
__pyx_e_5spacy_7symbols_Number_dat_plur,
__pyx_e_5spacy_7symbols_Number_erg_sing,
__pyx_e_5spacy_7symbols_Number_erg_plur,
__pyx_e_5spacy_7symbols_Number_psee_sing,
__pyx_e_5spacy_7symbols_Number_psee_plur,
__pyx_e_5spacy_7symbols_Number_psor_sing,
__pyx_e_5spacy_7symbols_Number_psor_plur,
__pyx_e_5spacy_7symbols_Number_pauc,
__pyx_e_5spacy_7symbols_Number_grpa,
__pyx_e_5spacy_7symbols_Number_grpl,
__pyx_e_5spacy_7symbols_Number_inv,
__pyx_e_5spacy_7symbols_NumForm_digit,
__pyx_e_5spacy_7symbols_NumForm_roman,
__pyx_e_5spacy_7symbols_NumForm_word,
__pyx_e_5spacy_7symbols_NumValue_one,
__pyx_e_5spacy_7symbols_NumValue_two,
__pyx_e_5spacy_7symbols_NumValue_three,
__pyx_e_5spacy_7symbols_PartForm_pres,
__pyx_e_5spacy_7symbols_PartForm_past,
__pyx_e_5spacy_7symbols_PartForm_agt,
__pyx_e_5spacy_7symbols_PartForm_neg,
__pyx_e_5spacy_7symbols_PartType_mod,
__pyx_e_5spacy_7symbols_PartType_emp,
__pyx_e_5spacy_7symbols_PartType_res,
__pyx_e_5spacy_7symbols_PartType_inf,
__pyx_e_5spacy_7symbols_PartType_vbp,
__pyx_e_5spacy_7symbols_Person_abs_one,
__pyx_e_5spacy_7symbols_Person_abs_two,
__pyx_e_5spacy_7symbols_Person_abs_three,
__pyx_e_5spacy_7symbols_Person_dat_one,
__pyx_e_5spacy_7symbols_Person_dat_two,
__pyx_e_5spacy_7symbols_Person_dat_three,
__pyx_e_5spacy_7symbols_Person_erg_one,
__pyx_e_5spacy_7symbols_Person_erg_two,
__pyx_e_5spacy_7symbols_Person_erg_three,
__pyx_e_5spacy_7symbols_Person_psor_one,
__pyx_e_5spacy_7symbols_Person_psor_two,
__pyx_e_5spacy_7symbols_Person_psor_three,
__pyx_e_5spacy_7symbols_Person_zero,
__pyx_e_5spacy_7symbols_Person_four,
__pyx_e_5spacy_7symbols_Polite_inf,
__pyx_e_5spacy_7symbols_Polite_pol,
__pyx_e_5spacy_7symbols_Polite_abs_inf,
__pyx_e_5spacy_7symbols_Polite_abs_pol,
__pyx_e_5spacy_7symbols_Polite_erg_inf,
__pyx_e_5spacy_7symbols_Polite_erg_pol,
__pyx_e_5spacy_7symbols_Polite_dat_inf,
__pyx_e_5spacy_7symbols_Polite_dat_pol,
__pyx_e_5spacy_7symbols_Polite_infm,
__pyx_e_5spacy_7symbols_Polite_form,
__pyx_e_5spacy_7symbols_Polite_form_elev,
__pyx_e_5spacy_7symbols_Polite_form_humb,
__pyx_e_5spacy_7symbols_Prefix_yes,
__pyx_e_5spacy_7symbols_PrepCase_npr,
__pyx_e_5spacy_7symbols_PrepCase_pre,
__pyx_e_5spacy_7symbols_PunctSide_ini,
__pyx_e_5spacy_7symbols_PunctSide_fin,
__pyx_e_5spacy_7symbols_PunctType_peri,
__pyx_e_5spacy_7symbols_PunctType_qest,
__pyx_e_5spacy_7symbols_PunctType_excl,
__pyx_e_5spacy_7symbols_PunctType_quot,
__pyx_e_5spacy_7symbols_PunctType_brck,
__pyx_e_5spacy_7symbols_PunctType_comm,
__pyx_e_5spacy_7symbols_PunctType_colo,
__pyx_e_5spacy_7symbols_PunctType_semi,
__pyx_e_5spacy_7symbols_PunctType_dash,
__pyx_e_5spacy_7symbols_Style_arch,
__pyx_e_5spacy_7symbols_Style_rare,
__pyx_e_5spacy_7symbols_Style_poet,
__pyx_e_5spacy_7symbols_Style_norm,
__pyx_e_5spacy_7symbols_Style_coll,
__pyx_e_5spacy_7symbols_Style_vrnc,
__pyx_e_5spacy_7symbols_Style_sing,
__pyx_e_5spacy_7symbols_Style_expr,
__pyx_e_5spacy_7symbols_Style_derg,
__pyx_e_5spacy_7symbols_Style_vulg,
__pyx_e_5spacy_7symbols_Style_yes,
__pyx_e_5spacy_7symbols_StyleVariant_styleShort,
__pyx_e_5spacy_7symbols_StyleVariant_styleBound,
__pyx_e_5spacy_7symbols_VerbType_aux,
__pyx_e_5spacy_7symbols_VerbType_cop,
__pyx_e_5spacy_7symbols_VerbType_mod,
__pyx_e_5spacy_7symbols_VerbType_light,
__pyx_e_5spacy_7symbols_PERSON,
__pyx_e_5spacy_7symbols_NORP,
__pyx_e_5spacy_7symbols_FACILITY,
__pyx_e_5spacy_7symbols_ORG,
__pyx_e_5spacy_7symbols_GPE,
__pyx_e_5spacy_7symbols_LOC,
__pyx_e_5spacy_7symbols_PRODUCT,
__pyx_e_5spacy_7symbols_EVENT,
__pyx_e_5spacy_7symbols_WORK_OF_ART,
__pyx_e_5spacy_7symbols_LANGUAGE,
__pyx_e_5spacy_7symbols_DATE,
__pyx_e_5spacy_7symbols_TIME,
__pyx_e_5spacy_7symbols_PERCENT,
__pyx_e_5spacy_7symbols_MONEY,
__pyx_e_5spacy_7symbols_QUANTITY,
__pyx_e_5spacy_7symbols_ORDINAL,
__pyx_e_5spacy_7symbols_CARDINAL,
__pyx_e_5spacy_7symbols_acomp,
__pyx_e_5spacy_7symbols_advcl,
__pyx_e_5spacy_7symbols_advmod,
__pyx_e_5spacy_7symbols_agent,
__pyx_e_5spacy_7symbols_amod,
__pyx_e_5spacy_7symbols_appos,
__pyx_e_5spacy_7symbols_attr,
__pyx_e_5spacy_7symbols_aux,
__pyx_e_5spacy_7symbols_auxpass,
__pyx_e_5spacy_7symbols_cc,
__pyx_e_5spacy_7symbols_ccomp,
__pyx_e_5spacy_7symbols_complm,
__pyx_e_5spacy_7symbols_conj,
__pyx_e_5spacy_7symbols_cop,
__pyx_e_5spacy_7symbols_csubj,
__pyx_e_5spacy_7symbols_csubjpass,
__pyx_e_5spacy_7symbols_dep,
__pyx_e_5spacy_7symbols_det,
__pyx_e_5spacy_7symbols_dobj,
__pyx_e_5spacy_7symbols_expl,
__pyx_e_5spacy_7symbols_hmod,
__pyx_e_5spacy_7symbols_hyph,
__pyx_e_5spacy_7symbols_infmod,
__pyx_e_5spacy_7symbols_intj,
__pyx_e_5spacy_7symbols_iobj,
__pyx_e_5spacy_7symbols_mark,
__pyx_e_5spacy_7symbols_meta,
__pyx_e_5spacy_7symbols_neg,
__pyx_e_5spacy_7symbols_nmod,
__pyx_e_5spacy_7symbols_nn,
__pyx_e_5spacy_7symbols_npadvmod,
__pyx_e_5spacy_7symbols_nsubj,
__pyx_e_5spacy_7symbols_nsubjpass,
__pyx_e_5spacy_7symbols_num,
__pyx_e_5spacy_7symbols_number,
__pyx_e_5spacy_7symbols_oprd,
__pyx_e_5spacy_7symbols_obj,
__pyx_e_5spacy_7symbols_obl,
__pyx_e_5spacy_7symbols_parataxis,
__pyx_e_5spacy_7symbols_partmod,
__pyx_e_5spacy_7symbols_pcomp,
__pyx_e_5spacy_7symbols_pobj,
__pyx_e_5spacy_7symbols_poss,
__pyx_e_5spacy_7symbols_possessive,
__pyx_e_5spacy_7symbols_preconj,
__pyx_e_5spacy_7symbols_prep,
__pyx_e_5spacy_7symbols_prt,
__pyx_e_5spacy_7symbols_punct,
__pyx_e_5spacy_7symbols_quantmod,
__pyx_e_5spacy_7symbols_rcmod,
__pyx_e_5spacy_7symbols_root,
__pyx_e_5spacy_7symbols_xcomp
};
/* "parts_of_speech.pxd":3
* from . cimport symbols
*
* cpdef enum univ_pos_t: # <<<<<<<<<<<<<<
* NO_TAG = 0
* ADJ = symbols.ADJ
*/
enum __pyx_t_5spacy_15parts_of_speech_univ_pos_t {
/* "parts_of_speech.pxd":5
* cpdef enum univ_pos_t:
* NO_TAG = 0
* ADJ = symbols.ADJ # <<<<<<<<<<<<<<
* ADP
* ADV
*/
__pyx_e_5spacy_15parts_of_speech_NO_TAG = 0,
__pyx_e_5spacy_15parts_of_speech_ADJ = __pyx_e_5spacy_7symbols_ADJ,
__pyx_e_5spacy_15parts_of_speech_ADP,
__pyx_e_5spacy_15parts_of_speech_ADV,
__pyx_e_5spacy_15parts_of_speech_AUX,
__pyx_e_5spacy_15parts_of_speech_CONJ,
__pyx_e_5spacy_15parts_of_speech_CCONJ,
__pyx_e_5spacy_15parts_of_speech_DET,
__pyx_e_5spacy_15parts_of_speech_INTJ,
__pyx_e_5spacy_15parts_of_speech_NOUN,
__pyx_e_5spacy_15parts_of_speech_NUM,
__pyx_e_5spacy_15parts_of_speech_PART,
__pyx_e_5spacy_15parts_of_speech_PRON,
__pyx_e_5spacy_15parts_of_speech_PROPN,
__pyx_e_5spacy_15parts_of_speech_PUNCT,
__pyx_e_5spacy_15parts_of_speech_SCONJ,
__pyx_e_5spacy_15parts_of_speech_SYM,
__pyx_e_5spacy_15parts_of_speech_VERB,
__pyx_e_5spacy_15parts_of_speech_X,
__pyx_e_5spacy_15parts_of_speech_EOL,
__pyx_e_5spacy_15parts_of_speech_SPACE
};
struct __pyx_t_5spacy_7structs_LexemeC;
struct __pyx_t_5spacy_7structs_Entity;
struct __pyx_t_5spacy_7structs_TokenC;
/* "structs.pxd":7
*
*
* cdef struct LexemeC: # <<<<<<<<<<<<<<
* float* vector
*
*/
struct __pyx_t_5spacy_7structs_LexemeC {
float *vector;
__pyx_t_5spacy_8typedefs_flags_t flags;
__pyx_t_5spacy_8typedefs_attr_t lang;
__pyx_t_5spacy_8typedefs_attr_t id;
__pyx_t_5spacy_8typedefs_attr_t length;
__pyx_t_5spacy_8typedefs_attr_t orth;
__pyx_t_5spacy_8typedefs_attr_t lower;
__pyx_t_5spacy_8typedefs_attr_t norm;
__pyx_t_5spacy_8typedefs_attr_t shape;
__pyx_t_5spacy_8typedefs_attr_t prefix;
__pyx_t_5spacy_8typedefs_attr_t suffix;
__pyx_t_5spacy_8typedefs_attr_t cluster;
float prob;
float sentiment;
float l2_norm;
};
/* "structs.pxd":31
*
*
* cdef struct Entity: # <<<<<<<<<<<<<<
* hash_t id
* int start
*/
struct __pyx_t_5spacy_7structs_Entity {
__pyx_t_5spacy_8typedefs_hash_t id;
int start;
int end;
int label;
};
/* "structs.pxd":38
*
*
* cdef struct TokenC: # <<<<<<<<<<<<<<
* const LexemeC* lex
* uint64_t morph
*/
struct __pyx_t_5spacy_7structs_TokenC {
struct __pyx_t_5spacy_7structs_LexemeC const *lex;
uint64_t morph;
enum __pyx_t_5spacy_15parts_of_speech_univ_pos_t pos;
int spacy;
int tag;
int idx;
int lemma;
int sense;
int head;
int dep;
int sent_start;
uint32_t l_kids;
uint32_t r_kids;
uint32_t l_edge;
uint32_t r_edge;
int ent_iob;
int ent_type;
__pyx_t_5spacy_8typedefs_hash_t ent_id;
};
struct __pyx_t_7preshed_4maps_Cell;
struct __pyx_t_7preshed_4maps_MapStruct;
/* "preshed\maps.pxd":8
*
*
* cdef struct Cell: # <<<<<<<<<<<<<<
* key_t key
* void* value
*/
struct __pyx_t_7preshed_4maps_Cell {
__pyx_t_7preshed_4maps_key_t key;
void *value;
};
/* "preshed\maps.pxd":13
*
*
* cdef struct MapStruct: # <<<<<<<<<<<<<<
* Cell* cells
* void* value_for_empty_key
*/
struct __pyx_t_7preshed_4maps_MapStruct {
struct __pyx_t_7preshed_4maps_Cell *cells;
void *value_for_empty_key;
void *value_for_del_key;
__pyx_t_7preshed_4maps_key_t length;
__pyx_t_7preshed_4maps_key_t filled;
int is_empty_key_set;
int is_del_key_set;
};
union __pyx_t_5spacy_7strings_Utf8Str;
typedef union __pyx_t_5spacy_7strings_Utf8Str __pyx_t_5spacy_7strings_Utf8Str;
/* "strings.pxd":13
*
*
* ctypedef union Utf8Str: # <<<<<<<<<<<<<<
* unsigned char[8] s
* unsigned char* p
*/
union __pyx_t_5spacy_7strings_Utf8Str {
unsigned char s[8];
unsigned char *p;
};
struct __pyx_t_5spacy_10morphology_RichTagC;
struct __pyx_t_5spacy_10morphology_MorphAnalysisC;
/* "morphology.pxd":44
*
*
* cpdef enum univ_morph_t: # <<<<<<<<<<<<<<
* NIL = 0
* Animacy_anim = symbols.Animacy_anim
*/
enum __pyx_t_5spacy_10morphology_univ_morph_t {
/* "morphology.pxd":46
* cpdef enum univ_morph_t:
* NIL = 0
* Animacy_anim = symbols.Animacy_anim # <<<<<<<<<<<<<<
* Animacy_inam
* Aspect_freq
*/
__pyx_e_5spacy_10morphology_NIL = 0,
__pyx_e_5spacy_10morphology_Animacy_anim = __pyx_e_5spacy_7symbols_Animacy_anim,
__pyx_e_5spacy_10morphology_Animacy_inam,
__pyx_e_5spacy_10morphology_Aspect_freq,
__pyx_e_5spacy_10morphology_Aspect_imp,
__pyx_e_5spacy_10morphology_Aspect_mod,
__pyx_e_5spacy_10morphology_Aspect_none,
__pyx_e_5spacy_10morphology_Aspect_perf,
__pyx_e_5spacy_10morphology_Case_abe,
__pyx_e_5spacy_10morphology_Case_abl,
__pyx_e_5spacy_10morphology_Case_abs,
__pyx_e_5spacy_10morphology_Case_acc,
__pyx_e_5spacy_10morphology_Case_ade,
__pyx_e_5spacy_10morphology_Case_all,
__pyx_e_5spacy_10morphology_Case_cau,
__pyx_e_5spacy_10morphology_Case_com,
__pyx_e_5spacy_10morphology_Case_dat,
__pyx_e_5spacy_10morphology_Case_del,
__pyx_e_5spacy_10morphology_Case_dis,
__pyx_e_5spacy_10morphology_Case_ela,
__pyx_e_5spacy_10morphology_Case_ess,
__pyx_e_5spacy_10morphology_Case_gen,
__pyx_e_5spacy_10morphology_Case_ill,
__pyx_e_5spacy_10morphology_Case_ine,
__pyx_e_5spacy_10morphology_Case_ins,
__pyx_e_5spacy_10morphology_Case_loc,
__pyx_e_5spacy_10morphology_Case_lat,
__pyx_e_5spacy_10morphology_Case_nom,
__pyx_e_5spacy_10morphology_Case_par,
__pyx_e_5spacy_10morphology_Case_sub,
__pyx_e_5spacy_10morphology_Case_sup,
__pyx_e_5spacy_10morphology_Case_tem,
__pyx_e_5spacy_10morphology_Case_ter,
__pyx_e_5spacy_10morphology_Case_tra,
__pyx_e_5spacy_10morphology_Case_voc,
__pyx_e_5spacy_10morphology_Definite_two,
__pyx_e_5spacy_10morphology_Definite_def,
__pyx_e_5spacy_10morphology_Definite_red,
__pyx_e_5spacy_10morphology_Definite_cons,
__pyx_e_5spacy_10morphology_Definite_ind,
__pyx_e_5spacy_10morphology_Degree_cmp,
__pyx_e_5spacy_10morphology_Degree_comp,
__pyx_e_5spacy_10morphology_Degree_none,
__pyx_e_5spacy_10morphology_Degree_pos,
__pyx_e_5spacy_10morphology_Degree_sup,
__pyx_e_5spacy_10morphology_Degree_abs,
__pyx_e_5spacy_10morphology_Degree_com,
__pyx_e_5spacy_10morphology_Degree_dim,
__pyx_e_5spacy_10morphology_Gender_com,
__pyx_e_5spacy_10morphology_Gender_fem,
__pyx_e_5spacy_10morphology_Gender_masc,
__pyx_e_5spacy_10morphology_Gender_neut,
__pyx_e_5spacy_10morphology_Mood_cnd,
__pyx_e_5spacy_10morphology_Mood_imp,
__pyx_e_5spacy_10morphology_Mood_ind,
__pyx_e_5spacy_10morphology_Mood_n,
__pyx_e_5spacy_10morphology_Mood_pot,
__pyx_e_5spacy_10morphology_Mood_sub,
__pyx_e_5spacy_10morphology_Mood_opt,
__pyx_e_5spacy_10morphology_Negative_neg,
__pyx_e_5spacy_10morphology_Negative_pos,
__pyx_e_5spacy_10morphology_Negative_yes,
__pyx_e_5spacy_10morphology_Polarity_neg,
__pyx_e_5spacy_10morphology_Polarity_pos,
__pyx_e_5spacy_10morphology_Number_com,
__pyx_e_5spacy_10morphology_Number_dual,
__pyx_e_5spacy_10morphology_Number_none,
__pyx_e_5spacy_10morphology_Number_plur,
__pyx_e_5spacy_10morphology_Number_sing,
__pyx_e_5spacy_10morphology_Number_ptan,
__pyx_e_5spacy_10morphology_Number_count,
__pyx_e_5spacy_10morphology_NumType_card,
__pyx_e_5spacy_10morphology_NumType_dist,
__pyx_e_5spacy_10morphology_NumType_frac,
__pyx_e_5spacy_10morphology_NumType_gen,
__pyx_e_5spacy_10morphology_NumType_mult,
__pyx_e_5spacy_10morphology_NumType_none,
__pyx_e_5spacy_10morphology_NumType_ord,
__pyx_e_5spacy_10morphology_NumType_sets,
__pyx_e_5spacy_10morphology_Person_one,
__pyx_e_5spacy_10morphology_Person_two,
__pyx_e_5spacy_10morphology_Person_three,
__pyx_e_5spacy_10morphology_Person_none,
__pyx_e_5spacy_10morphology_Poss_yes,
__pyx_e_5spacy_10morphology_PronType_advPart,
__pyx_e_5spacy_10morphology_PronType_art,
__pyx_e_5spacy_10morphology_PronType_default,
__pyx_e_5spacy_10morphology_PronType_dem,
__pyx_e_5spacy_10morphology_PronType_ind,
__pyx_e_5spacy_10morphology_PronType_int,
__pyx_e_5spacy_10morphology_PronType_neg,
__pyx_e_5spacy_10morphology_PronType_prs,
__pyx_e_5spacy_10morphology_PronType_rcp,
__pyx_e_5spacy_10morphology_PronType_rel,
__pyx_e_5spacy_10morphology_PronType_tot,
__pyx_e_5spacy_10morphology_PronType_clit,
__pyx_e_5spacy_10morphology_PronType_exc,
__pyx_e_5spacy_10morphology_Reflex_yes,
__pyx_e_5spacy_10morphology_Tense_fut,
__pyx_e_5spacy_10morphology_Tense_imp,
__pyx_e_5spacy_10morphology_Tense_past,
__pyx_e_5spacy_10morphology_Tense_pres,
__pyx_e_5spacy_10morphology_VerbForm_fin,
__pyx_e_5spacy_10morphology_VerbForm_ger,
__pyx_e_5spacy_10morphology_VerbForm_inf,
__pyx_e_5spacy_10morphology_VerbForm_none,
__pyx_e_5spacy_10morphology_VerbForm_part,
__pyx_e_5spacy_10morphology_VerbForm_partFut,
__pyx_e_5spacy_10morphology_VerbForm_partPast,
__pyx_e_5spacy_10morphology_VerbForm_partPres,
__pyx_e_5spacy_10morphology_VerbForm_sup,
__pyx_e_5spacy_10morphology_VerbForm_trans,
__pyx_e_5spacy_10morphology_VerbForm_conv,
__pyx_e_5spacy_10morphology_VerbForm_gdv,
__pyx_e_5spacy_10morphology_Voice_act,
__pyx_e_5spacy_10morphology_Voice_cau,
__pyx_e_5spacy_10morphology_Voice_pass,
__pyx_e_5spacy_10morphology_Voice_mid,
__pyx_e_5spacy_10morphology_Voice_int,
__pyx_e_5spacy_10morphology_Abbr_yes,
__pyx_e_5spacy_10morphology_AdpType_prep,
__pyx_e_5spacy_10morphology_AdpType_post,
__pyx_e_5spacy_10morphology_AdpType_voc,
__pyx_e_5spacy_10morphology_AdpType_comprep,
__pyx_e_5spacy_10morphology_AdpType_circ,
__pyx_e_5spacy_10morphology_AdvType_man,
__pyx_e_5spacy_10morphology_AdvType_loc,
__pyx_e_5spacy_10morphology_AdvType_tim,
__pyx_e_5spacy_10morphology_AdvType_deg,
__pyx_e_5spacy_10morphology_AdvType_cau,
__pyx_e_5spacy_10morphology_AdvType_mod,
__pyx_e_5spacy_10morphology_AdvType_sta,
__pyx_e_5spacy_10morphology_AdvType_ex,
__pyx_e_5spacy_10morphology_AdvType_adadj,
__pyx_e_5spacy_10morphology_ConjType_oper,
__pyx_e_5spacy_10morphology_ConjType_comp,
__pyx_e_5spacy_10morphology_Connegative_yes,
__pyx_e_5spacy_10morphology_Derivation_minen,
__pyx_e_5spacy_10morphology_Derivation_sti,
__pyx_e_5spacy_10morphology_Derivation_inen,
__pyx_e_5spacy_10morphology_Derivation_lainen,
__pyx_e_5spacy_10morphology_Derivation_ja,
__pyx_e_5spacy_10morphology_Derivation_ton,
__pyx_e_5spacy_10morphology_Derivation_vs,
__pyx_e_5spacy_10morphology_Derivation_ttain,
__pyx_e_5spacy_10morphology_Derivation_ttaa,
__pyx_e_5spacy_10morphology_Echo_rdp,
__pyx_e_5spacy_10morphology_Echo_ech,
__pyx_e_5spacy_10morphology_Foreign_foreign,
__pyx_e_5spacy_10morphology_Foreign_fscript,
__pyx_e_5spacy_10morphology_Foreign_tscript,
__pyx_e_5spacy_10morphology_Foreign_yes,
__pyx_e_5spacy_10morphology_Gender_dat_masc,
__pyx_e_5spacy_10morphology_Gender_dat_fem,
__pyx_e_5spacy_10morphology_Gender_erg_masc,
__pyx_e_5spacy_10morphology_Gender_erg_fem,
__pyx_e_5spacy_10morphology_Gender_psor_masc,
__pyx_e_5spacy_10morphology_Gender_psor_fem,
__pyx_e_5spacy_10morphology_Gender_psor_neut,
__pyx_e_5spacy_10morphology_Hyph_yes,
__pyx_e_5spacy_10morphology_InfForm_one,
__pyx_e_5spacy_10morphology_InfForm_two,
__pyx_e_5spacy_10morphology_InfForm_three,
__pyx_e_5spacy_10morphology_NameType_geo,
__pyx_e_5spacy_10morphology_NameType_prs,
__pyx_e_5spacy_10morphology_NameType_giv,
__pyx_e_5spacy_10morphology_NameType_sur,
__pyx_e_5spacy_10morphology_NameType_nat,
__pyx_e_5spacy_10morphology_NameType_com,
__pyx_e_5spacy_10morphology_NameType_pro,
__pyx_e_5spacy_10morphology_NameType_oth,
__pyx_e_5spacy_10morphology_NounType_com,
__pyx_e_5spacy_10morphology_NounType_prop,
__pyx_e_5spacy_10morphology_NounType_class,
__pyx_e_5spacy_10morphology_Number_abs_sing,
__pyx_e_5spacy_10morphology_Number_abs_plur,
__pyx_e_5spacy_10morphology_Number_dat_sing,
__pyx_e_5spacy_10morphology_Number_dat_plur,
__pyx_e_5spacy_10morphology_Number_erg_sing,
__pyx_e_5spacy_10morphology_Number_erg_plur,
__pyx_e_5spacy_10morphology_Number_psee_sing,
__pyx_e_5spacy_10morphology_Number_psee_plur,
__pyx_e_5spacy_10morphology_Number_psor_sing,
__pyx_e_5spacy_10morphology_Number_psor_plur,
__pyx_e_5spacy_10morphology_NumForm_digit,
__pyx_e_5spacy_10morphology_NumForm_roman,
__pyx_e_5spacy_10morphology_NumForm_word,
__pyx_e_5spacy_10morphology_NumValue_one,
__pyx_e_5spacy_10morphology_NumValue_two,
__pyx_e_5spacy_10morphology_NumValue_three,
__pyx_e_5spacy_10morphology_PartForm_pres,
__pyx_e_5spacy_10morphology_PartForm_past,
__pyx_e_5spacy_10morphology_PartForm_agt,
__pyx_e_5spacy_10morphology_PartForm_neg,
__pyx_e_5spacy_10morphology_PartType_mod,
__pyx_e_5spacy_10morphology_PartType_emp,
__pyx_e_5spacy_10morphology_PartType_res,
__pyx_e_5spacy_10morphology_PartType_inf,
__pyx_e_5spacy_10morphology_PartType_vbp,
__pyx_e_5spacy_10morphology_Person_abs_one,
__pyx_e_5spacy_10morphology_Person_abs_two,
__pyx_e_5spacy_10morphology_Person_abs_three,
__pyx_e_5spacy_10morphology_Person_dat_one,
__pyx_e_5spacy_10morphology_Person_dat_two,
__pyx_e_5spacy_10morphology_Person_dat_three,
__pyx_e_5spacy_10morphology_Person_erg_one,
__pyx_e_5spacy_10morphology_Person_erg_two,
__pyx_e_5spacy_10morphology_Person_erg_three,
__pyx_e_5spacy_10morphology_Person_psor_one,
__pyx_e_5spacy_10morphology_Person_psor_two,
__pyx_e_5spacy_10morphology_Person_psor_three,
__pyx_e_5spacy_10morphology_Polite_inf,
__pyx_e_5spacy_10morphology_Polite_pol,
__pyx_e_5spacy_10morphology_Polite_abs_inf,
__pyx_e_5spacy_10morphology_Polite_abs_pol,
__pyx_e_5spacy_10morphology_Polite_erg_inf,
__pyx_e_5spacy_10morphology_Polite_erg_pol,
__pyx_e_5spacy_10morphology_Polite_dat_inf,
__pyx_e_5spacy_10morphology_Polite_dat_pol,
__pyx_e_5spacy_10morphology_Prefix_yes,
__pyx_e_5spacy_10morphology_PrepCase_npr,
__pyx_e_5spacy_10morphology_PrepCase_pre,
__pyx_e_5spacy_10morphology_PunctSide_ini,
__pyx_e_5spacy_10morphology_PunctSide_fin,
__pyx_e_5spacy_10morphology_PunctType_peri,
__pyx_e_5spacy_10morphology_PunctType_qest,
__pyx_e_5spacy_10morphology_PunctType_excl,
__pyx_e_5spacy_10morphology_PunctType_quot,
__pyx_e_5spacy_10morphology_PunctType_brck,
__pyx_e_5spacy_10morphology_PunctType_comm,
__pyx_e_5spacy_10morphology_PunctType_colo,
__pyx_e_5spacy_10morphology_PunctType_semi,
__pyx_e_5spacy_10morphology_PunctType_dash,
__pyx_e_5spacy_10morphology_Style_arch,
__pyx_e_5spacy_10morphology_Style_rare,
__pyx_e_5spacy_10morphology_Style_poet,
__pyx_e_5spacy_10morphology_Style_norm,
__pyx_e_5spacy_10morphology_Style_coll,
__pyx_e_5spacy_10morphology_Style_vrnc,
__pyx_e_5spacy_10morphology_Style_sing,
__pyx_e_5spacy_10morphology_Style_expr,
__pyx_e_5spacy_10morphology_Style_derg,
__pyx_e_5spacy_10morphology_Style_vulg,
__pyx_e_5spacy_10morphology_Style_yes,
__pyx_e_5spacy_10morphology_StyleVariant_styleShort,
__pyx_e_5spacy_10morphology_StyleVariant_styleBound,
__pyx_e_5spacy_10morphology_VerbType_aux,
__pyx_e_5spacy_10morphology_VerbType_cop,
__pyx_e_5spacy_10morphology_VerbType_mod,
__pyx_e_5spacy_10morphology_VerbType_light
};
/* "morphology.pxd":13
*
*
* cdef struct RichTagC: # <<<<<<<<<<<<<<
* uint64_t morph
* int id
*/
struct __pyx_t_5spacy_10morphology_RichTagC {
uint64_t morph;
int id;
enum __pyx_t_5spacy_15parts_of_speech_univ_pos_t pos;
__pyx_t_5spacy_8typedefs_attr_t name;
};
/* "morphology.pxd":20
*
*
* cdef struct MorphAnalysisC: # <<<<<<<<<<<<<<
* RichTagC tag
* attr_t lemma
*/
struct __pyx_t_5spacy_10morphology_MorphAnalysisC {
struct __pyx_t_5spacy_10morphology_RichTagC tag;
__pyx_t_5spacy_8typedefs_attr_t lemma;
};
union __pyx_t_5spacy_5vocab_LexemesOrTokens;
struct __pyx_t_5spacy_5vocab__Cached;
/* "vocab.pxd":16
*
*
* cdef union LexemesOrTokens: # <<<<<<<<<<<<<<
* const LexemeC* const* lexemes
* const TokenC* tokens
*/
union __pyx_t_5spacy_5vocab_LexemesOrTokens {
struct __pyx_t_5spacy_7structs_LexemeC const *const *lexemes;
struct __pyx_t_5spacy_7structs_TokenC const *tokens;
};
/* "vocab.pxd":21
*
*
* cdef struct _Cached: # <<<<<<<<<<<<<<
* LexemesOrTokens data
* bint is_lex
*/
struct __pyx_t_5spacy_5vocab__Cached {
union __pyx_t_5spacy_5vocab_LexemesOrTokens data;
int is_lex;
int length;
};
/* "attrs.pxd":2
* # Reserve 64 values for flag features
* cpdef enum attr_id_t: # <<<<<<<<<<<<<<
* NULL_ATTR
* IS_ALPHA
*/
enum __pyx_t_5spacy_5attrs_attr_id_t {
__pyx_e_5spacy_5attrs_NULL_ATTR,
__pyx_e_5spacy_5attrs_IS_ALPHA,
__pyx_e_5spacy_5attrs_IS_ASCII,
__pyx_e_5spacy_5attrs_IS_DIGIT,
__pyx_e_5spacy_5attrs_IS_LOWER,
__pyx_e_5spacy_5attrs_IS_PUNCT,
__pyx_e_5spacy_5attrs_IS_SPACE,
__pyx_e_5spacy_5attrs_IS_TITLE,
__pyx_e_5spacy_5attrs_IS_UPPER,
__pyx_e_5spacy_5attrs_LIKE_URL,
__pyx_e_5spacy_5attrs_LIKE_NUM,
__pyx_e_5spacy_5attrs_LIKE_EMAIL,
__pyx_e_5spacy_5attrs_IS_STOP,
__pyx_e_5spacy_5attrs_IS_OOV,
__pyx_e_5spacy_5attrs_IS_BRACKET,
__pyx_e_5spacy_5attrs_IS_QUOTE,
__pyx_e_5spacy_5attrs_IS_LEFT_PUNCT,
__pyx_e_5spacy_5attrs_IS_RIGHT_PUNCT,
__pyx_e_5spacy_5attrs_FLAG18 = 18,
__pyx_e_5spacy_5attrs_FLAG19,
__pyx_e_5spacy_5attrs_FLAG20,
__pyx_e_5spacy_5attrs_FLAG21,
__pyx_e_5spacy_5attrs_FLAG22,
__pyx_e_5spacy_5attrs_FLAG23,
__pyx_e_5spacy_5attrs_FLAG24,
__pyx_e_5spacy_5attrs_FLAG25,
__pyx_e_5spacy_5attrs_FLAG26,
__pyx_e_5spacy_5attrs_FLAG27,
__pyx_e_5spacy_5attrs_FLAG28,
__pyx_e_5spacy_5attrs_FLAG29,
__pyx_e_5spacy_5attrs_FLAG30,
__pyx_e_5spacy_5attrs_FLAG31,
__pyx_e_5spacy_5attrs_FLAG32,
__pyx_e_5spacy_5attrs_FLAG33,
__pyx_e_5spacy_5attrs_FLAG34,
__pyx_e_5spacy_5attrs_FLAG35,
__pyx_e_5spacy_5attrs_FLAG36,
__pyx_e_5spacy_5attrs_FLAG37,
__pyx_e_5spacy_5attrs_FLAG38,
__pyx_e_5spacy_5attrs_FLAG39,
__pyx_e_5spacy_5attrs_FLAG40,
__pyx_e_5spacy_5attrs_FLAG41,
__pyx_e_5spacy_5attrs_FLAG42,
__pyx_e_5spacy_5attrs_FLAG43,
__pyx_e_5spacy_5attrs_FLAG44,
__pyx_e_5spacy_5attrs_FLAG45,
__pyx_e_5spacy_5attrs_FLAG46,
__pyx_e_5spacy_5attrs_FLAG47,
__pyx_e_5spacy_5attrs_FLAG48,
__pyx_e_5spacy_5attrs_FLAG49,
__pyx_e_5spacy_5attrs_FLAG50,
__pyx_e_5spacy_5attrs_FLAG51,
__pyx_e_5spacy_5attrs_FLAG52,
__pyx_e_5spacy_5attrs_FLAG53,
__pyx_e_5spacy_5attrs_FLAG54,
__pyx_e_5spacy_5attrs_FLAG55,
__pyx_e_5spacy_5attrs_FLAG56,
__pyx_e_5spacy_5attrs_FLAG57,
__pyx_e_5spacy_5attrs_FLAG58,
__pyx_e_5spacy_5attrs_FLAG59,
__pyx_e_5spacy_5attrs_FLAG60,
__pyx_e_5spacy_5attrs_FLAG61,
__pyx_e_5spacy_5attrs_FLAG62,
__pyx_e_5spacy_5attrs_FLAG63,
__pyx_e_5spacy_5attrs_ID,
__pyx_e_5spacy_5attrs_ORTH,
__pyx_e_5spacy_5attrs_LOWER,
__pyx_e_5spacy_5attrs_NORM,
__pyx_e_5spacy_5attrs_SHAPE,
__pyx_e_5spacy_5attrs_PREFIX,
__pyx_e_5spacy_5attrs_SUFFIX,
__pyx_e_5spacy_5attrs_LENGTH,
__pyx_e_5spacy_5attrs_CLUSTER,
__pyx_e_5spacy_5attrs_LEMMA,
__pyx_e_5spacy_5attrs_POS,
__pyx_e_5spacy_5attrs_TAG,
__pyx_e_5spacy_5attrs_DEP,
__pyx_e_5spacy_5attrs_ENT_IOB,
__pyx_e_5spacy_5attrs_ENT_TYPE,
__pyx_e_5spacy_5attrs_HEAD,
__pyx_e_5spacy_5attrs_SPACY,
__pyx_e_5spacy_5attrs_PROB,
__pyx_e_5spacy_5attrs_LANG
};
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":764
* ctypedef npy_longdouble longdouble_t
*
* ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<<
* ctypedef npy_cdouble cdouble_t
* ctypedef npy_clongdouble clongdouble_t
*/
typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":765
*
* ctypedef npy_cfloat cfloat_t
* ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<<
* ctypedef npy_clongdouble clongdouble_t
*
*/
typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":766
* ctypedef npy_cfloat cfloat_t
* ctypedef npy_cdouble cdouble_t
* ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<<
*
* ctypedef npy_cdouble complex_t
*/
typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":768
* ctypedef npy_clongdouble clongdouble_t
*
* ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<<
*
* cdef inline object PyArray_MultiIterNew1(a):
*/
typedef npy_cdouble __pyx_t_5numpy_complex_t;
struct __pyx_t_5spacy_6syntax_6_state_StateC;
struct __pyx_t_5spacy_6syntax_6_state_StateC {
/* "_state.pxd":18
*
*
* cdef cppclass StateC: # <<<<<<<<<<<<<<
* int* _stack
* int* _buffer
*/
int *_stack;
int *_buffer;
int *shifted;
struct __pyx_t_5spacy_7structs_TokenC *_sent;
struct __pyx_t_5spacy_7structs_Entity *_ents;
struct __pyx_t_5spacy_7structs_TokenC _empty_token;
int length;
int _s_i;
int _b_i;
int _e_i;
int _break;
__pyx_t_5spacy_6syntax_6_state_StateC(struct __pyx_t_5spacy_7structs_TokenC const *, int);
virtual ~__pyx_t_5spacy_6syntax_6_state_StateC(void);
virtual int S(int) const;
virtual int B(int) const;
virtual struct __pyx_t_5spacy_7structs_TokenC const *S_(int) const;
virtual struct __pyx_t_5spacy_7structs_TokenC const *B_(int) const;
virtual struct __pyx_t_5spacy_7structs_TokenC const *H_(int) const;
virtual struct __pyx_t_5spacy_7structs_TokenC const *E_(int) const;
virtual struct __pyx_t_5spacy_7structs_TokenC const *L_(int, int) const;
virtual struct __pyx_t_5spacy_7structs_TokenC const *R_(int, int) const;
virtual struct __pyx_t_5spacy_7structs_TokenC const *safe_get(int) const;
virtual int H(int) const;
virtual int E(int) const;
virtual int L(int, int) const;
virtual int R(int, int) const;
virtual int empty(void) const;
virtual int eol(void) const;
virtual int at_break(void) const;
virtual int is_final(void) const;
virtual int has_head(int) const;
virtual int n_L(int) const;
virtual int n_R(int) const;
virtual int stack_is_connected(void) const;
virtual int entity_is_open(void) const;
virtual int stack_depth(void) const;
virtual int buffer_length(void) const;
virtual uint64_t hash(void) const;
virtual void push(void);
virtual void pop(void);
virtual void unshift(void);
virtual void add_arc(int, int, int);
virtual void del_arc(int, int);
virtual void open_ent(int);
virtual void close_ent(void);
virtual void set_ent_tag(int, int, int);
virtual void set_break(int);
virtual void clone(__pyx_t_5spacy_6syntax_6_state_StateC const *);
virtual void fast_forward(void);
};
/* "spacy\syntax\_parse_features.pxd":25
*
* # NB: The order of the enum is _NOT_ arbitrary!!
* cpdef enum: # <<<<<<<<<<<<<<
* S2w
* S2W
*/
enum {
__pyx_e_5spacy_6syntax_15_parse_features_S2w,
__pyx_e_5spacy_6syntax_15_parse_features_S2W,
__pyx_e_5spacy_6syntax_15_parse_features_S2p,
__pyx_e_5spacy_6syntax_15_parse_features_S2c,
__pyx_e_5spacy_6syntax_15_parse_features_S2c4,
__pyx_e_5spacy_6syntax_15_parse_features_S2c6,
__pyx_e_5spacy_6syntax_15_parse_features_S2L,
__pyx_e_5spacy_6syntax_15_parse_features_S2_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_S2_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_S2_shape,
__pyx_e_5spacy_6syntax_15_parse_features_S2_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_S2_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_S1w,
__pyx_e_5spacy_6syntax_15_parse_features_S1W,
__pyx_e_5spacy_6syntax_15_parse_features_S1p,
__pyx_e_5spacy_6syntax_15_parse_features_S1c,
__pyx_e_5spacy_6syntax_15_parse_features_S1c4,
__pyx_e_5spacy_6syntax_15_parse_features_S1c6,
__pyx_e_5spacy_6syntax_15_parse_features_S1L,
__pyx_e_5spacy_6syntax_15_parse_features_S1_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_S1_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_S1_shape,
__pyx_e_5spacy_6syntax_15_parse_features_S1_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_S1_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_S1rw,
__pyx_e_5spacy_6syntax_15_parse_features_S1rW,
__pyx_e_5spacy_6syntax_15_parse_features_S1rp,
__pyx_e_5spacy_6syntax_15_parse_features_S1rc,
__pyx_e_5spacy_6syntax_15_parse_features_S1rc4,
__pyx_e_5spacy_6syntax_15_parse_features_S1rc6,
__pyx_e_5spacy_6syntax_15_parse_features_S1rL,
__pyx_e_5spacy_6syntax_15_parse_features_S1r_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_S1r_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_S1r_shape,
__pyx_e_5spacy_6syntax_15_parse_features_S1r_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_S1r_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_S0lw,
__pyx_e_5spacy_6syntax_15_parse_features_S0lW,
__pyx_e_5spacy_6syntax_15_parse_features_S0lp,
__pyx_e_5spacy_6syntax_15_parse_features_S0lc,
__pyx_e_5spacy_6syntax_15_parse_features_S0lc4,
__pyx_e_5spacy_6syntax_15_parse_features_S0lc6,
__pyx_e_5spacy_6syntax_15_parse_features_S0lL,
__pyx_e_5spacy_6syntax_15_parse_features_S0l_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_S0l_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_S0l_shape,
__pyx_e_5spacy_6syntax_15_parse_features_S0l_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_S0l_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2w,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2W,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2p,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2c,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2c4,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2c6,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2L,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2_shape,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_S0l2_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_S0w,
__pyx_e_5spacy_6syntax_15_parse_features_S0W,
__pyx_e_5spacy_6syntax_15_parse_features_S0p,
__pyx_e_5spacy_6syntax_15_parse_features_S0c,
__pyx_e_5spacy_6syntax_15_parse_features_S0c4,
__pyx_e_5spacy_6syntax_15_parse_features_S0c6,
__pyx_e_5spacy_6syntax_15_parse_features_S0L,
__pyx_e_5spacy_6syntax_15_parse_features_S0_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_S0_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_S0_shape,
__pyx_e_5spacy_6syntax_15_parse_features_S0_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_S0_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2w,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2W,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2p,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2c,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2c4,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2c6,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2L,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2_shape,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_S0r2_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_S0rw,
__pyx_e_5spacy_6syntax_15_parse_features_S0rW,
__pyx_e_5spacy_6syntax_15_parse_features_S0rp,
__pyx_e_5spacy_6syntax_15_parse_features_S0rc,
__pyx_e_5spacy_6syntax_15_parse_features_S0rc4,
__pyx_e_5spacy_6syntax_15_parse_features_S0rc6,
__pyx_e_5spacy_6syntax_15_parse_features_S0rL,
__pyx_e_5spacy_6syntax_15_parse_features_S0r_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_S0r_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_S0r_shape,
__pyx_e_5spacy_6syntax_15_parse_features_S0r_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_S0r_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2w,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2W,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2p,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2c,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2c4,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2c6,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2L,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2_shape,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_N0l2_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_N0lw,
__pyx_e_5spacy_6syntax_15_parse_features_N0lW,
__pyx_e_5spacy_6syntax_15_parse_features_N0lp,
__pyx_e_5spacy_6syntax_15_parse_features_N0lc,
__pyx_e_5spacy_6syntax_15_parse_features_N0lc4,
__pyx_e_5spacy_6syntax_15_parse_features_N0lc6,
__pyx_e_5spacy_6syntax_15_parse_features_N0lL,
__pyx_e_5spacy_6syntax_15_parse_features_N0l_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_N0l_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_N0l_shape,
__pyx_e_5spacy_6syntax_15_parse_features_N0l_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_N0l_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_N0w,
__pyx_e_5spacy_6syntax_15_parse_features_N0W,
__pyx_e_5spacy_6syntax_15_parse_features_N0p,
__pyx_e_5spacy_6syntax_15_parse_features_N0c,
__pyx_e_5spacy_6syntax_15_parse_features_N0c4,
__pyx_e_5spacy_6syntax_15_parse_features_N0c6,
__pyx_e_5spacy_6syntax_15_parse_features_N0L,
__pyx_e_5spacy_6syntax_15_parse_features_N0_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_N0_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_N0_shape,
__pyx_e_5spacy_6syntax_15_parse_features_N0_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_N0_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_N1w,
__pyx_e_5spacy_6syntax_15_parse_features_N1W,
__pyx_e_5spacy_6syntax_15_parse_features_N1p,
__pyx_e_5spacy_6syntax_15_parse_features_N1c,
__pyx_e_5spacy_6syntax_15_parse_features_N1c4,
__pyx_e_5spacy_6syntax_15_parse_features_N1c6,
__pyx_e_5spacy_6syntax_15_parse_features_N1L,
__pyx_e_5spacy_6syntax_15_parse_features_N1_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_N1_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_N1_shape,
__pyx_e_5spacy_6syntax_15_parse_features_N1_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_N1_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_N2w,
__pyx_e_5spacy_6syntax_15_parse_features_N2W,
__pyx_e_5spacy_6syntax_15_parse_features_N2p,
__pyx_e_5spacy_6syntax_15_parse_features_N2c,
__pyx_e_5spacy_6syntax_15_parse_features_N2c4,
__pyx_e_5spacy_6syntax_15_parse_features_N2c6,
__pyx_e_5spacy_6syntax_15_parse_features_N2L,
__pyx_e_5spacy_6syntax_15_parse_features_N2_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_N2_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_N2_shape,
__pyx_e_5spacy_6syntax_15_parse_features_N2_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_N2_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_P1w,
__pyx_e_5spacy_6syntax_15_parse_features_P1W,
__pyx_e_5spacy_6syntax_15_parse_features_P1p,
__pyx_e_5spacy_6syntax_15_parse_features_P1c,
__pyx_e_5spacy_6syntax_15_parse_features_P1c4,
__pyx_e_5spacy_6syntax_15_parse_features_P1c6,
__pyx_e_5spacy_6syntax_15_parse_features_P1L,
__pyx_e_5spacy_6syntax_15_parse_features_P1_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_P1_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_P1_shape,
__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_P2w,
__pyx_e_5spacy_6syntax_15_parse_features_P2W,
__pyx_e_5spacy_6syntax_15_parse_features_P2p,
__pyx_e_5spacy_6syntax_15_parse_features_P2c,
__pyx_e_5spacy_6syntax_15_parse_features_P2c4,
__pyx_e_5spacy_6syntax_15_parse_features_P2c6,
__pyx_e_5spacy_6syntax_15_parse_features_P2L,
__pyx_e_5spacy_6syntax_15_parse_features_P2_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_P2_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_P2_shape,
__pyx_e_5spacy_6syntax_15_parse_features_P2_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_P2_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_E0w,
__pyx_e_5spacy_6syntax_15_parse_features_E0W,
__pyx_e_5spacy_6syntax_15_parse_features_E0p,
__pyx_e_5spacy_6syntax_15_parse_features_E0c,
__pyx_e_5spacy_6syntax_15_parse_features_E0c4,
__pyx_e_5spacy_6syntax_15_parse_features_E0c6,
__pyx_e_5spacy_6syntax_15_parse_features_E0L,
__pyx_e_5spacy_6syntax_15_parse_features_E0_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_E0_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_E0_shape,
__pyx_e_5spacy_6syntax_15_parse_features_E0_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_E0_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_E1w,
__pyx_e_5spacy_6syntax_15_parse_features_E1W,
__pyx_e_5spacy_6syntax_15_parse_features_E1p,
__pyx_e_5spacy_6syntax_15_parse_features_E1c,
__pyx_e_5spacy_6syntax_15_parse_features_E1c4,
__pyx_e_5spacy_6syntax_15_parse_features_E1c6,
__pyx_e_5spacy_6syntax_15_parse_features_E1L,
__pyx_e_5spacy_6syntax_15_parse_features_E1_prefix,
__pyx_e_5spacy_6syntax_15_parse_features_E1_suffix,
__pyx_e_5spacy_6syntax_15_parse_features_E1_shape,
__pyx_e_5spacy_6syntax_15_parse_features_E1_ne_iob,
__pyx_e_5spacy_6syntax_15_parse_features_E1_ne_type,
__pyx_e_5spacy_6syntax_15_parse_features_dist,
__pyx_e_5spacy_6syntax_15_parse_features_N0lv,
__pyx_e_5spacy_6syntax_15_parse_features_S0lv,
__pyx_e_5spacy_6syntax_15_parse_features_S0rv,
__pyx_e_5spacy_6syntax_15_parse_features_S1lv,
__pyx_e_5spacy_6syntax_15_parse_features_S1rv,
__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head,
__pyx_e_5spacy_6syntax_15_parse_features_S1_has_head,
__pyx_e_5spacy_6syntax_15_parse_features_S2_has_head,
__pyx_e_5spacy_6syntax_15_parse_features_CONTEXT_SIZE
};
/* "cymem\cymem.pxd":1
* cdef class Pool: # <<<<<<<<<<<<<<
* cdef readonly size_t size
* cdef readonly dict addresses
*/
struct __pyx_obj_5cymem_5cymem_Pool {
PyObject_HEAD
struct __pyx_vtabstruct_5cymem_5cymem_Pool *__pyx_vtab;
size_t size;
PyObject *addresses;
PyObject *refs;
};
/* "cymem\cymem.pxd":11
*
*
* cdef class Address: # <<<<<<<<<<<<<<
* cdef void* ptr
*/
struct __pyx_obj_5cymem_5cymem_Address {
PyObject_HEAD
void *ptr;
};
/* "preshed\maps.pxd":36
*
*
* cdef class PreshMap: # <<<<<<<<<<<<<<
* cdef MapStruct* c_map
* cdef Pool mem
*/
struct __pyx_obj_7preshed_4maps_PreshMap {
PyObject_HEAD
struct __pyx_vtabstruct_7preshed_4maps_PreshMap *__pyx_vtab;
struct __pyx_t_7preshed_4maps_MapStruct *c_map;
struct __pyx_obj_5cymem_5cymem_Pool *mem;
};
/* "preshed\maps.pxd":44
*
*
* cdef class PreshMapArray: # <<<<<<<<<<<<<<
* cdef Pool mem
* cdef MapStruct* maps
*/
struct __pyx_obj_7preshed_4maps_PreshMapArray {
PyObject_HEAD
struct __pyx_vtabstruct_7preshed_4maps_PreshMapArray *__pyx_vtab;
struct __pyx_obj_5cymem_5cymem_Pool *mem;
struct __pyx_t_7preshed_4maps_MapStruct *maps;
size_t length;
};
/* "strings.pxd":18
*
*
* cdef class StringStore: # <<<<<<<<<<<<<<
* cdef Pool mem
* cdef Utf8Str* c
*/
struct __pyx_obj_5spacy_7strings_StringStore {
PyObject_HEAD
struct __pyx_vtabstruct_5spacy_7strings_StringStore *__pyx_vtab;
struct __pyx_obj_5cymem_5cymem_Pool *mem;
__pyx_t_5spacy_7strings_Utf8Str *c;
int64_t size;
int is_frozen;
struct __pyx_obj_7preshed_4maps_PreshMap *_map;
struct __pyx_obj_7preshed_4maps_PreshMap *_oov;
int64_t _resize_at;
};
/* "morphology.pxd":25
*
*
* cdef class Morphology: # <<<<<<<<<<<<<<
* cdef readonly Pool mem
* cdef readonly StringStore strings
*/
struct __pyx_obj_5spacy_10morphology_Morphology {
PyObject_HEAD
struct __pyx_vtabstruct_5spacy_10morphology_Morphology *__pyx_vtab;
struct __pyx_obj_5cymem_5cymem_Pool *mem;
struct __pyx_obj_5spacy_7strings_StringStore *strings;
PyObject *lemmatizer;
PyObject *tag_map;
PyObject *n_tags;
PyObject *reverse_index;
PyObject *tag_names;
struct __pyx_t_5spacy_10morphology_RichTagC *rich_tags;
struct __pyx_obj_7preshed_4maps_PreshMapArray *_cache;
};
/* "vocab.pxd":27
*
*
* cdef class Vocab: # <<<<<<<<<<<<<<
* cdef Pool mem
* cpdef readonly StringStore strings
*/
struct __pyx_obj_5spacy_5vocab_Vocab {
PyObject_HEAD
struct __pyx_vtabstruct_5spacy_5vocab_Vocab *__pyx_vtab;
struct __pyx_obj_5cymem_5cymem_Pool *mem;
struct __pyx_obj_5spacy_7strings_StringStore *strings;
struct __pyx_obj_5spacy_10morphology_Morphology *morphology;
int length;
PyObject *_serializer;
PyObject *data_dir;
PyObject *lex_attr_getters;
PyObject *serializer_freqs;
struct __pyx_obj_7preshed_4maps_PreshMap *_by_hash;
struct __pyx_obj_7preshed_4maps_PreshMap *_by_orth;
int vectors_length;
};
/* "lexeme.pxd":14
* cdef LexemeC EMPTY_LEXEME
*
* cdef class Lexeme: # <<<<<<<<<<<<<<
* cdef LexemeC* c
* cdef readonly Vocab vocab
*/
struct __pyx_obj_5spacy_6lexeme_Lexeme {
PyObject_HEAD
struct __pyx_vtabstruct_5spacy_6lexeme_Lexeme *__pyx_vtab;
struct __pyx_t_5spacy_7structs_LexemeC *c;
struct __pyx_obj_5spacy_5vocab_Vocab *vocab;
__pyx_t_5spacy_8typedefs_attr_t orth;
};
/* "stateclass.pxd":12
*
*
* cdef class StateClass: # <<<<<<<<<<<<<<
* cdef Pool mem
* cdef StateC* c
*/
struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass {
PyObject_HEAD
struct __pyx_vtabstruct_5spacy_6syntax_10stateclass_StateClass *__pyx_vtab;
struct __pyx_obj_5cymem_5cymem_Pool *mem;
__pyx_t_5spacy_6syntax_6_state_StateC *c;
};
/* "cymem\cymem.pxd":1
* cdef class Pool: # <<<<<<<<<<<<<<
* cdef readonly size_t size
* cdef readonly dict addresses
*/
struct __pyx_vtabstruct_5cymem_5cymem_Pool {
void *(*alloc)(struct __pyx_obj_5cymem_5cymem_Pool *, size_t, size_t);
void (*free)(struct __pyx_obj_5cymem_5cymem_Pool *, void *);
void *(*realloc)(struct __pyx_obj_5cymem_5cymem_Pool *, void *, size_t);
};
static struct __pyx_vtabstruct_5cymem_5cymem_Pool *__pyx_vtabptr_5cymem_5cymem_Pool;
/* "preshed\maps.pxd":36
*
*
* cdef class PreshMap: # <<<<<<<<<<<<<<
* cdef MapStruct* c_map
* cdef Pool mem
*/
struct __pyx_vtabstruct_7preshed_4maps_PreshMap {
void *(*get)(struct __pyx_obj_7preshed_4maps_PreshMap *, __pyx_t_7preshed_4maps_key_t);
void (*set)(struct __pyx_obj_7preshed_4maps_PreshMap *, __pyx_t_7preshed_4maps_key_t, void *);
};
static struct __pyx_vtabstruct_7preshed_4maps_PreshMap *__pyx_vtabptr_7preshed_4maps_PreshMap;
/* "preshed\maps.pxd":44
*
*
* cdef class PreshMapArray: # <<<<<<<<<<<<<<
* cdef Pool mem
* cdef MapStruct* maps
*/
struct __pyx_vtabstruct_7preshed_4maps_PreshMapArray {
void *(*get)(struct __pyx_obj_7preshed_4maps_PreshMapArray *, size_t, __pyx_t_7preshed_4maps_key_t);
void (*set)(struct __pyx_obj_7preshed_4maps_PreshMapArray *, size_t, __pyx_t_7preshed_4maps_key_t, void *);
};
static struct __pyx_vtabstruct_7preshed_4maps_PreshMapArray *__pyx_vtabptr_7preshed_4maps_PreshMapArray;
/* "strings.pxd":18
*
*
* cdef class StringStore: # <<<<<<<<<<<<<<
* cdef Pool mem
* cdef Utf8Str* c
*/
struct __pyx_vtabstruct_5spacy_7strings_StringStore {
__pyx_t_5spacy_7strings_Utf8Str const *(*intern_unicode)(struct __pyx_obj_5spacy_7strings_StringStore *, PyObject *);
__pyx_t_5spacy_7strings_Utf8Str const *(*_intern_utf8)(struct __pyx_obj_5spacy_7strings_StringStore *, char *, int);
};
static struct __pyx_vtabstruct_5spacy_7strings_StringStore *__pyx_vtabptr_5spacy_7strings_StringStore;
/* "morphology.pxd":25
*
*
* cdef class Morphology: # <<<<<<<<<<<<<<
* cdef readonly Pool mem
* cdef readonly StringStore strings
*/
struct __pyx_vtabstruct_5spacy_10morphology_Morphology {
int (*assign_tag)(struct __pyx_obj_5spacy_10morphology_Morphology *, struct __pyx_t_5spacy_7structs_TokenC *, PyObject *);
int (*assign_tag_id)(struct __pyx_obj_5spacy_10morphology_Morphology *, struct __pyx_t_5spacy_7structs_TokenC *, int);
int (*assign_feature)(struct __pyx_obj_5spacy_10morphology_Morphology *, uint64_t *, enum __pyx_t_5spacy_10morphology_univ_morph_t, int);
};
static struct __pyx_vtabstruct_5spacy_10morphology_Morphology *__pyx_vtabptr_5spacy_10morphology_Morphology;
/* "vocab.pxd":27
*
*
* cdef class Vocab: # <<<<<<<<<<<<<<
* cdef Pool mem
* cpdef readonly StringStore strings
*/
struct __pyx_vtabstruct_5spacy_5vocab_Vocab {
struct __pyx_t_5spacy_7structs_LexemeC const *(*get)(struct __pyx_obj_5spacy_5vocab_Vocab *, struct __pyx_obj_5cymem_5cymem_Pool *, PyObject *);
struct __pyx_t_5spacy_7structs_LexemeC const *(*get_by_orth)(struct __pyx_obj_5spacy_5vocab_Vocab *, struct __pyx_obj_5cymem_5cymem_Pool *, __pyx_t_5spacy_8typedefs_attr_t);
struct __pyx_t_5spacy_7structs_TokenC const *(*make_fused_token)(struct __pyx_obj_5spacy_5vocab_Vocab *, PyObject *);
struct __pyx_t_5spacy_7structs_LexemeC const *(*_new_lexeme)(struct __pyx_obj_5spacy_5vocab_Vocab *, struct __pyx_obj_5cymem_5cymem_Pool *, PyObject *);
int (*_add_lex_to_vocab)(struct __pyx_obj_5spacy_5vocab_Vocab *, __pyx_t_5spacy_8typedefs_hash_t, struct __pyx_t_5spacy_7structs_LexemeC const *);
};
static struct __pyx_vtabstruct_5spacy_5vocab_Vocab *__pyx_vtabptr_5spacy_5vocab_Vocab;
/* "lexeme.pxd":14
* cdef LexemeC EMPTY_LEXEME
*
* cdef class Lexeme: # <<<<<<<<<<<<<<
* cdef LexemeC* c
* cdef readonly Vocab vocab
*/
struct __pyx_vtabstruct_5spacy_6lexeme_Lexeme {
struct __pyx_obj_5spacy_6lexeme_Lexeme *(*from_ptr)(struct __pyx_t_5spacy_7structs_LexemeC *, struct __pyx_obj_5spacy_5vocab_Vocab *, int);
void (*set_struct_attr)(struct __pyx_t_5spacy_7structs_LexemeC *, enum __pyx_t_5spacy_5attrs_attr_id_t, __pyx_t_5spacy_8typedefs_attr_t);
__pyx_t_5spacy_8typedefs_attr_t (*get_struct_attr)(struct __pyx_t_5spacy_7structs_LexemeC const *, enum __pyx_t_5spacy_5attrs_attr_id_t);
int (*c_check_flag)(struct __pyx_t_5spacy_7structs_LexemeC const *, enum __pyx_t_5spacy_5attrs_attr_id_t);
int (*c_set_flag)(struct __pyx_t_5spacy_7structs_LexemeC *, enum __pyx_t_5spacy_5attrs_attr_id_t, int);
};
static struct __pyx_vtabstruct_5spacy_6lexeme_Lexeme *__pyx_vtabptr_5spacy_6lexeme_Lexeme;
static CYTHON_INLINE struct __pyx_obj_5spacy_6lexeme_Lexeme *__pyx_f_5spacy_6lexeme_6Lexeme_from_ptr(struct __pyx_t_5spacy_7structs_LexemeC *, struct __pyx_obj_5spacy_5vocab_Vocab *, int);
static CYTHON_INLINE void __pyx_f_5spacy_6lexeme_6Lexeme_set_struct_attr(struct __pyx_t_5spacy_7structs_LexemeC *, enum __pyx_t_5spacy_5attrs_attr_id_t, __pyx_t_5spacy_8typedefs_attr_t);
static CYTHON_INLINE __pyx_t_5spacy_8typedefs_attr_t __pyx_f_5spacy_6lexeme_6Lexeme_get_struct_attr(struct __pyx_t_5spacy_7structs_LexemeC const *, enum __pyx_t_5spacy_5attrs_attr_id_t);
static CYTHON_INLINE int __pyx_f_5spacy_6lexeme_6Lexeme_c_check_flag(struct __pyx_t_5spacy_7structs_LexemeC const *, enum __pyx_t_5spacy_5attrs_attr_id_t);
static CYTHON_INLINE int __pyx_f_5spacy_6lexeme_6Lexeme_c_set_flag(struct __pyx_t_5spacy_7structs_LexemeC *, enum __pyx_t_5spacy_5attrs_attr_id_t, int);
/* "stateclass.pxd":12
*
*
* cdef class StateClass: # <<<<<<<<<<<<<<
* cdef Pool mem
* cdef StateC* c
*/
struct __pyx_vtabstruct_5spacy_6syntax_10stateclass_StateClass {
struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *(*init)(struct __pyx_t_5spacy_7structs_TokenC const *, int);
int (*S)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
int (*B)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
struct __pyx_t_5spacy_7structs_TokenC const *(*S_)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
struct __pyx_t_5spacy_7structs_TokenC const *(*B_)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
struct __pyx_t_5spacy_7structs_TokenC const *(*H_)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
struct __pyx_t_5spacy_7structs_TokenC const *(*E_)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
struct __pyx_t_5spacy_7structs_TokenC const *(*L_)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int);
struct __pyx_t_5spacy_7structs_TokenC const *(*R_)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int);
struct __pyx_t_5spacy_7structs_TokenC const *(*safe_get)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
int (*H)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
int (*E)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
int (*L)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int);
int (*R)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int);
int (*empty)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
int (*eol)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
int (*at_break)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
int (*is_final)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
int (*has_head)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
int (*n_L)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
int (*n_R)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
int (*stack_is_connected)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
int (*entity_is_open)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
int (*stack_depth)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
int (*buffer_length)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
void (*push)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
void (*pop)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
void (*unshift)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
void (*add_arc)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int, int);
void (*del_arc)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int);
void (*open_ent)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
void (*close_ent)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
void (*set_ent_tag)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int, int);
void (*set_break)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
void (*clone)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
void (*fast_forward)(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
};
static struct __pyx_vtabstruct_5spacy_6syntax_10stateclass_StateClass *__pyx_vtabptr_5spacy_6syntax_10stateclass_StateClass;
static CYTHON_INLINE struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_init(struct __pyx_t_5spacy_7structs_TokenC const *, int);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_S(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_B(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_S_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_B_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_H_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_E_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_L_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int);
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_R_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int);
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_safe_get(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_H(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_E(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_L(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_R(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_empty(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_eol(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_at_break(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_is_final(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_has_head(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_n_L(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_n_R(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_stack_is_connected(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_entity_is_open(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_stack_depth(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_buffer_length(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_push(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_pop(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_unshift(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_add_arc(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int, int);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_del_arc(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_open_ent(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_close_ent(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_set_ent_tag(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int, int, int);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_set_break(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, int);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_clone(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *, struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_fast_forward(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *);
/* --- Runtime support code (head) --- */
#ifndef CYTHON_REFNANNY
#define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
typedef struct {
void (*INCREF)(void*, PyObject*, int);
void (*DECREF)(void*, PyObject*, int);
void (*GOTREF)(void*, PyObject*, int);
void (*GIVEREF)(void*, PyObject*, int);
void* (*SetupContext)(const char*, int, const char*);
void (*FinishContext)(void**);
} __Pyx_RefNannyAPIStruct;
static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
#define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
#define __Pyx_RefNannySetupContext(name, acquire_gil)\
if (acquire_gil) {\
PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
PyGILState_Release(__pyx_gilstate_save);\
} else {\
__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
}
#else
#define __Pyx_RefNannySetupContext(name, acquire_gil)\
__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
#define __Pyx_RefNannyFinishContext()\
__Pyx_RefNanny->FinishContext(&__pyx_refnanny)
#define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
#define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
#define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
#define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
#define __Pyx_RefNannyDeclarations
#define __Pyx_RefNannySetupContext(name, acquire_gil)
#define __Pyx_RefNannyFinishContext()
#define __Pyx_INCREF(r) Py_INCREF(r)
#define __Pyx_DECREF(r) Py_DECREF(r)
#define __Pyx_GOTREF(r)
#define __Pyx_GIVEREF(r)
#define __Pyx_XINCREF(r) Py_XINCREF(r)
#define __Pyx_XDECREF(r) Py_XDECREF(r)
#define __Pyx_XGOTREF(r)
#define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_XDECREF_SET(r, v) do {\
PyObject *tmp = (PyObject *) r;\
r = v; __Pyx_XDECREF(tmp);\
} while (0)
#define __Pyx_DECREF_SET(r, v) do {\
PyObject *tmp = (PyObject *) r;\
r = v; __Pyx_DECREF(tmp);\
} while (0)
#define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
PyTypeObject* tp = Py_TYPE(obj);
if (likely(tp->tp_getattro))
return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
if (likely(tp->tp_getattr))
return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
return PyObject_GetAttr(obj, attr_name);
}
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif
static PyObject *__Pyx_GetBuiltinName(PyObject *name);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif
static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb);
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
PyObject *value;
value = PyDict_GetItemWithError(d, key);
if (unlikely(!value)) {
if (!PyErr_Occurred()) {
PyObject* args = PyTuple_Pack(1, key);
if (likely(args))
PyErr_SetObject(PyExc_KeyError, args);
Py_XDECREF(args);
}
return NULL;
}
Py_INCREF(value);
return value;
}
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#endif
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);
#define __Pyx_tp_new(type_obj, args) __Pyx_tp_new_kwargs(type_obj, args, NULL)
static CYTHON_INLINE PyObject* __Pyx_tp_new_kwargs(PyObject* type_obj, PyObject* args, PyObject* kwargs) {
return (PyObject*) (((PyTypeObject*)type_obj)->tp_new((PyTypeObject*)type_obj, args, kwargs));
}
static void* __Pyx_GetVtable(PyObject *dict);
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
typedef struct {
int code_line;
PyCodeObject* code_object;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
int count;
int max_count;
__Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
static void __Pyx_AddTraceback(const char *funcname, int c_line,
int py_line, const char *filename);
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);
#if CYTHON_CCOMPLEX
#ifdef __cplusplus
#define __Pyx_CREAL(z) ((z).real())
#define __Pyx_CIMAG(z) ((z).imag())
#else
#define __Pyx_CREAL(z) (__real__(z))
#define __Pyx_CIMAG(z) (__imag__(z))
#endif
#else
#define __Pyx_CREAL(z) ((z).real)
#define __Pyx_CIMAG(z) ((z).imag)
#endif
#if (defined(_WIN32) || defined(__clang__)) && defined(__cplusplus) && CYTHON_CCOMPLEX
#define __Pyx_SET_CREAL(z,x) ((z).real(x))
#define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
#else
#define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
#define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
#endif
static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float);
#if CYTHON_CCOMPLEX
#define __Pyx_c_eqf(a, b) ((a)==(b))
#define __Pyx_c_sumf(a, b) ((a)+(b))
#define __Pyx_c_difff(a, b) ((a)-(b))
#define __Pyx_c_prodf(a, b) ((a)*(b))
#define __Pyx_c_quotf(a, b) ((a)/(b))
#define __Pyx_c_negf(a) (-(a))
#ifdef __cplusplus
#define __Pyx_c_is_zerof(z) ((z)==(float)0)
#define __Pyx_c_conjf(z) (::std::conj(z))
#if 1
#define __Pyx_c_absf(z) (::std::abs(z))
#define __Pyx_c_powf(a, b) (::std::pow(a, b))
#endif
#else
#define __Pyx_c_is_zerof(z) ((z)==0)
#define __Pyx_c_conjf(z) (conjf(z))
#if 1
#define __Pyx_c_absf(z) (cabsf(z))
#define __Pyx_c_powf(a, b) (cpowf(a, b))
#endif
#endif
#else
static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex, __pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex, __pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex, __pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prodf(__pyx_t_float_complex, __pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex, __pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex);
static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex);
#if 1
static CYTHON_INLINE float __Pyx_c_absf(__pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex, __pyx_t_float_complex);
#endif
#endif
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);
#if CYTHON_CCOMPLEX
#define __Pyx_c_eq(a, b) ((a)==(b))
#define __Pyx_c_sum(a, b) ((a)+(b))
#define __Pyx_c_diff(a, b) ((a)-(b))
#define __Pyx_c_prod(a, b) ((a)*(b))
#define __Pyx_c_quot(a, b) ((a)/(b))
#define __Pyx_c_neg(a) (-(a))
#ifdef __cplusplus
#define __Pyx_c_is_zero(z) ((z)==(double)0)
#define __Pyx_c_conj(z) (::std::conj(z))
#if 1
#define __Pyx_c_abs(z) (::std::abs(z))
#define __Pyx_c_pow(a, b) (::std::pow(a, b))
#endif
#else
#define __Pyx_c_is_zero(z) ((z)==0)
#define __Pyx_c_conj(z) (conj(z))
#if 1
#define __Pyx_c_abs(z) (cabs(z))
#define __Pyx_c_pow(a, b) (cpow(a, b))
#endif
#endif
#else
static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex, __pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex, __pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex, __pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod(__pyx_t_double_complex, __pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex, __pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex);
static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex);
#if 1
static CYTHON_INLINE double __Pyx_c_abs(__pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex, __pyx_t_double_complex);
#endif
#endif
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value);
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int32_t(int32_t value);
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);
static int __Pyx_check_binary_version(void);
static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig);
#if !defined(__Pyx_PyIdentifier_FromString)
#if PY_MAJOR_VERSION < 3
#define __Pyx_PyIdentifier_FromString(s) PyString_FromString(s)
#else
#define __Pyx_PyIdentifier_FromString(s) PyUnicode_FromString(s)
#endif
#endif
static PyObject *__Pyx_ImportModule(const char *name);
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict);
static int __Pyx_ImportVoidPtr(PyObject *module, const char *name, void **p, const char *sig);
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
static CYTHON_INLINE struct __pyx_obj_5spacy_6lexeme_Lexeme *__pyx_f_5spacy_6lexeme_6Lexeme_from_ptr(struct __pyx_t_5spacy_7structs_LexemeC *__pyx_v_lex, struct __pyx_obj_5spacy_5vocab_Vocab *__pyx_v_vocab, CYTHON_UNUSED int __pyx_v_vector_length); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6lexeme_6Lexeme_set_struct_attr(struct __pyx_t_5spacy_7structs_LexemeC *__pyx_v_lex, enum __pyx_t_5spacy_5attrs_attr_id_t __pyx_v_name, __pyx_t_5spacy_8typedefs_attr_t __pyx_v_value); /* proto*/
static CYTHON_INLINE __pyx_t_5spacy_8typedefs_attr_t __pyx_f_5spacy_6lexeme_6Lexeme_get_struct_attr(struct __pyx_t_5spacy_7structs_LexemeC const *__pyx_v_lex, enum __pyx_t_5spacy_5attrs_attr_id_t __pyx_v_feat_name); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6lexeme_6Lexeme_c_check_flag(struct __pyx_t_5spacy_7structs_LexemeC const *__pyx_v_lexeme, enum __pyx_t_5spacy_5attrs_attr_id_t __pyx_v_flag_id); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6lexeme_6Lexeme_c_set_flag(struct __pyx_t_5spacy_7structs_LexemeC *__pyx_v_lex, enum __pyx_t_5spacy_5attrs_attr_id_t __pyx_v_flag_id, int __pyx_v_value); /* proto*/
static CYTHON_INLINE struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_init(struct __pyx_t_5spacy_7structs_TokenC const *__pyx_v_sent, int __pyx_v_length); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_S(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_B(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_S_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_B_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_H_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_E_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_L_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i, int __pyx_v_idx); /* proto*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_R_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i, int __pyx_v_idx); /* proto*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_safe_get(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_H(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_E(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_L(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i, int __pyx_v_idx); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_R(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i, int __pyx_v_idx); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_empty(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_eol(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_at_break(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_is_final(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_has_head(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_n_L(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_n_R(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_stack_is_connected(CYTHON_UNUSED struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_entity_is_open(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_stack_depth(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_buffer_length(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_push(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_pop(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_unshift(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_add_arc(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_head, int __pyx_v_child, int __pyx_v_label); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_del_arc(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_head, int __pyx_v_child); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_open_ent(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_label); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_close_ent(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_set_ent_tag(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i, int __pyx_v_ent_iob, int __pyx_v_ent_type); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_set_break(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_clone(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_src); /* proto*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_fast_forward(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self); /* proto*/
/* Module declarations from 'libc.stdint' */
/* Module declarations from 'thinc.typedefs' */
/* Module declarations from 'libc.string' */
/* Module declarations from 'cymem.cymem' */
static PyTypeObject *__pyx_ptype_5cymem_5cymem_Pool = 0;
static PyTypeObject *__pyx_ptype_5cymem_5cymem_Address = 0;
/* Module declarations from 'spacy.typedefs' */
/* Module declarations from 'spacy' */
/* Module declarations from 'spacy.symbols' */
/* Module declarations from 'spacy.parts_of_speech' */
/* Module declarations from 'spacy.structs' */
/* Module declarations from 'libcpp.vector' */
/* Module declarations from 'preshed.maps' */
static PyTypeObject *__pyx_ptype_7preshed_4maps_PreshMap = 0;
static PyTypeObject *__pyx_ptype_7preshed_4maps_PreshMapArray = 0;
/* Module declarations from 'murmurhash.mrmr' */
static uint64_t (*__pyx_f_10murmurhash_4mrmr_hash64)(void *, int, uint64_t); /*proto*/
/* Module declarations from 'spacy.strings' */
static PyTypeObject *__pyx_ptype_5spacy_7strings_StringStore = 0;
/* Module declarations from 'spacy.morphology' */
static PyTypeObject *__pyx_ptype_5spacy_10morphology_Morphology = 0;
/* Module declarations from 'spacy.vocab' */
static PyTypeObject *__pyx_ptype_5spacy_5vocab_Vocab = 0;
static struct __pyx_t_5spacy_7structs_LexemeC *__pyx_vp_5spacy_5vocab_EMPTY_LEXEME = 0;
#define __pyx_v_5spacy_5vocab_EMPTY_LEXEME (*__pyx_vp_5spacy_5vocab_EMPTY_LEXEME)
/* Module declarations from 'libc.stdlib' */
/* Module declarations from 'spacy.attrs' */
/* Module declarations from 'cpython.buffer' */
/* Module declarations from 'libc.stdio' */
/* Module declarations from '__builtin__' */
/* Module declarations from 'cpython.type' */
static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;
/* Module declarations from 'cpython' */
/* Module declarations from 'cpython.object' */
/* Module declarations from 'cpython.ref' */
/* Module declarations from 'numpy' */
/* Module declarations from 'numpy' */
static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *, char *, char *, int *); /*proto*/
/* Module declarations from 'spacy.lexeme' */
static PyTypeObject *__pyx_ptype_5spacy_6lexeme_Lexeme = 0;
static struct __pyx_t_5spacy_7structs_LexemeC *__pyx_vp_5spacy_6lexeme_EMPTY_LEXEME = 0;
#define __pyx_v_5spacy_6lexeme_EMPTY_LEXEME (*__pyx_vp_5spacy_6lexeme_EMPTY_LEXEME)
/* Module declarations from 'spacy.syntax._state' */
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_6_state_is_space_token(struct __pyx_t_5spacy_7structs_TokenC const *); /*proto*/
/* Module declarations from 'spacy.syntax.stateclass' */
static PyTypeObject *__pyx_ptype_5spacy_6syntax_10stateclass_StateClass = 0;
/* Module declarations from 'spacy.syntax._parse_features' */
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_15_parse_features_fill_token(__pyx_t_5thinc_8typedefs_atom_t *, struct __pyx_t_5spacy_7structs_TokenC const *); /*proto*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_15_parse_features_min_(int, int); /*proto*/
#define __Pyx_MODULE_NAME "spacy.syntax._parse_features"
int __pyx_module_is_main_spacy__syntax___parse_features = 0;
/* Implementation of 'spacy.syntax._parse_features' */
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_range;
static PyObject *__pyx_builtin_RuntimeError;
static char __pyx_k_B[] = "B";
static char __pyx_k_H[] = "H";
static char __pyx_k_I[] = "I";
static char __pyx_k_L[] = "L";
static char __pyx_k_O[] = "O";
static char __pyx_k_Q[] = "Q";
static char __pyx_k_b[] = "b";
static char __pyx_k_d[] = "d";
static char __pyx_k_f[] = "f";
static char __pyx_k_g[] = "g";
static char __pyx_k_h[] = "h";
static char __pyx_k_i[] = "i";
static char __pyx_k_l[] = "l";
static char __pyx_k_q[] = "q";
static char __pyx_k_Zd[] = "Zd";
static char __pyx_k_Zf[] = "Zf";
static char __pyx_k_Zg[] = "Zg";
static char __pyx_k_ner[] = "ner";
static char __pyx_k_main[] = "__main__";
static char __pyx_k_tags[] = "tags";
static char __pyx_k_test[] = "__test__";
static char __pyx_k_n0_n1[] = "n0_n1";
static char __pyx_k_range[] = "range";
static char __pyx_k_s0_n0[] = "s0_n0";
static char __pyx_k_s0_n1[] = "s0_n1";
static char __pyx_k_s1_n0[] = "s1_n0";
static char __pyx_k_s1_s0[] = "s1_s0";
static char __pyx_k_words[] = "words";
static char __pyx_k_import[] = "__import__";
static char __pyx_k_labels[] = "labels";
static char __pyx_k_trigrams[] = "trigrams";
static char __pyx_k_unigrams[] = "unigrams";
static char __pyx_k_itertools[] = "itertools";
static char __pyx_k_ValueError[] = "ValueError";
static char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static char __pyx_k_tree_shape[] = "tree_shape";
static char __pyx_k_RuntimeError[] = "RuntimeError";
static char __pyx_k_combinations[] = "combinations";
static char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous";
static char __pyx_k_Fill_an_array_context_with_ever[] = "\nFill an array, context, with every _atomic_ value our features reference.\nWe then write the _actual features_ as tuples of the atoms. The machinery\nthat translates from the tuples to feature-extractors (which pick the values\nout of \"context\") is in features/extractor.pyx\n\nThe atomic feature names are listed in a big enum, so that the feature tuples\ncan refer to them.\n";
static char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)";
static char __pyx_k_Format_string_allocated_too_shor[] = "Format string allocated too short, see comment in numpy.pxd";
static char __pyx_k_Non_native_byte_order_not_suppor[] = "Non-native byte order not supported";
static char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous";
static char __pyx_k_Format_string_allocated_too_shor_2[] = "Format string allocated too short.";
static PyObject *__pyx_kp_u_Format_string_allocated_too_shor;
static PyObject *__pyx_kp_u_Format_string_allocated_too_shor_2;
static PyObject *__pyx_kp_u_Non_native_byte_order_not_suppor;
static PyObject *__pyx_n_s_RuntimeError;
static PyObject *__pyx_n_s_ValueError;
static PyObject *__pyx_n_s_combinations;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_n_s_itertools;
static PyObject *__pyx_n_s_labels;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_n0_n1;
static PyObject *__pyx_kp_u_ndarray_is_not_C_contiguous;
static PyObject *__pyx_kp_u_ndarray_is_not_Fortran_contiguou;
static PyObject *__pyx_n_s_ner;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_range;
static PyObject *__pyx_n_s_s0_n0;
static PyObject *__pyx_n_s_s0_n1;
static PyObject *__pyx_n_s_s1_n0;
static PyObject *__pyx_n_s_s1_s0;
static PyObject *__pyx_n_s_tags;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_tree_shape;
static PyObject *__pyx_n_s_trigrams;
static PyObject *__pyx_n_s_unigrams;
static PyObject *__pyx_kp_u_unknown_dtype_code_in_numpy_pxd;
static PyObject *__pyx_n_s_words;
static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */
static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */
static PyObject *__pyx_tuple_;
static PyObject *__pyx_tuple__2;
static PyObject *__pyx_tuple__3;
static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__6;
/* "spacy\syntax\_parse_features.pyx":22
*
*
* cdef inline void fill_token(atom_t* context, const TokenC* token) nogil: # <<<<<<<<<<<<<<
* if token is NULL:
* context[0] = 0
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_15_parse_features_fill_token(__pyx_t_5thinc_8typedefs_atom_t *__pyx_v_context, struct __pyx_t_5spacy_7structs_TokenC const *__pyx_v_token) {
int __pyx_t_1;
__pyx_t_5spacy_8typedefs_attr_t __pyx_t_2;
int __pyx_t_3;
__pyx_t_5thinc_8typedefs_atom_t __pyx_t_4;
/* "spacy\syntax\_parse_features.pyx":23
*
* cdef inline void fill_token(atom_t* context, const TokenC* token) nogil:
* if token is NULL: # <<<<<<<<<<<<<<
* context[0] = 0
* context[1] = 0
*/
__pyx_t_1 = ((__pyx_v_token == NULL) != 0);
if (__pyx_t_1) {
/* "spacy\syntax\_parse_features.pyx":24
* cdef inline void fill_token(atom_t* context, const TokenC* token) nogil:
* if token is NULL:
* context[0] = 0 # <<<<<<<<<<<<<<
* context[1] = 0
* context[2] = 0
*/
(__pyx_v_context[0]) = 0;
/* "spacy\syntax\_parse_features.pyx":25
* if token is NULL:
* context[0] = 0
* context[1] = 0 # <<<<<<<<<<<<<<
* context[2] = 0
* context[3] = 0
*/
(__pyx_v_context[1]) = 0;
/* "spacy\syntax\_parse_features.pyx":26
* context[0] = 0
* context[1] = 0
* context[2] = 0 # <<<<<<<<<<<<<<
* context[3] = 0
* context[4] = 0
*/
(__pyx_v_context[2]) = 0;
/* "spacy\syntax\_parse_features.pyx":27
* context[1] = 0
* context[2] = 0
* context[3] = 0 # <<<<<<<<<<<<<<
* context[4] = 0
* context[5] = 0
*/
(__pyx_v_context[3]) = 0;
/* "spacy\syntax\_parse_features.pyx":28
* context[2] = 0
* context[3] = 0
* context[4] = 0 # <<<<<<<<<<<<<<
* context[5] = 0
* context[6] = 0
*/
(__pyx_v_context[4]) = 0;
/* "spacy\syntax\_parse_features.pyx":29
* context[3] = 0
* context[4] = 0
* context[5] = 0 # <<<<<<<<<<<<<<
* context[6] = 0
* context[7] = 0
*/
(__pyx_v_context[5]) = 0;
/* "spacy\syntax\_parse_features.pyx":30
* context[4] = 0
* context[5] = 0
* context[6] = 0 # <<<<<<<<<<<<<<
* context[7] = 0
* context[8] = 0
*/
(__pyx_v_context[6]) = 0;
/* "spacy\syntax\_parse_features.pyx":31
* context[5] = 0
* context[6] = 0
* context[7] = 0 # <<<<<<<<<<<<<<
* context[8] = 0
* context[9] = 0
*/
(__pyx_v_context[7]) = 0;
/* "spacy\syntax\_parse_features.pyx":32
* context[6] = 0
* context[7] = 0
* context[8] = 0 # <<<<<<<<<<<<<<
* context[9] = 0
* context[10] = 0
*/
(__pyx_v_context[8]) = 0;
/* "spacy\syntax\_parse_features.pyx":33
* context[7] = 0
* context[8] = 0
* context[9] = 0 # <<<<<<<<<<<<<<
* context[10] = 0
* context[11] = 0
*/
(__pyx_v_context[9]) = 0;
/* "spacy\syntax\_parse_features.pyx":34
* context[8] = 0
* context[9] = 0
* context[10] = 0 # <<<<<<<<<<<<<<
* context[11] = 0
* else:
*/
(__pyx_v_context[10]) = 0;
/* "spacy\syntax\_parse_features.pyx":35
* context[9] = 0
* context[10] = 0
* context[11] = 0 # <<<<<<<<<<<<<<
* else:
* context[0] = token.lex.orth
*/
(__pyx_v_context[11]) = 0;
/* "spacy\syntax\_parse_features.pyx":23
*
* cdef inline void fill_token(atom_t* context, const TokenC* token) nogil:
* if token is NULL: # <<<<<<<<<<<<<<
* context[0] = 0
* context[1] = 0
*/
goto __pyx_L3;
}
/* "spacy\syntax\_parse_features.pyx":37
* context[11] = 0
* else:
* context[0] = token.lex.orth # <<<<<<<<<<<<<<
* context[1] = token.lemma
* context[2] = token.tag
*/
/*else*/ {
__pyx_t_2 = __pyx_v_token->lex->orth;
(__pyx_v_context[0]) = __pyx_t_2;
/* "spacy\syntax\_parse_features.pyx":38
* else:
* context[0] = token.lex.orth
* context[1] = token.lemma # <<<<<<<<<<<<<<
* context[2] = token.tag
* context[3] = token.lex.cluster
*/
__pyx_t_3 = __pyx_v_token->lemma;
(__pyx_v_context[1]) = __pyx_t_3;
/* "spacy\syntax\_parse_features.pyx":39
* context[0] = token.lex.orth
* context[1] = token.lemma
* context[2] = token.tag # <<<<<<<<<<<<<<
* context[3] = token.lex.cluster
* # We've read in the string little-endian, so now we can take & (2**n)-1
*/
__pyx_t_3 = __pyx_v_token->tag;
(__pyx_v_context[2]) = __pyx_t_3;
/* "spacy\syntax\_parse_features.pyx":40
* context[1] = token.lemma
* context[2] = token.tag
* context[3] = token.lex.cluster # <<<<<<<<<<<<<<
* # We've read in the string little-endian, so now we can take & (2**n)-1
* # to get the first n bits of the cluster.
*/
__pyx_t_2 = __pyx_v_token->lex->cluster;
(__pyx_v_context[3]) = __pyx_t_2;
/* "spacy\syntax\_parse_features.pyx":53
* # 15 is 1111, 63 is 111111 and doing bitwise AND, so getting all bits in
* # the source that are set to 1.
* context[4] = token.lex.cluster & 15 # <<<<<<<<<<<<<<
* context[5] = token.lex.cluster & 63
* context[6] = token.dep if token.head != 0 else 0
*/
(__pyx_v_context[4]) = (__pyx_v_token->lex->cluster & 15);
/* "spacy\syntax\_parse_features.pyx":54
* # the source that are set to 1.
* context[4] = token.lex.cluster & 15
* context[5] = token.lex.cluster & 63 # <<<<<<<<<<<<<<
* context[6] = token.dep if token.head != 0 else 0
* context[7] = token.lex.prefix
*/
(__pyx_v_context[5]) = (__pyx_v_token->lex->cluster & 63);
/* "spacy\syntax\_parse_features.pyx":55
* context[4] = token.lex.cluster & 15
* context[5] = token.lex.cluster & 63
* context[6] = token.dep if token.head != 0 else 0 # <<<<<<<<<<<<<<
* context[7] = token.lex.prefix
* context[8] = token.lex.suffix
*/
if (((__pyx_v_token->head != 0) != 0)) {
__pyx_t_4 = __pyx_v_token->dep;
} else {
__pyx_t_4 = 0;
}
(__pyx_v_context[6]) = __pyx_t_4;
/* "spacy\syntax\_parse_features.pyx":56
* context[5] = token.lex.cluster & 63
* context[6] = token.dep if token.head != 0 else 0
* context[7] = token.lex.prefix # <<<<<<<<<<<<<<
* context[8] = token.lex.suffix
* context[9] = token.lex.shape
*/
__pyx_t_2 = __pyx_v_token->lex->prefix;
(__pyx_v_context[7]) = __pyx_t_2;
/* "spacy\syntax\_parse_features.pyx":57
* context[6] = token.dep if token.head != 0 else 0
* context[7] = token.lex.prefix
* context[8] = token.lex.suffix # <<<<<<<<<<<<<<
* context[9] = token.lex.shape
* context[10] = token.ent_iob
*/
__pyx_t_2 = __pyx_v_token->lex->suffix;
(__pyx_v_context[8]) = __pyx_t_2;
/* "spacy\syntax\_parse_features.pyx":58
* context[7] = token.lex.prefix
* context[8] = token.lex.suffix
* context[9] = token.lex.shape # <<<<<<<<<<<<<<
* context[10] = token.ent_iob
* context[11] = token.ent_type
*/
__pyx_t_2 = __pyx_v_token->lex->shape;
(__pyx_v_context[9]) = __pyx_t_2;
/* "spacy\syntax\_parse_features.pyx":59
* context[8] = token.lex.suffix
* context[9] = token.lex.shape
* context[10] = token.ent_iob # <<<<<<<<<<<<<<
* context[11] = token.ent_type
*
*/
__pyx_t_3 = __pyx_v_token->ent_iob;
(__pyx_v_context[10]) = __pyx_t_3;
/* "spacy\syntax\_parse_features.pyx":60
* context[9] = token.lex.shape
* context[10] = token.ent_iob
* context[11] = token.ent_type # <<<<<<<<<<<<<<
*
* cdef int fill_context(atom_t* ctxt, const StateC* st) nogil:
*/
__pyx_t_3 = __pyx_v_token->ent_type;
(__pyx_v_context[11]) = __pyx_t_3;
}
__pyx_L3:;
/* "spacy\syntax\_parse_features.pyx":22
*
*
* cdef inline void fill_token(atom_t* context, const TokenC* token) nogil: # <<<<<<<<<<<<<<
* if token is NULL:
* context[0] = 0
*/
/* function exit code */
}
/* "spacy\syntax\_parse_features.pyx":62
* context[11] = token.ent_type
*
* cdef int fill_context(atom_t* ctxt, const StateC* st) nogil: # <<<<<<<<<<<<<<
* # Take care to fill every element of context!
* # We could memset, but this makes it very easy to have broken features that
*/
static int __pyx_f_5spacy_6syntax_15_parse_features_fill_context(__pyx_t_5thinc_8typedefs_atom_t *__pyx_v_ctxt, __pyx_t_5spacy_6syntax_6_state_StateC const *__pyx_v_st) {
int __pyx_r;
int __pyx_t_1;
int __pyx_t_2;
/* "spacy\syntax\_parse_features.pyx":67
* # make almost no impact on accuracy. If instead they're unset, the impact
* # tends to be dramatic, so we get an obvious regression to fix...
* fill_token(&ctxt[S2w], st.S_(2)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[S1w], st.S_(1))
* fill_token(&ctxt[S1rw], st.R_(st.S(1), 1))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S2w])), __pyx_v_st->S_(2));
/* "spacy\syntax\_parse_features.pyx":68
* # tends to be dramatic, so we get an obvious regression to fix...
* fill_token(&ctxt[S2w], st.S_(2))
* fill_token(&ctxt[S1w], st.S_(1)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[S1rw], st.R_(st.S(1), 1))
* fill_token(&ctxt[S0lw], st.L_(st.S(0), 1))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S1w])), __pyx_v_st->S_(1));
/* "spacy\syntax\_parse_features.pyx":69
* fill_token(&ctxt[S2w], st.S_(2))
* fill_token(&ctxt[S1w], st.S_(1))
* fill_token(&ctxt[S1rw], st.R_(st.S(1), 1)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[S0lw], st.L_(st.S(0), 1))
* fill_token(&ctxt[S0l2w], st.L_(st.S(0), 2))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S1rw])), __pyx_v_st->R_(__pyx_v_st->S(1), 1));
/* "spacy\syntax\_parse_features.pyx":70
* fill_token(&ctxt[S1w], st.S_(1))
* fill_token(&ctxt[S1rw], st.R_(st.S(1), 1))
* fill_token(&ctxt[S0lw], st.L_(st.S(0), 1)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[S0l2w], st.L_(st.S(0), 2))
* fill_token(&ctxt[S0w], st.S_(0))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S0lw])), __pyx_v_st->L_(__pyx_v_st->S(0), 1));
/* "spacy\syntax\_parse_features.pyx":71
* fill_token(&ctxt[S1rw], st.R_(st.S(1), 1))
* fill_token(&ctxt[S0lw], st.L_(st.S(0), 1))
* fill_token(&ctxt[S0l2w], st.L_(st.S(0), 2)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[S0w], st.S_(0))
* fill_token(&ctxt[S0r2w], st.R_(st.S(0), 2))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S0l2w])), __pyx_v_st->L_(__pyx_v_st->S(0), 2));
/* "spacy\syntax\_parse_features.pyx":72
* fill_token(&ctxt[S0lw], st.L_(st.S(0), 1))
* fill_token(&ctxt[S0l2w], st.L_(st.S(0), 2))
* fill_token(&ctxt[S0w], st.S_(0)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[S0r2w], st.R_(st.S(0), 2))
* fill_token(&ctxt[S0rw], st.R_(st.S(0), 1))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S0w])), __pyx_v_st->S_(0));
/* "spacy\syntax\_parse_features.pyx":73
* fill_token(&ctxt[S0l2w], st.L_(st.S(0), 2))
* fill_token(&ctxt[S0w], st.S_(0))
* fill_token(&ctxt[S0r2w], st.R_(st.S(0), 2)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[S0rw], st.R_(st.S(0), 1))
* fill_token(&ctxt[N0lw], st.L_(st.B(0), 1))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S0r2w])), __pyx_v_st->R_(__pyx_v_st->S(0), 2));
/* "spacy\syntax\_parse_features.pyx":74
* fill_token(&ctxt[S0w], st.S_(0))
* fill_token(&ctxt[S0r2w], st.R_(st.S(0), 2))
* fill_token(&ctxt[S0rw], st.R_(st.S(0), 1)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[N0lw], st.L_(st.B(0), 1))
* fill_token(&ctxt[N0l2w], st.L_(st.B(0), 2))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S0rw])), __pyx_v_st->R_(__pyx_v_st->S(0), 1));
/* "spacy\syntax\_parse_features.pyx":75
* fill_token(&ctxt[S0r2w], st.R_(st.S(0), 2))
* fill_token(&ctxt[S0rw], st.R_(st.S(0), 1))
* fill_token(&ctxt[N0lw], st.L_(st.B(0), 1)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[N0l2w], st.L_(st.B(0), 2))
* fill_token(&ctxt[N0w], st.B_(0))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_N0lw])), __pyx_v_st->L_(__pyx_v_st->B(0), 1));
/* "spacy\syntax\_parse_features.pyx":76
* fill_token(&ctxt[S0rw], st.R_(st.S(0), 1))
* fill_token(&ctxt[N0lw], st.L_(st.B(0), 1))
* fill_token(&ctxt[N0l2w], st.L_(st.B(0), 2)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[N0w], st.B_(0))
* fill_token(&ctxt[N1w], st.B_(1))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_N0l2w])), __pyx_v_st->L_(__pyx_v_st->B(0), 2));
/* "spacy\syntax\_parse_features.pyx":77
* fill_token(&ctxt[N0lw], st.L_(st.B(0), 1))
* fill_token(&ctxt[N0l2w], st.L_(st.B(0), 2))
* fill_token(&ctxt[N0w], st.B_(0)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[N1w], st.B_(1))
* fill_token(&ctxt[N2w], st.B_(2))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_N0w])), __pyx_v_st->B_(0));
/* "spacy\syntax\_parse_features.pyx":78
* fill_token(&ctxt[N0l2w], st.L_(st.B(0), 2))
* fill_token(&ctxt[N0w], st.B_(0))
* fill_token(&ctxt[N1w], st.B_(1)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[N2w], st.B_(2))
* fill_token(&ctxt[P1w], st.safe_get(st.B(0)-1))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_N1w])), __pyx_v_st->B_(1));
/* "spacy\syntax\_parse_features.pyx":79
* fill_token(&ctxt[N0w], st.B_(0))
* fill_token(&ctxt[N1w], st.B_(1))
* fill_token(&ctxt[N2w], st.B_(2)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[P1w], st.safe_get(st.B(0)-1))
* fill_token(&ctxt[P2w], st.safe_get(st.B(0)-2))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_N2w])), __pyx_v_st->B_(2));
/* "spacy\syntax\_parse_features.pyx":80
* fill_token(&ctxt[N1w], st.B_(1))
* fill_token(&ctxt[N2w], st.B_(2))
* fill_token(&ctxt[P1w], st.safe_get(st.B(0)-1)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[P2w], st.safe_get(st.B(0)-2))
*
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_P1w])), __pyx_v_st->safe_get((__pyx_v_st->B(0) - 1)));
/* "spacy\syntax\_parse_features.pyx":81
* fill_token(&ctxt[N2w], st.B_(2))
* fill_token(&ctxt[P1w], st.safe_get(st.B(0)-1))
* fill_token(&ctxt[P2w], st.safe_get(st.B(0)-2)) # <<<<<<<<<<<<<<
*
* fill_token(&ctxt[E0w], st.E_(0))
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_P2w])), __pyx_v_st->safe_get((__pyx_v_st->B(0) - 2)));
/* "spacy\syntax\_parse_features.pyx":83
* fill_token(&ctxt[P2w], st.safe_get(st.B(0)-2))
*
* fill_token(&ctxt[E0w], st.E_(0)) # <<<<<<<<<<<<<<
* fill_token(&ctxt[E1w], st.E_(1))
*
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_E0w])), __pyx_v_st->E_(0));
/* "spacy\syntax\_parse_features.pyx":84
*
* fill_token(&ctxt[E0w], st.E_(0))
* fill_token(&ctxt[E1w], st.E_(1)) # <<<<<<<<<<<<<<
*
* if st.stack_depth() >= 1 and not st.eol():
*/
__pyx_f_5spacy_6syntax_15_parse_features_fill_token((&(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_E1w])), __pyx_v_st->E_(1));
/* "spacy\syntax\_parse_features.pyx":86
* fill_token(&ctxt[E1w], st.E_(1))
*
* if st.stack_depth() >= 1 and not st.eol(): # <<<<<<<<<<<<<<
* ctxt[dist] = min_(st.B(0) - st.E(0), 5)
* else:
*/
__pyx_t_2 = ((__pyx_v_st->stack_depth() >= 1) != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L4_bool_binop_done;
}
__pyx_t_2 = ((!(__pyx_v_st->eol() != 0)) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
/* "spacy\syntax\_parse_features.pyx":87
*
* if st.stack_depth() >= 1 and not st.eol():
* ctxt[dist] = min_(st.B(0) - st.E(0), 5) # <<<<<<<<<<<<<<
* else:
* ctxt[dist] = 0
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_dist]) = __pyx_f_5spacy_6syntax_15_parse_features_min_((__pyx_v_st->B(0) - __pyx_v_st->E(0)), 5);
/* "spacy\syntax\_parse_features.pyx":86
* fill_token(&ctxt[E1w], st.E_(1))
*
* if st.stack_depth() >= 1 and not st.eol(): # <<<<<<<<<<<<<<
* ctxt[dist] = min_(st.B(0) - st.E(0), 5)
* else:
*/
goto __pyx_L3;
}
/* "spacy\syntax\_parse_features.pyx":89
* ctxt[dist] = min_(st.B(0) - st.E(0), 5)
* else:
* ctxt[dist] = 0 # <<<<<<<<<<<<<<
* ctxt[N0lv] = min_(st.n_L(st.B(0)), 5)
* ctxt[S0lv] = min_(st.n_L(st.S(0)), 5)
*/
/*else*/ {
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_dist]) = 0;
}
__pyx_L3:;
/* "spacy\syntax\_parse_features.pyx":90
* else:
* ctxt[dist] = 0
* ctxt[N0lv] = min_(st.n_L(st.B(0)), 5) # <<<<<<<<<<<<<<
* ctxt[S0lv] = min_(st.n_L(st.S(0)), 5)
* ctxt[S0rv] = min_(st.n_R(st.S(0)), 5)
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_N0lv]) = __pyx_f_5spacy_6syntax_15_parse_features_min_(__pyx_v_st->n_L(__pyx_v_st->B(0)), 5);
/* "spacy\syntax\_parse_features.pyx":91
* ctxt[dist] = 0
* ctxt[N0lv] = min_(st.n_L(st.B(0)), 5)
* ctxt[S0lv] = min_(st.n_L(st.S(0)), 5) # <<<<<<<<<<<<<<
* ctxt[S0rv] = min_(st.n_R(st.S(0)), 5)
* ctxt[S1lv] = min_(st.n_L(st.S(1)), 5)
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S0lv]) = __pyx_f_5spacy_6syntax_15_parse_features_min_(__pyx_v_st->n_L(__pyx_v_st->S(0)), 5);
/* "spacy\syntax\_parse_features.pyx":92
* ctxt[N0lv] = min_(st.n_L(st.B(0)), 5)
* ctxt[S0lv] = min_(st.n_L(st.S(0)), 5)
* ctxt[S0rv] = min_(st.n_R(st.S(0)), 5) # <<<<<<<<<<<<<<
* ctxt[S1lv] = min_(st.n_L(st.S(1)), 5)
* ctxt[S1rv] = min_(st.n_R(st.S(1)), 5)
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S0rv]) = __pyx_f_5spacy_6syntax_15_parse_features_min_(__pyx_v_st->n_R(__pyx_v_st->S(0)), 5);
/* "spacy\syntax\_parse_features.pyx":93
* ctxt[S0lv] = min_(st.n_L(st.S(0)), 5)
* ctxt[S0rv] = min_(st.n_R(st.S(0)), 5)
* ctxt[S1lv] = min_(st.n_L(st.S(1)), 5) # <<<<<<<<<<<<<<
* ctxt[S1rv] = min_(st.n_R(st.S(1)), 5)
*
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S1lv]) = __pyx_f_5spacy_6syntax_15_parse_features_min_(__pyx_v_st->n_L(__pyx_v_st->S(1)), 5);
/* "spacy\syntax\_parse_features.pyx":94
* ctxt[S0rv] = min_(st.n_R(st.S(0)), 5)
* ctxt[S1lv] = min_(st.n_L(st.S(1)), 5)
* ctxt[S1rv] = min_(st.n_R(st.S(1)), 5) # <<<<<<<<<<<<<<
*
* ctxt[S0_has_head] = 0
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S1rv]) = __pyx_f_5spacy_6syntax_15_parse_features_min_(__pyx_v_st->n_R(__pyx_v_st->S(1)), 5);
/* "spacy\syntax\_parse_features.pyx":96
* ctxt[S1rv] = min_(st.n_R(st.S(1)), 5)
*
* ctxt[S0_has_head] = 0 # <<<<<<<<<<<<<<
* ctxt[S1_has_head] = 0
* ctxt[S2_has_head] = 0
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head]) = 0;
/* "spacy\syntax\_parse_features.pyx":97
*
* ctxt[S0_has_head] = 0
* ctxt[S1_has_head] = 0 # <<<<<<<<<<<<<<
* ctxt[S2_has_head] = 0
* if st.stack_depth() >= 1:
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S1_has_head]) = 0;
/* "spacy\syntax\_parse_features.pyx":98
* ctxt[S0_has_head] = 0
* ctxt[S1_has_head] = 0
* ctxt[S2_has_head] = 0 # <<<<<<<<<<<<<<
* if st.stack_depth() >= 1:
* ctxt[S0_has_head] = st.has_head(st.S(0)) + 1
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S2_has_head]) = 0;
/* "spacy\syntax\_parse_features.pyx":99
* ctxt[S1_has_head] = 0
* ctxt[S2_has_head] = 0
* if st.stack_depth() >= 1: # <<<<<<<<<<<<<<
* ctxt[S0_has_head] = st.has_head(st.S(0)) + 1
* if st.stack_depth() >= 2:
*/
__pyx_t_1 = ((__pyx_v_st->stack_depth() >= 1) != 0);
if (__pyx_t_1) {
/* "spacy\syntax\_parse_features.pyx":100
* ctxt[S2_has_head] = 0
* if st.stack_depth() >= 1:
* ctxt[S0_has_head] = st.has_head(st.S(0)) + 1 # <<<<<<<<<<<<<<
* if st.stack_depth() >= 2:
* ctxt[S1_has_head] = st.has_head(st.S(1)) + 1
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head]) = (__pyx_v_st->has_head(__pyx_v_st->S(0)) + 1);
/* "spacy\syntax\_parse_features.pyx":101
* if st.stack_depth() >= 1:
* ctxt[S0_has_head] = st.has_head(st.S(0)) + 1
* if st.stack_depth() >= 2: # <<<<<<<<<<<<<<
* ctxt[S1_has_head] = st.has_head(st.S(1)) + 1
* if st.stack_depth() >= 3:
*/
__pyx_t_1 = ((__pyx_v_st->stack_depth() >= 2) != 0);
if (__pyx_t_1) {
/* "spacy\syntax\_parse_features.pyx":102
* ctxt[S0_has_head] = st.has_head(st.S(0)) + 1
* if st.stack_depth() >= 2:
* ctxt[S1_has_head] = st.has_head(st.S(1)) + 1 # <<<<<<<<<<<<<<
* if st.stack_depth() >= 3:
* ctxt[S2_has_head] = st.has_head(st.S(2)) + 1
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S1_has_head]) = (__pyx_v_st->has_head(__pyx_v_st->S(1)) + 1);
/* "spacy\syntax\_parse_features.pyx":103
* if st.stack_depth() >= 2:
* ctxt[S1_has_head] = st.has_head(st.S(1)) + 1
* if st.stack_depth() >= 3: # <<<<<<<<<<<<<<
* ctxt[S2_has_head] = st.has_head(st.S(2)) + 1
*
*/
__pyx_t_1 = ((__pyx_v_st->stack_depth() >= 3) != 0);
if (__pyx_t_1) {
/* "spacy\syntax\_parse_features.pyx":104
* ctxt[S1_has_head] = st.has_head(st.S(1)) + 1
* if st.stack_depth() >= 3:
* ctxt[S2_has_head] = st.has_head(st.S(2)) + 1 # <<<<<<<<<<<<<<
*
*
*/
(__pyx_v_ctxt[__pyx_e_5spacy_6syntax_15_parse_features_S2_has_head]) = (__pyx_v_st->has_head(__pyx_v_st->S(2)) + 1);
/* "spacy\syntax\_parse_features.pyx":103
* if st.stack_depth() >= 2:
* ctxt[S1_has_head] = st.has_head(st.S(1)) + 1
* if st.stack_depth() >= 3: # <<<<<<<<<<<<<<
* ctxt[S2_has_head] = st.has_head(st.S(2)) + 1
*
*/
}
/* "spacy\syntax\_parse_features.pyx":101
* if st.stack_depth() >= 1:
* ctxt[S0_has_head] = st.has_head(st.S(0)) + 1
* if st.stack_depth() >= 2: # <<<<<<<<<<<<<<
* ctxt[S1_has_head] = st.has_head(st.S(1)) + 1
* if st.stack_depth() >= 3:
*/
}
/* "spacy\syntax\_parse_features.pyx":99
* ctxt[S1_has_head] = 0
* ctxt[S2_has_head] = 0
* if st.stack_depth() >= 1: # <<<<<<<<<<<<<<
* ctxt[S0_has_head] = st.has_head(st.S(0)) + 1
* if st.stack_depth() >= 2:
*/
}
/* "spacy\syntax\_parse_features.pyx":62
* context[11] = token.ent_type
*
* cdef int fill_context(atom_t* ctxt, const StateC* st) nogil: # <<<<<<<<<<<<<<
* # Take care to fill every element of context!
* # We could memset, but this makes it very easy to have broken features that
*/
/* function exit code */
__pyx_r = 0;
return __pyx_r;
}
/* "spacy\syntax\_parse_features.pyx":107
*
*
* cdef inline int min_(int a, int b) nogil: # <<<<<<<<<<<<<<
* return a if a > b else b
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_15_parse_features_min_(int __pyx_v_a, int __pyx_v_b) {
int __pyx_r;
int __pyx_t_1;
/* "spacy\syntax\_parse_features.pyx":108
*
* cdef inline int min_(int a, int b) nogil:
* return a if a > b else b # <<<<<<<<<<<<<<
*
*
*/
if (((__pyx_v_a > __pyx_v_b) != 0)) {
__pyx_t_1 = __pyx_v_a;
} else {
__pyx_t_1 = __pyx_v_b;
}
__pyx_r = __pyx_t_1;
goto __pyx_L0;
/* "spacy\syntax\_parse_features.pyx":107
*
*
* cdef inline int min_(int a, int b) nogil: # <<<<<<<<<<<<<<
* return a if a > b else b
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":197
* # experimental exception made for __getbuffer__ and __releasebuffer__
* # -- the details of this may change.
* def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<<
* # This implementation of getbuffer is geared towards Cython
* # requirements, and does not yet fullfill the PEP.
*/
/* Python wrapper */
static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
int __pyx_r;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0);
__pyx_r = __pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
int __pyx_v_copy_shape;
int __pyx_v_i;
int __pyx_v_ndim;
int __pyx_v_endian_detector;
int __pyx_v_little_endian;
int __pyx_v_t;
char *__pyx_v_f;
PyArray_Descr *__pyx_v_descr = 0;
int __pyx_v_offset;
int __pyx_v_hasfields;
int __pyx_r;
__Pyx_RefNannyDeclarations
int __pyx_t_1;
int __pyx_t_2;
PyObject *__pyx_t_3 = NULL;
int __pyx_t_4;
int __pyx_t_5;
PyObject *__pyx_t_6 = NULL;
char *__pyx_t_7;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__getbuffer__", 0);
if (__pyx_v_info != NULL) {
__pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
__Pyx_GIVEREF(__pyx_v_info->obj);
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":203
* # of flags
*
* if info == NULL: return # <<<<<<<<<<<<<<
*
* cdef int copy_shape, i, ndim
*/
__pyx_t_1 = ((__pyx_v_info == NULL) != 0);
if (__pyx_t_1) {
__pyx_r = 0;
goto __pyx_L0;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":206
*
* cdef int copy_shape, i, ndim
* cdef int endian_detector = 1 # <<<<<<<<<<<<<<
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
*
*/
__pyx_v_endian_detector = 1;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":207
* cdef int copy_shape, i, ndim
* cdef int endian_detector = 1
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0) # <<<<<<<<<<<<<<
*
* ndim = PyArray_NDIM(self)
*/
__pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":209
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
*
* ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<<
*
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
*/
__pyx_v_ndim = PyArray_NDIM(__pyx_v_self);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":211
* ndim = PyArray_NDIM(self)
*
* if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<<
* copy_shape = 1
* else:
*/
__pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
if (__pyx_t_1) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":212
*
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
* copy_shape = 1 # <<<<<<<<<<<<<<
* else:
* copy_shape = 0
*/
__pyx_v_copy_shape = 1;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":211
* ndim = PyArray_NDIM(self)
*
* if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<<
* copy_shape = 1
* else:
*/
goto __pyx_L4;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":214
* copy_shape = 1
* else:
* copy_shape = 0 # <<<<<<<<<<<<<<
*
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
*/
/*else*/ {
__pyx_v_copy_shape = 0;
}
__pyx_L4:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":216
* copy_shape = 0
*
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
* raise ValueError(u"ndarray is not C contiguous")
*/
__pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L6_bool_binop_done;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":217
*
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
* and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): # <<<<<<<<<<<<<<
* raise ValueError(u"ndarray is not C contiguous")
*
*/
__pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 0)) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L6_bool_binop_done:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":216
* copy_shape = 0
*
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
* raise ValueError(u"ndarray is not C contiguous")
*/
if (__pyx_t_1) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":218
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
* and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
* raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<<
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
*/
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":216
* copy_shape = 0
*
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
* raise ValueError(u"ndarray is not C contiguous")
*/
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":220
* raise ValueError(u"ndarray is not C contiguous")
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
* raise ValueError(u"ndarray is not Fortran contiguous")
*/
__pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L9_bool_binop_done;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":221
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
* and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): # <<<<<<<<<<<<<<
* raise ValueError(u"ndarray is not Fortran contiguous")
*
*/
__pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 0)) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L9_bool_binop_done:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":220
* raise ValueError(u"ndarray is not C contiguous")
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
* raise ValueError(u"ndarray is not Fortran contiguous")
*/
if (__pyx_t_1) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":222
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
* and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
* raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<<
*
* info.buf = PyArray_DATA(self)
*/
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":220
* raise ValueError(u"ndarray is not C contiguous")
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
* raise ValueError(u"ndarray is not Fortran contiguous")
*/
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":224
* raise ValueError(u"ndarray is not Fortran contiguous")
*
* info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<<
* info.ndim = ndim
* if copy_shape:
*/
__pyx_v_info->buf = PyArray_DATA(__pyx_v_self);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":225
*
* info.buf = PyArray_DATA(self)
* info.ndim = ndim # <<<<<<<<<<<<<<
* if copy_shape:
* # Allocate new buffer for strides and shape info.
*/
__pyx_v_info->ndim = __pyx_v_ndim;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":226
* info.buf = PyArray_DATA(self)
* info.ndim = ndim
* if copy_shape: # <<<<<<<<<<<<<<
* # Allocate new buffer for strides and shape info.
* # This is allocated as one block, strides first.
*/
__pyx_t_1 = (__pyx_v_copy_shape != 0);
if (__pyx_t_1) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":229
* # Allocate new buffer for strides and shape info.
* # This is allocated as one block, strides first.
* info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2) # <<<<<<<<<<<<<<
* info.shape = info.strides + ndim
* for i in range(ndim):
*/
__pyx_v_info->strides = ((Py_ssize_t *)malloc((((sizeof(Py_ssize_t)) * ((size_t)__pyx_v_ndim)) * 2)));
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":230
* # This is allocated as one block, strides first.
* info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2)
* info.shape = info.strides + ndim # <<<<<<<<<<<<<<
* for i in range(ndim):
* info.strides[i] = PyArray_STRIDES(self)[i]
*/
__pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":231
* info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2)
* info.shape = info.strides + ndim
* for i in range(ndim): # <<<<<<<<<<<<<<
* info.strides[i] = PyArray_STRIDES(self)[i]
* info.shape[i] = PyArray_DIMS(self)[i]
*/
__pyx_t_4 = __pyx_v_ndim;
for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
__pyx_v_i = __pyx_t_5;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":232
* info.shape = info.strides + ndim
* for i in range(ndim):
* info.strides[i] = PyArray_STRIDES(self)[i] # <<<<<<<<<<<<<<
* info.shape[i] = PyArray_DIMS(self)[i]
* else:
*/
(__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":233
* for i in range(ndim):
* info.strides[i] = PyArray_STRIDES(self)[i]
* info.shape[i] = PyArray_DIMS(self)[i] # <<<<<<<<<<<<<<
* else:
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
*/
(__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]);
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":226
* info.buf = PyArray_DATA(self)
* info.ndim = ndim
* if copy_shape: # <<<<<<<<<<<<<<
* # Allocate new buffer for strides and shape info.
* # This is allocated as one block, strides first.
*/
goto __pyx_L11;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":235
* info.shape[i] = PyArray_DIMS(self)[i]
* else:
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self) # <<<<<<<<<<<<<<
* info.shape = <Py_ssize_t*>PyArray_DIMS(self)
* info.suboffsets = NULL
*/
/*else*/ {
__pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self));
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":236
* else:
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
* info.shape = <Py_ssize_t*>PyArray_DIMS(self) # <<<<<<<<<<<<<<
* info.suboffsets = NULL
* info.itemsize = PyArray_ITEMSIZE(self)
*/
__pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self));
}
__pyx_L11:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":237
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
* info.shape = <Py_ssize_t*>PyArray_DIMS(self)
* info.suboffsets = NULL # <<<<<<<<<<<<<<
* info.itemsize = PyArray_ITEMSIZE(self)
* info.readonly = not PyArray_ISWRITEABLE(self)
*/
__pyx_v_info->suboffsets = NULL;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":238
* info.shape = <Py_ssize_t*>PyArray_DIMS(self)
* info.suboffsets = NULL
* info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<<
* info.readonly = not PyArray_ISWRITEABLE(self)
*
*/
__pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":239
* info.suboffsets = NULL
* info.itemsize = PyArray_ITEMSIZE(self)
* info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<<
*
* cdef int t
*/
__pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0));
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":242
*
* cdef int t
* cdef char* f = NULL # <<<<<<<<<<<<<<
* cdef dtype descr = self.descr
* cdef int offset
*/
__pyx_v_f = NULL;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":243
* cdef int t
* cdef char* f = NULL
* cdef dtype descr = self.descr # <<<<<<<<<<<<<<
* cdef int offset
*
*/
__pyx_t_3 = ((PyObject *)__pyx_v_self->descr);
__Pyx_INCREF(__pyx_t_3);
__pyx_v_descr = ((PyArray_Descr *)__pyx_t_3);
__pyx_t_3 = 0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":246
* cdef int offset
*
* cdef bint hasfields = PyDataType_HASFIELDS(descr) # <<<<<<<<<<<<<<
*
* if not hasfields and not copy_shape:
*/
__pyx_v_hasfields = PyDataType_HASFIELDS(__pyx_v_descr);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":248
* cdef bint hasfields = PyDataType_HASFIELDS(descr)
*
* if not hasfields and not copy_shape: # <<<<<<<<<<<<<<
* # do not call releasebuffer
* info.obj = None
*/
__pyx_t_2 = ((!(__pyx_v_hasfields != 0)) != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L15_bool_binop_done;
}
__pyx_t_2 = ((!(__pyx_v_copy_shape != 0)) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L15_bool_binop_done:;
if (__pyx_t_1) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":250
* if not hasfields and not copy_shape:
* # do not call releasebuffer
* info.obj = None # <<<<<<<<<<<<<<
* else:
* # need to call releasebuffer
*/
__Pyx_INCREF(Py_None);
__Pyx_GIVEREF(Py_None);
__Pyx_GOTREF(__pyx_v_info->obj);
__Pyx_DECREF(__pyx_v_info->obj);
__pyx_v_info->obj = Py_None;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":248
* cdef bint hasfields = PyDataType_HASFIELDS(descr)
*
* if not hasfields and not copy_shape: # <<<<<<<<<<<<<<
* # do not call releasebuffer
* info.obj = None
*/
goto __pyx_L14;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":253
* else:
* # need to call releasebuffer
* info.obj = self # <<<<<<<<<<<<<<
*
* if not hasfields:
*/
/*else*/ {
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
__Pyx_GOTREF(__pyx_v_info->obj);
__Pyx_DECREF(__pyx_v_info->obj);
__pyx_v_info->obj = ((PyObject *)__pyx_v_self);
}
__pyx_L14:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":255
* info.obj = self
*
* if not hasfields: # <<<<<<<<<<<<<<
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or
*/
__pyx_t_1 = ((!(__pyx_v_hasfields != 0)) != 0);
if (__pyx_t_1) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":256
*
* if not hasfields:
* t = descr.type_num # <<<<<<<<<<<<<<
* if ((descr.byteorder == c'>' and little_endian) or
* (descr.byteorder == c'<' and not little_endian)):
*/
__pyx_t_4 = __pyx_v_descr->type_num;
__pyx_v_t = __pyx_t_4;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":257
* if not hasfields:
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
__pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0);
if (!__pyx_t_2) {
goto __pyx_L20_next_or;
} else {
}
__pyx_t_2 = (__pyx_v_little_endian != 0);
if (!__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L19_bool_binop_done;
}
__pyx_L20_next_or:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":258
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or
* (descr.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<<
* raise ValueError(u"Non-native byte order not supported")
* if t == NPY_BYTE: f = "b"
*/
__pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L19_bool_binop_done;
}
__pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L19_bool_binop_done:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":257
* if not hasfields:
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
if (__pyx_t_1) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":259
* if ((descr.byteorder == c'>' and little_endian) or
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<<
* if t == NPY_BYTE: f = "b"
* elif t == NPY_UBYTE: f = "B"
*/
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":257
* if not hasfields:
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":260
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
* if t == NPY_BYTE: f = "b" # <<<<<<<<<<<<<<
* elif t == NPY_UBYTE: f = "B"
* elif t == NPY_SHORT: f = "h"
*/
switch (__pyx_v_t) {
case NPY_BYTE:
__pyx_v_f = __pyx_k_b;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":261
* raise ValueError(u"Non-native byte order not supported")
* if t == NPY_BYTE: f = "b"
* elif t == NPY_UBYTE: f = "B" # <<<<<<<<<<<<<<
* elif t == NPY_SHORT: f = "h"
* elif t == NPY_USHORT: f = "H"
*/
case NPY_UBYTE:
__pyx_v_f = __pyx_k_B;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":262
* if t == NPY_BYTE: f = "b"
* elif t == NPY_UBYTE: f = "B"
* elif t == NPY_SHORT: f = "h" # <<<<<<<<<<<<<<
* elif t == NPY_USHORT: f = "H"
* elif t == NPY_INT: f = "i"
*/
case NPY_SHORT:
__pyx_v_f = __pyx_k_h;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":263
* elif t == NPY_UBYTE: f = "B"
* elif t == NPY_SHORT: f = "h"
* elif t == NPY_USHORT: f = "H" # <<<<<<<<<<<<<<
* elif t == NPY_INT: f = "i"
* elif t == NPY_UINT: f = "I"
*/
case NPY_USHORT:
__pyx_v_f = __pyx_k_H;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":264
* elif t == NPY_SHORT: f = "h"
* elif t == NPY_USHORT: f = "H"
* elif t == NPY_INT: f = "i" # <<<<<<<<<<<<<<
* elif t == NPY_UINT: f = "I"
* elif t == NPY_LONG: f = "l"
*/
case NPY_INT:
__pyx_v_f = __pyx_k_i;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":265
* elif t == NPY_USHORT: f = "H"
* elif t == NPY_INT: f = "i"
* elif t == NPY_UINT: f = "I" # <<<<<<<<<<<<<<
* elif t == NPY_LONG: f = "l"
* elif t == NPY_ULONG: f = "L"
*/
case NPY_UINT:
__pyx_v_f = __pyx_k_I;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":266
* elif t == NPY_INT: f = "i"
* elif t == NPY_UINT: f = "I"
* elif t == NPY_LONG: f = "l" # <<<<<<<<<<<<<<
* elif t == NPY_ULONG: f = "L"
* elif t == NPY_LONGLONG: f = "q"
*/
case NPY_LONG:
__pyx_v_f = __pyx_k_l;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":267
* elif t == NPY_UINT: f = "I"
* elif t == NPY_LONG: f = "l"
* elif t == NPY_ULONG: f = "L" # <<<<<<<<<<<<<<
* elif t == NPY_LONGLONG: f = "q"
* elif t == NPY_ULONGLONG: f = "Q"
*/
case NPY_ULONG:
__pyx_v_f = __pyx_k_L;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":268
* elif t == NPY_LONG: f = "l"
* elif t == NPY_ULONG: f = "L"
* elif t == NPY_LONGLONG: f = "q" # <<<<<<<<<<<<<<
* elif t == NPY_ULONGLONG: f = "Q"
* elif t == NPY_FLOAT: f = "f"
*/
case NPY_LONGLONG:
__pyx_v_f = __pyx_k_q;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":269
* elif t == NPY_ULONG: f = "L"
* elif t == NPY_LONGLONG: f = "q"
* elif t == NPY_ULONGLONG: f = "Q" # <<<<<<<<<<<<<<
* elif t == NPY_FLOAT: f = "f"
* elif t == NPY_DOUBLE: f = "d"
*/
case NPY_ULONGLONG:
__pyx_v_f = __pyx_k_Q;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":270
* elif t == NPY_LONGLONG: f = "q"
* elif t == NPY_ULONGLONG: f = "Q"
* elif t == NPY_FLOAT: f = "f" # <<<<<<<<<<<<<<
* elif t == NPY_DOUBLE: f = "d"
* elif t == NPY_LONGDOUBLE: f = "g"
*/
case NPY_FLOAT:
__pyx_v_f = __pyx_k_f;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":271
* elif t == NPY_ULONGLONG: f = "Q"
* elif t == NPY_FLOAT: f = "f"
* elif t == NPY_DOUBLE: f = "d" # <<<<<<<<<<<<<<
* elif t == NPY_LONGDOUBLE: f = "g"
* elif t == NPY_CFLOAT: f = "Zf"
*/
case NPY_DOUBLE:
__pyx_v_f = __pyx_k_d;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":272
* elif t == NPY_FLOAT: f = "f"
* elif t == NPY_DOUBLE: f = "d"
* elif t == NPY_LONGDOUBLE: f = "g" # <<<<<<<<<<<<<<
* elif t == NPY_CFLOAT: f = "Zf"
* elif t == NPY_CDOUBLE: f = "Zd"
*/
case NPY_LONGDOUBLE:
__pyx_v_f = __pyx_k_g;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":273
* elif t == NPY_DOUBLE: f = "d"
* elif t == NPY_LONGDOUBLE: f = "g"
* elif t == NPY_CFLOAT: f = "Zf" # <<<<<<<<<<<<<<
* elif t == NPY_CDOUBLE: f = "Zd"
* elif t == NPY_CLONGDOUBLE: f = "Zg"
*/
case NPY_CFLOAT:
__pyx_v_f = __pyx_k_Zf;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":274
* elif t == NPY_LONGDOUBLE: f = "g"
* elif t == NPY_CFLOAT: f = "Zf"
* elif t == NPY_CDOUBLE: f = "Zd" # <<<<<<<<<<<<<<
* elif t == NPY_CLONGDOUBLE: f = "Zg"
* elif t == NPY_OBJECT: f = "O"
*/
case NPY_CDOUBLE:
__pyx_v_f = __pyx_k_Zd;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":275
* elif t == NPY_CFLOAT: f = "Zf"
* elif t == NPY_CDOUBLE: f = "Zd"
* elif t == NPY_CLONGDOUBLE: f = "Zg" # <<<<<<<<<<<<<<
* elif t == NPY_OBJECT: f = "O"
* else:
*/
case NPY_CLONGDOUBLE:
__pyx_v_f = __pyx_k_Zg;
break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":276
* elif t == NPY_CDOUBLE: f = "Zd"
* elif t == NPY_CLONGDOUBLE: f = "Zg"
* elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<<
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
*/
case NPY_OBJECT:
__pyx_v_f = __pyx_k_O;
break;
default:
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":278
* elif t == NPY_OBJECT: f = "O"
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<<
* info.format = f
* return
*/
__pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_6 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_GIVEREF(__pyx_t_6);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
__pyx_t_6 = 0;
__pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_Raise(__pyx_t_6, 0, 0, 0);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
break;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":279
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
* info.format = f # <<<<<<<<<<<<<<
* return
* else:
*/
__pyx_v_info->format = __pyx_v_f;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":280
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
* info.format = f
* return # <<<<<<<<<<<<<<
* else:
* info.format = <char*>stdlib.malloc(_buffer_format_string_len)
*/
__pyx_r = 0;
goto __pyx_L0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":255
* info.obj = self
*
* if not hasfields: # <<<<<<<<<<<<<<
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or
*/
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":282
* return
* else:
* info.format = <char*>stdlib.malloc(_buffer_format_string_len) # <<<<<<<<<<<<<<
* info.format[0] = c'^' # Native data types, manual alignment
* offset = 0
*/
/*else*/ {
__pyx_v_info->format = ((char *)malloc(0xFF));
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":283
* else:
* info.format = <char*>stdlib.malloc(_buffer_format_string_len)
* info.format[0] = c'^' # Native data types, manual alignment # <<<<<<<<<<<<<<
* offset = 0
* f = _util_dtypestring(descr, info.format + 1,
*/
(__pyx_v_info->format[0]) = '^';
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":284
* info.format = <char*>stdlib.malloc(_buffer_format_string_len)
* info.format[0] = c'^' # Native data types, manual alignment
* offset = 0 # <<<<<<<<<<<<<<
* f = _util_dtypestring(descr, info.format + 1,
* info.format + _buffer_format_string_len,
*/
__pyx_v_offset = 0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":285
* info.format[0] = c'^' # Native data types, manual alignment
* offset = 0
* f = _util_dtypestring(descr, info.format + 1, # <<<<<<<<<<<<<<
* info.format + _buffer_format_string_len,
* &offset)
*/
__pyx_t_7 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_7 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_f = __pyx_t_7;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":288
* info.format + _buffer_format_string_len,
* &offset)
* f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<<
*
* def __releasebuffer__(ndarray self, Py_buffer* info):
*/
(__pyx_v_f[0]) = '\x00';
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":197
* # experimental exception made for __getbuffer__ and __releasebuffer__
* # -- the details of this may change.
* def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<<
* # This implementation of getbuffer is geared towards Cython
* # requirements, and does not yet fullfill the PEP.
*/
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_6);
__Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) {
__Pyx_GOTREF(__pyx_v_info->obj);
__Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL;
}
goto __pyx_L2;
__pyx_L0:;
if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) {
__Pyx_GOTREF(Py_None);
__Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL;
}
__pyx_L2:;
__Pyx_XDECREF((PyObject *)__pyx_v_descr);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":290
* f[0] = c'\0' # Terminate format string
*
* def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<<
* if PyArray_HASFIELDS(self):
* stdlib.free(info.format)
*/
/* Python wrapper */
static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/
static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0);
__pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info));
/* function exit code */
__Pyx_RefNannyFinishContext();
}
static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
__Pyx_RefNannyDeclarations
int __pyx_t_1;
__Pyx_RefNannySetupContext("__releasebuffer__", 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":291
*
* def __releasebuffer__(ndarray self, Py_buffer* info):
* if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<<
* stdlib.free(info.format)
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
*/
__pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0);
if (__pyx_t_1) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":292
* def __releasebuffer__(ndarray self, Py_buffer* info):
* if PyArray_HASFIELDS(self):
* stdlib.free(info.format) # <<<<<<<<<<<<<<
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
* stdlib.free(info.strides)
*/
free(__pyx_v_info->format);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":291
*
* def __releasebuffer__(ndarray self, Py_buffer* info):
* if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<<
* stdlib.free(info.format)
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
*/
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":293
* if PyArray_HASFIELDS(self):
* stdlib.free(info.format)
* if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<<
* stdlib.free(info.strides)
* # info.shape was stored after info.strides in the same block
*/
__pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
if (__pyx_t_1) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":294
* stdlib.free(info.format)
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
* stdlib.free(info.strides) # <<<<<<<<<<<<<<
* # info.shape was stored after info.strides in the same block
*
*/
free(__pyx_v_info->strides);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":293
* if PyArray_HASFIELDS(self):
* stdlib.free(info.format)
* if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<<
* stdlib.free(info.strides)
* # info.shape was stored after info.strides in the same block
*/
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":290
* f[0] = c'\0' # Terminate format string
*
* def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<<
* if PyArray_HASFIELDS(self):
* stdlib.free(info.format)
*/
/* function exit code */
__Pyx_RefNannyFinishContext();
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":770
* ctypedef npy_cdouble complex_t
*
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(1, <void*>a)
*
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":771
*
* cdef inline object PyArray_MultiIterNew1(a):
* return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
*
* cdef inline object PyArray_MultiIterNew2(a, b):
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":770
* ctypedef npy_cdouble complex_t
*
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(1, <void*>a)
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":773
* return PyArray_MultiIterNew(1, <void*>a)
*
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
*
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":774
*
* cdef inline object PyArray_MultiIterNew2(a, b):
* return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
*
* cdef inline object PyArray_MultiIterNew3(a, b, c):
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":773
* return PyArray_MultiIterNew(1, <void*>a)
*
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":776
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
*
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
*
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":777
*
* cdef inline object PyArray_MultiIterNew3(a, b, c):
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
*
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":776
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
*
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":779
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
*
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
*
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":780
*
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
*
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":779
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
*
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":782
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
*
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
*
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":783
*
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
*
* cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":782
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
*
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":785
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
*
* cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<<
* # Recursive utility function used in __getbuffer__ to get format
* # string. The new location in the format string is returned.
*/
static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr, char *__pyx_v_f, char *__pyx_v_end, int *__pyx_v_offset) {
PyArray_Descr *__pyx_v_child = 0;
int __pyx_v_endian_detector;
int __pyx_v_little_endian;
PyObject *__pyx_v_fields = 0;
PyObject *__pyx_v_childname = NULL;
PyObject *__pyx_v_new_offset = NULL;
PyObject *__pyx_v_t = NULL;
char *__pyx_r;
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
Py_ssize_t __pyx_t_2;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
int __pyx_t_5;
int __pyx_t_6;
int __pyx_t_7;
long __pyx_t_8;
char *__pyx_t_9;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_util_dtypestring", 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":790
*
* cdef dtype child
* cdef int endian_detector = 1 # <<<<<<<<<<<<<<
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
* cdef tuple fields
*/
__pyx_v_endian_detector = 1;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":791
* cdef dtype child
* cdef int endian_detector = 1
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0) # <<<<<<<<<<<<<<
* cdef tuple fields
*
*/
__pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":794
* cdef tuple fields
*
* for childname in descr.names: # <<<<<<<<<<<<<<
* fields = descr.fields[childname]
* child, new_offset = fields
*/
if (unlikely(__pyx_v_descr->names == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
__pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
for (;;) {
if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
#if CYTHON_COMPILING_IN_CPYTHON
__pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#else
__pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
#endif
__Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3);
__pyx_t_3 = 0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":795
*
* for childname in descr.names:
* fields = descr.fields[childname] # <<<<<<<<<<<<<<
* child, new_offset = fields
*
*/
if (unlikely(__pyx_v_descr->fields == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
__pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
__Pyx_GOTREF(__pyx_t_3);
if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3));
__pyx_t_3 = 0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":796
* for childname in descr.names:
* fields = descr.fields[childname]
* child, new_offset = fields # <<<<<<<<<<<<<<
*
* if (end - f) - <int>(new_offset - offset[0]) < 15:
*/
if (likely(__pyx_v_fields != Py_None)) {
PyObject* sequence = __pyx_v_fields;
#if CYTHON_COMPILING_IN_CPYTHON
Py_ssize_t size = Py_SIZE(sequence);
#else
Py_ssize_t size = PySequence_Size(sequence);
#endif
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
#if CYTHON_COMPILING_IN_CPYTHON
__pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
__pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
#else
__pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
#endif
} else {
__Pyx_RaiseNoneNotIterableError(); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3));
__pyx_t_3 = 0;
__Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4);
__pyx_t_4 = 0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":798
* child, new_offset = fields
*
* if (end - f) - <int>(new_offset - offset[0]) < 15: # <<<<<<<<<<<<<<
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
*
*/
__pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0);
if (__pyx_t_6) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":799
*
* if (end - f) - <int>(new_offset - offset[0]) < 15:
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<<
*
* if ((child.byteorder == c'>' and little_endian) or
*/
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":798
* child, new_offset = fields
*
* if (end - f) - <int>(new_offset - offset[0]) < 15: # <<<<<<<<<<<<<<
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
*
*/
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":801
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
*
* if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (child.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
__pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0);
if (!__pyx_t_7) {
goto __pyx_L8_next_or;
} else {
}
__pyx_t_7 = (__pyx_v_little_endian != 0);
if (!__pyx_t_7) {
} else {
__pyx_t_6 = __pyx_t_7;
goto __pyx_L7_bool_binop_done;
}
__pyx_L8_next_or:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":802
*
* if ((child.byteorder == c'>' and little_endian) or
* (child.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<<
* raise ValueError(u"Non-native byte order not supported")
* # One could encode it in the format string and have Cython
*/
__pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0);
if (__pyx_t_7) {
} else {
__pyx_t_6 = __pyx_t_7;
goto __pyx_L7_bool_binop_done;
}
__pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0);
__pyx_t_6 = __pyx_t_7;
__pyx_L7_bool_binop_done:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":801
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
*
* if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (child.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
if (__pyx_t_6) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":803
* if ((child.byteorder == c'>' and little_endian) or
* (child.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<<
* # One could encode it in the format string and have Cython
* # complain instead, BUT: < and > in format strings also imply
*/
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":801
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
*
* if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (child.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":813
*
* # Output padding bytes
* while offset[0] < new_offset: # <<<<<<<<<<<<<<
* f[0] = 120 # "x"; pad byte
* f += 1
*/
while (1) {
__pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (!__pyx_t_6) break;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":814
* # Output padding bytes
* while offset[0] < new_offset:
* f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<<
* f += 1
* offset[0] += 1
*/
(__pyx_v_f[0]) = 0x78;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":815
* while offset[0] < new_offset:
* f[0] = 120 # "x"; pad byte
* f += 1 # <<<<<<<<<<<<<<
* offset[0] += 1
*
*/
__pyx_v_f = (__pyx_v_f + 1);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":816
* f[0] = 120 # "x"; pad byte
* f += 1
* offset[0] += 1 # <<<<<<<<<<<<<<
*
* offset[0] += child.itemsize
*/
__pyx_t_8 = 0;
(__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1);
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":818
* offset[0] += 1
*
* offset[0] += child.itemsize # <<<<<<<<<<<<<<
*
* if not PyDataType_HASFIELDS(child):
*/
__pyx_t_8 = 0;
(__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":820
* offset[0] += child.itemsize
*
* if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<<
* t = child.type_num
* if end - f < 5:
*/
__pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0);
if (__pyx_t_6) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":821
*
* if not PyDataType_HASFIELDS(child):
* t = child.type_num # <<<<<<<<<<<<<<
* if end - f < 5:
* raise RuntimeError(u"Format string allocated too short.")
*/
__pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4);
__pyx_t_4 = 0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":822
* if not PyDataType_HASFIELDS(child):
* t = child.type_num
* if end - f < 5: # <<<<<<<<<<<<<<
* raise RuntimeError(u"Format string allocated too short.")
*
*/
__pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0);
if (__pyx_t_6) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":823
* t = child.type_num
* if end - f < 5:
* raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<<
*
* # Until ticket #99 is fixed, use integers to avoid warnings
*/
__pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_Raise(__pyx_t_4, 0, 0, 0);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":822
* if not PyDataType_HASFIELDS(child):
* t = child.type_num
* if end - f < 5: # <<<<<<<<<<<<<<
* raise RuntimeError(u"Format string allocated too short.")
*
*/
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":826
*
* # Until ticket #99 is fixed, use integers to avoid warnings
* if t == NPY_BYTE: f[0] = 98 #"b" # <<<<<<<<<<<<<<
* elif t == NPY_UBYTE: f[0] = 66 #"B"
* elif t == NPY_SHORT: f[0] = 104 #"h"
*/
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 98;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":827
* # Until ticket #99 is fixed, use integers to avoid warnings
* if t == NPY_BYTE: f[0] = 98 #"b"
* elif t == NPY_UBYTE: f[0] = 66 #"B" # <<<<<<<<<<<<<<
* elif t == NPY_SHORT: f[0] = 104 #"h"
* elif t == NPY_USHORT: f[0] = 72 #"H"
*/
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 66;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":828
* if t == NPY_BYTE: f[0] = 98 #"b"
* elif t == NPY_UBYTE: f[0] = 66 #"B"
* elif t == NPY_SHORT: f[0] = 104 #"h" # <<<<<<<<<<<<<<
* elif t == NPY_USHORT: f[0] = 72 #"H"
* elif t == NPY_INT: f[0] = 105 #"i"
*/
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x68;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":829
* elif t == NPY_UBYTE: f[0] = 66 #"B"
* elif t == NPY_SHORT: f[0] = 104 #"h"
* elif t == NPY_USHORT: f[0] = 72 #"H" # <<<<<<<<<<<<<<
* elif t == NPY_INT: f[0] = 105 #"i"
* elif t == NPY_UINT: f[0] = 73 #"I"
*/
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 72;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":830
* elif t == NPY_SHORT: f[0] = 104 #"h"
* elif t == NPY_USHORT: f[0] = 72 #"H"
* elif t == NPY_INT: f[0] = 105 #"i" # <<<<<<<<<<<<<<
* elif t == NPY_UINT: f[0] = 73 #"I"
* elif t == NPY_LONG: f[0] = 108 #"l"
*/
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x69;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":831
* elif t == NPY_USHORT: f[0] = 72 #"H"
* elif t == NPY_INT: f[0] = 105 #"i"
* elif t == NPY_UINT: f[0] = 73 #"I" # <<<<<<<<<<<<<<
* elif t == NPY_LONG: f[0] = 108 #"l"
* elif t == NPY_ULONG: f[0] = 76 #"L"
*/
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 73;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":832
* elif t == NPY_INT: f[0] = 105 #"i"
* elif t == NPY_UINT: f[0] = 73 #"I"
* elif t == NPY_LONG: f[0] = 108 #"l" # <<<<<<<<<<<<<<
* elif t == NPY_ULONG: f[0] = 76 #"L"
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
*/
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x6C;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":833
* elif t == NPY_UINT: f[0] = 73 #"I"
* elif t == NPY_LONG: f[0] = 108 #"l"
* elif t == NPY_ULONG: f[0] = 76 #"L" # <<<<<<<<<<<<<<
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
*/
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 76;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":834
* elif t == NPY_LONG: f[0] = 108 #"l"
* elif t == NPY_ULONG: f[0] = 76 #"L"
* elif t == NPY_LONGLONG: f[0] = 113 #"q" # <<<<<<<<<<<<<<
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
* elif t == NPY_FLOAT: f[0] = 102 #"f"
*/
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x71;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":835
* elif t == NPY_ULONG: f[0] = 76 #"L"
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q" # <<<<<<<<<<<<<<
* elif t == NPY_FLOAT: f[0] = 102 #"f"
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
*/
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 81;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":836
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
* elif t == NPY_FLOAT: f[0] = 102 #"f" # <<<<<<<<<<<<<<
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
*/
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x66;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":837
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
* elif t == NPY_FLOAT: f[0] = 102 #"f"
* elif t == NPY_DOUBLE: f[0] = 100 #"d" # <<<<<<<<<<<<<<
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
*/
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x64;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":838
* elif t == NPY_FLOAT: f[0] = 102 #"f"
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" # <<<<<<<<<<<<<<
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
*/
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x67;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":839
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf # <<<<<<<<<<<<<<
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
*/
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 90;
(__pyx_v_f[1]) = 0x66;
__pyx_v_f = (__pyx_v_f + 1);
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":840
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd # <<<<<<<<<<<<<<
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
* elif t == NPY_OBJECT: f[0] = 79 #"O"
*/
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 90;
(__pyx_v_f[1]) = 0x64;
__pyx_v_f = (__pyx_v_f + 1);
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":841
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg # <<<<<<<<<<<<<<
* elif t == NPY_OBJECT: f[0] = 79 #"O"
* else:
*/
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 90;
(__pyx_v_f[1]) = 0x67;
__pyx_v_f = (__pyx_v_f + 1);
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":842
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
* elif t == NPY_OBJECT: f[0] = 79 #"O" # <<<<<<<<<<<<<<
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
*/
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 79;
goto __pyx_L15;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":844
* elif t == NPY_OBJECT: f[0] = 79 #"O"
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<<
* f += 1
* else:
*/
/*else*/ {
__pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GIVEREF(__pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
__pyx_t_3 = 0;
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
__pyx_L15:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":845
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
* f += 1 # <<<<<<<<<<<<<<
* else:
* # Cython ignores struct boundary information ("T{...}"),
*/
__pyx_v_f = (__pyx_v_f + 1);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":820
* offset[0] += child.itemsize
*
* if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<<
* t = child.type_num
* if end - f < 5:
*/
goto __pyx_L13;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":849
* # Cython ignores struct boundary information ("T{...}"),
* # so don't output it
* f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<<
* return f
*
*/
/*else*/ {
__pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_9 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_f = __pyx_t_9;
}
__pyx_L13:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":794
* cdef tuple fields
*
* for childname in descr.names: # <<<<<<<<<<<<<<
* fields = descr.fields[childname]
* child, new_offset = fields
*/
}
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":850
* # so don't output it
* f = _util_dtypestring(child, f, end, offset)
* return f # <<<<<<<<<<<<<<
*
*
*/
__pyx_r = __pyx_v_f;
goto __pyx_L0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":785
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
*
* cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<<
* # Recursive utility function used in __getbuffer__ to get format
* # string. The new location in the format string is returned.
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XDECREF((PyObject *)__pyx_v_child);
__Pyx_XDECREF(__pyx_v_fields);
__Pyx_XDECREF(__pyx_v_childname);
__Pyx_XDECREF(__pyx_v_new_offset);
__Pyx_XDECREF(__pyx_v_t);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":966
*
*
* cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
* cdef PyObject* baseptr
* if base is None:
*/
static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
PyObject *__pyx_v_baseptr;
__Pyx_RefNannyDeclarations
int __pyx_t_1;
int __pyx_t_2;
__Pyx_RefNannySetupContext("set_array_base", 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":968
* cdef inline void set_array_base(ndarray arr, object base):
* cdef PyObject* baseptr
* if base is None: # <<<<<<<<<<<<<<
* baseptr = NULL
* else:
*/
__pyx_t_1 = (__pyx_v_base == Py_None);
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":969
* cdef PyObject* baseptr
* if base is None:
* baseptr = NULL # <<<<<<<<<<<<<<
* else:
* Py_INCREF(base) # important to do this before decref below!
*/
__pyx_v_baseptr = NULL;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":968
* cdef inline void set_array_base(ndarray arr, object base):
* cdef PyObject* baseptr
* if base is None: # <<<<<<<<<<<<<<
* baseptr = NULL
* else:
*/
goto __pyx_L3;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":971
* baseptr = NULL
* else:
* Py_INCREF(base) # important to do this before decref below! # <<<<<<<<<<<<<<
* baseptr = <PyObject*>base
* Py_XDECREF(arr.base)
*/
/*else*/ {
Py_INCREF(__pyx_v_base);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":972
* else:
* Py_INCREF(base) # important to do this before decref below!
* baseptr = <PyObject*>base # <<<<<<<<<<<<<<
* Py_XDECREF(arr.base)
* arr.base = baseptr
*/
__pyx_v_baseptr = ((PyObject *)__pyx_v_base);
}
__pyx_L3:;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":973
* Py_INCREF(base) # important to do this before decref below!
* baseptr = <PyObject*>base
* Py_XDECREF(arr.base) # <<<<<<<<<<<<<<
* arr.base = baseptr
*
*/
Py_XDECREF(__pyx_v_arr->base);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":974
* baseptr = <PyObject*>base
* Py_XDECREF(arr.base)
* arr.base = baseptr # <<<<<<<<<<<<<<
*
* cdef inline object get_array_base(ndarray arr):
*/
__pyx_v_arr->base = __pyx_v_baseptr;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":966
*
*
* cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
* cdef PyObject* baseptr
* if base is None:
*/
/* function exit code */
__Pyx_RefNannyFinishContext();
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":976
* arr.base = baseptr
*
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
* if arr.base is NULL:
* return None
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations
int __pyx_t_1;
__Pyx_RefNannySetupContext("get_array_base", 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":977
*
* cdef inline object get_array_base(ndarray arr):
* if arr.base is NULL: # <<<<<<<<<<<<<<
* return None
* else:
*/
__pyx_t_1 = ((__pyx_v_arr->base == NULL) != 0);
if (__pyx_t_1) {
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":978
* cdef inline object get_array_base(ndarray arr):
* if arr.base is NULL:
* return None # <<<<<<<<<<<<<<
* else:
* return <object>arr.base
*/
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(Py_None);
__pyx_r = Py_None;
goto __pyx_L0;
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":977
*
* cdef inline object get_array_base(ndarray arr):
* if arr.base is NULL: # <<<<<<<<<<<<<<
* return None
* else:
*/
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":980
* return None
* else:
* return <object>arr.base # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(((PyObject *)__pyx_v_arr->base));
__pyx_r = ((PyObject *)__pyx_v_arr->base);
goto __pyx_L0;
}
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":976
* arr.base = baseptr
*
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
* if arr.base is NULL:
* return None
*/
/* function exit code */
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "lexeme.pxd":20
*
* @staticmethod
* cdef inline Lexeme from_ptr(LexemeC* lex, Vocab vocab, int vector_length): # <<<<<<<<<<<<<<
* cdef Lexeme self = Lexeme.__new__(Lexeme, vocab, lex.orth)
* self.c = lex
*/
static CYTHON_INLINE struct __pyx_obj_5spacy_6lexeme_Lexeme *__pyx_f_5spacy_6lexeme_6Lexeme_from_ptr(struct __pyx_t_5spacy_7structs_LexemeC *__pyx_v_lex, struct __pyx_obj_5spacy_5vocab_Vocab *__pyx_v_vocab, CYTHON_UNUSED int __pyx_v_vector_length) {
struct __pyx_obj_5spacy_6lexeme_Lexeme *__pyx_v_self = 0;
struct __pyx_obj_5spacy_6lexeme_Lexeme *__pyx_r = NULL;
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
__pyx_t_5spacy_8typedefs_attr_t __pyx_t_3;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("from_ptr", 0);
/* "lexeme.pxd":21
* @staticmethod
* cdef inline Lexeme from_ptr(LexemeC* lex, Vocab vocab, int vector_length):
* cdef Lexeme self = Lexeme.__new__(Lexeme, vocab, lex.orth) # <<<<<<<<<<<<<<
* self.c = lex
* self.vocab = vocab
*/
__pyx_t_1 = __Pyx_PyInt_From_int32_t(__pyx_v_lex->orth); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(((PyObject *)__pyx_v_vocab));
__Pyx_GIVEREF(((PyObject *)__pyx_v_vocab));
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_vocab));
__Pyx_GIVEREF(__pyx_t_1);
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
__pyx_t_1 = 0;
__pyx_t_1 = __Pyx_tp_new(((PyObject *)__pyx_ptype_5spacy_6lexeme_Lexeme), ((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (!(likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5spacy_6lexeme_Lexeme)))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_self = ((struct __pyx_obj_5spacy_6lexeme_Lexeme *)__pyx_t_1);
__pyx_t_1 = 0;
/* "lexeme.pxd":22
* cdef inline Lexeme from_ptr(LexemeC* lex, Vocab vocab, int vector_length):
* cdef Lexeme self = Lexeme.__new__(Lexeme, vocab, lex.orth)
* self.c = lex # <<<<<<<<<<<<<<
* self.vocab = vocab
* self.orth = lex.orth
*/
__pyx_v_self->c = __pyx_v_lex;
/* "lexeme.pxd":23
* cdef Lexeme self = Lexeme.__new__(Lexeme, vocab, lex.orth)
* self.c = lex
* self.vocab = vocab # <<<<<<<<<<<<<<
* self.orth = lex.orth
*
*/
__Pyx_INCREF(((PyObject *)__pyx_v_vocab));
__Pyx_GIVEREF(((PyObject *)__pyx_v_vocab));
__Pyx_GOTREF(__pyx_v_self->vocab);
__Pyx_DECREF(((PyObject *)__pyx_v_self->vocab));
__pyx_v_self->vocab = __pyx_v_vocab;
/* "lexeme.pxd":24
* self.c = lex
* self.vocab = vocab
* self.orth = lex.orth # <<<<<<<<<<<<<<
*
* @staticmethod
*/
__pyx_t_3 = __pyx_v_lex->orth;
__pyx_v_self->orth = __pyx_t_3;
/* "lexeme.pxd":20
*
* @staticmethod
* cdef inline Lexeme from_ptr(LexemeC* lex, Vocab vocab, int vector_length): # <<<<<<<<<<<<<<
* cdef Lexeme self = Lexeme.__new__(Lexeme, vocab, lex.orth)
* self.c = lex
*/
/* function exit code */
__pyx_r = ((struct __pyx_obj_5spacy_6lexeme_Lexeme *)Py_None); __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2);
__Pyx_AddTraceback("spacy.lexeme.Lexeme.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XDECREF((PyObject *)__pyx_v_self);
__Pyx_XGIVEREF((PyObject *)__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "lexeme.pxd":27
*
* @staticmethod
* cdef inline void set_struct_attr(LexemeC* lex, attr_id_t name, attr_t value) nogil: # <<<<<<<<<<<<<<
* if name < (sizeof(flags_t) * 8):
* Lexeme.c_set_flag(lex, name, value)
*/
static CYTHON_INLINE void __pyx_f_5spacy_6lexeme_6Lexeme_set_struct_attr(struct __pyx_t_5spacy_7structs_LexemeC *__pyx_v_lex, enum __pyx_t_5spacy_5attrs_attr_id_t __pyx_v_name, __pyx_t_5spacy_8typedefs_attr_t __pyx_v_value) {
int __pyx_t_1;
/* "lexeme.pxd":28
* @staticmethod
* cdef inline void set_struct_attr(LexemeC* lex, attr_id_t name, attr_t value) nogil:
* if name < (sizeof(flags_t) * 8): # <<<<<<<<<<<<<<
* Lexeme.c_set_flag(lex, name, value)
* elif name == ID:
*/
__pyx_t_1 = ((__pyx_v_name < ((sizeof(__pyx_t_5spacy_8typedefs_flags_t)) * 8)) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":29
* cdef inline void set_struct_attr(LexemeC* lex, attr_id_t name, attr_t value) nogil:
* if name < (sizeof(flags_t) * 8):
* Lexeme.c_set_flag(lex, name, value) # <<<<<<<<<<<<<<
* elif name == ID:
* lex.id = value
*/
__pyx_f_5spacy_6lexeme_6Lexeme_c_set_flag(__pyx_v_lex, __pyx_v_name, __pyx_v_value);
/* "lexeme.pxd":28
* @staticmethod
* cdef inline void set_struct_attr(LexemeC* lex, attr_id_t name, attr_t value) nogil:
* if name < (sizeof(flags_t) * 8): # <<<<<<<<<<<<<<
* Lexeme.c_set_flag(lex, name, value)
* elif name == ID:
*/
goto __pyx_L3;
}
/* "lexeme.pxd":30
* if name < (sizeof(flags_t) * 8):
* Lexeme.c_set_flag(lex, name, value)
* elif name == ID: # <<<<<<<<<<<<<<
* lex.id = value
* elif name == LOWER:
*/
__pyx_t_1 = ((__pyx_v_name == __pyx_e_5spacy_5attrs_ID) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":31
* Lexeme.c_set_flag(lex, name, value)
* elif name == ID:
* lex.id = value # <<<<<<<<<<<<<<
* elif name == LOWER:
* lex.lower = value
*/
__pyx_v_lex->id = __pyx_v_value;
/* "lexeme.pxd":30
* if name < (sizeof(flags_t) * 8):
* Lexeme.c_set_flag(lex, name, value)
* elif name == ID: # <<<<<<<<<<<<<<
* lex.id = value
* elif name == LOWER:
*/
goto __pyx_L3;
}
/* "lexeme.pxd":32
* elif name == ID:
* lex.id = value
* elif name == LOWER: # <<<<<<<<<<<<<<
* lex.lower = value
* elif name == NORM:
*/
__pyx_t_1 = ((__pyx_v_name == __pyx_e_5spacy_5attrs_LOWER) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":33
* lex.id = value
* elif name == LOWER:
* lex.lower = value # <<<<<<<<<<<<<<
* elif name == NORM:
* lex.norm = value
*/
__pyx_v_lex->lower = __pyx_v_value;
/* "lexeme.pxd":32
* elif name == ID:
* lex.id = value
* elif name == LOWER: # <<<<<<<<<<<<<<
* lex.lower = value
* elif name == NORM:
*/
goto __pyx_L3;
}
/* "lexeme.pxd":34
* elif name == LOWER:
* lex.lower = value
* elif name == NORM: # <<<<<<<<<<<<<<
* lex.norm = value
* elif name == SHAPE:
*/
__pyx_t_1 = ((__pyx_v_name == __pyx_e_5spacy_5attrs_NORM) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":35
* lex.lower = value
* elif name == NORM:
* lex.norm = value # <<<<<<<<<<<<<<
* elif name == SHAPE:
* lex.shape = value
*/
__pyx_v_lex->norm = __pyx_v_value;
/* "lexeme.pxd":34
* elif name == LOWER:
* lex.lower = value
* elif name == NORM: # <<<<<<<<<<<<<<
* lex.norm = value
* elif name == SHAPE:
*/
goto __pyx_L3;
}
/* "lexeme.pxd":36
* elif name == NORM:
* lex.norm = value
* elif name == SHAPE: # <<<<<<<<<<<<<<
* lex.shape = value
* elif name == PREFIX:
*/
__pyx_t_1 = ((__pyx_v_name == __pyx_e_5spacy_5attrs_SHAPE) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":37
* lex.norm = value
* elif name == SHAPE:
* lex.shape = value # <<<<<<<<<<<<<<
* elif name == PREFIX:
* lex.prefix = value
*/
__pyx_v_lex->shape = __pyx_v_value;
/* "lexeme.pxd":36
* elif name == NORM:
* lex.norm = value
* elif name == SHAPE: # <<<<<<<<<<<<<<
* lex.shape = value
* elif name == PREFIX:
*/
goto __pyx_L3;
}
/* "lexeme.pxd":38
* elif name == SHAPE:
* lex.shape = value
* elif name == PREFIX: # <<<<<<<<<<<<<<
* lex.prefix = value
* elif name == SUFFIX:
*/
__pyx_t_1 = ((__pyx_v_name == __pyx_e_5spacy_5attrs_PREFIX) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":39
* lex.shape = value
* elif name == PREFIX:
* lex.prefix = value # <<<<<<<<<<<<<<
* elif name == SUFFIX:
* lex.suffix = value
*/
__pyx_v_lex->prefix = __pyx_v_value;
/* "lexeme.pxd":38
* elif name == SHAPE:
* lex.shape = value
* elif name == PREFIX: # <<<<<<<<<<<<<<
* lex.prefix = value
* elif name == SUFFIX:
*/
goto __pyx_L3;
}
/* "lexeme.pxd":40
* elif name == PREFIX:
* lex.prefix = value
* elif name == SUFFIX: # <<<<<<<<<<<<<<
* lex.suffix = value
* elif name == CLUSTER:
*/
__pyx_t_1 = ((__pyx_v_name == __pyx_e_5spacy_5attrs_SUFFIX) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":41
* lex.prefix = value
* elif name == SUFFIX:
* lex.suffix = value # <<<<<<<<<<<<<<
* elif name == CLUSTER:
* lex.cluster = value
*/
__pyx_v_lex->suffix = __pyx_v_value;
/* "lexeme.pxd":40
* elif name == PREFIX:
* lex.prefix = value
* elif name == SUFFIX: # <<<<<<<<<<<<<<
* lex.suffix = value
* elif name == CLUSTER:
*/
goto __pyx_L3;
}
/* "lexeme.pxd":42
* elif name == SUFFIX:
* lex.suffix = value
* elif name == CLUSTER: # <<<<<<<<<<<<<<
* lex.cluster = value
* elif name == LANG:
*/
__pyx_t_1 = ((__pyx_v_name == __pyx_e_5spacy_5attrs_CLUSTER) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":43
* lex.suffix = value
* elif name == CLUSTER:
* lex.cluster = value # <<<<<<<<<<<<<<
* elif name == LANG:
* lex.lang = value
*/
__pyx_v_lex->cluster = __pyx_v_value;
/* "lexeme.pxd":42
* elif name == SUFFIX:
* lex.suffix = value
* elif name == CLUSTER: # <<<<<<<<<<<<<<
* lex.cluster = value
* elif name == LANG:
*/
goto __pyx_L3;
}
/* "lexeme.pxd":44
* elif name == CLUSTER:
* lex.cluster = value
* elif name == LANG: # <<<<<<<<<<<<<<
* lex.lang = value
*
*/
__pyx_t_1 = ((__pyx_v_name == __pyx_e_5spacy_5attrs_LANG) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":45
* lex.cluster = value
* elif name == LANG:
* lex.lang = value # <<<<<<<<<<<<<<
*
* @staticmethod
*/
__pyx_v_lex->lang = __pyx_v_value;
/* "lexeme.pxd":44
* elif name == CLUSTER:
* lex.cluster = value
* elif name == LANG: # <<<<<<<<<<<<<<
* lex.lang = value
*
*/
}
__pyx_L3:;
/* "lexeme.pxd":27
*
* @staticmethod
* cdef inline void set_struct_attr(LexemeC* lex, attr_id_t name, attr_t value) nogil: # <<<<<<<<<<<<<<
* if name < (sizeof(flags_t) * 8):
* Lexeme.c_set_flag(lex, name, value)
*/
/* function exit code */
}
/* "lexeme.pxd":48
*
* @staticmethod
* cdef inline attr_t get_struct_attr(const LexemeC* lex, attr_id_t feat_name) nogil: # <<<<<<<<<<<<<<
* if feat_name < (sizeof(flags_t) * 8):
* if Lexeme.c_check_flag(lex, feat_name):
*/
static CYTHON_INLINE __pyx_t_5spacy_8typedefs_attr_t __pyx_f_5spacy_6lexeme_6Lexeme_get_struct_attr(struct __pyx_t_5spacy_7structs_LexemeC const *__pyx_v_lex, enum __pyx_t_5spacy_5attrs_attr_id_t __pyx_v_feat_name) {
__pyx_t_5spacy_8typedefs_attr_t __pyx_r;
int __pyx_t_1;
/* "lexeme.pxd":49
* @staticmethod
* cdef inline attr_t get_struct_attr(const LexemeC* lex, attr_id_t feat_name) nogil:
* if feat_name < (sizeof(flags_t) * 8): # <<<<<<<<<<<<<<
* if Lexeme.c_check_flag(lex, feat_name):
* return 1
*/
__pyx_t_1 = ((__pyx_v_feat_name < ((sizeof(__pyx_t_5spacy_8typedefs_flags_t)) * 8)) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":50
* cdef inline attr_t get_struct_attr(const LexemeC* lex, attr_id_t feat_name) nogil:
* if feat_name < (sizeof(flags_t) * 8):
* if Lexeme.c_check_flag(lex, feat_name): # <<<<<<<<<<<<<<
* return 1
* else:
*/
__pyx_t_1 = (__pyx_f_5spacy_6lexeme_6Lexeme_c_check_flag(__pyx_v_lex, __pyx_v_feat_name) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":51
* if feat_name < (sizeof(flags_t) * 8):
* if Lexeme.c_check_flag(lex, feat_name):
* return 1 # <<<<<<<<<<<<<<
* else:
* return 0
*/
__pyx_r = 1;
goto __pyx_L0;
/* "lexeme.pxd":50
* cdef inline attr_t get_struct_attr(const LexemeC* lex, attr_id_t feat_name) nogil:
* if feat_name < (sizeof(flags_t) * 8):
* if Lexeme.c_check_flag(lex, feat_name): # <<<<<<<<<<<<<<
* return 1
* else:
*/
}
/* "lexeme.pxd":53
* return 1
* else:
* return 0 # <<<<<<<<<<<<<<
* elif feat_name == ID:
* return lex.id
*/
/*else*/ {
__pyx_r = 0;
goto __pyx_L0;
}
/* "lexeme.pxd":49
* @staticmethod
* cdef inline attr_t get_struct_attr(const LexemeC* lex, attr_id_t feat_name) nogil:
* if feat_name < (sizeof(flags_t) * 8): # <<<<<<<<<<<<<<
* if Lexeme.c_check_flag(lex, feat_name):
* return 1
*/
}
/* "lexeme.pxd":54
* else:
* return 0
* elif feat_name == ID: # <<<<<<<<<<<<<<
* return lex.id
* elif feat_name == ORTH:
*/
__pyx_t_1 = ((__pyx_v_feat_name == __pyx_e_5spacy_5attrs_ID) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":55
* return 0
* elif feat_name == ID:
* return lex.id # <<<<<<<<<<<<<<
* elif feat_name == ORTH:
* return lex.orth
*/
__pyx_r = __pyx_v_lex->id;
goto __pyx_L0;
/* "lexeme.pxd":54
* else:
* return 0
* elif feat_name == ID: # <<<<<<<<<<<<<<
* return lex.id
* elif feat_name == ORTH:
*/
}
/* "lexeme.pxd":56
* elif feat_name == ID:
* return lex.id
* elif feat_name == ORTH: # <<<<<<<<<<<<<<
* return lex.orth
* elif feat_name == LOWER:
*/
__pyx_t_1 = ((__pyx_v_feat_name == __pyx_e_5spacy_5attrs_ORTH) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":57
* return lex.id
* elif feat_name == ORTH:
* return lex.orth # <<<<<<<<<<<<<<
* elif feat_name == LOWER:
* return lex.lower
*/
__pyx_r = __pyx_v_lex->orth;
goto __pyx_L0;
/* "lexeme.pxd":56
* elif feat_name == ID:
* return lex.id
* elif feat_name == ORTH: # <<<<<<<<<<<<<<
* return lex.orth
* elif feat_name == LOWER:
*/
}
/* "lexeme.pxd":58
* elif feat_name == ORTH:
* return lex.orth
* elif feat_name == LOWER: # <<<<<<<<<<<<<<
* return lex.lower
* elif feat_name == NORM:
*/
__pyx_t_1 = ((__pyx_v_feat_name == __pyx_e_5spacy_5attrs_LOWER) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":59
* return lex.orth
* elif feat_name == LOWER:
* return lex.lower # <<<<<<<<<<<<<<
* elif feat_name == NORM:
* return lex.norm
*/
__pyx_r = __pyx_v_lex->lower;
goto __pyx_L0;
/* "lexeme.pxd":58
* elif feat_name == ORTH:
* return lex.orth
* elif feat_name == LOWER: # <<<<<<<<<<<<<<
* return lex.lower
* elif feat_name == NORM:
*/
}
/* "lexeme.pxd":60
* elif feat_name == LOWER:
* return lex.lower
* elif feat_name == NORM: # <<<<<<<<<<<<<<
* return lex.norm
* elif feat_name == SHAPE:
*/
__pyx_t_1 = ((__pyx_v_feat_name == __pyx_e_5spacy_5attrs_NORM) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":61
* return lex.lower
* elif feat_name == NORM:
* return lex.norm # <<<<<<<<<<<<<<
* elif feat_name == SHAPE:
* return lex.shape
*/
__pyx_r = __pyx_v_lex->norm;
goto __pyx_L0;
/* "lexeme.pxd":60
* elif feat_name == LOWER:
* return lex.lower
* elif feat_name == NORM: # <<<<<<<<<<<<<<
* return lex.norm
* elif feat_name == SHAPE:
*/
}
/* "lexeme.pxd":62
* elif feat_name == NORM:
* return lex.norm
* elif feat_name == SHAPE: # <<<<<<<<<<<<<<
* return lex.shape
* elif feat_name == PREFIX:
*/
__pyx_t_1 = ((__pyx_v_feat_name == __pyx_e_5spacy_5attrs_SHAPE) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":63
* return lex.norm
* elif feat_name == SHAPE:
* return lex.shape # <<<<<<<<<<<<<<
* elif feat_name == PREFIX:
* return lex.prefix
*/
__pyx_r = __pyx_v_lex->shape;
goto __pyx_L0;
/* "lexeme.pxd":62
* elif feat_name == NORM:
* return lex.norm
* elif feat_name == SHAPE: # <<<<<<<<<<<<<<
* return lex.shape
* elif feat_name == PREFIX:
*/
}
/* "lexeme.pxd":64
* elif feat_name == SHAPE:
* return lex.shape
* elif feat_name == PREFIX: # <<<<<<<<<<<<<<
* return lex.prefix
* elif feat_name == SUFFIX:
*/
__pyx_t_1 = ((__pyx_v_feat_name == __pyx_e_5spacy_5attrs_PREFIX) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":65
* return lex.shape
* elif feat_name == PREFIX:
* return lex.prefix # <<<<<<<<<<<<<<
* elif feat_name == SUFFIX:
* return lex.suffix
*/
__pyx_r = __pyx_v_lex->prefix;
goto __pyx_L0;
/* "lexeme.pxd":64
* elif feat_name == SHAPE:
* return lex.shape
* elif feat_name == PREFIX: # <<<<<<<<<<<<<<
* return lex.prefix
* elif feat_name == SUFFIX:
*/
}
/* "lexeme.pxd":66
* elif feat_name == PREFIX:
* return lex.prefix
* elif feat_name == SUFFIX: # <<<<<<<<<<<<<<
* return lex.suffix
* elif feat_name == LENGTH:
*/
__pyx_t_1 = ((__pyx_v_feat_name == __pyx_e_5spacy_5attrs_SUFFIX) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":67
* return lex.prefix
* elif feat_name == SUFFIX:
* return lex.suffix # <<<<<<<<<<<<<<
* elif feat_name == LENGTH:
* return lex.length
*/
__pyx_r = __pyx_v_lex->suffix;
goto __pyx_L0;
/* "lexeme.pxd":66
* elif feat_name == PREFIX:
* return lex.prefix
* elif feat_name == SUFFIX: # <<<<<<<<<<<<<<
* return lex.suffix
* elif feat_name == LENGTH:
*/
}
/* "lexeme.pxd":68
* elif feat_name == SUFFIX:
* return lex.suffix
* elif feat_name == LENGTH: # <<<<<<<<<<<<<<
* return lex.length
* elif feat_name == CLUSTER:
*/
__pyx_t_1 = ((__pyx_v_feat_name == __pyx_e_5spacy_5attrs_LENGTH) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":69
* return lex.suffix
* elif feat_name == LENGTH:
* return lex.length # <<<<<<<<<<<<<<
* elif feat_name == CLUSTER:
* return lex.cluster
*/
__pyx_r = __pyx_v_lex->length;
goto __pyx_L0;
/* "lexeme.pxd":68
* elif feat_name == SUFFIX:
* return lex.suffix
* elif feat_name == LENGTH: # <<<<<<<<<<<<<<
* return lex.length
* elif feat_name == CLUSTER:
*/
}
/* "lexeme.pxd":70
* elif feat_name == LENGTH:
* return lex.length
* elif feat_name == CLUSTER: # <<<<<<<<<<<<<<
* return lex.cluster
* elif feat_name == LANG:
*/
__pyx_t_1 = ((__pyx_v_feat_name == __pyx_e_5spacy_5attrs_CLUSTER) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":71
* return lex.length
* elif feat_name == CLUSTER:
* return lex.cluster # <<<<<<<<<<<<<<
* elif feat_name == LANG:
* return lex.lang
*/
__pyx_r = __pyx_v_lex->cluster;
goto __pyx_L0;
/* "lexeme.pxd":70
* elif feat_name == LENGTH:
* return lex.length
* elif feat_name == CLUSTER: # <<<<<<<<<<<<<<
* return lex.cluster
* elif feat_name == LANG:
*/
}
/* "lexeme.pxd":72
* elif feat_name == CLUSTER:
* return lex.cluster
* elif feat_name == LANG: # <<<<<<<<<<<<<<
* return lex.lang
* else:
*/
__pyx_t_1 = ((__pyx_v_feat_name == __pyx_e_5spacy_5attrs_LANG) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":73
* return lex.cluster
* elif feat_name == LANG:
* return lex.lang # <<<<<<<<<<<<<<
* else:
* return 0
*/
__pyx_r = __pyx_v_lex->lang;
goto __pyx_L0;
/* "lexeme.pxd":72
* elif feat_name == CLUSTER:
* return lex.cluster
* elif feat_name == LANG: # <<<<<<<<<<<<<<
* return lex.lang
* else:
*/
}
/* "lexeme.pxd":75
* return lex.lang
* else:
* return 0 # <<<<<<<<<<<<<<
*
* @staticmethod
*/
/*else*/ {
__pyx_r = 0;
goto __pyx_L0;
}
/* "lexeme.pxd":48
*
* @staticmethod
* cdef inline attr_t get_struct_attr(const LexemeC* lex, attr_id_t feat_name) nogil: # <<<<<<<<<<<<<<
* if feat_name < (sizeof(flags_t) * 8):
* if Lexeme.c_check_flag(lex, feat_name):
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "lexeme.pxd":78
*
* @staticmethod
* cdef inline bint c_check_flag(const LexemeC* lexeme, attr_id_t flag_id) nogil: # <<<<<<<<<<<<<<
* cdef flags_t one = 1
* if lexeme.flags & (one << flag_id):
*/
static CYTHON_INLINE int __pyx_f_5spacy_6lexeme_6Lexeme_c_check_flag(struct __pyx_t_5spacy_7structs_LexemeC const *__pyx_v_lexeme, enum __pyx_t_5spacy_5attrs_attr_id_t __pyx_v_flag_id) {
__pyx_t_5spacy_8typedefs_flags_t __pyx_v_one;
int __pyx_r;
int __pyx_t_1;
/* "lexeme.pxd":79
* @staticmethod
* cdef inline bint c_check_flag(const LexemeC* lexeme, attr_id_t flag_id) nogil:
* cdef flags_t one = 1 # <<<<<<<<<<<<<<
* if lexeme.flags & (one << flag_id):
* return True
*/
__pyx_v_one = 1;
/* "lexeme.pxd":80
* cdef inline bint c_check_flag(const LexemeC* lexeme, attr_id_t flag_id) nogil:
* cdef flags_t one = 1
* if lexeme.flags & (one << flag_id): # <<<<<<<<<<<<<<
* return True
* else:
*/
__pyx_t_1 = ((__pyx_v_lexeme->flags & (__pyx_v_one << __pyx_v_flag_id)) != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":81
* cdef flags_t one = 1
* if lexeme.flags & (one << flag_id):
* return True # <<<<<<<<<<<<<<
* else:
* return False
*/
__pyx_r = 1;
goto __pyx_L0;
/* "lexeme.pxd":80
* cdef inline bint c_check_flag(const LexemeC* lexeme, attr_id_t flag_id) nogil:
* cdef flags_t one = 1
* if lexeme.flags & (one << flag_id): # <<<<<<<<<<<<<<
* return True
* else:
*/
}
/* "lexeme.pxd":83
* return True
* else:
* return False # <<<<<<<<<<<<<<
*
* @staticmethod
*/
/*else*/ {
__pyx_r = 0;
goto __pyx_L0;
}
/* "lexeme.pxd":78
*
* @staticmethod
* cdef inline bint c_check_flag(const LexemeC* lexeme, attr_id_t flag_id) nogil: # <<<<<<<<<<<<<<
* cdef flags_t one = 1
* if lexeme.flags & (one << flag_id):
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "lexeme.pxd":86
*
* @staticmethod
* cdef inline bint c_set_flag(LexemeC* lex, attr_id_t flag_id, bint value) nogil: # <<<<<<<<<<<<<<
* cdef flags_t one = 1
* if value:
*/
static CYTHON_INLINE int __pyx_f_5spacy_6lexeme_6Lexeme_c_set_flag(struct __pyx_t_5spacy_7structs_LexemeC *__pyx_v_lex, enum __pyx_t_5spacy_5attrs_attr_id_t __pyx_v_flag_id, int __pyx_v_value) {
__pyx_t_5spacy_8typedefs_flags_t __pyx_v_one;
int __pyx_r;
int __pyx_t_1;
/* "lexeme.pxd":87
* @staticmethod
* cdef inline bint c_set_flag(LexemeC* lex, attr_id_t flag_id, bint value) nogil:
* cdef flags_t one = 1 # <<<<<<<<<<<<<<
* if value:
* lex.flags |= one << flag_id
*/
__pyx_v_one = 1;
/* "lexeme.pxd":88
* cdef inline bint c_set_flag(LexemeC* lex, attr_id_t flag_id, bint value) nogil:
* cdef flags_t one = 1
* if value: # <<<<<<<<<<<<<<
* lex.flags |= one << flag_id
* else:
*/
__pyx_t_1 = (__pyx_v_value != 0);
if (__pyx_t_1) {
/* "lexeme.pxd":89
* cdef flags_t one = 1
* if value:
* lex.flags |= one << flag_id # <<<<<<<<<<<<<<
* else:
* lex.flags &= ~(one << flag_id)
*/
__pyx_v_lex->flags = (__pyx_v_lex->flags | (__pyx_v_one << __pyx_v_flag_id));
/* "lexeme.pxd":88
* cdef inline bint c_set_flag(LexemeC* lex, attr_id_t flag_id, bint value) nogil:
* cdef flags_t one = 1
* if value: # <<<<<<<<<<<<<<
* lex.flags |= one << flag_id
* else:
*/
goto __pyx_L3;
}
/* "lexeme.pxd":91
* lex.flags |= one << flag_id
* else:
* lex.flags &= ~(one << flag_id) # <<<<<<<<<<<<<<
*/
/*else*/ {
__pyx_v_lex->flags = (__pyx_v_lex->flags & (~(__pyx_v_one << __pyx_v_flag_id)));
}
__pyx_L3:;
/* "lexeme.pxd":86
*
* @staticmethod
* cdef inline bint c_set_flag(LexemeC* lex, attr_id_t flag_id, bint value) nogil: # <<<<<<<<<<<<<<
* cdef flags_t one = 1
* if value:
*/
/* function exit code */
__pyx_r = 0;
return __pyx_r;
}
/* "_state.pxd":14
*
*
* cdef inline bint is_space_token(const TokenC* token) nogil: # <<<<<<<<<<<<<<
* return Lexeme.c_check_flag(token.lex, IS_SPACE)
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_6_state_is_space_token(struct __pyx_t_5spacy_7structs_TokenC const *__pyx_v_token) {
int __pyx_r;
/* "_state.pxd":15
*
* cdef inline bint is_space_token(const TokenC* token) nogil:
* return Lexeme.c_check_flag(token.lex, IS_SPACE) # <<<<<<<<<<<<<<
*
*
*/
__pyx_r = __pyx_f_5spacy_6lexeme_6Lexeme_c_check_flag(__pyx_v_token->lex, __pyx_e_5spacy_5attrs_IS_SPACE);
goto __pyx_L0;
/* "_state.pxd":14
*
*
* cdef inline bint is_space_token(const TokenC* token) nogil: # <<<<<<<<<<<<<<
* return Lexeme.c_check_flag(token.lex, IS_SPACE)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":31
* int _break
*
* __init__(const TokenC* sent, int length) nogil: # <<<<<<<<<<<<<<
* cdef int PADDING = 5
* this._buffer = <int*>calloc(length + (PADDING * 2), sizeof(int))
*/
__pyx_t_5spacy_6syntax_6_state_StateC::__pyx_t_5spacy_6syntax_6_state_StateC(struct __pyx_t_5spacy_7structs_TokenC const *__pyx_v_sent, int __pyx_v_length) {
int __pyx_v_PADDING;
int __pyx_v_i;
long __pyx_t_1;
int __pyx_t_2;
int __pyx_t_3;
/* "_state.pxd":32
*
* __init__(const TokenC* sent, int length) nogil:
* cdef int PADDING = 5 # <<<<<<<<<<<<<<
* this._buffer = <int*>calloc(length + (PADDING * 2), sizeof(int))
* this._stack = <int*>calloc(length + (PADDING * 2), sizeof(int))
*/
__pyx_v_PADDING = 5;
/* "_state.pxd":33
* __init__(const TokenC* sent, int length) nogil:
* cdef int PADDING = 5
* this._buffer = <int*>calloc(length + (PADDING * 2), sizeof(int)) # <<<<<<<<<<<<<<
* this._stack = <int*>calloc(length + (PADDING * 2), sizeof(int))
* this.shifted = <bint*>calloc(length + (PADDING * 2), sizeof(bint))
*/
this->_buffer = ((int *)calloc((__pyx_v_length + (__pyx_v_PADDING * 2)), (sizeof(int))));
/* "_state.pxd":34
* cdef int PADDING = 5
* this._buffer = <int*>calloc(length + (PADDING * 2), sizeof(int))
* this._stack = <int*>calloc(length + (PADDING * 2), sizeof(int)) # <<<<<<<<<<<<<<
* this.shifted = <bint*>calloc(length + (PADDING * 2), sizeof(bint))
* this._sent = <TokenC*>calloc(length + (PADDING * 2), sizeof(TokenC))
*/
this->_stack = ((int *)calloc((__pyx_v_length + (__pyx_v_PADDING * 2)), (sizeof(int))));
/* "_state.pxd":35
* this._buffer = <int*>calloc(length + (PADDING * 2), sizeof(int))
* this._stack = <int*>calloc(length + (PADDING * 2), sizeof(int))
* this.shifted = <bint*>calloc(length + (PADDING * 2), sizeof(bint)) # <<<<<<<<<<<<<<
* this._sent = <TokenC*>calloc(length + (PADDING * 2), sizeof(TokenC))
* this._ents = <Entity*>calloc(length + (PADDING * 2), sizeof(Entity))
*/
this->shifted = ((int *)calloc((__pyx_v_length + (__pyx_v_PADDING * 2)), (sizeof(int))));
/* "_state.pxd":36
* this._stack = <int*>calloc(length + (PADDING * 2), sizeof(int))
* this.shifted = <bint*>calloc(length + (PADDING * 2), sizeof(bint))
* this._sent = <TokenC*>calloc(length + (PADDING * 2), sizeof(TokenC)) # <<<<<<<<<<<<<<
* this._ents = <Entity*>calloc(length + (PADDING * 2), sizeof(Entity))
* cdef int i
*/
this->_sent = ((struct __pyx_t_5spacy_7structs_TokenC *)calloc((__pyx_v_length + (__pyx_v_PADDING * 2)), (sizeof(struct __pyx_t_5spacy_7structs_TokenC))));
/* "_state.pxd":37
* this.shifted = <bint*>calloc(length + (PADDING * 2), sizeof(bint))
* this._sent = <TokenC*>calloc(length + (PADDING * 2), sizeof(TokenC))
* this._ents = <Entity*>calloc(length + (PADDING * 2), sizeof(Entity)) # <<<<<<<<<<<<<<
* cdef int i
* for i in range(length + (PADDING * 2)):
*/
this->_ents = ((struct __pyx_t_5spacy_7structs_Entity *)calloc((__pyx_v_length + (__pyx_v_PADDING * 2)), (sizeof(struct __pyx_t_5spacy_7structs_Entity))));
/* "_state.pxd":39
* this._ents = <Entity*>calloc(length + (PADDING * 2), sizeof(Entity))
* cdef int i
* for i in range(length + (PADDING * 2)): # <<<<<<<<<<<<<<
* this._ents[i].end = -1
* this._sent[i].l_edge = i
*/
__pyx_t_1 = (__pyx_v_length + (__pyx_v_PADDING * 2));
for (__pyx_t_2 = 0; __pyx_t_2 < __pyx_t_1; __pyx_t_2+=1) {
__pyx_v_i = __pyx_t_2;
/* "_state.pxd":40
* cdef int i
* for i in range(length + (PADDING * 2)):
* this._ents[i].end = -1 # <<<<<<<<<<<<<<
* this._sent[i].l_edge = i
* this._sent[i].r_edge = i
*/
(this->_ents[__pyx_v_i]).end = -1;
/* "_state.pxd":41
* for i in range(length + (PADDING * 2)):
* this._ents[i].end = -1
* this._sent[i].l_edge = i # <<<<<<<<<<<<<<
* this._sent[i].r_edge = i
* for i in range(PADDING):
*/
(this->_sent[__pyx_v_i]).l_edge = __pyx_v_i;
/* "_state.pxd":42
* this._ents[i].end = -1
* this._sent[i].l_edge = i
* this._sent[i].r_edge = i # <<<<<<<<<<<<<<
* for i in range(PADDING):
* this._sent[i].lex = &EMPTY_LEXEME
*/
(this->_sent[__pyx_v_i]).r_edge = __pyx_v_i;
}
/* "_state.pxd":43
* this._sent[i].l_edge = i
* this._sent[i].r_edge = i
* for i in range(PADDING): # <<<<<<<<<<<<<<
* this._sent[i].lex = &EMPTY_LEXEME
* this._sent += PADDING
*/
__pyx_t_2 = __pyx_v_PADDING;
for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
__pyx_v_i = __pyx_t_3;
/* "_state.pxd":44
* this._sent[i].r_edge = i
* for i in range(PADDING):
* this._sent[i].lex = &EMPTY_LEXEME # <<<<<<<<<<<<<<
* this._sent += PADDING
* this._ents += PADDING
*/
(this->_sent[__pyx_v_i]).lex = (&__pyx_v_5spacy_5vocab_EMPTY_LEXEME);
}
/* "_state.pxd":45
* for i in range(PADDING):
* this._sent[i].lex = &EMPTY_LEXEME
* this._sent += PADDING # <<<<<<<<<<<<<<
* this._ents += PADDING
* this._buffer += PADDING
*/
this->_sent = (this->_sent + __pyx_v_PADDING);
/* "_state.pxd":46
* this._sent[i].lex = &EMPTY_LEXEME
* this._sent += PADDING
* this._ents += PADDING # <<<<<<<<<<<<<<
* this._buffer += PADDING
* this._stack += PADDING
*/
this->_ents = (this->_ents + __pyx_v_PADDING);
/* "_state.pxd":47
* this._sent += PADDING
* this._ents += PADDING
* this._buffer += PADDING # <<<<<<<<<<<<<<
* this._stack += PADDING
* this.shifted += PADDING
*/
this->_buffer = (this->_buffer + __pyx_v_PADDING);
/* "_state.pxd":48
* this._ents += PADDING
* this._buffer += PADDING
* this._stack += PADDING # <<<<<<<<<<<<<<
* this.shifted += PADDING
* this.length = length
*/
this->_stack = (this->_stack + __pyx_v_PADDING);
/* "_state.pxd":49
* this._buffer += PADDING
* this._stack += PADDING
* this.shifted += PADDING # <<<<<<<<<<<<<<
* this.length = length
* this._break = -1
*/
this->shifted = (this->shifted + __pyx_v_PADDING);
/* "_state.pxd":50
* this._stack += PADDING
* this.shifted += PADDING
* this.length = length # <<<<<<<<<<<<<<
* this._break = -1
* this._s_i = 0
*/
this->length = __pyx_v_length;
/* "_state.pxd":51
* this.shifted += PADDING
* this.length = length
* this._break = -1 # <<<<<<<<<<<<<<
* this._s_i = 0
* this._b_i = 0
*/
this->_break = -1;
/* "_state.pxd":52
* this.length = length
* this._break = -1
* this._s_i = 0 # <<<<<<<<<<<<<<
* this._b_i = 0
* this._e_i = 0
*/
this->_s_i = 0;
/* "_state.pxd":53
* this._break = -1
* this._s_i = 0
* this._b_i = 0 # <<<<<<<<<<<<<<
* this._e_i = 0
* for i in range(length):
*/
this->_b_i = 0;
/* "_state.pxd":54
* this._s_i = 0
* this._b_i = 0
* this._e_i = 0 # <<<<<<<<<<<<<<
* for i in range(length):
* this._buffer[i] = i
*/
this->_e_i = 0;
/* "_state.pxd":55
* this._b_i = 0
* this._e_i = 0
* for i in range(length): # <<<<<<<<<<<<<<
* this._buffer[i] = i
* memset(&this._empty_token, 0, sizeof(TokenC))
*/
__pyx_t_2 = __pyx_v_length;
for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
__pyx_v_i = __pyx_t_3;
/* "_state.pxd":56
* this._e_i = 0
* for i in range(length):
* this._buffer[i] = i # <<<<<<<<<<<<<<
* memset(&this._empty_token, 0, sizeof(TokenC))
* this._empty_token.lex = &EMPTY_LEXEME
*/
(this->_buffer[__pyx_v_i]) = __pyx_v_i;
}
/* "_state.pxd":57
* for i in range(length):
* this._buffer[i] = i
* memset(&this._empty_token, 0, sizeof(TokenC)) # <<<<<<<<<<<<<<
* this._empty_token.lex = &EMPTY_LEXEME
* for i in range(length):
*/
memset((&this->_empty_token), 0, (sizeof(struct __pyx_t_5spacy_7structs_TokenC)));
/* "_state.pxd":58
* this._buffer[i] = i
* memset(&this._empty_token, 0, sizeof(TokenC))
* this._empty_token.lex = &EMPTY_LEXEME # <<<<<<<<<<<<<<
* for i in range(length):
* this._sent[i] = sent[i]
*/
this->_empty_token.lex = (&__pyx_v_5spacy_5vocab_EMPTY_LEXEME);
/* "_state.pxd":59
* memset(&this._empty_token, 0, sizeof(TokenC))
* this._empty_token.lex = &EMPTY_LEXEME
* for i in range(length): # <<<<<<<<<<<<<<
* this._sent[i] = sent[i]
* this._buffer[i] = i
*/
__pyx_t_2 = __pyx_v_length;
for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
__pyx_v_i = __pyx_t_3;
/* "_state.pxd":60
* this._empty_token.lex = &EMPTY_LEXEME
* for i in range(length):
* this._sent[i] = sent[i] # <<<<<<<<<<<<<<
* this._buffer[i] = i
* for i in range(length, length+PADDING):
*/
(this->_sent[__pyx_v_i]) = (__pyx_v_sent[__pyx_v_i]);
/* "_state.pxd":61
* for i in range(length):
* this._sent[i] = sent[i]
* this._buffer[i] = i # <<<<<<<<<<<<<<
* for i in range(length, length+PADDING):
* this._sent[i].lex = &EMPTY_LEXEME
*/
(this->_buffer[__pyx_v_i]) = __pyx_v_i;
}
/* "_state.pxd":62
* this._sent[i] = sent[i]
* this._buffer[i] = i
* for i in range(length, length+PADDING): # <<<<<<<<<<<<<<
* this._sent[i].lex = &EMPTY_LEXEME
*
*/
__pyx_t_2 = (__pyx_v_length + __pyx_v_PADDING);
for (__pyx_t_3 = __pyx_v_length; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
__pyx_v_i = __pyx_t_3;
/* "_state.pxd":63
* this._buffer[i] = i
* for i in range(length, length+PADDING):
* this._sent[i].lex = &EMPTY_LEXEME # <<<<<<<<<<<<<<
*
* __dealloc__():
*/
(this->_sent[__pyx_v_i]).lex = (&__pyx_v_5spacy_5vocab_EMPTY_LEXEME);
}
/* "_state.pxd":31
* int _break
*
* __init__(const TokenC* sent, int length) nogil: # <<<<<<<<<<<<<<
* cdef int PADDING = 5
* this._buffer = <int*>calloc(length + (PADDING * 2), sizeof(int))
*/
/* function exit code */
}
/* "_state.pxd":65
* this._sent[i].lex = &EMPTY_LEXEME
*
* __dealloc__(): # <<<<<<<<<<<<<<
* cdef int PADDING = 5
* free(this._sent - PADDING)
*/
__pyx_t_5spacy_6syntax_6_state_StateC::~__pyx_t_5spacy_6syntax_6_state_StateC(void) {
int __pyx_v_PADDING;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("<del>", 0);
/* "_state.pxd":66
*
* __dealloc__():
* cdef int PADDING = 5 # <<<<<<<<<<<<<<
* free(this._sent - PADDING)
* free(this._ents - PADDING)
*/
__pyx_v_PADDING = 5;
/* "_state.pxd":67
* __dealloc__():
* cdef int PADDING = 5
* free(this._sent - PADDING) # <<<<<<<<<<<<<<
* free(this._ents - PADDING)
* free(this._buffer - PADDING)
*/
free((this->_sent - __pyx_v_PADDING));
/* "_state.pxd":68
* cdef int PADDING = 5
* free(this._sent - PADDING)
* free(this._ents - PADDING) # <<<<<<<<<<<<<<
* free(this._buffer - PADDING)
* free(this._stack - PADDING)
*/
free((this->_ents - __pyx_v_PADDING));
/* "_state.pxd":69
* free(this._sent - PADDING)
* free(this._ents - PADDING)
* free(this._buffer - PADDING) # <<<<<<<<<<<<<<
* free(this._stack - PADDING)
* free(this.shifted - PADDING)
*/
free((this->_buffer - __pyx_v_PADDING));
/* "_state.pxd":70
* free(this._ents - PADDING)
* free(this._buffer - PADDING)
* free(this._stack - PADDING) # <<<<<<<<<<<<<<
* free(this.shifted - PADDING)
*
*/
free((this->_stack - __pyx_v_PADDING));
/* "_state.pxd":71
* free(this._buffer - PADDING)
* free(this._stack - PADDING)
* free(this.shifted - PADDING) # <<<<<<<<<<<<<<
*
* int S(int i) nogil const:
*/
free((this->shifted - __pyx_v_PADDING));
/* "_state.pxd":65
* this._sent[i].lex = &EMPTY_LEXEME
*
* __dealloc__(): # <<<<<<<<<<<<<<
* cdef int PADDING = 5
* free(this._sent - PADDING)
*/
/* function exit code */
__Pyx_RefNannyFinishContext();
}
/* "_state.pxd":73
* free(this.shifted - PADDING)
*
* int S(int i) nogil const: # <<<<<<<<<<<<<<
* if i >= this._s_i:
* return -1
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::S(int __pyx_v_i) const {
int __pyx_r;
int __pyx_t_1;
/* "_state.pxd":74
*
* int S(int i) nogil const:
* if i >= this._s_i: # <<<<<<<<<<<<<<
* return -1
* return this._stack[this._s_i - (i+1)]
*/
__pyx_t_1 = ((__pyx_v_i >= this->_s_i) != 0);
if (__pyx_t_1) {
/* "_state.pxd":75
* int S(int i) nogil const:
* if i >= this._s_i:
* return -1 # <<<<<<<<<<<<<<
* return this._stack[this._s_i - (i+1)]
*
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":74
*
* int S(int i) nogil const:
* if i >= this._s_i: # <<<<<<<<<<<<<<
* return -1
* return this._stack[this._s_i - (i+1)]
*/
}
/* "_state.pxd":76
* if i >= this._s_i:
* return -1
* return this._stack[this._s_i - (i+1)] # <<<<<<<<<<<<<<
*
* int B(int i) nogil const:
*/
__pyx_r = (this->_stack[(this->_s_i - (__pyx_v_i + 1))]);
goto __pyx_L0;
/* "_state.pxd":73
* free(this.shifted - PADDING)
*
* int S(int i) nogil const: # <<<<<<<<<<<<<<
* if i >= this._s_i:
* return -1
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":78
* return this._stack[this._s_i - (i+1)]
*
* int B(int i) nogil const: # <<<<<<<<<<<<<<
* if (i + this._b_i) >= this.length:
* return -1
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::B(int __pyx_v_i) const {
int __pyx_r;
int __pyx_t_1;
/* "_state.pxd":79
*
* int B(int i) nogil const:
* if (i + this._b_i) >= this.length: # <<<<<<<<<<<<<<
* return -1
* return this._buffer[this._b_i + i]
*/
__pyx_t_1 = (((__pyx_v_i + this->_b_i) >= this->length) != 0);
if (__pyx_t_1) {
/* "_state.pxd":80
* int B(int i) nogil const:
* if (i + this._b_i) >= this.length:
* return -1 # <<<<<<<<<<<<<<
* return this._buffer[this._b_i + i]
*
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":79
*
* int B(int i) nogil const:
* if (i + this._b_i) >= this.length: # <<<<<<<<<<<<<<
* return -1
* return this._buffer[this._b_i + i]
*/
}
/* "_state.pxd":81
* if (i + this._b_i) >= this.length:
* return -1
* return this._buffer[this._b_i + i] # <<<<<<<<<<<<<<
*
* const TokenC* S_(int i) nogil const:
*/
__pyx_r = (this->_buffer[(this->_b_i + __pyx_v_i)]);
goto __pyx_L0;
/* "_state.pxd":78
* return this._stack[this._s_i - (i+1)]
*
* int B(int i) nogil const: # <<<<<<<<<<<<<<
* if (i + this._b_i) >= this.length:
* return -1
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":83
* return this._buffer[this._b_i + i]
*
* const TokenC* S_(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.S(i))
*
*/
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_t_5spacy_6syntax_6_state_StateC::S_(int __pyx_v_i) const {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "_state.pxd":84
*
* const TokenC* S_(int i) nogil const:
* return this.safe_get(this.S(i)) # <<<<<<<<<<<<<<
*
* const TokenC* B_(int i) nogil const:
*/
__pyx_r = this->safe_get(this->S(__pyx_v_i));
goto __pyx_L0;
/* "_state.pxd":83
* return this._buffer[this._b_i + i]
*
* const TokenC* S_(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.S(i))
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":86
* return this.safe_get(this.S(i))
*
* const TokenC* B_(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.B(i))
*
*/
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_t_5spacy_6syntax_6_state_StateC::B_(int __pyx_v_i) const {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "_state.pxd":87
*
* const TokenC* B_(int i) nogil const:
* return this.safe_get(this.B(i)) # <<<<<<<<<<<<<<
*
* const TokenC* H_(int i) nogil const:
*/
__pyx_r = this->safe_get(this->B(__pyx_v_i));
goto __pyx_L0;
/* "_state.pxd":86
* return this.safe_get(this.S(i))
*
* const TokenC* B_(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.B(i))
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":89
* return this.safe_get(this.B(i))
*
* const TokenC* H_(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.H(i))
*
*/
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_t_5spacy_6syntax_6_state_StateC::H_(int __pyx_v_i) const {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "_state.pxd":90
*
* const TokenC* H_(int i) nogil const:
* return this.safe_get(this.H(i)) # <<<<<<<<<<<<<<
*
* const TokenC* E_(int i) nogil const:
*/
__pyx_r = this->safe_get(this->H(__pyx_v_i));
goto __pyx_L0;
/* "_state.pxd":89
* return this.safe_get(this.B(i))
*
* const TokenC* H_(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.H(i))
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":92
* return this.safe_get(this.H(i))
*
* const TokenC* E_(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.E(i))
*
*/
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_t_5spacy_6syntax_6_state_StateC::E_(int __pyx_v_i) const {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "_state.pxd":93
*
* const TokenC* E_(int i) nogil const:
* return this.safe_get(this.E(i)) # <<<<<<<<<<<<<<
*
* const TokenC* L_(int i, int idx) nogil const:
*/
__pyx_r = this->safe_get(this->E(__pyx_v_i));
goto __pyx_L0;
/* "_state.pxd":92
* return this.safe_get(this.H(i))
*
* const TokenC* E_(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.E(i))
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":95
* return this.safe_get(this.E(i))
*
* const TokenC* L_(int i, int idx) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.L(i, idx))
*
*/
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_t_5spacy_6syntax_6_state_StateC::L_(int __pyx_v_i, int __pyx_v_idx) const {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "_state.pxd":96
*
* const TokenC* L_(int i, int idx) nogil const:
* return this.safe_get(this.L(i, idx)) # <<<<<<<<<<<<<<
*
* const TokenC* R_(int i, int idx) nogil const:
*/
__pyx_r = this->safe_get(this->L(__pyx_v_i, __pyx_v_idx));
goto __pyx_L0;
/* "_state.pxd":95
* return this.safe_get(this.E(i))
*
* const TokenC* L_(int i, int idx) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.L(i, idx))
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":98
* return this.safe_get(this.L(i, idx))
*
* const TokenC* R_(int i, int idx) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.R(i, idx))
*
*/
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_t_5spacy_6syntax_6_state_StateC::R_(int __pyx_v_i, int __pyx_v_idx) const {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "_state.pxd":99
*
* const TokenC* R_(int i, int idx) nogil const:
* return this.safe_get(this.R(i, idx)) # <<<<<<<<<<<<<<
*
* const TokenC* safe_get(int i) nogil const:
*/
__pyx_r = this->safe_get(this->R(__pyx_v_i, __pyx_v_idx));
goto __pyx_L0;
/* "_state.pxd":98
* return this.safe_get(this.L(i, idx))
*
* const TokenC* R_(int i, int idx) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(this.R(i, idx))
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":101
* return this.safe_get(this.R(i, idx))
*
* const TokenC* safe_get(int i) nogil const: # <<<<<<<<<<<<<<
* if i < 0 or i >= this.length:
* return &this._empty_token
*/
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_t_5spacy_6syntax_6_state_StateC::safe_get(int __pyx_v_i) const {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
int __pyx_t_1;
int __pyx_t_2;
/* "_state.pxd":102
*
* const TokenC* safe_get(int i) nogil const:
* if i < 0 or i >= this.length: # <<<<<<<<<<<<<<
* return &this._empty_token
* else:
*/
__pyx_t_2 = ((__pyx_v_i < 0) != 0);
if (!__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L4_bool_binop_done;
}
__pyx_t_2 = ((__pyx_v_i >= this->length) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
/* "_state.pxd":103
* const TokenC* safe_get(int i) nogil const:
* if i < 0 or i >= this.length:
* return &this._empty_token # <<<<<<<<<<<<<<
* else:
* return &this._sent[i]
*/
__pyx_r = (&this->_empty_token);
goto __pyx_L0;
/* "_state.pxd":102
*
* const TokenC* safe_get(int i) nogil const:
* if i < 0 or i >= this.length: # <<<<<<<<<<<<<<
* return &this._empty_token
* else:
*/
}
/* "_state.pxd":105
* return &this._empty_token
* else:
* return &this._sent[i] # <<<<<<<<<<<<<<
*
* int H(int i) nogil const:
*/
/*else*/ {
__pyx_r = (&(this->_sent[__pyx_v_i]));
goto __pyx_L0;
}
/* "_state.pxd":101
* return this.safe_get(this.R(i, idx))
*
* const TokenC* safe_get(int i) nogil const: # <<<<<<<<<<<<<<
* if i < 0 or i >= this.length:
* return &this._empty_token
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":107
* return &this._sent[i]
*
* int H(int i) nogil const: # <<<<<<<<<<<<<<
* if i < 0 or i >= this.length:
* return -1
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::H(int __pyx_v_i) const {
int __pyx_r;
int __pyx_t_1;
int __pyx_t_2;
/* "_state.pxd":108
*
* int H(int i) nogil const:
* if i < 0 or i >= this.length: # <<<<<<<<<<<<<<
* return -1
* return this._sent[i].head + i
*/
__pyx_t_2 = ((__pyx_v_i < 0) != 0);
if (!__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L4_bool_binop_done;
}
__pyx_t_2 = ((__pyx_v_i >= this->length) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
/* "_state.pxd":109
* int H(int i) nogil const:
* if i < 0 or i >= this.length:
* return -1 # <<<<<<<<<<<<<<
* return this._sent[i].head + i
*
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":108
*
* int H(int i) nogil const:
* if i < 0 or i >= this.length: # <<<<<<<<<<<<<<
* return -1
* return this._sent[i].head + i
*/
}
/* "_state.pxd":110
* if i < 0 or i >= this.length:
* return -1
* return this._sent[i].head + i # <<<<<<<<<<<<<<
*
* int E(int i) nogil const:
*/
__pyx_r = ((this->_sent[__pyx_v_i]).head + __pyx_v_i);
goto __pyx_L0;
/* "_state.pxd":107
* return &this._sent[i]
*
* int H(int i) nogil const: # <<<<<<<<<<<<<<
* if i < 0 or i >= this.length:
* return -1
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":112
* return this._sent[i].head + i
*
* int E(int i) nogil const: # <<<<<<<<<<<<<<
* if this._e_i <= 0 or this._e_i >= this.length:
* return 0
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::E(int __pyx_v_i) const {
int __pyx_r;
int __pyx_t_1;
int __pyx_t_2;
/* "_state.pxd":113
*
* int E(int i) nogil const:
* if this._e_i <= 0 or this._e_i >= this.length: # <<<<<<<<<<<<<<
* return 0
* if i < 0 or i >= this._e_i:
*/
__pyx_t_2 = ((this->_e_i <= 0) != 0);
if (!__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L4_bool_binop_done;
}
__pyx_t_2 = ((this->_e_i >= this->length) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
/* "_state.pxd":114
* int E(int i) nogil const:
* if this._e_i <= 0 or this._e_i >= this.length:
* return 0 # <<<<<<<<<<<<<<
* if i < 0 or i >= this._e_i:
* return 0
*/
__pyx_r = 0;
goto __pyx_L0;
/* "_state.pxd":113
*
* int E(int i) nogil const:
* if this._e_i <= 0 or this._e_i >= this.length: # <<<<<<<<<<<<<<
* return 0
* if i < 0 or i >= this._e_i:
*/
}
/* "_state.pxd":115
* if this._e_i <= 0 or this._e_i >= this.length:
* return 0
* if i < 0 or i >= this._e_i: # <<<<<<<<<<<<<<
* return 0
* return this._ents[this._e_i - (i+1)].start
*/
__pyx_t_2 = ((__pyx_v_i < 0) != 0);
if (!__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L7_bool_binop_done;
}
__pyx_t_2 = ((__pyx_v_i >= this->_e_i) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L7_bool_binop_done:;
if (__pyx_t_1) {
/* "_state.pxd":116
* return 0
* if i < 0 or i >= this._e_i:
* return 0 # <<<<<<<<<<<<<<
* return this._ents[this._e_i - (i+1)].start
*
*/
__pyx_r = 0;
goto __pyx_L0;
/* "_state.pxd":115
* if this._e_i <= 0 or this._e_i >= this.length:
* return 0
* if i < 0 or i >= this._e_i: # <<<<<<<<<<<<<<
* return 0
* return this._ents[this._e_i - (i+1)].start
*/
}
/* "_state.pxd":117
* if i < 0 or i >= this._e_i:
* return 0
* return this._ents[this._e_i - (i+1)].start # <<<<<<<<<<<<<<
*
* int L(int i, int idx) nogil const:
*/
__pyx_r = (this->_ents[(this->_e_i - (__pyx_v_i + 1))]).start;
goto __pyx_L0;
/* "_state.pxd":112
* return this._sent[i].head + i
*
* int E(int i) nogil const: # <<<<<<<<<<<<<<
* if this._e_i <= 0 or this._e_i >= this.length:
* return 0
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":119
* return this._ents[this._e_i - (i+1)].start
*
* int L(int i, int idx) nogil const: # <<<<<<<<<<<<<<
* if idx < 1:
* return -1
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::L(int __pyx_v_i, int __pyx_v_idx) const {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_v_target;
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_v_ptr;
int __pyx_r;
int __pyx_t_1;
int __pyx_t_2;
/* "_state.pxd":120
*
* int L(int i, int idx) nogil const:
* if idx < 1: # <<<<<<<<<<<<<<
* return -1
* if i < 0 or i >= this.length:
*/
__pyx_t_1 = ((__pyx_v_idx < 1) != 0);
if (__pyx_t_1) {
/* "_state.pxd":121
* int L(int i, int idx) nogil const:
* if idx < 1:
* return -1 # <<<<<<<<<<<<<<
* if i < 0 or i >= this.length:
* return -1
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":120
*
* int L(int i, int idx) nogil const:
* if idx < 1: # <<<<<<<<<<<<<<
* return -1
* if i < 0 or i >= this.length:
*/
}
/* "_state.pxd":122
* if idx < 1:
* return -1
* if i < 0 or i >= this.length: # <<<<<<<<<<<<<<
* return -1
* cdef const TokenC* target = &this._sent[i]
*/
__pyx_t_2 = ((__pyx_v_i < 0) != 0);
if (!__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L5_bool_binop_done;
}
__pyx_t_2 = ((__pyx_v_i >= this->length) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L5_bool_binop_done:;
if (__pyx_t_1) {
/* "_state.pxd":123
* return -1
* if i < 0 or i >= this.length:
* return -1 # <<<<<<<<<<<<<<
* cdef const TokenC* target = &this._sent[i]
* if target.l_kids < <uint32_t>idx:
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":122
* if idx < 1:
* return -1
* if i < 0 or i >= this.length: # <<<<<<<<<<<<<<
* return -1
* cdef const TokenC* target = &this._sent[i]
*/
}
/* "_state.pxd":124
* if i < 0 or i >= this.length:
* return -1
* cdef const TokenC* target = &this._sent[i] # <<<<<<<<<<<<<<
* if target.l_kids < <uint32_t>idx:
* return -1
*/
__pyx_v_target = (&(this->_sent[__pyx_v_i]));
/* "_state.pxd":125
* return -1
* cdef const TokenC* target = &this._sent[i]
* if target.l_kids < <uint32_t>idx: # <<<<<<<<<<<<<<
* return -1
* cdef const TokenC* ptr = &this._sent[target.l_edge]
*/
__pyx_t_1 = ((__pyx_v_target->l_kids < ((uint32_t)__pyx_v_idx)) != 0);
if (__pyx_t_1) {
/* "_state.pxd":126
* cdef const TokenC* target = &this._sent[i]
* if target.l_kids < <uint32_t>idx:
* return -1 # <<<<<<<<<<<<<<
* cdef const TokenC* ptr = &this._sent[target.l_edge]
*
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":125
* return -1
* cdef const TokenC* target = &this._sent[i]
* if target.l_kids < <uint32_t>idx: # <<<<<<<<<<<<<<
* return -1
* cdef const TokenC* ptr = &this._sent[target.l_edge]
*/
}
/* "_state.pxd":127
* if target.l_kids < <uint32_t>idx:
* return -1
* cdef const TokenC* ptr = &this._sent[target.l_edge] # <<<<<<<<<<<<<<
*
* while ptr < target:
*/
__pyx_v_ptr = (&(this->_sent[__pyx_v_target->l_edge]));
/* "_state.pxd":129
* cdef const TokenC* ptr = &this._sent[target.l_edge]
*
* while ptr < target: # <<<<<<<<<<<<<<
* # If this head is still to the right of us, we can skip to it
* # No token that's between this token and this head could be our
*/
while (1) {
__pyx_t_1 = ((__pyx_v_ptr < __pyx_v_target) != 0);
if (!__pyx_t_1) break;
/* "_state.pxd":133
* # No token that's between this token and this head could be our
* # child.
* if (ptr.head >= 1) and (ptr + ptr.head) < target: # <<<<<<<<<<<<<<
* ptr += ptr.head
*
*/
__pyx_t_2 = ((__pyx_v_ptr->head >= 1) != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L11_bool_binop_done;
}
__pyx_t_2 = (((__pyx_v_ptr + __pyx_v_ptr->head) < __pyx_v_target) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L11_bool_binop_done:;
if (__pyx_t_1) {
/* "_state.pxd":134
* # child.
* if (ptr.head >= 1) and (ptr + ptr.head) < target:
* ptr += ptr.head # <<<<<<<<<<<<<<
*
* elif ptr + ptr.head == target:
*/
__pyx_v_ptr = (__pyx_v_ptr + __pyx_v_ptr->head);
/* "_state.pxd":133
* # No token that's between this token and this head could be our
* # child.
* if (ptr.head >= 1) and (ptr + ptr.head) < target: # <<<<<<<<<<<<<<
* ptr += ptr.head
*
*/
goto __pyx_L10;
}
/* "_state.pxd":136
* ptr += ptr.head
*
* elif ptr + ptr.head == target: # <<<<<<<<<<<<<<
* idx -= 1
* if idx == 0:
*/
__pyx_t_1 = (((__pyx_v_ptr + __pyx_v_ptr->head) == __pyx_v_target) != 0);
if (__pyx_t_1) {
/* "_state.pxd":137
*
* elif ptr + ptr.head == target:
* idx -= 1 # <<<<<<<<<<<<<<
* if idx == 0:
* return ptr - this._sent
*/
__pyx_v_idx = (__pyx_v_idx - 1);
/* "_state.pxd":138
* elif ptr + ptr.head == target:
* idx -= 1
* if idx == 0: # <<<<<<<<<<<<<<
* return ptr - this._sent
* ptr += 1
*/
__pyx_t_1 = ((__pyx_v_idx == 0) != 0);
if (__pyx_t_1) {
/* "_state.pxd":139
* idx -= 1
* if idx == 0:
* return ptr - this._sent # <<<<<<<<<<<<<<
* ptr += 1
* else:
*/
__pyx_r = (__pyx_v_ptr - this->_sent);
goto __pyx_L0;
/* "_state.pxd":138
* elif ptr + ptr.head == target:
* idx -= 1
* if idx == 0: # <<<<<<<<<<<<<<
* return ptr - this._sent
* ptr += 1
*/
}
/* "_state.pxd":140
* if idx == 0:
* return ptr - this._sent
* ptr += 1 # <<<<<<<<<<<<<<
* else:
* ptr += 1
*/
__pyx_v_ptr = (__pyx_v_ptr + 1);
/* "_state.pxd":136
* ptr += ptr.head
*
* elif ptr + ptr.head == target: # <<<<<<<<<<<<<<
* idx -= 1
* if idx == 0:
*/
goto __pyx_L10;
}
/* "_state.pxd":142
* ptr += 1
* else:
* ptr += 1 # <<<<<<<<<<<<<<
* return -1
*
*/
/*else*/ {
__pyx_v_ptr = (__pyx_v_ptr + 1);
}
__pyx_L10:;
}
/* "_state.pxd":143
* else:
* ptr += 1
* return -1 # <<<<<<<<<<<<<<
*
* int R(int i, int idx) nogil const:
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":119
* return this._ents[this._e_i - (i+1)].start
*
* int L(int i, int idx) nogil const: # <<<<<<<<<<<<<<
* if idx < 1:
* return -1
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":145
* return -1
*
* int R(int i, int idx) nogil const: # <<<<<<<<<<<<<<
* if idx < 1:
* return -1
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::R(int __pyx_v_i, int __pyx_v_idx) const {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_v_target;
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_v_ptr;
int __pyx_r;
int __pyx_t_1;
int __pyx_t_2;
/* "_state.pxd":146
*
* int R(int i, int idx) nogil const:
* if idx < 1: # <<<<<<<<<<<<<<
* return -1
* if i < 0 or i >= this.length:
*/
__pyx_t_1 = ((__pyx_v_idx < 1) != 0);
if (__pyx_t_1) {
/* "_state.pxd":147
* int R(int i, int idx) nogil const:
* if idx < 1:
* return -1 # <<<<<<<<<<<<<<
* if i < 0 or i >= this.length:
* return -1
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":146
*
* int R(int i, int idx) nogil const:
* if idx < 1: # <<<<<<<<<<<<<<
* return -1
* if i < 0 or i >= this.length:
*/
}
/* "_state.pxd":148
* if idx < 1:
* return -1
* if i < 0 or i >= this.length: # <<<<<<<<<<<<<<
* return -1
* cdef const TokenC* target = &this._sent[i]
*/
__pyx_t_2 = ((__pyx_v_i < 0) != 0);
if (!__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L5_bool_binop_done;
}
__pyx_t_2 = ((__pyx_v_i >= this->length) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L5_bool_binop_done:;
if (__pyx_t_1) {
/* "_state.pxd":149
* return -1
* if i < 0 or i >= this.length:
* return -1 # <<<<<<<<<<<<<<
* cdef const TokenC* target = &this._sent[i]
* if target.r_kids < <uint32_t>idx:
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":148
* if idx < 1:
* return -1
* if i < 0 or i >= this.length: # <<<<<<<<<<<<<<
* return -1
* cdef const TokenC* target = &this._sent[i]
*/
}
/* "_state.pxd":150
* if i < 0 or i >= this.length:
* return -1
* cdef const TokenC* target = &this._sent[i] # <<<<<<<<<<<<<<
* if target.r_kids < <uint32_t>idx:
* return -1
*/
__pyx_v_target = (&(this->_sent[__pyx_v_i]));
/* "_state.pxd":151
* return -1
* cdef const TokenC* target = &this._sent[i]
* if target.r_kids < <uint32_t>idx: # <<<<<<<<<<<<<<
* return -1
* cdef const TokenC* ptr = &this._sent[target.r_edge]
*/
__pyx_t_1 = ((__pyx_v_target->r_kids < ((uint32_t)__pyx_v_idx)) != 0);
if (__pyx_t_1) {
/* "_state.pxd":152
* cdef const TokenC* target = &this._sent[i]
* if target.r_kids < <uint32_t>idx:
* return -1 # <<<<<<<<<<<<<<
* cdef const TokenC* ptr = &this._sent[target.r_edge]
* while ptr > target:
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":151
* return -1
* cdef const TokenC* target = &this._sent[i]
* if target.r_kids < <uint32_t>idx: # <<<<<<<<<<<<<<
* return -1
* cdef const TokenC* ptr = &this._sent[target.r_edge]
*/
}
/* "_state.pxd":153
* if target.r_kids < <uint32_t>idx:
* return -1
* cdef const TokenC* ptr = &this._sent[target.r_edge] # <<<<<<<<<<<<<<
* while ptr > target:
* # If this head is still to the right of us, we can skip to it
*/
__pyx_v_ptr = (&(this->_sent[__pyx_v_target->r_edge]));
/* "_state.pxd":154
* return -1
* cdef const TokenC* ptr = &this._sent[target.r_edge]
* while ptr > target: # <<<<<<<<<<<<<<
* # If this head is still to the right of us, we can skip to it
* # No token that's between this token and this head could be our
*/
while (1) {
__pyx_t_1 = ((__pyx_v_ptr > __pyx_v_target) != 0);
if (!__pyx_t_1) break;
/* "_state.pxd":158
* # No token that's between this token and this head could be our
* # child.
* if (ptr.head < 0) and ((ptr + ptr.head) > target): # <<<<<<<<<<<<<<
* ptr += ptr.head
* elif ptr + ptr.head == target:
*/
__pyx_t_2 = ((__pyx_v_ptr->head < 0) != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L11_bool_binop_done;
}
__pyx_t_2 = (((__pyx_v_ptr + __pyx_v_ptr->head) > __pyx_v_target) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L11_bool_binop_done:;
if (__pyx_t_1) {
/* "_state.pxd":159
* # child.
* if (ptr.head < 0) and ((ptr + ptr.head) > target):
* ptr += ptr.head # <<<<<<<<<<<<<<
* elif ptr + ptr.head == target:
* idx -= 1
*/
__pyx_v_ptr = (__pyx_v_ptr + __pyx_v_ptr->head);
/* "_state.pxd":158
* # No token that's between this token and this head could be our
* # child.
* if (ptr.head < 0) and ((ptr + ptr.head) > target): # <<<<<<<<<<<<<<
* ptr += ptr.head
* elif ptr + ptr.head == target:
*/
goto __pyx_L10;
}
/* "_state.pxd":160
* if (ptr.head < 0) and ((ptr + ptr.head) > target):
* ptr += ptr.head
* elif ptr + ptr.head == target: # <<<<<<<<<<<<<<
* idx -= 1
* if idx == 0:
*/
__pyx_t_1 = (((__pyx_v_ptr + __pyx_v_ptr->head) == __pyx_v_target) != 0);
if (__pyx_t_1) {
/* "_state.pxd":161
* ptr += ptr.head
* elif ptr + ptr.head == target:
* idx -= 1 # <<<<<<<<<<<<<<
* if idx == 0:
* return ptr - this._sent
*/
__pyx_v_idx = (__pyx_v_idx - 1);
/* "_state.pxd":162
* elif ptr + ptr.head == target:
* idx -= 1
* if idx == 0: # <<<<<<<<<<<<<<
* return ptr - this._sent
* ptr -= 1
*/
__pyx_t_1 = ((__pyx_v_idx == 0) != 0);
if (__pyx_t_1) {
/* "_state.pxd":163
* idx -= 1
* if idx == 0:
* return ptr - this._sent # <<<<<<<<<<<<<<
* ptr -= 1
* else:
*/
__pyx_r = (__pyx_v_ptr - this->_sent);
goto __pyx_L0;
/* "_state.pxd":162
* elif ptr + ptr.head == target:
* idx -= 1
* if idx == 0: # <<<<<<<<<<<<<<
* return ptr - this._sent
* ptr -= 1
*/
}
/* "_state.pxd":164
* if idx == 0:
* return ptr - this._sent
* ptr -= 1 # <<<<<<<<<<<<<<
* else:
* ptr -= 1
*/
__pyx_v_ptr = (__pyx_v_ptr - 1);
/* "_state.pxd":160
* if (ptr.head < 0) and ((ptr + ptr.head) > target):
* ptr += ptr.head
* elif ptr + ptr.head == target: # <<<<<<<<<<<<<<
* idx -= 1
* if idx == 0:
*/
goto __pyx_L10;
}
/* "_state.pxd":166
* ptr -= 1
* else:
* ptr -= 1 # <<<<<<<<<<<<<<
* return -1
*
*/
/*else*/ {
__pyx_v_ptr = (__pyx_v_ptr - 1);
}
__pyx_L10:;
}
/* "_state.pxd":167
* else:
* ptr -= 1
* return -1 # <<<<<<<<<<<<<<
*
* bint empty() nogil const:
*/
__pyx_r = -1;
goto __pyx_L0;
/* "_state.pxd":145
* return -1
*
* int R(int i, int idx) nogil const: # <<<<<<<<<<<<<<
* if idx < 1:
* return -1
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":169
* return -1
*
* bint empty() nogil const: # <<<<<<<<<<<<<<
* return this._s_i <= 0
*
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::empty(void) const {
int __pyx_r;
/* "_state.pxd":170
*
* bint empty() nogil const:
* return this._s_i <= 0 # <<<<<<<<<<<<<<
*
* bint eol() nogil const:
*/
__pyx_r = (this->_s_i <= 0);
goto __pyx_L0;
/* "_state.pxd":169
* return -1
*
* bint empty() nogil const: # <<<<<<<<<<<<<<
* return this._s_i <= 0
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":172
* return this._s_i <= 0
*
* bint eol() nogil const: # <<<<<<<<<<<<<<
* return this.buffer_length() == 0
*
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::eol(void) const {
int __pyx_r;
/* "_state.pxd":173
*
* bint eol() nogil const:
* return this.buffer_length() == 0 # <<<<<<<<<<<<<<
*
* bint at_break() nogil const:
*/
__pyx_r = (this->buffer_length() == 0);
goto __pyx_L0;
/* "_state.pxd":172
* return this._s_i <= 0
*
* bint eol() nogil const: # <<<<<<<<<<<<<<
* return this.buffer_length() == 0
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":175
* return this.buffer_length() == 0
*
* bint at_break() nogil const: # <<<<<<<<<<<<<<
* return this._break != -1
*
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::at_break(void) const {
int __pyx_r;
/* "_state.pxd":176
*
* bint at_break() nogil const:
* return this._break != -1 # <<<<<<<<<<<<<<
*
* bint is_final() nogil const:
*/
__pyx_r = (this->_break != -1L);
goto __pyx_L0;
/* "_state.pxd":175
* return this.buffer_length() == 0
*
* bint at_break() nogil const: # <<<<<<<<<<<<<<
* return this._break != -1
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":178
* return this._break != -1
*
* bint is_final() nogil const: # <<<<<<<<<<<<<<
* return this.stack_depth() <= 0 and this._b_i >= this.length
*
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::is_final(void) const {
int __pyx_r;
int __pyx_t_1;
int __pyx_t_2;
/* "_state.pxd":179
*
* bint is_final() nogil const:
* return this.stack_depth() <= 0 and this._b_i >= this.length # <<<<<<<<<<<<<<
*
* bint has_head(int i) nogil const:
*/
__pyx_t_2 = ((this->stack_depth() <= 0) != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L3_bool_binop_done;
}
__pyx_t_2 = ((this->_b_i >= this->length) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L3_bool_binop_done:;
__pyx_r = __pyx_t_1;
goto __pyx_L0;
/* "_state.pxd":178
* return this._break != -1
*
* bint is_final() nogil const: # <<<<<<<<<<<<<<
* return this.stack_depth() <= 0 and this._b_i >= this.length
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":181
* return this.stack_depth() <= 0 and this._b_i >= this.length
*
* bint has_head(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(i).head != 0
*
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::has_head(int __pyx_v_i) const {
int __pyx_r;
/* "_state.pxd":182
*
* bint has_head(int i) nogil const:
* return this.safe_get(i).head != 0 # <<<<<<<<<<<<<<
*
* int n_L(int i) nogil const:
*/
__pyx_r = (this->safe_get(__pyx_v_i)->head != 0);
goto __pyx_L0;
/* "_state.pxd":181
* return this.stack_depth() <= 0 and this._b_i >= this.length
*
* bint has_head(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(i).head != 0
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":184
* return this.safe_get(i).head != 0
*
* int n_L(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(i).l_kids
*
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::n_L(int __pyx_v_i) const {
int __pyx_r;
/* "_state.pxd":185
*
* int n_L(int i) nogil const:
* return this.safe_get(i).l_kids # <<<<<<<<<<<<<<
*
* int n_R(int i) nogil const:
*/
__pyx_r = this->safe_get(__pyx_v_i)->l_kids;
goto __pyx_L0;
/* "_state.pxd":184
* return this.safe_get(i).head != 0
*
* int n_L(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(i).l_kids
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":187
* return this.safe_get(i).l_kids
*
* int n_R(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(i).r_kids
*
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::n_R(int __pyx_v_i) const {
int __pyx_r;
/* "_state.pxd":188
*
* int n_R(int i) nogil const:
* return this.safe_get(i).r_kids # <<<<<<<<<<<<<<
*
* bint stack_is_connected() nogil const:
*/
__pyx_r = this->safe_get(__pyx_v_i)->r_kids;
goto __pyx_L0;
/* "_state.pxd":187
* return this.safe_get(i).l_kids
*
* int n_R(int i) nogil const: # <<<<<<<<<<<<<<
* return this.safe_get(i).r_kids
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":190
* return this.safe_get(i).r_kids
*
* bint stack_is_connected() nogil const: # <<<<<<<<<<<<<<
* return False
*
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::stack_is_connected(void) const {
int __pyx_r;
/* "_state.pxd":191
*
* bint stack_is_connected() nogil const:
* return False # <<<<<<<<<<<<<<
*
* bint entity_is_open() nogil const:
*/
__pyx_r = 0;
goto __pyx_L0;
/* "_state.pxd":190
* return this.safe_get(i).r_kids
*
* bint stack_is_connected() nogil const: # <<<<<<<<<<<<<<
* return False
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":193
* return False
*
* bint entity_is_open() nogil const: # <<<<<<<<<<<<<<
* if this._e_i < 1:
* return False
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::entity_is_open(void) const {
int __pyx_r;
int __pyx_t_1;
/* "_state.pxd":194
*
* bint entity_is_open() nogil const:
* if this._e_i < 1: # <<<<<<<<<<<<<<
* return False
* return this._ents[this._e_i-1].end == -1
*/
__pyx_t_1 = ((this->_e_i < 1) != 0);
if (__pyx_t_1) {
/* "_state.pxd":195
* bint entity_is_open() nogil const:
* if this._e_i < 1:
* return False # <<<<<<<<<<<<<<
* return this._ents[this._e_i-1].end == -1
*
*/
__pyx_r = 0;
goto __pyx_L0;
/* "_state.pxd":194
*
* bint entity_is_open() nogil const:
* if this._e_i < 1: # <<<<<<<<<<<<<<
* return False
* return this._ents[this._e_i-1].end == -1
*/
}
/* "_state.pxd":196
* if this._e_i < 1:
* return False
* return this._ents[this._e_i-1].end == -1 # <<<<<<<<<<<<<<
*
* int stack_depth() nogil const:
*/
__pyx_r = ((this->_ents[(this->_e_i - 1)]).end == -1L);
goto __pyx_L0;
/* "_state.pxd":193
* return False
*
* bint entity_is_open() nogil const: # <<<<<<<<<<<<<<
* if this._e_i < 1:
* return False
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":198
* return this._ents[this._e_i-1].end == -1
*
* int stack_depth() nogil const: # <<<<<<<<<<<<<<
* return this._s_i
*
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::stack_depth(void) const {
int __pyx_r;
/* "_state.pxd":199
*
* int stack_depth() nogil const:
* return this._s_i # <<<<<<<<<<<<<<
*
* int buffer_length() nogil const:
*/
__pyx_r = this->_s_i;
goto __pyx_L0;
/* "_state.pxd":198
* return this._ents[this._e_i-1].end == -1
*
* int stack_depth() nogil const: # <<<<<<<<<<<<<<
* return this._s_i
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":201
* return this._s_i
*
* int buffer_length() nogil const: # <<<<<<<<<<<<<<
* if this._break != -1:
* return this._break - this._b_i
*/
int __pyx_t_5spacy_6syntax_6_state_StateC::buffer_length(void) const {
int __pyx_r;
int __pyx_t_1;
/* "_state.pxd":202
*
* int buffer_length() nogil const:
* if this._break != -1: # <<<<<<<<<<<<<<
* return this._break - this._b_i
* else:
*/
__pyx_t_1 = ((this->_break != -1L) != 0);
if (__pyx_t_1) {
/* "_state.pxd":203
* int buffer_length() nogil const:
* if this._break != -1:
* return this._break - this._b_i # <<<<<<<<<<<<<<
* else:
* return this.length - this._b_i
*/
__pyx_r = (this->_break - this->_b_i);
goto __pyx_L0;
/* "_state.pxd":202
*
* int buffer_length() nogil const:
* if this._break != -1: # <<<<<<<<<<<<<<
* return this._break - this._b_i
* else:
*/
}
/* "_state.pxd":205
* return this._break - this._b_i
* else:
* return this.length - this._b_i # <<<<<<<<<<<<<<
*
* uint64_t hash() nogil const:
*/
/*else*/ {
__pyx_r = (this->length - this->_b_i);
goto __pyx_L0;
}
/* "_state.pxd":201
* return this._s_i
*
* int buffer_length() nogil const: # <<<<<<<<<<<<<<
* if this._break != -1:
* return this._break - this._b_i
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":207
* return this.length - this._b_i
*
* uint64_t hash() nogil const: # <<<<<<<<<<<<<<
* cdef TokenC[11] sig
* sig[0] = this.S_(2)[0]
*/
uint64_t __pyx_t_5spacy_6syntax_6_state_StateC::hash(void) const {
struct __pyx_t_5spacy_7structs_TokenC __pyx_v_sig[11];
uint64_t __pyx_r;
/* "_state.pxd":209
* uint64_t hash() nogil const:
* cdef TokenC[11] sig
* sig[0] = this.S_(2)[0] # <<<<<<<<<<<<<<
* sig[1] = this.S_(1)[0]
* sig[2] = this.R_(this.S(1), 1)[0]
*/
(__pyx_v_sig[0]) = (this->S_(2)[0]);
/* "_state.pxd":210
* cdef TokenC[11] sig
* sig[0] = this.S_(2)[0]
* sig[1] = this.S_(1)[0] # <<<<<<<<<<<<<<
* sig[2] = this.R_(this.S(1), 1)[0]
* sig[3] = this.L_(this.S(0), 1)[0]
*/
(__pyx_v_sig[1]) = (this->S_(1)[0]);
/* "_state.pxd":211
* sig[0] = this.S_(2)[0]
* sig[1] = this.S_(1)[0]
* sig[2] = this.R_(this.S(1), 1)[0] # <<<<<<<<<<<<<<
* sig[3] = this.L_(this.S(0), 1)[0]
* sig[4] = this.L_(this.S(0), 2)[0]
*/
(__pyx_v_sig[2]) = (this->R_(this->S(1), 1)[0]);
/* "_state.pxd":212
* sig[1] = this.S_(1)[0]
* sig[2] = this.R_(this.S(1), 1)[0]
* sig[3] = this.L_(this.S(0), 1)[0] # <<<<<<<<<<<<<<
* sig[4] = this.L_(this.S(0), 2)[0]
* sig[5] = this.S_(0)[0]
*/
(__pyx_v_sig[3]) = (this->L_(this->S(0), 1)[0]);
/* "_state.pxd":213
* sig[2] = this.R_(this.S(1), 1)[0]
* sig[3] = this.L_(this.S(0), 1)[0]
* sig[4] = this.L_(this.S(0), 2)[0] # <<<<<<<<<<<<<<
* sig[5] = this.S_(0)[0]
* sig[6] = this.R_(this.S(0), 2)[0]
*/
(__pyx_v_sig[4]) = (this->L_(this->S(0), 2)[0]);
/* "_state.pxd":214
* sig[3] = this.L_(this.S(0), 1)[0]
* sig[4] = this.L_(this.S(0), 2)[0]
* sig[5] = this.S_(0)[0] # <<<<<<<<<<<<<<
* sig[6] = this.R_(this.S(0), 2)[0]
* sig[7] = this.R_(this.S(0), 1)[0]
*/
(__pyx_v_sig[5]) = (this->S_(0)[0]);
/* "_state.pxd":215
* sig[4] = this.L_(this.S(0), 2)[0]
* sig[5] = this.S_(0)[0]
* sig[6] = this.R_(this.S(0), 2)[0] # <<<<<<<<<<<<<<
* sig[7] = this.R_(this.S(0), 1)[0]
* sig[8] = this.B_(0)[0]
*/
(__pyx_v_sig[6]) = (this->R_(this->S(0), 2)[0]);
/* "_state.pxd":216
* sig[5] = this.S_(0)[0]
* sig[6] = this.R_(this.S(0), 2)[0]
* sig[7] = this.R_(this.S(0), 1)[0] # <<<<<<<<<<<<<<
* sig[8] = this.B_(0)[0]
* sig[9] = this.E_(0)[0]
*/
(__pyx_v_sig[7]) = (this->R_(this->S(0), 1)[0]);
/* "_state.pxd":217
* sig[6] = this.R_(this.S(0), 2)[0]
* sig[7] = this.R_(this.S(0), 1)[0]
* sig[8] = this.B_(0)[0] # <<<<<<<<<<<<<<
* sig[9] = this.E_(0)[0]
* sig[10] = this.E_(1)[0]
*/
(__pyx_v_sig[8]) = (this->B_(0)[0]);
/* "_state.pxd":218
* sig[7] = this.R_(this.S(0), 1)[0]
* sig[8] = this.B_(0)[0]
* sig[9] = this.E_(0)[0] # <<<<<<<<<<<<<<
* sig[10] = this.E_(1)[0]
* return hash64(sig, sizeof(sig), this._s_i)
*/
(__pyx_v_sig[9]) = (this->E_(0)[0]);
/* "_state.pxd":219
* sig[8] = this.B_(0)[0]
* sig[9] = this.E_(0)[0]
* sig[10] = this.E_(1)[0] # <<<<<<<<<<<<<<
* return hash64(sig, sizeof(sig), this._s_i)
*
*/
(__pyx_v_sig[10]) = (this->E_(1)[0]);
/* "_state.pxd":220
* sig[9] = this.E_(0)[0]
* sig[10] = this.E_(1)[0]
* return hash64(sig, sizeof(sig), this._s_i) # <<<<<<<<<<<<<<
*
* void push() nogil:
*/
__pyx_r = __pyx_f_10murmurhash_4mrmr_hash64(__pyx_v_sig, (sizeof(__pyx_v_sig)), this->_s_i);
goto __pyx_L0;
/* "_state.pxd":207
* return this.length - this._b_i
*
* uint64_t hash() nogil const: # <<<<<<<<<<<<<<
* cdef TokenC[11] sig
* sig[0] = this.S_(2)[0]
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "_state.pxd":222
* return hash64(sig, sizeof(sig), this._s_i)
*
* void push() nogil: # <<<<<<<<<<<<<<
* if this.B(0) != -1:
* this._stack[this._s_i] = this.B(0)
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::push(void) {
int __pyx_t_1;
/* "_state.pxd":223
*
* void push() nogil:
* if this.B(0) != -1: # <<<<<<<<<<<<<<
* this._stack[this._s_i] = this.B(0)
* this._s_i += 1
*/
__pyx_t_1 = ((this->B(0) != -1L) != 0);
if (__pyx_t_1) {
/* "_state.pxd":224
* void push() nogil:
* if this.B(0) != -1:
* this._stack[this._s_i] = this.B(0) # <<<<<<<<<<<<<<
* this._s_i += 1
* this._b_i += 1
*/
(this->_stack[this->_s_i]) = this->B(0);
/* "_state.pxd":223
*
* void push() nogil:
* if this.B(0) != -1: # <<<<<<<<<<<<<<
* this._stack[this._s_i] = this.B(0)
* this._s_i += 1
*/
}
/* "_state.pxd":225
* if this.B(0) != -1:
* this._stack[this._s_i] = this.B(0)
* this._s_i += 1 # <<<<<<<<<<<<<<
* this._b_i += 1
* if this._b_i > this._break:
*/
this->_s_i = (this->_s_i + 1);
/* "_state.pxd":226
* this._stack[this._s_i] = this.B(0)
* this._s_i += 1
* this._b_i += 1 # <<<<<<<<<<<<<<
* if this._b_i > this._break:
* this._break = -1
*/
this->_b_i = (this->_b_i + 1);
/* "_state.pxd":227
* this._s_i += 1
* this._b_i += 1
* if this._b_i > this._break: # <<<<<<<<<<<<<<
* this._break = -1
*
*/
__pyx_t_1 = ((this->_b_i > this->_break) != 0);
if (__pyx_t_1) {
/* "_state.pxd":228
* this._b_i += 1
* if this._b_i > this._break:
* this._break = -1 # <<<<<<<<<<<<<<
*
* void pop() nogil:
*/
this->_break = -1;
/* "_state.pxd":227
* this._s_i += 1
* this._b_i += 1
* if this._b_i > this._break: # <<<<<<<<<<<<<<
* this._break = -1
*
*/
}
/* "_state.pxd":222
* return hash64(sig, sizeof(sig), this._s_i)
*
* void push() nogil: # <<<<<<<<<<<<<<
* if this.B(0) != -1:
* this._stack[this._s_i] = this.B(0)
*/
/* function exit code */
}
/* "_state.pxd":230
* this._break = -1
*
* void pop() nogil: # <<<<<<<<<<<<<<
* if this._s_i >= 1:
* this._s_i -= 1
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::pop(void) {
int __pyx_t_1;
/* "_state.pxd":231
*
* void pop() nogil:
* if this._s_i >= 1: # <<<<<<<<<<<<<<
* this._s_i -= 1
*
*/
__pyx_t_1 = ((this->_s_i >= 1) != 0);
if (__pyx_t_1) {
/* "_state.pxd":232
* void pop() nogil:
* if this._s_i >= 1:
* this._s_i -= 1 # <<<<<<<<<<<<<<
*
* void unshift() nogil:
*/
this->_s_i = (this->_s_i - 1);
/* "_state.pxd":231
*
* void pop() nogil:
* if this._s_i >= 1: # <<<<<<<<<<<<<<
* this._s_i -= 1
*
*/
}
/* "_state.pxd":230
* this._break = -1
*
* void pop() nogil: # <<<<<<<<<<<<<<
* if this._s_i >= 1:
* this._s_i -= 1
*/
/* function exit code */
}
/* "_state.pxd":234
* this._s_i -= 1
*
* void unshift() nogil: # <<<<<<<<<<<<<<
* this._b_i -= 1
* this._buffer[this._b_i] = this.S(0)
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::unshift(void) {
/* "_state.pxd":235
*
* void unshift() nogil:
* this._b_i -= 1 # <<<<<<<<<<<<<<
* this._buffer[this._b_i] = this.S(0)
* this._s_i -= 1
*/
this->_b_i = (this->_b_i - 1);
/* "_state.pxd":236
* void unshift() nogil:
* this._b_i -= 1
* this._buffer[this._b_i] = this.S(0) # <<<<<<<<<<<<<<
* this._s_i -= 1
* this.shifted[this.B(0)] = True
*/
(this->_buffer[this->_b_i]) = this->S(0);
/* "_state.pxd":237
* this._b_i -= 1
* this._buffer[this._b_i] = this.S(0)
* this._s_i -= 1 # <<<<<<<<<<<<<<
* this.shifted[this.B(0)] = True
*
*/
this->_s_i = (this->_s_i - 1);
/* "_state.pxd":238
* this._buffer[this._b_i] = this.S(0)
* this._s_i -= 1
* this.shifted[this.B(0)] = True # <<<<<<<<<<<<<<
*
* void add_arc(int head, int child, int label) nogil:
*/
(this->shifted[this->B(0)]) = 1;
/* "_state.pxd":234
* this._s_i -= 1
*
* void unshift() nogil: # <<<<<<<<<<<<<<
* this._b_i -= 1
* this._buffer[this._b_i] = this.S(0)
*/
/* function exit code */
}
/* "_state.pxd":240
* this.shifted[this.B(0)] = True
*
* void add_arc(int head, int child, int label) nogil: # <<<<<<<<<<<<<<
* if this.has_head(child):
* this.del_arc(this.H(child), child)
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::add_arc(int __pyx_v_head, int __pyx_v_child, int __pyx_v_label) {
int __pyx_v_dist;
int __pyx_v_i;
int __pyx_t_1;
int __pyx_t_2;
uint32_t __pyx_t_3;
int __pyx_t_4;
/* "_state.pxd":241
*
* void add_arc(int head, int child, int label) nogil:
* if this.has_head(child): # <<<<<<<<<<<<<<
* this.del_arc(this.H(child), child)
*
*/
__pyx_t_1 = (this->has_head(__pyx_v_child) != 0);
if (__pyx_t_1) {
/* "_state.pxd":242
* void add_arc(int head, int child, int label) nogil:
* if this.has_head(child):
* this.del_arc(this.H(child), child) # <<<<<<<<<<<<<<
*
* cdef int dist = head - child
*/
this->del_arc(this->H(__pyx_v_child), __pyx_v_child);
/* "_state.pxd":241
*
* void add_arc(int head, int child, int label) nogil:
* if this.has_head(child): # <<<<<<<<<<<<<<
* this.del_arc(this.H(child), child)
*
*/
}
/* "_state.pxd":244
* this.del_arc(this.H(child), child)
*
* cdef int dist = head - child # <<<<<<<<<<<<<<
* this._sent[child].head = dist
* this._sent[child].dep = label
*/
__pyx_v_dist = (__pyx_v_head - __pyx_v_child);
/* "_state.pxd":245
*
* cdef int dist = head - child
* this._sent[child].head = dist # <<<<<<<<<<<<<<
* this._sent[child].dep = label
* cdef int i
*/
(this->_sent[__pyx_v_child]).head = __pyx_v_dist;
/* "_state.pxd":246
* cdef int dist = head - child
* this._sent[child].head = dist
* this._sent[child].dep = label # <<<<<<<<<<<<<<
* cdef int i
* if child > head:
*/
(this->_sent[__pyx_v_child]).dep = __pyx_v_label;
/* "_state.pxd":248
* this._sent[child].dep = label
* cdef int i
* if child > head: # <<<<<<<<<<<<<<
* this._sent[head].r_kids += 1
* # Some transition systems can have a word in the buffer have a
*/
__pyx_t_1 = ((__pyx_v_child > __pyx_v_head) != 0);
if (__pyx_t_1) {
/* "_state.pxd":249
* cdef int i
* if child > head:
* this._sent[head].r_kids += 1 # <<<<<<<<<<<<<<
* # Some transition systems can have a word in the buffer have a
* # rightward child, e.g. from Unshift.
*/
__pyx_t_2 = __pyx_v_head;
(this->_sent[__pyx_t_2]).r_kids = ((this->_sent[__pyx_t_2]).r_kids + 1);
/* "_state.pxd":252
* # Some transition systems can have a word in the buffer have a
* # rightward child, e.g. from Unshift.
* this._sent[head].r_edge = this._sent[child].r_edge # <<<<<<<<<<<<<<
* i = 0
* while this.has_head(head) and i < this.length:
*/
__pyx_t_3 = (this->_sent[__pyx_v_child]).r_edge;
(this->_sent[__pyx_v_head]).r_edge = __pyx_t_3;
/* "_state.pxd":253
* # rightward child, e.g. from Unshift.
* this._sent[head].r_edge = this._sent[child].r_edge
* i = 0 # <<<<<<<<<<<<<<
* while this.has_head(head) and i < this.length:
* head = this.H(head)
*/
__pyx_v_i = 0;
/* "_state.pxd":254
* this._sent[head].r_edge = this._sent[child].r_edge
* i = 0
* while this.has_head(head) and i < this.length: # <<<<<<<<<<<<<<
* head = this.H(head)
* this._sent[head].r_edge = this._sent[child].r_edge
*/
while (1) {
__pyx_t_4 = (this->has_head(__pyx_v_head) != 0);
if (__pyx_t_4) {
} else {
__pyx_t_1 = __pyx_t_4;
goto __pyx_L7_bool_binop_done;
}
__pyx_t_4 = ((__pyx_v_i < this->length) != 0);
__pyx_t_1 = __pyx_t_4;
__pyx_L7_bool_binop_done:;
if (!__pyx_t_1) break;
/* "_state.pxd":255
* i = 0
* while this.has_head(head) and i < this.length:
* head = this.H(head) # <<<<<<<<<<<<<<
* this._sent[head].r_edge = this._sent[child].r_edge
* i += 1 # Guard against infinite loops
*/
__pyx_v_head = this->H(__pyx_v_head);
/* "_state.pxd":256
* while this.has_head(head) and i < this.length:
* head = this.H(head)
* this._sent[head].r_edge = this._sent[child].r_edge # <<<<<<<<<<<<<<
* i += 1 # Guard against infinite loops
* else:
*/
__pyx_t_3 = (this->_sent[__pyx_v_child]).r_edge;
(this->_sent[__pyx_v_head]).r_edge = __pyx_t_3;
/* "_state.pxd":257
* head = this.H(head)
* this._sent[head].r_edge = this._sent[child].r_edge
* i += 1 # Guard against infinite loops # <<<<<<<<<<<<<<
* else:
* this._sent[head].l_kids += 1
*/
__pyx_v_i = (__pyx_v_i + 1);
}
/* "_state.pxd":248
* this._sent[child].dep = label
* cdef int i
* if child > head: # <<<<<<<<<<<<<<
* this._sent[head].r_kids += 1
* # Some transition systems can have a word in the buffer have a
*/
goto __pyx_L4;
}
/* "_state.pxd":259
* i += 1 # Guard against infinite loops
* else:
* this._sent[head].l_kids += 1 # <<<<<<<<<<<<<<
* this._sent[head].l_edge = this._sent[child].l_edge
*
*/
/*else*/ {
__pyx_t_2 = __pyx_v_head;
(this->_sent[__pyx_t_2]).l_kids = ((this->_sent[__pyx_t_2]).l_kids + 1);
/* "_state.pxd":260
* else:
* this._sent[head].l_kids += 1
* this._sent[head].l_edge = this._sent[child].l_edge # <<<<<<<<<<<<<<
*
* void del_arc(int h_i, int c_i) nogil:
*/
__pyx_t_3 = (this->_sent[__pyx_v_child]).l_edge;
(this->_sent[__pyx_v_head]).l_edge = __pyx_t_3;
}
__pyx_L4:;
/* "_state.pxd":240
* this.shifted[this.B(0)] = True
*
* void add_arc(int head, int child, int label) nogil: # <<<<<<<<<<<<<<
* if this.has_head(child):
* this.del_arc(this.H(child), child)
*/
/* function exit code */
}
/* "_state.pxd":262
* this._sent[head].l_edge = this._sent[child].l_edge
*
* void del_arc(int h_i, int c_i) nogil: # <<<<<<<<<<<<<<
* cdef int dist = h_i - c_i
* cdef TokenC* h = &this._sent[h_i]
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::del_arc(int __pyx_v_h_i, int __pyx_v_c_i) {
CYTHON_UNUSED int __pyx_v_dist;
struct __pyx_t_5spacy_7structs_TokenC *__pyx_v_h;
int __pyx_v_i;
uint32_t __pyx_v_new_edge;
int __pyx_t_1;
uint32_t __pyx_t_2;
int __pyx_t_3;
/* "_state.pxd":263
*
* void del_arc(int h_i, int c_i) nogil:
* cdef int dist = h_i - c_i # <<<<<<<<<<<<<<
* cdef TokenC* h = &this._sent[h_i]
* cdef int i = 0
*/
__pyx_v_dist = (__pyx_v_h_i - __pyx_v_c_i);
/* "_state.pxd":264
* void del_arc(int h_i, int c_i) nogil:
* cdef int dist = h_i - c_i
* cdef TokenC* h = &this._sent[h_i] # <<<<<<<<<<<<<<
* cdef int i = 0
* if c_i > h_i:
*/
__pyx_v_h = (&(this->_sent[__pyx_v_h_i]));
/* "_state.pxd":265
* cdef int dist = h_i - c_i
* cdef TokenC* h = &this._sent[h_i]
* cdef int i = 0 # <<<<<<<<<<<<<<
* if c_i > h_i:
* # this.R_(h_i, 2) returns the second-rightmost child token of h_i
*/
__pyx_v_i = 0;
/* "_state.pxd":266
* cdef TokenC* h = &this._sent[h_i]
* cdef int i = 0
* if c_i > h_i: # <<<<<<<<<<<<<<
* # this.R_(h_i, 2) returns the second-rightmost child token of h_i
* # If we have more than 2 rightmost children, our 2nd rightmost child's
*/
__pyx_t_1 = ((__pyx_v_c_i > __pyx_v_h_i) != 0);
if (__pyx_t_1) {
/* "_state.pxd":270
* # If we have more than 2 rightmost children, our 2nd rightmost child's
* # rightmost edge is going to be our new rightmost edge.
* h.r_edge = this.R_(h_i, 2).r_edge if h.r_kids >= 2 else h_i # <<<<<<<<<<<<<<
* h.r_kids -= 1
* new_edge = h.r_edge
*/
if (((__pyx_v_h->r_kids >= 2) != 0)) {
__pyx_t_2 = this->R_(__pyx_v_h_i, 2)->r_edge;
} else {
__pyx_t_2 = __pyx_v_h_i;
}
__pyx_v_h->r_edge = __pyx_t_2;
/* "_state.pxd":271
* # rightmost edge is going to be our new rightmost edge.
* h.r_edge = this.R_(h_i, 2).r_edge if h.r_kids >= 2 else h_i
* h.r_kids -= 1 # <<<<<<<<<<<<<<
* new_edge = h.r_edge
* # Correct upwards in the tree --- see Issue #251
*/
__pyx_v_h->r_kids = (__pyx_v_h->r_kids - 1);
/* "_state.pxd":272
* h.r_edge = this.R_(h_i, 2).r_edge if h.r_kids >= 2 else h_i
* h.r_kids -= 1
* new_edge = h.r_edge # <<<<<<<<<<<<<<
* # Correct upwards in the tree --- see Issue #251
* while h.head < 0 and i < this.length: # Guard infinite loop
*/
__pyx_t_2 = __pyx_v_h->r_edge;
__pyx_v_new_edge = __pyx_t_2;
/* "_state.pxd":274
* new_edge = h.r_edge
* # Correct upwards in the tree --- see Issue #251
* while h.head < 0 and i < this.length: # Guard infinite loop # <<<<<<<<<<<<<<
* h += h.head
* h.r_edge = new_edge
*/
while (1) {
__pyx_t_3 = ((__pyx_v_h->head < 0) != 0);
if (__pyx_t_3) {
} else {
__pyx_t_1 = __pyx_t_3;
goto __pyx_L6_bool_binop_done;
}
__pyx_t_3 = ((__pyx_v_i < this->length) != 0);
__pyx_t_1 = __pyx_t_3;
__pyx_L6_bool_binop_done:;
if (!__pyx_t_1) break;
/* "_state.pxd":275
* # Correct upwards in the tree --- see Issue #251
* while h.head < 0 and i < this.length: # Guard infinite loop
* h += h.head # <<<<<<<<<<<<<<
* h.r_edge = new_edge
* i += 1
*/
__pyx_v_h = (__pyx_v_h + __pyx_v_h->head);
/* "_state.pxd":276
* while h.head < 0 and i < this.length: # Guard infinite loop
* h += h.head
* h.r_edge = new_edge # <<<<<<<<<<<<<<
* i += 1
* else:
*/
__pyx_v_h->r_edge = __pyx_v_new_edge;
/* "_state.pxd":277
* h += h.head
* h.r_edge = new_edge
* i += 1 # <<<<<<<<<<<<<<
* else:
* # Same logic applies for left edge, but we don't need to walk up
*/
__pyx_v_i = (__pyx_v_i + 1);
}
/* "_state.pxd":266
* cdef TokenC* h = &this._sent[h_i]
* cdef int i = 0
* if c_i > h_i: # <<<<<<<<<<<<<<
* # this.R_(h_i, 2) returns the second-rightmost child token of h_i
* # If we have more than 2 rightmost children, our 2nd rightmost child's
*/
goto __pyx_L3;
}
/* "_state.pxd":281
* # Same logic applies for left edge, but we don't need to walk up
* # the tree, as the head is off the stack.
* h.l_edge = this.L_(h_i, 2).l_edge if h.l_kids >= 2 else h_i # <<<<<<<<<<<<<<
* h.l_kids -= 1
*
*/
/*else*/ {
if (((__pyx_v_h->l_kids >= 2) != 0)) {
__pyx_t_2 = this->L_(__pyx_v_h_i, 2)->l_edge;
} else {
__pyx_t_2 = __pyx_v_h_i;
}
__pyx_v_h->l_edge = __pyx_t_2;
/* "_state.pxd":282
* # the tree, as the head is off the stack.
* h.l_edge = this.L_(h_i, 2).l_edge if h.l_kids >= 2 else h_i
* h.l_kids -= 1 # <<<<<<<<<<<<<<
*
* void open_ent(int label) nogil:
*/
__pyx_v_h->l_kids = (__pyx_v_h->l_kids - 1);
}
__pyx_L3:;
/* "_state.pxd":262
* this._sent[head].l_edge = this._sent[child].l_edge
*
* void del_arc(int h_i, int c_i) nogil: # <<<<<<<<<<<<<<
* cdef int dist = h_i - c_i
* cdef TokenC* h = &this._sent[h_i]
*/
/* function exit code */
}
/* "_state.pxd":284
* h.l_kids -= 1
*
* void open_ent(int label) nogil: # <<<<<<<<<<<<<<
* this._ents[this._e_i].start = this.B(0)
* this._ents[this._e_i].label = label
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::open_ent(int __pyx_v_label) {
/* "_state.pxd":285
*
* void open_ent(int label) nogil:
* this._ents[this._e_i].start = this.B(0) # <<<<<<<<<<<<<<
* this._ents[this._e_i].label = label
* this._ents[this._e_i].end = -1
*/
(this->_ents[this->_e_i]).start = this->B(0);
/* "_state.pxd":286
* void open_ent(int label) nogil:
* this._ents[this._e_i].start = this.B(0)
* this._ents[this._e_i].label = label # <<<<<<<<<<<<<<
* this._ents[this._e_i].end = -1
* this._e_i += 1
*/
(this->_ents[this->_e_i]).label = __pyx_v_label;
/* "_state.pxd":287
* this._ents[this._e_i].start = this.B(0)
* this._ents[this._e_i].label = label
* this._ents[this._e_i].end = -1 # <<<<<<<<<<<<<<
* this._e_i += 1
*
*/
(this->_ents[this->_e_i]).end = -1;
/* "_state.pxd":288
* this._ents[this._e_i].label = label
* this._ents[this._e_i].end = -1
* this._e_i += 1 # <<<<<<<<<<<<<<
*
* void close_ent() nogil:
*/
this->_e_i = (this->_e_i + 1);
/* "_state.pxd":284
* h.l_kids -= 1
*
* void open_ent(int label) nogil: # <<<<<<<<<<<<<<
* this._ents[this._e_i].start = this.B(0)
* this._ents[this._e_i].label = label
*/
/* function exit code */
}
/* "_state.pxd":290
* this._e_i += 1
*
* void close_ent() nogil: # <<<<<<<<<<<<<<
* # Note that we don't decrement _e_i here! We want to maintain all
* # entities, not over-write them...
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::close_ent(void) {
/* "_state.pxd":293
* # Note that we don't decrement _e_i here! We want to maintain all
* # entities, not over-write them...
* this._ents[this._e_i-1].end = this.B(0)+1 # <<<<<<<<<<<<<<
* this._sent[this.B(0)].ent_iob = 1
*
*/
(this->_ents[(this->_e_i - 1)]).end = (this->B(0) + 1);
/* "_state.pxd":294
* # entities, not over-write them...
* this._ents[this._e_i-1].end = this.B(0)+1
* this._sent[this.B(0)].ent_iob = 1 # <<<<<<<<<<<<<<
*
* void set_ent_tag(int i, int ent_iob, int ent_type) nogil:
*/
(this->_sent[this->B(0)]).ent_iob = 1;
/* "_state.pxd":290
* this._e_i += 1
*
* void close_ent() nogil: # <<<<<<<<<<<<<<
* # Note that we don't decrement _e_i here! We want to maintain all
* # entities, not over-write them...
*/
/* function exit code */
}
/* "_state.pxd":296
* this._sent[this.B(0)].ent_iob = 1
*
* void set_ent_tag(int i, int ent_iob, int ent_type) nogil: # <<<<<<<<<<<<<<
* if 0 <= i < this.length:
* this._sent[i].ent_iob = ent_iob
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::set_ent_tag(int __pyx_v_i, int __pyx_v_ent_iob, int __pyx_v_ent_type) {
int __pyx_t_1;
int __pyx_t_2;
/* "_state.pxd":297
*
* void set_ent_tag(int i, int ent_iob, int ent_type) nogil:
* if 0 <= i < this.length: # <<<<<<<<<<<<<<
* this._sent[i].ent_iob = ent_iob
* this._sent[i].ent_type = ent_type
*/
__pyx_t_1 = (0 <= __pyx_v_i);
if (__pyx_t_1) {
__pyx_t_1 = (__pyx_v_i < this->length);
}
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
/* "_state.pxd":298
* void set_ent_tag(int i, int ent_iob, int ent_type) nogil:
* if 0 <= i < this.length:
* this._sent[i].ent_iob = ent_iob # <<<<<<<<<<<<<<
* this._sent[i].ent_type = ent_type
*
*/
(this->_sent[__pyx_v_i]).ent_iob = __pyx_v_ent_iob;
/* "_state.pxd":299
* if 0 <= i < this.length:
* this._sent[i].ent_iob = ent_iob
* this._sent[i].ent_type = ent_type # <<<<<<<<<<<<<<
*
* void set_break(int i) nogil:
*/
(this->_sent[__pyx_v_i]).ent_type = __pyx_v_ent_type;
/* "_state.pxd":297
*
* void set_ent_tag(int i, int ent_iob, int ent_type) nogil:
* if 0 <= i < this.length: # <<<<<<<<<<<<<<
* this._sent[i].ent_iob = ent_iob
* this._sent[i].ent_type = ent_type
*/
}
/* "_state.pxd":296
* this._sent[this.B(0)].ent_iob = 1
*
* void set_ent_tag(int i, int ent_iob, int ent_type) nogil: # <<<<<<<<<<<<<<
* if 0 <= i < this.length:
* this._sent[i].ent_iob = ent_iob
*/
/* function exit code */
}
/* "_state.pxd":301
* this._sent[i].ent_type = ent_type
*
* void set_break(int i) nogil: # <<<<<<<<<<<<<<
* if 0 <= i < this.length:
* this._sent[i].sent_start = True
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::set_break(int __pyx_v_i) {
int __pyx_t_1;
int __pyx_t_2;
int __pyx_t_3;
/* "_state.pxd":302
*
* void set_break(int i) nogil:
* if 0 <= i < this.length: # <<<<<<<<<<<<<<
* this._sent[i].sent_start = True
* this._break = this._b_i
*/
__pyx_t_1 = (0 <= __pyx_v_i);
if (__pyx_t_1) {
__pyx_t_1 = (__pyx_v_i < this->length);
}
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
/* "_state.pxd":303
* void set_break(int i) nogil:
* if 0 <= i < this.length:
* this._sent[i].sent_start = True # <<<<<<<<<<<<<<
* this._break = this._b_i
*
*/
(this->_sent[__pyx_v_i]).sent_start = 1;
/* "_state.pxd":304
* if 0 <= i < this.length:
* this._sent[i].sent_start = True
* this._break = this._b_i # <<<<<<<<<<<<<<
*
* void clone(const StateC* src) nogil:
*/
__pyx_t_3 = this->_b_i;
this->_break = __pyx_t_3;
/* "_state.pxd":302
*
* void set_break(int i) nogil:
* if 0 <= i < this.length: # <<<<<<<<<<<<<<
* this._sent[i].sent_start = True
* this._break = this._b_i
*/
}
/* "_state.pxd":301
* this._sent[i].ent_type = ent_type
*
* void set_break(int i) nogil: # <<<<<<<<<<<<<<
* if 0 <= i < this.length:
* this._sent[i].sent_start = True
*/
/* function exit code */
}
/* "_state.pxd":306
* this._break = this._b_i
*
* void clone(const StateC* src) nogil: # <<<<<<<<<<<<<<
* memcpy(this._sent, src._sent, this.length * sizeof(TokenC))
* memcpy(this._stack, src._stack, this.length * sizeof(int))
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::clone(__pyx_t_5spacy_6syntax_6_state_StateC const *__pyx_v_src) {
int __pyx_t_1;
/* "_state.pxd":307
*
* void clone(const StateC* src) nogil:
* memcpy(this._sent, src._sent, this.length * sizeof(TokenC)) # <<<<<<<<<<<<<<
* memcpy(this._stack, src._stack, this.length * sizeof(int))
* memcpy(this._buffer, src._buffer, this.length * sizeof(int))
*/
memcpy(this->_sent, __pyx_v_src->_sent, (this->length * (sizeof(struct __pyx_t_5spacy_7structs_TokenC))));
/* "_state.pxd":308
* void clone(const StateC* src) nogil:
* memcpy(this._sent, src._sent, this.length * sizeof(TokenC))
* memcpy(this._stack, src._stack, this.length * sizeof(int)) # <<<<<<<<<<<<<<
* memcpy(this._buffer, src._buffer, this.length * sizeof(int))
* memcpy(this._ents, src._ents, this.length * sizeof(Entity))
*/
memcpy(this->_stack, __pyx_v_src->_stack, (this->length * (sizeof(int))));
/* "_state.pxd":309
* memcpy(this._sent, src._sent, this.length * sizeof(TokenC))
* memcpy(this._stack, src._stack, this.length * sizeof(int))
* memcpy(this._buffer, src._buffer, this.length * sizeof(int)) # <<<<<<<<<<<<<<
* memcpy(this._ents, src._ents, this.length * sizeof(Entity))
* memcpy(this.shifted, src.shifted, this.length * sizeof(this.shifted[0]))
*/
memcpy(this->_buffer, __pyx_v_src->_buffer, (this->length * (sizeof(int))));
/* "_state.pxd":310
* memcpy(this._stack, src._stack, this.length * sizeof(int))
* memcpy(this._buffer, src._buffer, this.length * sizeof(int))
* memcpy(this._ents, src._ents, this.length * sizeof(Entity)) # <<<<<<<<<<<<<<
* memcpy(this.shifted, src.shifted, this.length * sizeof(this.shifted[0]))
* this.length = src.length
*/
memcpy(this->_ents, __pyx_v_src->_ents, (this->length * (sizeof(struct __pyx_t_5spacy_7structs_Entity))));
/* "_state.pxd":311
* memcpy(this._buffer, src._buffer, this.length * sizeof(int))
* memcpy(this._ents, src._ents, this.length * sizeof(Entity))
* memcpy(this.shifted, src.shifted, this.length * sizeof(this.shifted[0])) # <<<<<<<<<<<<<<
* this.length = src.length
* this._b_i = src._b_i
*/
memcpy(this->shifted, __pyx_v_src->shifted, (this->length * (sizeof((this->shifted[0])))));
/* "_state.pxd":312
* memcpy(this._ents, src._ents, this.length * sizeof(Entity))
* memcpy(this.shifted, src.shifted, this.length * sizeof(this.shifted[0]))
* this.length = src.length # <<<<<<<<<<<<<<
* this._b_i = src._b_i
* this._s_i = src._s_i
*/
__pyx_t_1 = __pyx_v_src->length;
this->length = __pyx_t_1;
/* "_state.pxd":313
* memcpy(this.shifted, src.shifted, this.length * sizeof(this.shifted[0]))
* this.length = src.length
* this._b_i = src._b_i # <<<<<<<<<<<<<<
* this._s_i = src._s_i
* this._e_i = src._e_i
*/
__pyx_t_1 = __pyx_v_src->_b_i;
this->_b_i = __pyx_t_1;
/* "_state.pxd":314
* this.length = src.length
* this._b_i = src._b_i
* this._s_i = src._s_i # <<<<<<<<<<<<<<
* this._e_i = src._e_i
* this._break = src._break
*/
__pyx_t_1 = __pyx_v_src->_s_i;
this->_s_i = __pyx_t_1;
/* "_state.pxd":315
* this._b_i = src._b_i
* this._s_i = src._s_i
* this._e_i = src._e_i # <<<<<<<<<<<<<<
* this._break = src._break
*
*/
__pyx_t_1 = __pyx_v_src->_e_i;
this->_e_i = __pyx_t_1;
/* "_state.pxd":316
* this._s_i = src._s_i
* this._e_i = src._e_i
* this._break = src._break # <<<<<<<<<<<<<<
*
* void fast_forward() nogil:
*/
__pyx_t_1 = __pyx_v_src->_break;
this->_break = __pyx_t_1;
/* "_state.pxd":306
* this._break = this._b_i
*
* void clone(const StateC* src) nogil: # <<<<<<<<<<<<<<
* memcpy(this._sent, src._sent, this.length * sizeof(TokenC))
* memcpy(this._stack, src._stack, this.length * sizeof(int))
*/
/* function exit code */
}
/* "_state.pxd":318
* this._break = src._break
*
* void fast_forward() nogil: # <<<<<<<<<<<<<<
* # space token attachement policy:
* # - attach space tokens always to the last preceding real token
*/
void __pyx_t_5spacy_6syntax_6_state_StateC::fast_forward(void) {
int __pyx_t_1;
int __pyx_t_2;
/* "_state.pxd":325
* # then make the last space token the head of all others
*
* while is_space_token(this.B_(0)) \ # <<<<<<<<<<<<<<
* or this.buffer_length() == 0 \
* or this.stack_depth() == 0:
*/
while (1) {
/* "_state.pxd":326
*
* while is_space_token(this.B_(0)) \
* or this.buffer_length() == 0 \ # <<<<<<<<<<<<<<
* or this.stack_depth() == 0:
* if this.buffer_length() == 0:
*/
__pyx_t_2 = (__pyx_f_5spacy_6syntax_6_state_is_space_token(this->B_(0)) != 0);
if (!__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L5_bool_binop_done;
}
/* "_state.pxd":327
* while is_space_token(this.B_(0)) \
* or this.buffer_length() == 0 \
* or this.stack_depth() == 0: # <<<<<<<<<<<<<<
* if this.buffer_length() == 0:
* # remove the last sentence's root from the stack
*/
__pyx_t_2 = ((this->buffer_length() == 0) != 0);
if (!__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L5_bool_binop_done;
}
__pyx_t_2 = ((this->stack_depth() == 0) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L5_bool_binop_done:;
if (!__pyx_t_1) break;
/* "_state.pxd":328
* or this.buffer_length() == 0 \
* or this.stack_depth() == 0:
* if this.buffer_length() == 0: # <<<<<<<<<<<<<<
* # remove the last sentence's root from the stack
* if this.stack_depth() == 1:
*/
__pyx_t_1 = ((this->buffer_length() == 0) != 0);
if (__pyx_t_1) {
/* "_state.pxd":330
* if this.buffer_length() == 0:
* # remove the last sentence's root from the stack
* if this.stack_depth() == 1: # <<<<<<<<<<<<<<
* this.pop()
* # parser got stuck: reduce stack or unshift
*/
__pyx_t_1 = ((this->stack_depth() == 1) != 0);
if (__pyx_t_1) {
/* "_state.pxd":331
* # remove the last sentence's root from the stack
* if this.stack_depth() == 1:
* this.pop() # <<<<<<<<<<<<<<
* # parser got stuck: reduce stack or unshift
* elif this.stack_depth() > 1:
*/
this->pop();
/* "_state.pxd":330
* if this.buffer_length() == 0:
* # remove the last sentence's root from the stack
* if this.stack_depth() == 1: # <<<<<<<<<<<<<<
* this.pop()
* # parser got stuck: reduce stack or unshift
*/
goto __pyx_L9;
}
/* "_state.pxd":333
* this.pop()
* # parser got stuck: reduce stack or unshift
* elif this.stack_depth() > 1: # <<<<<<<<<<<<<<
* if this.has_head(this.S(0)):
* this.pop()
*/
__pyx_t_1 = ((this->stack_depth() > 1) != 0);
if (__pyx_t_1) {
/* "_state.pxd":334
* # parser got stuck: reduce stack or unshift
* elif this.stack_depth() > 1:
* if this.has_head(this.S(0)): # <<<<<<<<<<<<<<
* this.pop()
* else:
*/
__pyx_t_1 = (this->has_head(this->S(0)) != 0);
if (__pyx_t_1) {
/* "_state.pxd":335
* elif this.stack_depth() > 1:
* if this.has_head(this.S(0)):
* this.pop() # <<<<<<<<<<<<<<
* else:
* this.unshift()
*/
this->pop();
/* "_state.pxd":334
* # parser got stuck: reduce stack or unshift
* elif this.stack_depth() > 1:
* if this.has_head(this.S(0)): # <<<<<<<<<<<<<<
* this.pop()
* else:
*/
goto __pyx_L10;
}
/* "_state.pxd":337
* this.pop()
* else:
* this.unshift() # <<<<<<<<<<<<<<
* # stack is empty but there is another sentence on the buffer
* elif (this.length - this._b_i) >= 1:
*/
/*else*/ {
this->unshift();
}
__pyx_L10:;
/* "_state.pxd":333
* this.pop()
* # parser got stuck: reduce stack or unshift
* elif this.stack_depth() > 1: # <<<<<<<<<<<<<<
* if this.has_head(this.S(0)):
* this.pop()
*/
goto __pyx_L9;
}
/* "_state.pxd":339
* this.unshift()
* # stack is empty but there is another sentence on the buffer
* elif (this.length - this._b_i) >= 1: # <<<<<<<<<<<<<<
* this.push()
* else: # stack empty and nothing else coming
*/
__pyx_t_1 = (((this->length - this->_b_i) >= 1) != 0);
if (__pyx_t_1) {
/* "_state.pxd":340
* # stack is empty but there is another sentence on the buffer
* elif (this.length - this._b_i) >= 1:
* this.push() # <<<<<<<<<<<<<<
* else: # stack empty and nothing else coming
* break
*/
this->push();
/* "_state.pxd":339
* this.unshift()
* # stack is empty but there is another sentence on the buffer
* elif (this.length - this._b_i) >= 1: # <<<<<<<<<<<<<<
* this.push()
* else: # stack empty and nothing else coming
*/
goto __pyx_L9;
}
/* "_state.pxd":342
* this.push()
* else: # stack empty and nothing else coming
* break # <<<<<<<<<<<<<<
*
* elif is_space_token(this.B_(0)):
*/
/*else*/ {
goto __pyx_L4_break;
}
__pyx_L9:;
/* "_state.pxd":328
* or this.buffer_length() == 0 \
* or this.stack_depth() == 0:
* if this.buffer_length() == 0: # <<<<<<<<<<<<<<
* # remove the last sentence's root from the stack
* if this.stack_depth() == 1:
*/
goto __pyx_L8;
}
/* "_state.pxd":344
* break
*
* elif is_space_token(this.B_(0)): # <<<<<<<<<<<<<<
* # the normal case: we're somewhere inside a sentence
* if this.stack_depth() > 0:
*/
__pyx_t_1 = (__pyx_f_5spacy_6syntax_6_state_is_space_token(this->B_(0)) != 0);
if (__pyx_t_1) {
/* "_state.pxd":346
* elif is_space_token(this.B_(0)):
* # the normal case: we're somewhere inside a sentence
* if this.stack_depth() > 0: # <<<<<<<<<<<<<<
* # assert not is_space_token(this.S_(0))
* # attach all coming space tokens to their last preceding
*/
__pyx_t_1 = ((this->stack_depth() > 0) != 0);
if (__pyx_t_1) {
/* "_state.pxd":350
* # attach all coming space tokens to their last preceding
* # real token (which should be on the top of the stack)
* while is_space_token(this.B_(0)): # <<<<<<<<<<<<<<
* this.add_arc(this.S(0),this.B(0),0)
* this.push()
*/
while (1) {
__pyx_t_1 = (__pyx_f_5spacy_6syntax_6_state_is_space_token(this->B_(0)) != 0);
if (!__pyx_t_1) break;
/* "_state.pxd":351
* # real token (which should be on the top of the stack)
* while is_space_token(this.B_(0)):
* this.add_arc(this.S(0),this.B(0),0) # <<<<<<<<<<<<<<
* this.push()
* this.pop()
*/
this->add_arc(this->S(0), this->B(0), 0);
/* "_state.pxd":352
* while is_space_token(this.B_(0)):
* this.add_arc(this.S(0),this.B(0),0)
* this.push() # <<<<<<<<<<<<<<
* this.pop()
* # the rare case: we're at the beginning of a document:
*/
this->push();
/* "_state.pxd":353
* this.add_arc(this.S(0),this.B(0),0)
* this.push()
* this.pop() # <<<<<<<<<<<<<<
* # the rare case: we're at the beginning of a document:
* # space tokens are attached to the first real token on the buffer
*/
this->pop();
}
/* "_state.pxd":346
* elif is_space_token(this.B_(0)):
* # the normal case: we're somewhere inside a sentence
* if this.stack_depth() > 0: # <<<<<<<<<<<<<<
* # assert not is_space_token(this.S_(0))
* # attach all coming space tokens to their last preceding
*/
goto __pyx_L11;
}
/* "_state.pxd":356
* # the rare case: we're at the beginning of a document:
* # space tokens are attached to the first real token on the buffer
* elif this.stack_depth() == 0: # <<<<<<<<<<<<<<
* # store all space tokens on the stack until a real token shows up
* # or the last token on the buffer is reached
*/
__pyx_t_1 = ((this->stack_depth() == 0) != 0);
if (__pyx_t_1) {
/* "_state.pxd":359
* # store all space tokens on the stack until a real token shows up
* # or the last token on the buffer is reached
* while is_space_token(this.B_(0)) and this.buffer_length() > 1: # <<<<<<<<<<<<<<
* this.push()
* # empty the stack by attaching all space tokens to the
*/
while (1) {
__pyx_t_2 = (__pyx_f_5spacy_6syntax_6_state_is_space_token(this->B_(0)) != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L16_bool_binop_done;
}
__pyx_t_2 = ((this->buffer_length() > 1) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L16_bool_binop_done:;
if (!__pyx_t_1) break;
/* "_state.pxd":360
* # or the last token on the buffer is reached
* while is_space_token(this.B_(0)) and this.buffer_length() > 1:
* this.push() # <<<<<<<<<<<<<<
* # empty the stack by attaching all space tokens to the
* # first token on the buffer
*/
this->push();
}
/* "_state.pxd":365
* # boundary case: if all tokens are space tokens, the last one
* # becomes the head of all others
* while this.stack_depth() > 0: # <<<<<<<<<<<<<<
* this.add_arc(this.B(0),this.S(0),0)
* this.pop()
*/
while (1) {
__pyx_t_1 = ((this->stack_depth() > 0) != 0);
if (!__pyx_t_1) break;
/* "_state.pxd":366
* # becomes the head of all others
* while this.stack_depth() > 0:
* this.add_arc(this.B(0),this.S(0),0) # <<<<<<<<<<<<<<
* this.pop()
* # move the first token onto the stack
*/
this->add_arc(this->B(0), this->S(0), 0);
/* "_state.pxd":367
* while this.stack_depth() > 0:
* this.add_arc(this.B(0),this.S(0),0)
* this.pop() # <<<<<<<<<<<<<<
* # move the first token onto the stack
* this.push()
*/
this->pop();
}
/* "_state.pxd":369
* this.pop()
* # move the first token onto the stack
* this.push() # <<<<<<<<<<<<<<
*
* elif this.stack_depth() == 0:
*/
this->push();
/* "_state.pxd":356
* # the rare case: we're at the beginning of a document:
* # space tokens are attached to the first real token on the buffer
* elif this.stack_depth() == 0: # <<<<<<<<<<<<<<
* # store all space tokens on the stack until a real token shows up
* # or the last token on the buffer is reached
*/
}
__pyx_L11:;
/* "_state.pxd":344
* break
*
* elif is_space_token(this.B_(0)): # <<<<<<<<<<<<<<
* # the normal case: we're somewhere inside a sentence
* if this.stack_depth() > 0:
*/
goto __pyx_L8;
}
/* "_state.pxd":371
* this.push()
*
* elif this.stack_depth() == 0: # <<<<<<<<<<<<<<
* # for one token sentences (?)
* if this.buffer_length() == 1:
*/
__pyx_t_1 = ((this->stack_depth() == 0) != 0);
if (__pyx_t_1) {
/* "_state.pxd":373
* elif this.stack_depth() == 0:
* # for one token sentences (?)
* if this.buffer_length() == 1: # <<<<<<<<<<<<<<
* this.push()
* this.pop()
*/
__pyx_t_1 = ((this->buffer_length() == 1) != 0);
if (__pyx_t_1) {
/* "_state.pxd":374
* # for one token sentences (?)
* if this.buffer_length() == 1:
* this.push() # <<<<<<<<<<<<<<
* this.pop()
* # with an empty stack and a non-empty buffer
*/
this->push();
/* "_state.pxd":375
* if this.buffer_length() == 1:
* this.push()
* this.pop() # <<<<<<<<<<<<<<
* # with an empty stack and a non-empty buffer
* # only shift is valid anyway
*/
this->pop();
/* "_state.pxd":373
* elif this.stack_depth() == 0:
* # for one token sentences (?)
* if this.buffer_length() == 1: # <<<<<<<<<<<<<<
* this.push()
* this.pop()
*/
goto __pyx_L20;
}
/* "_state.pxd":378
* # with an empty stack and a non-empty buffer
* # only shift is valid anyway
* elif (this.length - this._b_i) >= 1: # <<<<<<<<<<<<<<
* this.push()
*
*/
__pyx_t_1 = (((this->length - this->_b_i) >= 1) != 0);
if (__pyx_t_1) {
/* "_state.pxd":379
* # only shift is valid anyway
* elif (this.length - this._b_i) >= 1:
* this.push() # <<<<<<<<<<<<<<
*
* else: # can this even happen?
*/
this->push();
/* "_state.pxd":378
* # with an empty stack and a non-empty buffer
* # only shift is valid anyway
* elif (this.length - this._b_i) >= 1: # <<<<<<<<<<<<<<
* this.push()
*
*/
}
__pyx_L20:;
/* "_state.pxd":371
* this.push()
*
* elif this.stack_depth() == 0: # <<<<<<<<<<<<<<
* # for one token sentences (?)
* if this.buffer_length() == 1:
*/
goto __pyx_L8;
}
/* "_state.pxd":382
*
* else: # can this even happen?
* break # <<<<<<<<<<<<<<
*/
/*else*/ {
goto __pyx_L4_break;
}
__pyx_L8:;
}
__pyx_L4_break:;
/* "_state.pxd":318
* this._break = src._break
*
* void fast_forward() nogil: # <<<<<<<<<<<<<<
* # space token attachement policy:
* # - attach space tokens always to the last preceding real token
*/
/* function exit code */
}
/* "stateclass.pxd":17
*
* @staticmethod
* cdef inline StateClass init(const TokenC* sent, int length): # <<<<<<<<<<<<<<
* cdef StateClass self = StateClass(length)
* self.c = new StateC(sent, length)
*/
static CYTHON_INLINE struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_init(struct __pyx_t_5spacy_7structs_TokenC const *__pyx_v_sent, int __pyx_v_length) {
struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self = 0;
struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_r = NULL;
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("init", 0);
/* "stateclass.pxd":18
* @staticmethod
* cdef inline StateClass init(const TokenC* sent, int length):
* cdef StateClass self = StateClass(length) # <<<<<<<<<<<<<<
* self.c = new StateC(sent, length)
* return self
*/
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_length); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_GIVEREF(__pyx_t_1);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
__pyx_t_1 = 0;
__pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5spacy_6syntax_10stateclass_StateClass), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_self = ((struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *)__pyx_t_1);
__pyx_t_1 = 0;
/* "stateclass.pxd":19
* cdef inline StateClass init(const TokenC* sent, int length):
* cdef StateClass self = StateClass(length)
* self.c = new StateC(sent, length) # <<<<<<<<<<<<<<
* return self
*
*/
__pyx_v_self->c = new __pyx_t_5spacy_6syntax_6_state_StateC(__pyx_v_sent, __pyx_v_length);
/* "stateclass.pxd":20
* cdef StateClass self = StateClass(length)
* self.c = new StateC(sent, length)
* return self # <<<<<<<<<<<<<<
*
* cdef inline int S(self, int i) nogil:
*/
__Pyx_XDECREF(((PyObject *)__pyx_r));
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__pyx_r = __pyx_v_self;
goto __pyx_L0;
/* "stateclass.pxd":17
*
* @staticmethod
* cdef inline StateClass init(const TokenC* sent, int length): # <<<<<<<<<<<<<<
* cdef StateClass self = StateClass(length)
* self.c = new StateC(sent, length)
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2);
__Pyx_AddTraceback("spacy.syntax.stateclass.StateClass.init", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XDECREF((PyObject *)__pyx_v_self);
__Pyx_XGIVEREF((PyObject *)__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "stateclass.pxd":22
* return self
*
* cdef inline int S(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.S(i)
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_S(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
int __pyx_r;
/* "stateclass.pxd":23
*
* cdef inline int S(self, int i) nogil:
* return self.c.S(i) # <<<<<<<<<<<<<<
*
* cdef inline int B(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->S(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":22
* return self
*
* cdef inline int S(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.S(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":25
* return self.c.S(i)
*
* cdef inline int B(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.B(i)
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_B(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
int __pyx_r;
/* "stateclass.pxd":26
*
* cdef inline int B(self, int i) nogil:
* return self.c.B(i) # <<<<<<<<<<<<<<
*
* cdef inline const TokenC* S_(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->B(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":25
* return self.c.S(i)
*
* cdef inline int B(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.B(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":28
* return self.c.B(i)
*
* cdef inline const TokenC* S_(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.S_(i)
*
*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_S_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "stateclass.pxd":29
*
* cdef inline const TokenC* S_(self, int i) nogil:
* return self.c.S_(i) # <<<<<<<<<<<<<<
*
* cdef inline const TokenC* B_(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->S_(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":28
* return self.c.B(i)
*
* cdef inline const TokenC* S_(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.S_(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":31
* return self.c.S_(i)
*
* cdef inline const TokenC* B_(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.B_(i)
*
*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_B_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "stateclass.pxd":32
*
* cdef inline const TokenC* B_(self, int i) nogil:
* return self.c.B_(i) # <<<<<<<<<<<<<<
*
* cdef inline const TokenC* H_(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->B_(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":31
* return self.c.S_(i)
*
* cdef inline const TokenC* B_(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.B_(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":34
* return self.c.B_(i)
*
* cdef inline const TokenC* H_(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.H_(i)
*
*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_H_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "stateclass.pxd":35
*
* cdef inline const TokenC* H_(self, int i) nogil:
* return self.c.H_(i) # <<<<<<<<<<<<<<
*
* cdef inline const TokenC* E_(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->H_(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":34
* return self.c.B_(i)
*
* cdef inline const TokenC* H_(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.H_(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":37
* return self.c.H_(i)
*
* cdef inline const TokenC* E_(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.E_(i)
*
*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_E_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "stateclass.pxd":38
*
* cdef inline const TokenC* E_(self, int i) nogil:
* return self.c.E_(i) # <<<<<<<<<<<<<<
*
* cdef inline const TokenC* L_(self, int i, int idx) nogil:
*/
__pyx_r = __pyx_v_self->c->E_(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":37
* return self.c.H_(i)
*
* cdef inline const TokenC* E_(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.E_(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":40
* return self.c.E_(i)
*
* cdef inline const TokenC* L_(self, int i, int idx) nogil: # <<<<<<<<<<<<<<
* return self.c.L_(i, idx)
*
*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_L_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i, int __pyx_v_idx) {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "stateclass.pxd":41
*
* cdef inline const TokenC* L_(self, int i, int idx) nogil:
* return self.c.L_(i, idx) # <<<<<<<<<<<<<<
*
* cdef inline const TokenC* R_(self, int i, int idx) nogil:
*/
__pyx_r = __pyx_v_self->c->L_(__pyx_v_i, __pyx_v_idx);
goto __pyx_L0;
/* "stateclass.pxd":40
* return self.c.E_(i)
*
* cdef inline const TokenC* L_(self, int i, int idx) nogil: # <<<<<<<<<<<<<<
* return self.c.L_(i, idx)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":43
* return self.c.L_(i, idx)
*
* cdef inline const TokenC* R_(self, int i, int idx) nogil: # <<<<<<<<<<<<<<
* return self.c.R_(i, idx)
*
*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_R_(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i, int __pyx_v_idx) {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "stateclass.pxd":44
*
* cdef inline const TokenC* R_(self, int i, int idx) nogil:
* return self.c.R_(i, idx) # <<<<<<<<<<<<<<
*
* cdef inline const TokenC* safe_get(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->R_(__pyx_v_i, __pyx_v_idx);
goto __pyx_L0;
/* "stateclass.pxd":43
* return self.c.L_(i, idx)
*
* cdef inline const TokenC* R_(self, int i, int idx) nogil: # <<<<<<<<<<<<<<
* return self.c.R_(i, idx)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":46
* return self.c.R_(i, idx)
*
* cdef inline const TokenC* safe_get(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.safe_get(i)
*
*/
static CYTHON_INLINE struct __pyx_t_5spacy_7structs_TokenC const *__pyx_f_5spacy_6syntax_10stateclass_10StateClass_safe_get(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
struct __pyx_t_5spacy_7structs_TokenC const *__pyx_r;
/* "stateclass.pxd":47
*
* cdef inline const TokenC* safe_get(self, int i) nogil:
* return self.c.safe_get(i) # <<<<<<<<<<<<<<
*
* cdef inline int H(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->safe_get(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":46
* return self.c.R_(i, idx)
*
* cdef inline const TokenC* safe_get(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.safe_get(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":49
* return self.c.safe_get(i)
*
* cdef inline int H(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.H(i)
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_H(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
int __pyx_r;
/* "stateclass.pxd":50
*
* cdef inline int H(self, int i) nogil:
* return self.c.H(i) # <<<<<<<<<<<<<<
*
* cdef inline int E(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->H(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":49
* return self.c.safe_get(i)
*
* cdef inline int H(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.H(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":52
* return self.c.H(i)
*
* cdef inline int E(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.E(i)
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_E(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
int __pyx_r;
/* "stateclass.pxd":53
*
* cdef inline int E(self, int i) nogil:
* return self.c.E(i) # <<<<<<<<<<<<<<
*
* cdef inline int L(self, int i, int idx) nogil:
*/
__pyx_r = __pyx_v_self->c->E(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":52
* return self.c.H(i)
*
* cdef inline int E(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.E(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":55
* return self.c.E(i)
*
* cdef inline int L(self, int i, int idx) nogil: # <<<<<<<<<<<<<<
* return self.c.L(i, idx)
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_L(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i, int __pyx_v_idx) {
int __pyx_r;
/* "stateclass.pxd":56
*
* cdef inline int L(self, int i, int idx) nogil:
* return self.c.L(i, idx) # <<<<<<<<<<<<<<
*
* cdef inline int R(self, int i, int idx) nogil:
*/
__pyx_r = __pyx_v_self->c->L(__pyx_v_i, __pyx_v_idx);
goto __pyx_L0;
/* "stateclass.pxd":55
* return self.c.E(i)
*
* cdef inline int L(self, int i, int idx) nogil: # <<<<<<<<<<<<<<
* return self.c.L(i, idx)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":58
* return self.c.L(i, idx)
*
* cdef inline int R(self, int i, int idx) nogil: # <<<<<<<<<<<<<<
* return self.c.R(i, idx)
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_R(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i, int __pyx_v_idx) {
int __pyx_r;
/* "stateclass.pxd":59
*
* cdef inline int R(self, int i, int idx) nogil:
* return self.c.R(i, idx) # <<<<<<<<<<<<<<
*
* cdef inline bint empty(self) nogil:
*/
__pyx_r = __pyx_v_self->c->R(__pyx_v_i, __pyx_v_idx);
goto __pyx_L0;
/* "stateclass.pxd":58
* return self.c.L(i, idx)
*
* cdef inline int R(self, int i, int idx) nogil: # <<<<<<<<<<<<<<
* return self.c.R(i, idx)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":61
* return self.c.R(i, idx)
*
* cdef inline bint empty(self) nogil: # <<<<<<<<<<<<<<
* return self.c.empty()
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_empty(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
int __pyx_r;
/* "stateclass.pxd":62
*
* cdef inline bint empty(self) nogil:
* return self.c.empty() # <<<<<<<<<<<<<<
*
* cdef inline bint eol(self) nogil:
*/
__pyx_r = __pyx_v_self->c->empty();
goto __pyx_L0;
/* "stateclass.pxd":61
* return self.c.R(i, idx)
*
* cdef inline bint empty(self) nogil: # <<<<<<<<<<<<<<
* return self.c.empty()
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":64
* return self.c.empty()
*
* cdef inline bint eol(self) nogil: # <<<<<<<<<<<<<<
* return self.c.eol()
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_eol(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
int __pyx_r;
/* "stateclass.pxd":65
*
* cdef inline bint eol(self) nogil:
* return self.c.eol() # <<<<<<<<<<<<<<
*
* cdef inline bint at_break(self) nogil:
*/
__pyx_r = __pyx_v_self->c->eol();
goto __pyx_L0;
/* "stateclass.pxd":64
* return self.c.empty()
*
* cdef inline bint eol(self) nogil: # <<<<<<<<<<<<<<
* return self.c.eol()
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":67
* return self.c.eol()
*
* cdef inline bint at_break(self) nogil: # <<<<<<<<<<<<<<
* return self.c.at_break()
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_at_break(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
int __pyx_r;
/* "stateclass.pxd":68
*
* cdef inline bint at_break(self) nogil:
* return self.c.at_break() # <<<<<<<<<<<<<<
*
* cdef inline bint is_final(self) nogil:
*/
__pyx_r = __pyx_v_self->c->at_break();
goto __pyx_L0;
/* "stateclass.pxd":67
* return self.c.eol()
*
* cdef inline bint at_break(self) nogil: # <<<<<<<<<<<<<<
* return self.c.at_break()
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":70
* return self.c.at_break()
*
* cdef inline bint is_final(self) nogil: # <<<<<<<<<<<<<<
* return self.c.is_final()
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_is_final(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
int __pyx_r;
/* "stateclass.pxd":71
*
* cdef inline bint is_final(self) nogil:
* return self.c.is_final() # <<<<<<<<<<<<<<
*
* cdef inline bint has_head(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->is_final();
goto __pyx_L0;
/* "stateclass.pxd":70
* return self.c.at_break()
*
* cdef inline bint is_final(self) nogil: # <<<<<<<<<<<<<<
* return self.c.is_final()
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":73
* return self.c.is_final()
*
* cdef inline bint has_head(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.has_head(i)
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_has_head(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
int __pyx_r;
/* "stateclass.pxd":74
*
* cdef inline bint has_head(self, int i) nogil:
* return self.c.has_head(i) # <<<<<<<<<<<<<<
*
* cdef inline int n_L(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->has_head(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":73
* return self.c.is_final()
*
* cdef inline bint has_head(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.has_head(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":76
* return self.c.has_head(i)
*
* cdef inline int n_L(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.n_L(i)
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_n_L(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
int __pyx_r;
/* "stateclass.pxd":77
*
* cdef inline int n_L(self, int i) nogil:
* return self.c.n_L(i) # <<<<<<<<<<<<<<
*
* cdef inline int n_R(self, int i) nogil:
*/
__pyx_r = __pyx_v_self->c->n_L(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":76
* return self.c.has_head(i)
*
* cdef inline int n_L(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.n_L(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":79
* return self.c.n_L(i)
*
* cdef inline int n_R(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.n_R(i)
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_n_R(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
int __pyx_r;
/* "stateclass.pxd":80
*
* cdef inline int n_R(self, int i) nogil:
* return self.c.n_R(i) # <<<<<<<<<<<<<<
*
* cdef inline bint stack_is_connected(self) nogil:
*/
__pyx_r = __pyx_v_self->c->n_R(__pyx_v_i);
goto __pyx_L0;
/* "stateclass.pxd":79
* return self.c.n_L(i)
*
* cdef inline int n_R(self, int i) nogil: # <<<<<<<<<<<<<<
* return self.c.n_R(i)
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":82
* return self.c.n_R(i)
*
* cdef inline bint stack_is_connected(self) nogil: # <<<<<<<<<<<<<<
* return False
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_stack_is_connected(CYTHON_UNUSED struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
int __pyx_r;
/* "stateclass.pxd":83
*
* cdef inline bint stack_is_connected(self) nogil:
* return False # <<<<<<<<<<<<<<
*
* cdef inline bint entity_is_open(self) nogil:
*/
__pyx_r = 0;
goto __pyx_L0;
/* "stateclass.pxd":82
* return self.c.n_R(i)
*
* cdef inline bint stack_is_connected(self) nogil: # <<<<<<<<<<<<<<
* return False
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":85
* return False
*
* cdef inline bint entity_is_open(self) nogil: # <<<<<<<<<<<<<<
* return self.c.entity_is_open()
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_entity_is_open(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
int __pyx_r;
/* "stateclass.pxd":86
*
* cdef inline bint entity_is_open(self) nogil:
* return self.c.entity_is_open() # <<<<<<<<<<<<<<
*
* cdef inline int stack_depth(self) nogil:
*/
__pyx_r = __pyx_v_self->c->entity_is_open();
goto __pyx_L0;
/* "stateclass.pxd":85
* return False
*
* cdef inline bint entity_is_open(self) nogil: # <<<<<<<<<<<<<<
* return self.c.entity_is_open()
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":88
* return self.c.entity_is_open()
*
* cdef inline int stack_depth(self) nogil: # <<<<<<<<<<<<<<
* return self.c.stack_depth()
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_stack_depth(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
int __pyx_r;
/* "stateclass.pxd":89
*
* cdef inline int stack_depth(self) nogil:
* return self.c.stack_depth() # <<<<<<<<<<<<<<
*
* cdef inline int buffer_length(self) nogil:
*/
__pyx_r = __pyx_v_self->c->stack_depth();
goto __pyx_L0;
/* "stateclass.pxd":88
* return self.c.entity_is_open()
*
* cdef inline int stack_depth(self) nogil: # <<<<<<<<<<<<<<
* return self.c.stack_depth()
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":91
* return self.c.stack_depth()
*
* cdef inline int buffer_length(self) nogil: # <<<<<<<<<<<<<<
* return self.c.buffer_length()
*
*/
static CYTHON_INLINE int __pyx_f_5spacy_6syntax_10stateclass_10StateClass_buffer_length(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
int __pyx_r;
/* "stateclass.pxd":92
*
* cdef inline int buffer_length(self) nogil:
* return self.c.buffer_length() # <<<<<<<<<<<<<<
*
* cdef inline void push(self) nogil:
*/
__pyx_r = __pyx_v_self->c->buffer_length();
goto __pyx_L0;
/* "stateclass.pxd":91
* return self.c.stack_depth()
*
* cdef inline int buffer_length(self) nogil: # <<<<<<<<<<<<<<
* return self.c.buffer_length()
*
*/
/* function exit code */
__pyx_L0:;
return __pyx_r;
}
/* "stateclass.pxd":94
* return self.c.buffer_length()
*
* cdef inline void push(self) nogil: # <<<<<<<<<<<<<<
* self.c.push()
*
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_push(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
/* "stateclass.pxd":95
*
* cdef inline void push(self) nogil:
* self.c.push() # <<<<<<<<<<<<<<
*
* cdef inline void pop(self) nogil:
*/
__pyx_v_self->c->push();
/* "stateclass.pxd":94
* return self.c.buffer_length()
*
* cdef inline void push(self) nogil: # <<<<<<<<<<<<<<
* self.c.push()
*
*/
/* function exit code */
}
/* "stateclass.pxd":97
* self.c.push()
*
* cdef inline void pop(self) nogil: # <<<<<<<<<<<<<<
* self.c.pop()
*
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_pop(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
/* "stateclass.pxd":98
*
* cdef inline void pop(self) nogil:
* self.c.pop() # <<<<<<<<<<<<<<
*
* cdef inline void unshift(self) nogil:
*/
__pyx_v_self->c->pop();
/* "stateclass.pxd":97
* self.c.push()
*
* cdef inline void pop(self) nogil: # <<<<<<<<<<<<<<
* self.c.pop()
*
*/
/* function exit code */
}
/* "stateclass.pxd":100
* self.c.pop()
*
* cdef inline void unshift(self) nogil: # <<<<<<<<<<<<<<
* self.c.unshift()
*
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_unshift(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
/* "stateclass.pxd":101
*
* cdef inline void unshift(self) nogil:
* self.c.unshift() # <<<<<<<<<<<<<<
*
* cdef inline void add_arc(self, int head, int child, int label) nogil:
*/
__pyx_v_self->c->unshift();
/* "stateclass.pxd":100
* self.c.pop()
*
* cdef inline void unshift(self) nogil: # <<<<<<<<<<<<<<
* self.c.unshift()
*
*/
/* function exit code */
}
/* "stateclass.pxd":103
* self.c.unshift()
*
* cdef inline void add_arc(self, int head, int child, int label) nogil: # <<<<<<<<<<<<<<
* self.c.add_arc(head, child, label)
*
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_add_arc(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_head, int __pyx_v_child, int __pyx_v_label) {
/* "stateclass.pxd":104
*
* cdef inline void add_arc(self, int head, int child, int label) nogil:
* self.c.add_arc(head, child, label) # <<<<<<<<<<<<<<
*
* cdef inline void del_arc(self, int head, int child) nogil:
*/
__pyx_v_self->c->add_arc(__pyx_v_head, __pyx_v_child, __pyx_v_label);
/* "stateclass.pxd":103
* self.c.unshift()
*
* cdef inline void add_arc(self, int head, int child, int label) nogil: # <<<<<<<<<<<<<<
* self.c.add_arc(head, child, label)
*
*/
/* function exit code */
}
/* "stateclass.pxd":106
* self.c.add_arc(head, child, label)
*
* cdef inline void del_arc(self, int head, int child) nogil: # <<<<<<<<<<<<<<
* self.c.del_arc(head, child)
*
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_del_arc(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_head, int __pyx_v_child) {
/* "stateclass.pxd":107
*
* cdef inline void del_arc(self, int head, int child) nogil:
* self.c.del_arc(head, child) # <<<<<<<<<<<<<<
*
* cdef inline void open_ent(self, int label) nogil:
*/
__pyx_v_self->c->del_arc(__pyx_v_head, __pyx_v_child);
/* "stateclass.pxd":106
* self.c.add_arc(head, child, label)
*
* cdef inline void del_arc(self, int head, int child) nogil: # <<<<<<<<<<<<<<
* self.c.del_arc(head, child)
*
*/
/* function exit code */
}
/* "stateclass.pxd":109
* self.c.del_arc(head, child)
*
* cdef inline void open_ent(self, int label) nogil: # <<<<<<<<<<<<<<
* self.c.open_ent(label)
*
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_open_ent(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_label) {
/* "stateclass.pxd":110
*
* cdef inline void open_ent(self, int label) nogil:
* self.c.open_ent(label) # <<<<<<<<<<<<<<
*
* cdef inline void close_ent(self) nogil:
*/
__pyx_v_self->c->open_ent(__pyx_v_label);
/* "stateclass.pxd":109
* self.c.del_arc(head, child)
*
* cdef inline void open_ent(self, int label) nogil: # <<<<<<<<<<<<<<
* self.c.open_ent(label)
*
*/
/* function exit code */
}
/* "stateclass.pxd":112
* self.c.open_ent(label)
*
* cdef inline void close_ent(self) nogil: # <<<<<<<<<<<<<<
* self.c.close_ent()
*
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_close_ent(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
/* "stateclass.pxd":113
*
* cdef inline void close_ent(self) nogil:
* self.c.close_ent() # <<<<<<<<<<<<<<
*
* cdef inline void set_ent_tag(self, int i, int ent_iob, int ent_type) nogil:
*/
__pyx_v_self->c->close_ent();
/* "stateclass.pxd":112
* self.c.open_ent(label)
*
* cdef inline void close_ent(self) nogil: # <<<<<<<<<<<<<<
* self.c.close_ent()
*
*/
/* function exit code */
}
/* "stateclass.pxd":115
* self.c.close_ent()
*
* cdef inline void set_ent_tag(self, int i, int ent_iob, int ent_type) nogil: # <<<<<<<<<<<<<<
* self.c.set_ent_tag(i, ent_iob, ent_type)
*
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_set_ent_tag(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i, int __pyx_v_ent_iob, int __pyx_v_ent_type) {
/* "stateclass.pxd":116
*
* cdef inline void set_ent_tag(self, int i, int ent_iob, int ent_type) nogil:
* self.c.set_ent_tag(i, ent_iob, ent_type) # <<<<<<<<<<<<<<
*
* cdef inline void set_break(self, int i) nogil:
*/
__pyx_v_self->c->set_ent_tag(__pyx_v_i, __pyx_v_ent_iob, __pyx_v_ent_type);
/* "stateclass.pxd":115
* self.c.close_ent()
*
* cdef inline void set_ent_tag(self, int i, int ent_iob, int ent_type) nogil: # <<<<<<<<<<<<<<
* self.c.set_ent_tag(i, ent_iob, ent_type)
*
*/
/* function exit code */
}
/* "stateclass.pxd":118
* self.c.set_ent_tag(i, ent_iob, ent_type)
*
* cdef inline void set_break(self, int i) nogil: # <<<<<<<<<<<<<<
* self.c.set_break(i)
*
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_set_break(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, int __pyx_v_i) {
/* "stateclass.pxd":119
*
* cdef inline void set_break(self, int i) nogil:
* self.c.set_break(i) # <<<<<<<<<<<<<<
*
* cdef inline void clone(self, StateClass src) nogil:
*/
__pyx_v_self->c->set_break(__pyx_v_i);
/* "stateclass.pxd":118
* self.c.set_ent_tag(i, ent_iob, ent_type)
*
* cdef inline void set_break(self, int i) nogil: # <<<<<<<<<<<<<<
* self.c.set_break(i)
*
*/
/* function exit code */
}
/* "stateclass.pxd":121
* self.c.set_break(i)
*
* cdef inline void clone(self, StateClass src) nogil: # <<<<<<<<<<<<<<
* self.c.clone(src.c)
*
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_clone(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self, struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_src) {
/* "stateclass.pxd":122
*
* cdef inline void clone(self, StateClass src) nogil:
* self.c.clone(src.c) # <<<<<<<<<<<<<<
*
* cdef inline void fast_forward(self) nogil:
*/
__pyx_v_self->c->clone(__pyx_v_src->c);
/* "stateclass.pxd":121
* self.c.set_break(i)
*
* cdef inline void clone(self, StateClass src) nogil: # <<<<<<<<<<<<<<
* self.c.clone(src.c)
*
*/
/* function exit code */
}
/* "stateclass.pxd":124
* self.c.clone(src.c)
*
* cdef inline void fast_forward(self) nogil: # <<<<<<<<<<<<<<
* self.c.fast_forward()
*/
static CYTHON_INLINE void __pyx_f_5spacy_6syntax_10stateclass_10StateClass_fast_forward(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass *__pyx_v_self) {
/* "stateclass.pxd":125
*
* cdef inline void fast_forward(self) nogil:
* self.c.fast_forward() # <<<<<<<<<<<<<<
*/
__pyx_v_self->c->fast_forward();
/* "stateclass.pxd":124
* self.c.clone(src.c)
*
* cdef inline void fast_forward(self) nogil: # <<<<<<<<<<<<<<
* self.c.fast_forward()
*/
/* function exit code */
}
static PyMethodDef __pyx_methods[] = {
{0, 0, 0, 0}
};
#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef __pyx_moduledef = {
#if PY_VERSION_HEX < 0x03020000
{ PyObject_HEAD_INIT(NULL) NULL, 0, NULL },
#else
PyModuleDef_HEAD_INIT,
#endif
"_parse_features",
__pyx_k_Fill_an_array_context_with_ever, /* m_doc */
-1, /* m_size */
__pyx_methods /* m_methods */,
NULL, /* m_reload */
NULL, /* m_traverse */
NULL, /* m_clear */
NULL /* m_free */
};
#endif
static __Pyx_StringTabEntry __pyx_string_tab[] = {
{&__pyx_kp_u_Format_string_allocated_too_shor, __pyx_k_Format_string_allocated_too_shor, sizeof(__pyx_k_Format_string_allocated_too_shor), 0, 1, 0, 0},
{&__pyx_kp_u_Format_string_allocated_too_shor_2, __pyx_k_Format_string_allocated_too_shor_2, sizeof(__pyx_k_Format_string_allocated_too_shor_2), 0, 1, 0, 0},
{&__pyx_kp_u_Non_native_byte_order_not_suppor, __pyx_k_Non_native_byte_order_not_suppor, sizeof(__pyx_k_Non_native_byte_order_not_suppor), 0, 1, 0, 0},
{&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
{&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
{&__pyx_n_s_combinations, __pyx_k_combinations, sizeof(__pyx_k_combinations), 0, 0, 1, 1},
{&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
{&__pyx_n_s_itertools, __pyx_k_itertools, sizeof(__pyx_k_itertools), 0, 0, 1, 1},
{&__pyx_n_s_labels, __pyx_k_labels, sizeof(__pyx_k_labels), 0, 0, 1, 1},
{&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
{&__pyx_n_s_n0_n1, __pyx_k_n0_n1, sizeof(__pyx_k_n0_n1), 0, 0, 1, 1},
{&__pyx_kp_u_ndarray_is_not_C_contiguous, __pyx_k_ndarray_is_not_C_contiguous, sizeof(__pyx_k_ndarray_is_not_C_contiguous), 0, 1, 0, 0},
{&__pyx_kp_u_ndarray_is_not_Fortran_contiguou, __pyx_k_ndarray_is_not_Fortran_contiguou, sizeof(__pyx_k_ndarray_is_not_Fortran_contiguou), 0, 1, 0, 0},
{&__pyx_n_s_ner, __pyx_k_ner, sizeof(__pyx_k_ner), 0, 0, 1, 1},
{&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
{&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
{&__pyx_n_s_s0_n0, __pyx_k_s0_n0, sizeof(__pyx_k_s0_n0), 0, 0, 1, 1},
{&__pyx_n_s_s0_n1, __pyx_k_s0_n1, sizeof(__pyx_k_s0_n1), 0, 0, 1, 1},
{&__pyx_n_s_s1_n0, __pyx_k_s1_n0, sizeof(__pyx_k_s1_n0), 0, 0, 1, 1},
{&__pyx_n_s_s1_s0, __pyx_k_s1_s0, sizeof(__pyx_k_s1_s0), 0, 0, 1, 1},
{&__pyx_n_s_tags, __pyx_k_tags, sizeof(__pyx_k_tags), 0, 0, 1, 1},
{&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
{&__pyx_n_s_tree_shape, __pyx_k_tree_shape, sizeof(__pyx_k_tree_shape), 0, 0, 1, 1},
{&__pyx_n_s_trigrams, __pyx_k_trigrams, sizeof(__pyx_k_trigrams), 0, 0, 1, 1},
{&__pyx_n_s_unigrams, __pyx_k_unigrams, sizeof(__pyx_k_unigrams), 0, 0, 1, 1},
{&__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_k_unknown_dtype_code_in_numpy_pxd, sizeof(__pyx_k_unknown_dtype_code_in_numpy_pxd), 0, 1, 0, 0},
{&__pyx_n_s_words, __pyx_k_words, sizeof(__pyx_k_words), 0, 0, 1, 1},
{0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
__pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
return 0;
__pyx_L1_error:;
return -1;
}
static int __Pyx_InitCachedConstants(void) {
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":218
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
* and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
* raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<<
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
*/
__pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple_)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_tuple_);
__Pyx_GIVEREF(__pyx_tuple_);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":222
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
* and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
* raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<<
*
* info.buf = PyArray_DATA(self)
*/
__pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_tuple__2);
__Pyx_GIVEREF(__pyx_tuple__2);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":259
* if ((descr.byteorder == c'>' and little_endian) or
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<<
* if t == NPY_BYTE: f = "b"
* elif t == NPY_UBYTE: f = "B"
*/
__pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_tuple__3);
__Pyx_GIVEREF(__pyx_tuple__3);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":799
*
* if (end - f) - <int>(new_offset - offset[0]) < 15:
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<<
*
* if ((child.byteorder == c'>' and little_endian) or
*/
__pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_tuple__4);
__Pyx_GIVEREF(__pyx_tuple__4);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":803
* if ((child.byteorder == c'>' and little_endian) or
* (child.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<<
* # One could encode it in the format string and have Cython
* # complain instead, BUT: < and > in format strings also imply
*/
__pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_tuple__5);
__Pyx_GIVEREF(__pyx_tuple__5);
/* "c:\python\lib\site-packages\Cython\Includes\numpy\__init__.pxd":823
* t = child.type_num
* if end - f < 5:
* raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<<
*
* # Until ticket #99 is fixed, use integers to avoid warnings
*/
__pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_tuple__6);
__Pyx_GIVEREF(__pyx_tuple__6);
__Pyx_RefNannyFinishContext();
return 0;
__pyx_L1_error:;
__Pyx_RefNannyFinishContext();
return -1;
}
static int __Pyx_InitGlobals(void) {
if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
return 0;
__pyx_L1_error:;
return -1;
}
#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC init_parse_features(void); /*proto*/
PyMODINIT_FUNC init_parse_features(void)
#else
PyMODINIT_FUNC PyInit__parse_features(void); /*proto*/
PyMODINIT_FUNC PyInit__parse_features(void)
#endif
{
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
PyObject *__pyx_t_5 = NULL;
PyObject *__pyx_t_6 = NULL;
PyObject *__pyx_t_7 = NULL;
PyObject *__pyx_t_8 = NULL;
PyObject *__pyx_t_9 = NULL;
PyObject *__pyx_t_10 = NULL;
PyObject *__pyx_t_11 = NULL;
PyObject *__pyx_t_12 = NULL;
PyObject *__pyx_t_13 = NULL;
PyObject *__pyx_t_14 = NULL;
PyObject *__pyx_t_15 = NULL;
PyObject *__pyx_t_16 = NULL;
PyObject *__pyx_t_17 = NULL;
PyObject *__pyx_t_18 = NULL;
PyObject *__pyx_t_19 = NULL;
PyObject *__pyx_t_20 = NULL;
PyObject *__pyx_t_21 = NULL;
PyObject *__pyx_t_22 = NULL;
PyObject *__pyx_t_23 = NULL;
PyObject *__pyx_t_24 = NULL;
PyObject *__pyx_t_25 = NULL;
PyObject *__pyx_t_26 = NULL;
PyObject *__pyx_t_27 = NULL;
PyObject *__pyx_t_28 = NULL;
PyObject *__pyx_t_29 = NULL;
PyObject *__pyx_t_30 = NULL;
PyObject *__pyx_t_31 = NULL;
PyObject *__pyx_t_32 = NULL;
PyObject *__pyx_t_33 = NULL;
PyObject *__pyx_t_34 = NULL;
PyObject *__pyx_t_35 = NULL;
PyObject *__pyx_t_36 = NULL;
PyObject *__pyx_t_37 = NULL;
PyObject *__pyx_t_38 = NULL;
PyObject *__pyx_t_39 = NULL;
PyObject *__pyx_t_40 = NULL;
PyObject *__pyx_t_41 = NULL;
PyObject *__pyx_t_42 = NULL;
PyObject *__pyx_t_43 = NULL;
PyObject *__pyx_t_44 = NULL;
PyObject *__pyx_t_45 = NULL;
PyObject *__pyx_t_46 = NULL;
PyObject *__pyx_t_47 = NULL;
PyObject *__pyx_t_48 = NULL;
PyObject *__pyx_t_49 = NULL;
PyObject *__pyx_t_50 = NULL;
PyObject *__pyx_t_51 = NULL;
PyObject *__pyx_t_52 = NULL;
PyObject *__pyx_t_53 = NULL;
PyObject *__pyx_t_54 = NULL;
PyObject *__pyx_t_55 = NULL;
PyObject *__pyx_t_56 = NULL;
PyObject *__pyx_t_57 = NULL;
PyObject *__pyx_t_58 = NULL;
PyObject *__pyx_t_59 = NULL;
PyObject *__pyx_t_60 = NULL;
PyObject *__pyx_t_61 = NULL;
PyObject *__pyx_t_62 = NULL;
PyObject *__pyx_t_63 = NULL;
PyObject *__pyx_t_64 = NULL;
PyObject *__pyx_t_65 = NULL;
PyObject *__pyx_t_66 = NULL;
PyObject *__pyx_t_67 = NULL;
PyObject *__pyx_t_68 = NULL;
PyObject *__pyx_t_69 = NULL;
PyObject *__pyx_t_70 = NULL;
PyObject *__pyx_t_71 = NULL;
PyObject *__pyx_t_72 = NULL;
PyObject *__pyx_t_73 = NULL;
PyObject *__pyx_t_74 = NULL;
PyObject *__pyx_t_75 = NULL;
PyObject *__pyx_t_76 = NULL;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
__Pyx_RefNannyDeclarations
#if CYTHON_REFNANNY
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
if (!__Pyx_RefNanny) {
PyErr_Clear();
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
if (!__Pyx_RefNanny)
Py_FatalError("failed to import 'refnanny' module");
}
#endif
__Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit__parse_features(void)", 0);
if (__Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#ifdef __Pyx_CyFunction_USED
if (__pyx_CyFunction_init() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#endif
#ifdef __Pyx_FusedFunction_USED
if (__pyx_FusedFunction_init() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#endif
#ifdef __Pyx_Coroutine_USED
if (__pyx_Coroutine_init() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#endif
#ifdef __Pyx_Generator_USED
if (__pyx_Generator_init() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#endif
#ifdef __Pyx_StopAsyncIteration_USED
if (__pyx_StopAsyncIteration_init() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#endif
/*--- Library function declarations ---*/
/*--- Threads initialization code ---*/
#if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
#ifdef WITH_THREAD /* Python build with threading support? */
PyEval_InitThreads();
#endif
#endif
/*--- Module creation code ---*/
#if PY_MAJOR_VERSION < 3
__pyx_m = Py_InitModule4("_parse_features", __pyx_methods, __pyx_k_Fill_an_array_context_with_ever, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
#else
__pyx_m = PyModule_Create(&__pyx_moduledef);
#endif
if (unlikely(!__pyx_m)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
Py_INCREF(__pyx_d);
__pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#if CYTHON_COMPILING_IN_PYPY
Py_INCREF(__pyx_b);
#endif
if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
/*--- Initialize various global constants etc. ---*/
if (__Pyx_InitGlobals() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
if (__Pyx_init_sys_getdefaultencoding_params() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#endif
if (__pyx_module_is_main_spacy__syntax___parse_features) {
if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
#if PY_MAJOR_VERSION >= 3
{
PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (!PyDict_GetItemString(modules, "spacy.syntax._parse_features")) {
if (unlikely(PyDict_SetItemString(modules, "spacy.syntax._parse_features", __pyx_m) < 0)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
}
#endif
/*--- Builtin init code ---*/
if (__Pyx_InitCachedBuiltins() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/*--- Constants init code ---*/
if (__Pyx_InitCachedConstants() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/*--- Global init code ---*/
/*--- Variable export code ---*/
/*--- Function export code ---*/
if (__Pyx_ExportFunction("fill_context", (void (*)(void))__pyx_f_5spacy_6syntax_15_parse_features_fill_context, "int (__pyx_t_5thinc_8typedefs_atom_t *, __pyx_t_5spacy_6syntax_6_state_StateC const *)") < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/*--- Type init code ---*/
/*--- Type import code ---*/
__pyx_ptype_5cymem_5cymem_Pool = __Pyx_ImportType("cymem.cymem", "Pool", sizeof(struct __pyx_obj_5cymem_5cymem_Pool), 1); if (unlikely(!__pyx_ptype_5cymem_5cymem_Pool)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_vtabptr_5cymem_5cymem_Pool = (struct __pyx_vtabstruct_5cymem_5cymem_Pool*)__Pyx_GetVtable(__pyx_ptype_5cymem_5cymem_Pool->tp_dict); if (unlikely(!__pyx_vtabptr_5cymem_5cymem_Pool)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5cymem_5cymem_Address = __Pyx_ImportType("cymem.cymem", "Address", sizeof(struct __pyx_obj_5cymem_5cymem_Address), 1); if (unlikely(!__pyx_ptype_5cymem_5cymem_Address)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_7preshed_4maps_PreshMap = __Pyx_ImportType("preshed.maps", "PreshMap", sizeof(struct __pyx_obj_7preshed_4maps_PreshMap), 1); if (unlikely(!__pyx_ptype_7preshed_4maps_PreshMap)) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_vtabptr_7preshed_4maps_PreshMap = (struct __pyx_vtabstruct_7preshed_4maps_PreshMap*)__Pyx_GetVtable(__pyx_ptype_7preshed_4maps_PreshMap->tp_dict); if (unlikely(!__pyx_vtabptr_7preshed_4maps_PreshMap)) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_7preshed_4maps_PreshMapArray = __Pyx_ImportType("preshed.maps", "PreshMapArray", sizeof(struct __pyx_obj_7preshed_4maps_PreshMapArray), 1); if (unlikely(!__pyx_ptype_7preshed_4maps_PreshMapArray)) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_vtabptr_7preshed_4maps_PreshMapArray = (struct __pyx_vtabstruct_7preshed_4maps_PreshMapArray*)__Pyx_GetVtable(__pyx_ptype_7preshed_4maps_PreshMapArray->tp_dict); if (unlikely(!__pyx_vtabptr_7preshed_4maps_PreshMapArray)) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5spacy_7strings_StringStore = __Pyx_ImportType("spacy.strings", "StringStore", sizeof(struct __pyx_obj_5spacy_7strings_StringStore), 1); if (unlikely(!__pyx_ptype_5spacy_7strings_StringStore)) {__pyx_filename = __pyx_f[6]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_vtabptr_5spacy_7strings_StringStore = (struct __pyx_vtabstruct_5spacy_7strings_StringStore*)__Pyx_GetVtable(__pyx_ptype_5spacy_7strings_StringStore->tp_dict); if (unlikely(!__pyx_vtabptr_5spacy_7strings_StringStore)) {__pyx_filename = __pyx_f[6]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5spacy_10morphology_Morphology = __Pyx_ImportType("spacy.morphology", "Morphology", sizeof(struct __pyx_obj_5spacy_10morphology_Morphology), 1); if (unlikely(!__pyx_ptype_5spacy_10morphology_Morphology)) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_vtabptr_5spacy_10morphology_Morphology = (struct __pyx_vtabstruct_5spacy_10morphology_Morphology*)__Pyx_GetVtable(__pyx_ptype_5spacy_10morphology_Morphology->tp_dict); if (unlikely(!__pyx_vtabptr_5spacy_10morphology_Morphology)) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5spacy_5vocab_Vocab = __Pyx_ImportType("spacy.vocab", "Vocab", sizeof(struct __pyx_obj_5spacy_5vocab_Vocab), 1); if (unlikely(!__pyx_ptype_5spacy_5vocab_Vocab)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_vtabptr_5spacy_5vocab_Vocab = (struct __pyx_vtabstruct_5spacy_5vocab_Vocab*)__Pyx_GetVtable(__pyx_ptype_5spacy_5vocab_Vocab->tp_dict); if (unlikely(!__pyx_vtabptr_5spacy_5vocab_Vocab)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "type",
#if CYTHON_COMPILING_IN_PYPY
sizeof(PyTypeObject),
#else
sizeof(PyHeapTypeObject),
#endif
0); if (unlikely(!__pyx_ptype_7cpython_4type_type)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr), 0); if (unlikely(!__pyx_ptype_5numpy_dtype)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5spacy_6lexeme_Lexeme = __Pyx_ImportType("spacy.lexeme", "Lexeme", sizeof(struct __pyx_obj_5spacy_6lexeme_Lexeme), 1); if (unlikely(!__pyx_ptype_5spacy_6lexeme_Lexeme)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_vtabptr_5spacy_6lexeme_Lexeme = (struct __pyx_vtabstruct_5spacy_6lexeme_Lexeme*)__Pyx_GetVtable(__pyx_ptype_5spacy_6lexeme_Lexeme->tp_dict); if (unlikely(!__pyx_vtabptr_5spacy_6lexeme_Lexeme)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_5spacy_6syntax_10stateclass_StateClass = __Pyx_ImportType("spacy.syntax.stateclass", "StateClass", sizeof(struct __pyx_obj_5spacy_6syntax_10stateclass_StateClass), 1); if (unlikely(!__pyx_ptype_5spacy_6syntax_10stateclass_StateClass)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_vtabptr_5spacy_6syntax_10stateclass_StateClass = (struct __pyx_vtabstruct_5spacy_6syntax_10stateclass_StateClass*)__Pyx_GetVtable(__pyx_ptype_5spacy_6syntax_10stateclass_StateClass->tp_dict); if (unlikely(!__pyx_vtabptr_5spacy_6syntax_10stateclass_StateClass)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/*--- Variable import code ---*/
__pyx_t_1 = __Pyx_ImportModule("spacy.vocab"); if (!__pyx_t_1) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportVoidPtr(__pyx_t_1, "EMPTY_LEXEME", (void **)&__pyx_vp_5spacy_5vocab_EMPTY_LEXEME, "struct __pyx_t_5spacy_7structs_LexemeC") < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_2 = __Pyx_ImportModule("spacy.lexeme"); if (!__pyx_t_2) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportVoidPtr(__pyx_t_2, "EMPTY_LEXEME", (void **)&__pyx_vp_5spacy_6lexeme_EMPTY_LEXEME, "struct __pyx_t_5spacy_7structs_LexemeC") < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
Py_DECREF(__pyx_t_2); __pyx_t_2 = 0;
/*--- Function import code ---*/
__pyx_t_3 = __Pyx_ImportModule("murmurhash.mrmr"); if (!__pyx_t_3) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_3, "hash64", (void (**)(void))&__pyx_f_10murmurhash_4mrmr_hash64, "uint64_t (void *, int, uint64_t)") < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
Py_DECREF(__pyx_t_3); __pyx_t_3 = 0;
/*--- Execution code ---*/
#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
if (__Pyx_patch_abc() < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#endif
/* "spacy\syntax\_parse_features.pyx":14
*
* from libc.string cimport memset
* from itertools import combinations # <<<<<<<<<<<<<<
* from cymem.cymem cimport Pool
*
*/
__pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(__pyx_n_s_combinations);
__Pyx_GIVEREF(__pyx_n_s_combinations);
PyList_SET_ITEM(__pyx_t_4, 0, __pyx_n_s_combinations);
__pyx_t_5 = __Pyx_Import(__pyx_n_s_itertools, __pyx_t_4, -1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_4 = __Pyx_ImportFrom(__pyx_t_5, __pyx_n_s_combinations); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_combinations, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":112
*
* ner = (
* (N0W,), # <<<<<<<<<<<<<<
* (P1W,),
* (N1W,),
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":113
* ner = (
* (N0W,),
* (P1W,), # <<<<<<<<<<<<<<
* (N1W,),
* (P2W,),
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1W); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5);
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":114
* (N0W,),
* (P1W,),
* (N1W,), # <<<<<<<<<<<<<<
* (P2W,),
* (N2W,),
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1W); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_7);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5);
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":115
* (P1W,),
* (N1W,),
* (P2W,), # <<<<<<<<<<<<<<
* (N2W,),
*
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2W); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_8);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5);
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":116
* (N1W,),
* (P2W,),
* (N2W,), # <<<<<<<<<<<<<<
*
* (P1W, N0W,),
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2W); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_9);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_5);
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":118
* (N2W,),
*
* (P1W, N0W,), # <<<<<<<<<<<<<<
* (N0W, N1W),
*
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1W); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_10 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_10);
__pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_11);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_5);
__Pyx_GIVEREF(__pyx_t_10);
PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_10);
__pyx_t_5 = 0;
__pyx_t_10 = 0;
/* "spacy\syntax\_parse_features.pyx":119
*
* (P1W, N0W,),
* (N0W, N1W), # <<<<<<<<<<<<<<
*
* (N0_prefix,),
*/
__pyx_t_10 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_10);
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1W); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_12 = PyTuple_New(2); if (unlikely(!__pyx_t_12)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_12);
__Pyx_GIVEREF(__pyx_t_10);
PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_t_5);
__pyx_t_10 = 0;
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":121
* (N0W, N1W),
*
* (N0_prefix,), # <<<<<<<<<<<<<<
* (N0_suffix,),
*
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_prefix); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_10);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5);
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":122
*
* (N0_prefix,),
* (N0_suffix,), # <<<<<<<<<<<<<<
*
* (P1_shape,),
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_suffix); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_13 = PyTuple_New(1); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_13);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_5);
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":124
* (N0_suffix,),
*
* (P1_shape,), # <<<<<<<<<<<<<<
* (N0_shape,),
* (N1_shape,),
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_shape); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_14);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_5);
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":125
*
* (P1_shape,),
* (N0_shape,), # <<<<<<<<<<<<<<
* (N1_shape,),
* (P1_shape, N0_shape,),
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_shape); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_15 = PyTuple_New(1); if (unlikely(!__pyx_t_15)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_15);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_5);
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":126
* (P1_shape,),
* (N0_shape,),
* (N1_shape,), # <<<<<<<<<<<<<<
* (P1_shape, N0_shape,),
* (N0_shape, P1_shape,),
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1_shape); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_16 = PyTuple_New(1); if (unlikely(!__pyx_t_16)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_16);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_5);
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":127
* (N0_shape,),
* (N1_shape,),
* (P1_shape, N0_shape,), # <<<<<<<<<<<<<<
* (N0_shape, P1_shape,),
* (P1_shape, N0_shape, N1_shape),
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_shape); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_17 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_shape); if (unlikely(!__pyx_t_17)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_17);
__pyx_t_18 = PyTuple_New(2); if (unlikely(!__pyx_t_18)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_18);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_18, 0, __pyx_t_5);
__Pyx_GIVEREF(__pyx_t_17);
PyTuple_SET_ITEM(__pyx_t_18, 1, __pyx_t_17);
__pyx_t_5 = 0;
__pyx_t_17 = 0;
/* "spacy\syntax\_parse_features.pyx":128
* (N1_shape,),
* (P1_shape, N0_shape,),
* (N0_shape, P1_shape,), # <<<<<<<<<<<<<<
* (P1_shape, N0_shape, N1_shape),
* (N2_shape,),
*/
__pyx_t_17 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_shape); if (unlikely(!__pyx_t_17)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_17);
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_shape); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_19 = PyTuple_New(2); if (unlikely(!__pyx_t_19)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_19);
__Pyx_GIVEREF(__pyx_t_17);
PyTuple_SET_ITEM(__pyx_t_19, 0, __pyx_t_17);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_19, 1, __pyx_t_5);
__pyx_t_17 = 0;
__pyx_t_5 = 0;
/* "spacy\syntax\_parse_features.pyx":129
* (P1_shape, N0_shape,),
* (N0_shape, P1_shape,),
* (P1_shape, N0_shape, N1_shape), # <<<<<<<<<<<<<<
* (N2_shape,),
* (P2_shape,),
*/
__pyx_t_5 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_shape); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_17 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_shape); if (unlikely(!__pyx_t_17)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_17);
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1_shape); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_21 = PyTuple_New(3); if (unlikely(!__pyx_t_21)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_21);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_21, 0, __pyx_t_5);
__Pyx_GIVEREF(__pyx_t_17);
PyTuple_SET_ITEM(__pyx_t_21, 1, __pyx_t_17);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_21, 2, __pyx_t_20);
__pyx_t_5 = 0;
__pyx_t_17 = 0;
__pyx_t_20 = 0;
/* "spacy\syntax\_parse_features.pyx":130
* (N0_shape, P1_shape,),
* (P1_shape, N0_shape, N1_shape),
* (N2_shape,), # <<<<<<<<<<<<<<
* (P2_shape,),
*
*/
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2_shape); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_17);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_20);
__pyx_t_20 = 0;
/* "spacy\syntax\_parse_features.pyx":131
* (P1_shape, N0_shape, N1_shape),
* (N2_shape,),
* (P2_shape,), # <<<<<<<<<<<<<<
*
* #(P2_norm, P1_norm, W_norm),
*/
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_shape); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_20);
__pyx_t_20 = 0;
/* "spacy\syntax\_parse_features.pyx":137
* #(W_norm, N1_norm, N2_norm)
*
* (P2p,), # <<<<<<<<<<<<<<
* (P1p,),
* (N0p,),
*/
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2p); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_22 = PyTuple_New(1); if (unlikely(!__pyx_t_22)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_22);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_22, 0, __pyx_t_20);
__pyx_t_20 = 0;
/* "spacy\syntax\_parse_features.pyx":138
*
* (P2p,),
* (P1p,), # <<<<<<<<<<<<<<
* (N0p,),
* (N1p,),
*/
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1p); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_23 = PyTuple_New(1); if (unlikely(!__pyx_t_23)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_23);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_23, 0, __pyx_t_20);
__pyx_t_20 = 0;
/* "spacy\syntax\_parse_features.pyx":139
* (P2p,),
* (P1p,),
* (N0p,), # <<<<<<<<<<<<<<
* (N1p,),
* (N2p,),
*/
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_24 = PyTuple_New(1); if (unlikely(!__pyx_t_24)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_24);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_24, 0, __pyx_t_20);
__pyx_t_20 = 0;
/* "spacy\syntax\_parse_features.pyx":140
* (P1p,),
* (N0p,),
* (N1p,), # <<<<<<<<<<<<<<
* (N2p,),
*
*/
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_25 = PyTuple_New(1); if (unlikely(!__pyx_t_25)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_25);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_25, 0, __pyx_t_20);
__pyx_t_20 = 0;
/* "spacy\syntax\_parse_features.pyx":141
* (N0p,),
* (N1p,),
* (N2p,), # <<<<<<<<<<<<<<
*
* (P1p, N0p),
*/
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2p); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_26 = PyTuple_New(1); if (unlikely(!__pyx_t_26)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_26);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_26, 0, __pyx_t_20);
__pyx_t_20 = 0;
/* "spacy\syntax\_parse_features.pyx":143
* (N2p,),
*
* (P1p, N0p), # <<<<<<<<<<<<<<
* (N0p, N1p),
* (P2p, P1p, N0p),
*/
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1p); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_27 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_27)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_27);
__pyx_t_28 = PyTuple_New(2); if (unlikely(!__pyx_t_28)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_28);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_28, 0, __pyx_t_20);
__Pyx_GIVEREF(__pyx_t_27);
PyTuple_SET_ITEM(__pyx_t_28, 1, __pyx_t_27);
__pyx_t_20 = 0;
__pyx_t_27 = 0;
/* "spacy\syntax\_parse_features.pyx":144
*
* (P1p, N0p),
* (N0p, N1p), # <<<<<<<<<<<<<<
* (P2p, P1p, N0p),
* (P1p, N0p, N1p),
*/
__pyx_t_27 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_27)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_27);
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_29 = PyTuple_New(2); if (unlikely(!__pyx_t_29)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_29);
__Pyx_GIVEREF(__pyx_t_27);
PyTuple_SET_ITEM(__pyx_t_29, 0, __pyx_t_27);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_29, 1, __pyx_t_20);
__pyx_t_27 = 0;
__pyx_t_20 = 0;
/* "spacy\syntax\_parse_features.pyx":145
* (P1p, N0p),
* (N0p, N1p),
* (P2p, P1p, N0p), # <<<<<<<<<<<<<<
* (P1p, N0p, N1p),
* (N0p, N1p, N2p),
*/
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2p); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_27 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1p); if (unlikely(!__pyx_t_27)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_27);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_31 = PyTuple_New(3); if (unlikely(!__pyx_t_31)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_31);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_31, 0, __pyx_t_20);
__Pyx_GIVEREF(__pyx_t_27);
PyTuple_SET_ITEM(__pyx_t_31, 1, __pyx_t_27);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_31, 2, __pyx_t_30);
__pyx_t_20 = 0;
__pyx_t_27 = 0;
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":146
* (N0p, N1p),
* (P2p, P1p, N0p),
* (P1p, N0p, N1p), # <<<<<<<<<<<<<<
* (N0p, N1p, N2p),
*
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_27 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_27)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_27);
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_32 = PyTuple_New(3); if (unlikely(!__pyx_t_32)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_32);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_32, 0, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_27);
PyTuple_SET_ITEM(__pyx_t_32, 1, __pyx_t_27);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_32, 2, __pyx_t_20);
__pyx_t_30 = 0;
__pyx_t_27 = 0;
__pyx_t_20 = 0;
/* "spacy\syntax\_parse_features.pyx":147
* (P2p, P1p, N0p),
* (P1p, N0p, N1p),
* (N0p, N1p, N2p), # <<<<<<<<<<<<<<
*
* (P2c,),
*/
__pyx_t_20 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__pyx_t_27 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_27)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_27);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_33 = PyTuple_New(3); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_33);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_33, 0, __pyx_t_20);
__Pyx_GIVEREF(__pyx_t_27);
PyTuple_SET_ITEM(__pyx_t_33, 1, __pyx_t_27);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_33, 2, __pyx_t_30);
__pyx_t_20 = 0;
__pyx_t_27 = 0;
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":149
* (N0p, N1p, N2p),
*
* (P2c,), # <<<<<<<<<<<<<<
* (P1c,),
* (N0c,),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_27 = PyTuple_New(1); if (unlikely(!__pyx_t_27)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_27);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_27, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":150
*
* (P2c,),
* (P1c,), # <<<<<<<<<<<<<<
* (N0c,),
* (N1c,),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_20 = PyTuple_New(1); if (unlikely(!__pyx_t_20)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_20);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":151
* (P2c,),
* (P1c,),
* (N0c,), # <<<<<<<<<<<<<<
* (N1c,),
* (N2c,),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_34 = PyTuple_New(1); if (unlikely(!__pyx_t_34)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_34);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_34, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":152
* (P1c,),
* (N0c,),
* (N1c,), # <<<<<<<<<<<<<<
* (N2c,),
*
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_35 = PyTuple_New(1); if (unlikely(!__pyx_t_35)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_35);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_35, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":153
* (N0c,),
* (N1c,),
* (N2c,), # <<<<<<<<<<<<<<
*
* (P1c, N0c),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_36 = PyTuple_New(1); if (unlikely(!__pyx_t_36)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_36);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_36, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":155
* (N2c,),
*
* (P1c, N0c), # <<<<<<<<<<<<<<
* (N0c, N1c),
*
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_37 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_37)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_37);
__pyx_t_38 = PyTuple_New(2); if (unlikely(!__pyx_t_38)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_38);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_38, 0, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_37);
PyTuple_SET_ITEM(__pyx_t_38, 1, __pyx_t_37);
__pyx_t_30 = 0;
__pyx_t_37 = 0;
/* "spacy\syntax\_parse_features.pyx":156
*
* (P1c, N0c),
* (N0c, N1c), # <<<<<<<<<<<<<<
*
* (E0W,),
*/
__pyx_t_37 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_37)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_37);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_39 = PyTuple_New(2); if (unlikely(!__pyx_t_39)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_39);
__Pyx_GIVEREF(__pyx_t_37);
PyTuple_SET_ITEM(__pyx_t_39, 0, __pyx_t_37);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_39, 1, __pyx_t_30);
__pyx_t_37 = 0;
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":158
* (N0c, N1c),
*
* (E0W,), # <<<<<<<<<<<<<<
* (E0c,),
* (E0p,),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0W); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_37 = PyTuple_New(1); if (unlikely(!__pyx_t_37)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_37);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_37, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":159
*
* (E0W,),
* (E0c,), # <<<<<<<<<<<<<<
* (E0p,),
*
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_40 = PyTuple_New(1); if (unlikely(!__pyx_t_40)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_40);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_40, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":160
* (E0W,),
* (E0c,),
* (E0p,), # <<<<<<<<<<<<<<
*
* (E0W, N0W),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_41 = PyTuple_New(1); if (unlikely(!__pyx_t_41)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_41);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_41, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":162
* (E0p,),
*
* (E0W, N0W), # <<<<<<<<<<<<<<
* (E0c, N0W),
* (E0p, N0W),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0W); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_43 = PyTuple_New(2); if (unlikely(!__pyx_t_43)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_43);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_43, 0, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_43, 1, __pyx_t_42);
__pyx_t_30 = 0;
__pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":163
*
* (E0W, N0W),
* (E0c, N0W), # <<<<<<<<<<<<<<
* (E0p, N0W),
*
*/
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0c); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_44 = PyTuple_New(2); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_44, 0, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_44, 1, __pyx_t_30);
__pyx_t_42 = 0;
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":164
* (E0W, N0W),
* (E0c, N0W),
* (E0p, N0W), # <<<<<<<<<<<<<<
*
* (E0p, P1p, N0p),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_45 = PyTuple_New(2); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_45);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_45, 0, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_45, 1, __pyx_t_42);
__pyx_t_30 = 0;
__pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":166
* (E0p, N0W),
*
* (E0p, P1p, N0p), # <<<<<<<<<<<<<<
* (E0c, P1c, N0c),
*
*/
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0p); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_46 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_46)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_46);
__pyx_t_47 = PyTuple_New(3); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_47, 0, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_47, 1, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_46);
PyTuple_SET_ITEM(__pyx_t_47, 2, __pyx_t_46);
__pyx_t_42 = 0;
__pyx_t_30 = 0;
__pyx_t_46 = 0;
/* "spacy\syntax\_parse_features.pyx":167
*
* (E0p, P1p, N0p),
* (E0c, P1c, N0c), # <<<<<<<<<<<<<<
*
* (E0w, P1c),
*/
__pyx_t_46 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0c); if (unlikely(!__pyx_t_46)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_46);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_48 = PyTuple_New(3); if (unlikely(!__pyx_t_48)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_48);
__Pyx_GIVEREF(__pyx_t_46);
PyTuple_SET_ITEM(__pyx_t_48, 0, __pyx_t_46);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_48, 1, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_48, 2, __pyx_t_42);
__pyx_t_46 = 0;
__pyx_t_30 = 0;
__pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":169
* (E0c, P1c, N0c),
*
* (E0w, P1c), # <<<<<<<<<<<<<<
* (E0p, P1p),
* (E0c, P1c),
*/
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0w); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_46 = PyTuple_New(2); if (unlikely(!__pyx_t_46)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_46);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_46, 0, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_46, 1, __pyx_t_30);
__pyx_t_42 = 0;
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":170
*
* (E0w, P1c),
* (E0p, P1p), # <<<<<<<<<<<<<<
* (E0c, P1c),
* (E0p, E1p),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1p); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_49 = PyTuple_New(2); if (unlikely(!__pyx_t_49)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_49);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_49, 0, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_49, 1, __pyx_t_42);
__pyx_t_30 = 0;
__pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":171
* (E0w, P1c),
* (E0p, P1p),
* (E0c, P1c), # <<<<<<<<<<<<<<
* (E0p, E1p),
* (E0c, P1p),
*/
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0c); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_50 = PyTuple_New(2); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_50, 0, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_50, 1, __pyx_t_30);
__pyx_t_42 = 0;
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":172
* (E0p, P1p),
* (E0c, P1c),
* (E0p, E1p), # <<<<<<<<<<<<<<
* (E0c, P1p),
*
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1p); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_51 = PyTuple_New(2); if (unlikely(!__pyx_t_51)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_51);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_51, 0, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_51, 1, __pyx_t_42);
__pyx_t_30 = 0;
__pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":173
* (E0c, P1c),
* (E0p, E1p),
* (E0c, P1p), # <<<<<<<<<<<<<<
*
* (E1W,),
*/
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0c); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_52 = PyTuple_New(2); if (unlikely(!__pyx_t_52)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_52);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_52, 0, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_52, 1, __pyx_t_30);
__pyx_t_42 = 0;
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":175
* (E0c, P1p),
*
* (E1W,), # <<<<<<<<<<<<<<
* (E1c,),
* (E1p,),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1W); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_42 = PyTuple_New(1); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_42, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":176
*
* (E1W,),
* (E1c,), # <<<<<<<<<<<<<<
* (E1p,),
*
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1c); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_53 = PyTuple_New(1); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_53, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":177
* (E1W,),
* (E1c,),
* (E1p,), # <<<<<<<<<<<<<<
*
* (E0W, E1W),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_54 = PyTuple_New(1); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_54, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":179
* (E1p,),
*
* (E0W, E1W), # <<<<<<<<<<<<<<
* (E0W, E1p,),
* (E0p, E1W,),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0W); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_55 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1W); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__pyx_t_56 = PyTuple_New(2); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_56, 0, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_56, 1, __pyx_t_55);
__pyx_t_30 = 0;
__pyx_t_55 = 0;
/* "spacy\syntax\_parse_features.pyx":180
*
* (E0W, E1W),
* (E0W, E1p,), # <<<<<<<<<<<<<<
* (E0p, E1W,),
* (E0p, E1W),
*/
__pyx_t_55 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0W); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_57 = PyTuple_New(2); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_57, 0, __pyx_t_55);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_57, 1, __pyx_t_30);
__pyx_t_55 = 0;
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":181
* (E0W, E1W),
* (E0W, E1p,),
* (E0p, E1W,), # <<<<<<<<<<<<<<
* (E0p, E1W),
*
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_55 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1W); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__pyx_t_58 = PyTuple_New(2); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_58, 0, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_58, 1, __pyx_t_55);
__pyx_t_30 = 0;
__pyx_t_55 = 0;
/* "spacy\syntax\_parse_features.pyx":182
* (E0W, E1p,),
* (E0p, E1W,),
* (E0p, E1W), # <<<<<<<<<<<<<<
*
* (P1_ne_iob,),
*/
__pyx_t_55 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0p); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1W); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_59 = PyTuple_New(2); if (unlikely(!__pyx_t_59)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_59);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_59, 0, __pyx_t_55);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_59, 1, __pyx_t_30);
__pyx_t_55 = 0;
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":184
* (E0p, E1W),
*
* (P1_ne_iob,), # <<<<<<<<<<<<<<
* (P1_ne_iob, P1_ne_type),
* (N0w, P1_ne_iob, P1_ne_type),
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_iob); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_55 = PyTuple_New(1); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_55, 0, __pyx_t_30);
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":185
*
* (P1_ne_iob,),
* (P1_ne_iob, P1_ne_type), # <<<<<<<<<<<<<<
* (N0w, P1_ne_iob, P1_ne_type),
*
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_iob); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 185; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_type); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 185; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_61 = PyTuple_New(2); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 185; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_61, 0, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_61, 1, __pyx_t_60);
__pyx_t_30 = 0;
__pyx_t_60 = 0;
/* "spacy\syntax\_parse_features.pyx":186
* (P1_ne_iob,),
* (P1_ne_iob, P1_ne_type),
* (N0w, P1_ne_iob, P1_ne_type), # <<<<<<<<<<<<<<
*
* (N0_shape,),
*/
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0w); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_iob); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_type); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_63 = PyTuple_New(3); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_63, 0, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_63, 1, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_63, 2, __pyx_t_62);
__pyx_t_60 = 0;
__pyx_t_30 = 0;
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":188
* (N0w, P1_ne_iob, P1_ne_type),
*
* (N0_shape,), # <<<<<<<<<<<<<<
* (N1_shape,),
* (N2_shape,),
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_shape); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_30 = PyTuple_New(1); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_30, 0, __pyx_t_62);
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":189
*
* (N0_shape,),
* (N1_shape,), # <<<<<<<<<<<<<<
* (N2_shape,),
* (P1_shape,),
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1_shape); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_60 = PyTuple_New(1); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_60, 0, __pyx_t_62);
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":190
* (N0_shape,),
* (N1_shape,),
* (N2_shape,), # <<<<<<<<<<<<<<
* (P1_shape,),
* (P2_shape,),
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2_shape); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_64 = PyTuple_New(1); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_64, 0, __pyx_t_62);
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":191
* (N1_shape,),
* (N2_shape,),
* (P1_shape,), # <<<<<<<<<<<<<<
* (P2_shape,),
*
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_shape); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_65 = PyTuple_New(1); if (unlikely(!__pyx_t_65)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_65);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_65, 0, __pyx_t_62);
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":192
* (N2_shape,),
* (P1_shape,),
* (P2_shape,), # <<<<<<<<<<<<<<
*
* (N0_prefix,),
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_shape); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 192; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_66 = PyTuple_New(1); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 192; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_66, 0, __pyx_t_62);
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":194
* (P2_shape,),
*
* (N0_prefix,), # <<<<<<<<<<<<<<
* (N0_suffix,),
*
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_prefix); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_67 = PyTuple_New(1); if (unlikely(!__pyx_t_67)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_67);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_67, 0, __pyx_t_62);
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":195
*
* (N0_prefix,),
* (N0_suffix,), # <<<<<<<<<<<<<<
*
* (P1_ne_iob,),
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_suffix); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_68 = PyTuple_New(1); if (unlikely(!__pyx_t_68)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_68);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_68, 0, __pyx_t_62);
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":197
* (N0_suffix,),
*
* (P1_ne_iob,), # <<<<<<<<<<<<<<
* (P2_ne_iob,),
* (P1_ne_iob, P2_ne_iob),
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_iob); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_69 = PyTuple_New(1); if (unlikely(!__pyx_t_69)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_69);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_69, 0, __pyx_t_62);
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":198
*
* (P1_ne_iob,),
* (P2_ne_iob,), # <<<<<<<<<<<<<<
* (P1_ne_iob, P2_ne_iob),
* (P1_ne_iob, P1_ne_type),
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_ne_iob); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_70 = PyTuple_New(1); if (unlikely(!__pyx_t_70)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_70);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_70, 0, __pyx_t_62);
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":199
* (P1_ne_iob,),
* (P2_ne_iob,),
* (P1_ne_iob, P2_ne_iob), # <<<<<<<<<<<<<<
* (P1_ne_iob, P1_ne_type),
* (P2_ne_iob, P2_ne_type),
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_iob); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_ne_iob); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_72 = PyTuple_New(2); if (unlikely(!__pyx_t_72)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_72);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_72, 0, __pyx_t_62);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_72, 1, __pyx_t_71);
__pyx_t_62 = 0;
__pyx_t_71 = 0;
/* "spacy\syntax\_parse_features.pyx":200
* (P2_ne_iob,),
* (P1_ne_iob, P2_ne_iob),
* (P1_ne_iob, P1_ne_type), # <<<<<<<<<<<<<<
* (P2_ne_iob, P2_ne_type),
* (N0w, P1_ne_iob, P1_ne_type),
*/
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_iob); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_type); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_73 = PyTuple_New(2); if (unlikely(!__pyx_t_73)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_73);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_73, 0, __pyx_t_71);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_73, 1, __pyx_t_62);
__pyx_t_71 = 0;
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":201
* (P1_ne_iob, P2_ne_iob),
* (P1_ne_iob, P1_ne_type),
* (P2_ne_iob, P2_ne_type), # <<<<<<<<<<<<<<
* (N0w, P1_ne_iob, P1_ne_type),
*
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_ne_iob); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_ne_type); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_74 = PyTuple_New(2); if (unlikely(!__pyx_t_74)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_74);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_74, 0, __pyx_t_62);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_74, 1, __pyx_t_71);
__pyx_t_62 = 0;
__pyx_t_71 = 0;
/* "spacy\syntax\_parse_features.pyx":202
* (P1_ne_iob, P1_ne_type),
* (P2_ne_iob, P2_ne_type),
* (N0w, P1_ne_iob, P1_ne_type), # <<<<<<<<<<<<<<
*
* (N0w, N1w),
*/
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0w); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_iob); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_75 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_type); if (unlikely(!__pyx_t_75)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_75);
__pyx_t_76 = PyTuple_New(3); if (unlikely(!__pyx_t_76)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_76);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_76, 0, __pyx_t_71);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_76, 1, __pyx_t_62);
__Pyx_GIVEREF(__pyx_t_75);
PyTuple_SET_ITEM(__pyx_t_76, 2, __pyx_t_75);
__pyx_t_71 = 0;
__pyx_t_62 = 0;
__pyx_t_75 = 0;
/* "spacy\syntax\_parse_features.pyx":204
* (N0w, P1_ne_iob, P1_ne_type),
*
* (N0w, N1w), # <<<<<<<<<<<<<<
* )
*
*/
__pyx_t_75 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0w); if (unlikely(!__pyx_t_75)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_75);
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1w); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_71 = PyTuple_New(2); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__Pyx_GIVEREF(__pyx_t_75);
PyTuple_SET_ITEM(__pyx_t_71, 0, __pyx_t_75);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_71, 1, __pyx_t_62);
__pyx_t_75 = 0;
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":112
*
* ner = (
* (N0W,), # <<<<<<<<<<<<<<
* (P1W,),
* (N1W,),
*/
__pyx_t_62 = PyTuple_New(71); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__Pyx_GIVEREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_62, 0, __pyx_t_4);
__Pyx_GIVEREF(__pyx_t_6);
PyTuple_SET_ITEM(__pyx_t_62, 1, __pyx_t_6);
__Pyx_GIVEREF(__pyx_t_7);
PyTuple_SET_ITEM(__pyx_t_62, 2, __pyx_t_7);
__Pyx_GIVEREF(__pyx_t_8);
PyTuple_SET_ITEM(__pyx_t_62, 3, __pyx_t_8);
__Pyx_GIVEREF(__pyx_t_9);
PyTuple_SET_ITEM(__pyx_t_62, 4, __pyx_t_9);
__Pyx_GIVEREF(__pyx_t_11);
PyTuple_SET_ITEM(__pyx_t_62, 5, __pyx_t_11);
__Pyx_GIVEREF(__pyx_t_12);
PyTuple_SET_ITEM(__pyx_t_62, 6, __pyx_t_12);
__Pyx_GIVEREF(__pyx_t_10);
PyTuple_SET_ITEM(__pyx_t_62, 7, __pyx_t_10);
__Pyx_GIVEREF(__pyx_t_13);
PyTuple_SET_ITEM(__pyx_t_62, 8, __pyx_t_13);
__Pyx_GIVEREF(__pyx_t_14);
PyTuple_SET_ITEM(__pyx_t_62, 9, __pyx_t_14);
__Pyx_GIVEREF(__pyx_t_15);
PyTuple_SET_ITEM(__pyx_t_62, 10, __pyx_t_15);
__Pyx_GIVEREF(__pyx_t_16);
PyTuple_SET_ITEM(__pyx_t_62, 11, __pyx_t_16);
__Pyx_GIVEREF(__pyx_t_18);
PyTuple_SET_ITEM(__pyx_t_62, 12, __pyx_t_18);
__Pyx_GIVEREF(__pyx_t_19);
PyTuple_SET_ITEM(__pyx_t_62, 13, __pyx_t_19);
__Pyx_GIVEREF(__pyx_t_21);
PyTuple_SET_ITEM(__pyx_t_62, 14, __pyx_t_21);
__Pyx_GIVEREF(__pyx_t_17);
PyTuple_SET_ITEM(__pyx_t_62, 15, __pyx_t_17);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_62, 16, __pyx_t_5);
__Pyx_GIVEREF(__pyx_t_22);
PyTuple_SET_ITEM(__pyx_t_62, 17, __pyx_t_22);
__Pyx_GIVEREF(__pyx_t_23);
PyTuple_SET_ITEM(__pyx_t_62, 18, __pyx_t_23);
__Pyx_GIVEREF(__pyx_t_24);
PyTuple_SET_ITEM(__pyx_t_62, 19, __pyx_t_24);
__Pyx_GIVEREF(__pyx_t_25);
PyTuple_SET_ITEM(__pyx_t_62, 20, __pyx_t_25);
__Pyx_GIVEREF(__pyx_t_26);
PyTuple_SET_ITEM(__pyx_t_62, 21, __pyx_t_26);
__Pyx_GIVEREF(__pyx_t_28);
PyTuple_SET_ITEM(__pyx_t_62, 22, __pyx_t_28);
__Pyx_GIVEREF(__pyx_t_29);
PyTuple_SET_ITEM(__pyx_t_62, 23, __pyx_t_29);
__Pyx_GIVEREF(__pyx_t_31);
PyTuple_SET_ITEM(__pyx_t_62, 24, __pyx_t_31);
__Pyx_GIVEREF(__pyx_t_32);
PyTuple_SET_ITEM(__pyx_t_62, 25, __pyx_t_32);
__Pyx_GIVEREF(__pyx_t_33);
PyTuple_SET_ITEM(__pyx_t_62, 26, __pyx_t_33);
__Pyx_GIVEREF(__pyx_t_27);
PyTuple_SET_ITEM(__pyx_t_62, 27, __pyx_t_27);
__Pyx_GIVEREF(__pyx_t_20);
PyTuple_SET_ITEM(__pyx_t_62, 28, __pyx_t_20);
__Pyx_GIVEREF(__pyx_t_34);
PyTuple_SET_ITEM(__pyx_t_62, 29, __pyx_t_34);
__Pyx_GIVEREF(__pyx_t_35);
PyTuple_SET_ITEM(__pyx_t_62, 30, __pyx_t_35);
__Pyx_GIVEREF(__pyx_t_36);
PyTuple_SET_ITEM(__pyx_t_62, 31, __pyx_t_36);
__Pyx_GIVEREF(__pyx_t_38);
PyTuple_SET_ITEM(__pyx_t_62, 32, __pyx_t_38);
__Pyx_GIVEREF(__pyx_t_39);
PyTuple_SET_ITEM(__pyx_t_62, 33, __pyx_t_39);
__Pyx_GIVEREF(__pyx_t_37);
PyTuple_SET_ITEM(__pyx_t_62, 34, __pyx_t_37);
__Pyx_GIVEREF(__pyx_t_40);
PyTuple_SET_ITEM(__pyx_t_62, 35, __pyx_t_40);
__Pyx_GIVEREF(__pyx_t_41);
PyTuple_SET_ITEM(__pyx_t_62, 36, __pyx_t_41);
__Pyx_GIVEREF(__pyx_t_43);
PyTuple_SET_ITEM(__pyx_t_62, 37, __pyx_t_43);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_62, 38, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_45);
PyTuple_SET_ITEM(__pyx_t_62, 39, __pyx_t_45);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_62, 40, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_48);
PyTuple_SET_ITEM(__pyx_t_62, 41, __pyx_t_48);
__Pyx_GIVEREF(__pyx_t_46);
PyTuple_SET_ITEM(__pyx_t_62, 42, __pyx_t_46);
__Pyx_GIVEREF(__pyx_t_49);
PyTuple_SET_ITEM(__pyx_t_62, 43, __pyx_t_49);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_62, 44, __pyx_t_50);
__Pyx_GIVEREF(__pyx_t_51);
PyTuple_SET_ITEM(__pyx_t_62, 45, __pyx_t_51);
__Pyx_GIVEREF(__pyx_t_52);
PyTuple_SET_ITEM(__pyx_t_62, 46, __pyx_t_52);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_62, 47, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_62, 48, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_62, 49, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_62, 50, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_62, 51, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_62, 52, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_59);
PyTuple_SET_ITEM(__pyx_t_62, 53, __pyx_t_59);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_62, 54, __pyx_t_55);
__Pyx_GIVEREF(__pyx_t_61);
PyTuple_SET_ITEM(__pyx_t_62, 55, __pyx_t_61);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_62, 56, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_62, 57, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_62, 58, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_62, 59, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_65);
PyTuple_SET_ITEM(__pyx_t_62, 60, __pyx_t_65);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_62, 61, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_67);
PyTuple_SET_ITEM(__pyx_t_62, 62, __pyx_t_67);
__Pyx_GIVEREF(__pyx_t_68);
PyTuple_SET_ITEM(__pyx_t_62, 63, __pyx_t_68);
__Pyx_GIVEREF(__pyx_t_69);
PyTuple_SET_ITEM(__pyx_t_62, 64, __pyx_t_69);
__Pyx_GIVEREF(__pyx_t_70);
PyTuple_SET_ITEM(__pyx_t_62, 65, __pyx_t_70);
__Pyx_GIVEREF(__pyx_t_72);
PyTuple_SET_ITEM(__pyx_t_62, 66, __pyx_t_72);
__Pyx_GIVEREF(__pyx_t_73);
PyTuple_SET_ITEM(__pyx_t_62, 67, __pyx_t_73);
__Pyx_GIVEREF(__pyx_t_74);
PyTuple_SET_ITEM(__pyx_t_62, 68, __pyx_t_74);
__Pyx_GIVEREF(__pyx_t_76);
PyTuple_SET_ITEM(__pyx_t_62, 69, __pyx_t_76);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_62, 70, __pyx_t_71);
__pyx_t_4 = 0;
__pyx_t_6 = 0;
__pyx_t_7 = 0;
__pyx_t_8 = 0;
__pyx_t_9 = 0;
__pyx_t_11 = 0;
__pyx_t_12 = 0;
__pyx_t_10 = 0;
__pyx_t_13 = 0;
__pyx_t_14 = 0;
__pyx_t_15 = 0;
__pyx_t_16 = 0;
__pyx_t_18 = 0;
__pyx_t_19 = 0;
__pyx_t_21 = 0;
__pyx_t_17 = 0;
__pyx_t_5 = 0;
__pyx_t_22 = 0;
__pyx_t_23 = 0;
__pyx_t_24 = 0;
__pyx_t_25 = 0;
__pyx_t_26 = 0;
__pyx_t_28 = 0;
__pyx_t_29 = 0;
__pyx_t_31 = 0;
__pyx_t_32 = 0;
__pyx_t_33 = 0;
__pyx_t_27 = 0;
__pyx_t_20 = 0;
__pyx_t_34 = 0;
__pyx_t_35 = 0;
__pyx_t_36 = 0;
__pyx_t_38 = 0;
__pyx_t_39 = 0;
__pyx_t_37 = 0;
__pyx_t_40 = 0;
__pyx_t_41 = 0;
__pyx_t_43 = 0;
__pyx_t_44 = 0;
__pyx_t_45 = 0;
__pyx_t_47 = 0;
__pyx_t_48 = 0;
__pyx_t_46 = 0;
__pyx_t_49 = 0;
__pyx_t_50 = 0;
__pyx_t_51 = 0;
__pyx_t_52 = 0;
__pyx_t_42 = 0;
__pyx_t_53 = 0;
__pyx_t_54 = 0;
__pyx_t_56 = 0;
__pyx_t_57 = 0;
__pyx_t_58 = 0;
__pyx_t_59 = 0;
__pyx_t_55 = 0;
__pyx_t_61 = 0;
__pyx_t_63 = 0;
__pyx_t_30 = 0;
__pyx_t_60 = 0;
__pyx_t_64 = 0;
__pyx_t_65 = 0;
__pyx_t_66 = 0;
__pyx_t_67 = 0;
__pyx_t_68 = 0;
__pyx_t_69 = 0;
__pyx_t_70 = 0;
__pyx_t_72 = 0;
__pyx_t_73 = 0;
__pyx_t_74 = 0;
__pyx_t_76 = 0;
__pyx_t_71 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_ner, __pyx_t_62) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_62); __pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":209
*
* unigrams = (
* (S2W, S2p), # <<<<<<<<<<<<<<
* (S2c6, S2p),
*
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2W); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2p); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_76 = PyTuple_New(2); if (unlikely(!__pyx_t_76)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_76);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_76, 0, __pyx_t_62);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_76, 1, __pyx_t_71);
__pyx_t_62 = 0;
__pyx_t_71 = 0;
/* "spacy\syntax\_parse_features.pyx":210
* unigrams = (
* (S2W, S2p),
* (S2c6, S2p), # <<<<<<<<<<<<<<
*
* (S1W, S1p),
*/
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2c6); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2p); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_74 = PyTuple_New(2); if (unlikely(!__pyx_t_74)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_74);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_74, 0, __pyx_t_71);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_74, 1, __pyx_t_62);
__pyx_t_71 = 0;
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":212
* (S2c6, S2p),
*
* (S1W, S1p), # <<<<<<<<<<<<<<
* (S1c6, S1p),
*
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1W); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_73 = PyTuple_New(2); if (unlikely(!__pyx_t_73)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_73);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_73, 0, __pyx_t_62);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_73, 1, __pyx_t_71);
__pyx_t_62 = 0;
__pyx_t_71 = 0;
/* "spacy\syntax\_parse_features.pyx":213
*
* (S1W, S1p),
* (S1c6, S1p), # <<<<<<<<<<<<<<
*
* (S0W, S0p),
*/
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1c6); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_72 = PyTuple_New(2); if (unlikely(!__pyx_t_72)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_72);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_72, 0, __pyx_t_71);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_72, 1, __pyx_t_62);
__pyx_t_71 = 0;
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":215
* (S1c6, S1p),
*
* (S0W, S0p), # <<<<<<<<<<<<<<
* (S0c6, S0p),
*
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0W); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_70 = PyTuple_New(2); if (unlikely(!__pyx_t_70)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_70);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_70, 0, __pyx_t_62);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_70, 1, __pyx_t_71);
__pyx_t_62 = 0;
__pyx_t_71 = 0;
/* "spacy\syntax\_parse_features.pyx":216
*
* (S0W, S0p),
* (S0c6, S0p), # <<<<<<<<<<<<<<
*
* (N0W, N0p),
*/
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c6); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_69 = PyTuple_New(2); if (unlikely(!__pyx_t_69)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_69);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_69, 0, __pyx_t_71);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_69, 1, __pyx_t_62);
__pyx_t_71 = 0;
__pyx_t_62 = 0;
/* "spacy\syntax\_parse_features.pyx":218
* (S0c6, S0p),
*
* (N0W, N0p), # <<<<<<<<<<<<<<
* (N0p,),
* (N0c,),
*/
__pyx_t_62 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_68 = PyTuple_New(2); if (unlikely(!__pyx_t_68)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_68);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_68, 0, __pyx_t_62);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_68, 1, __pyx_t_71);
__pyx_t_62 = 0;
__pyx_t_71 = 0;
/* "spacy\syntax\_parse_features.pyx":219
*
* (N0W, N0p),
* (N0p,), # <<<<<<<<<<<<<<
* (N0c,),
* (N0c6, N0p),
*/
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_62 = PyTuple_New(1); if (unlikely(!__pyx_t_62)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_62);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_62, 0, __pyx_t_71);
__pyx_t_71 = 0;
/* "spacy\syntax\_parse_features.pyx":220
* (N0W, N0p),
* (N0p,),
* (N0c,), # <<<<<<<<<<<<<<
* (N0c6, N0p),
* (N0L,),
*/
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_67 = PyTuple_New(1); if (unlikely(!__pyx_t_67)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_67);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_67, 0, __pyx_t_71);
__pyx_t_71 = 0;
/* "spacy\syntax\_parse_features.pyx":221
* (N0p,),
* (N0c,),
* (N0c6, N0p), # <<<<<<<<<<<<<<
* (N0L,),
*
*/
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c6); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_65 = PyTuple_New(2); if (unlikely(!__pyx_t_65)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_65);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_65, 0, __pyx_t_71);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_65, 1, __pyx_t_66);
__pyx_t_71 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":222
* (N0c,),
* (N0c6, N0p),
* (N0L,), # <<<<<<<<<<<<<<
*
* (N1W, N1p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0L); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_71 = PyTuple_New(1); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_71, 0, __pyx_t_66);
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":224
* (N0L,),
*
* (N1W, N1p), # <<<<<<<<<<<<<<
* (N1c6, N1p),
*
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1W); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_60 = PyTuple_New(2); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_60, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_60, 1, __pyx_t_64);
__pyx_t_66 = 0;
__pyx_t_64 = 0;
/* "spacy\syntax\_parse_features.pyx":225
*
* (N1W, N1p),
* (N1c6, N1p), # <<<<<<<<<<<<<<
*
* (N2W, N2p),
*/
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c6); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_30 = PyTuple_New(2); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_30, 0, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_30, 1, __pyx_t_66);
__pyx_t_64 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":227
* (N1c6, N1p),
*
* (N2W, N2p), # <<<<<<<<<<<<<<
* (N2c6, N2p),
*
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2W); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2p); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_63 = PyTuple_New(2); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_63, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_63, 1, __pyx_t_64);
__pyx_t_66 = 0;
__pyx_t_64 = 0;
/* "spacy\syntax\_parse_features.pyx":228
*
* (N2W, N2p),
* (N2c6, N2p), # <<<<<<<<<<<<<<
*
* (S0r2W, S0r2p),
*/
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2c6); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_61 = PyTuple_New(2); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_61, 0, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_61, 1, __pyx_t_66);
__pyx_t_64 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":230
* (N2c6, N2p),
*
* (S0r2W, S0r2p), # <<<<<<<<<<<<<<
* (S0r2c6, S0r2p),
* (S0r2L,),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2W); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2p); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_55 = PyTuple_New(2); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_55, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_55, 1, __pyx_t_64);
__pyx_t_66 = 0;
__pyx_t_64 = 0;
/* "spacy\syntax\_parse_features.pyx":231
*
* (S0r2W, S0r2p),
* (S0r2c6, S0r2p), # <<<<<<<<<<<<<<
* (S0r2L,),
*
*/
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2c6); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_59 = PyTuple_New(2); if (unlikely(!__pyx_t_59)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_59);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_59, 0, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_59, 1, __pyx_t_66);
__pyx_t_64 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":232
* (S0r2W, S0r2p),
* (S0r2c6, S0r2p),
* (S0r2L,), # <<<<<<<<<<<<<<
*
* (S0rW, S0rp),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2L); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_64 = PyTuple_New(1); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_64, 0, __pyx_t_66);
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":234
* (S0r2L,),
*
* (S0rW, S0rp), # <<<<<<<<<<<<<<
* (S0rc6, S0rp),
* (S0rL,),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rW); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rp); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_57 = PyTuple_New(2); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_57, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_57, 1, __pyx_t_58);
__pyx_t_66 = 0;
__pyx_t_58 = 0;
/* "spacy\syntax\_parse_features.pyx":235
*
* (S0rW, S0rp),
* (S0rc6, S0rp), # <<<<<<<<<<<<<<
* (S0rL,),
*
*/
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rc6); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rp); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_56 = PyTuple_New(2); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_56, 0, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_56, 1, __pyx_t_66);
__pyx_t_58 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":236
* (S0rW, S0rp),
* (S0rc6, S0rp),
* (S0rL,), # <<<<<<<<<<<<<<
*
* (S0l2W, S0l2p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rL); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_58 = PyTuple_New(1); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_58, 0, __pyx_t_66);
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":238
* (S0rL,),
*
* (S0l2W, S0l2p), # <<<<<<<<<<<<<<
* (S0l2c6, S0l2p),
* (S0l2L,),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2W); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2p); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_53 = PyTuple_New(2); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_53, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_53, 1, __pyx_t_54);
__pyx_t_66 = 0;
__pyx_t_54 = 0;
/* "spacy\syntax\_parse_features.pyx":239
*
* (S0l2W, S0l2p),
* (S0l2c6, S0l2p), # <<<<<<<<<<<<<<
* (S0l2L,),
*
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2c6); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_42 = PyTuple_New(2); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_42, 0, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_42, 1, __pyx_t_66);
__pyx_t_54 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":240
* (S0l2W, S0l2p),
* (S0l2c6, S0l2p),
* (S0l2L,), # <<<<<<<<<<<<<<
*
* (S0lW, S0lp),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2L); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_54 = PyTuple_New(1); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_54, 0, __pyx_t_66);
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":242
* (S0l2L,),
*
* (S0lW, S0lp), # <<<<<<<<<<<<<<
* (S0lc6, S0lp),
* (S0lL,),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lW); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_52 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lp); if (unlikely(!__pyx_t_52)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_52);
__pyx_t_51 = PyTuple_New(2); if (unlikely(!__pyx_t_51)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_51);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_51, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_52);
PyTuple_SET_ITEM(__pyx_t_51, 1, __pyx_t_52);
__pyx_t_66 = 0;
__pyx_t_52 = 0;
/* "spacy\syntax\_parse_features.pyx":243
*
* (S0lW, S0lp),
* (S0lc6, S0lp), # <<<<<<<<<<<<<<
* (S0lL,),
*
*/
__pyx_t_52 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lc6); if (unlikely(!__pyx_t_52)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_52);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lp); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_50 = PyTuple_New(2); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
__Pyx_GIVEREF(__pyx_t_52);
PyTuple_SET_ITEM(__pyx_t_50, 0, __pyx_t_52);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_50, 1, __pyx_t_66);
__pyx_t_52 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":244
* (S0lW, S0lp),
* (S0lc6, S0lp),
* (S0lL,), # <<<<<<<<<<<<<<
*
* (N0l2W, N0l2p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lL); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_52 = PyTuple_New(1); if (unlikely(!__pyx_t_52)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_52);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_52, 0, __pyx_t_66);
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":246
* (S0lL,),
*
* (N0l2W, N0l2p), # <<<<<<<<<<<<<<
* (N0l2c6, N0l2p),
* (N0l2L,),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2W); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_49 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2p); if (unlikely(!__pyx_t_49)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_49);
__pyx_t_46 = PyTuple_New(2); if (unlikely(!__pyx_t_46)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_46);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_46, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_49);
PyTuple_SET_ITEM(__pyx_t_46, 1, __pyx_t_49);
__pyx_t_66 = 0;
__pyx_t_49 = 0;
/* "spacy\syntax\_parse_features.pyx":247
*
* (N0l2W, N0l2p),
* (N0l2c6, N0l2p), # <<<<<<<<<<<<<<
* (N0l2L,),
*
*/
__pyx_t_49 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2c6); if (unlikely(!__pyx_t_49)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_49);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_48 = PyTuple_New(2); if (unlikely(!__pyx_t_48)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_48);
__Pyx_GIVEREF(__pyx_t_49);
PyTuple_SET_ITEM(__pyx_t_48, 0, __pyx_t_49);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_48, 1, __pyx_t_66);
__pyx_t_49 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":248
* (N0l2W, N0l2p),
* (N0l2c6, N0l2p),
* (N0l2L,), # <<<<<<<<<<<<<<
*
* (N0lW, N0lp),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2L); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_49 = PyTuple_New(1); if (unlikely(!__pyx_t_49)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_49);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_49, 0, __pyx_t_66);
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":250
* (N0l2L,),
*
* (N0lW, N0lp), # <<<<<<<<<<<<<<
* (N0lc6, N0lp),
* (N0lL,),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lW); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lp); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_45 = PyTuple_New(2); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_45);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_45, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_45, 1, __pyx_t_47);
__pyx_t_66 = 0;
__pyx_t_47 = 0;
/* "spacy\syntax\_parse_features.pyx":251
*
* (N0lW, N0lp),
* (N0lc6, N0lp), # <<<<<<<<<<<<<<
* (N0lL,),
* )
*/
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lc6); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lp); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_44 = PyTuple_New(2); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_44, 0, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_44, 1, __pyx_t_66);
__pyx_t_47 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":252
* (N0lW, N0lp),
* (N0lc6, N0lp),
* (N0lL,), # <<<<<<<<<<<<<<
* )
*
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lL); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = PyTuple_New(1); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_47, 0, __pyx_t_66);
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":209
*
* unigrams = (
* (S2W, S2p), # <<<<<<<<<<<<<<
* (S2c6, S2p),
*
*/
__pyx_t_66 = PyTuple_New(33); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__Pyx_GIVEREF(__pyx_t_76);
PyTuple_SET_ITEM(__pyx_t_66, 0, __pyx_t_76);
__Pyx_GIVEREF(__pyx_t_74);
PyTuple_SET_ITEM(__pyx_t_66, 1, __pyx_t_74);
__Pyx_GIVEREF(__pyx_t_73);
PyTuple_SET_ITEM(__pyx_t_66, 2, __pyx_t_73);
__Pyx_GIVEREF(__pyx_t_72);
PyTuple_SET_ITEM(__pyx_t_66, 3, __pyx_t_72);
__Pyx_GIVEREF(__pyx_t_70);
PyTuple_SET_ITEM(__pyx_t_66, 4, __pyx_t_70);
__Pyx_GIVEREF(__pyx_t_69);
PyTuple_SET_ITEM(__pyx_t_66, 5, __pyx_t_69);
__Pyx_GIVEREF(__pyx_t_68);
PyTuple_SET_ITEM(__pyx_t_66, 6, __pyx_t_68);
__Pyx_GIVEREF(__pyx_t_62);
PyTuple_SET_ITEM(__pyx_t_66, 7, __pyx_t_62);
__Pyx_GIVEREF(__pyx_t_67);
PyTuple_SET_ITEM(__pyx_t_66, 8, __pyx_t_67);
__Pyx_GIVEREF(__pyx_t_65);
PyTuple_SET_ITEM(__pyx_t_66, 9, __pyx_t_65);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_66, 10, __pyx_t_71);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_66, 11, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_66, 12, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_66, 13, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_61);
PyTuple_SET_ITEM(__pyx_t_66, 14, __pyx_t_61);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_66, 15, __pyx_t_55);
__Pyx_GIVEREF(__pyx_t_59);
PyTuple_SET_ITEM(__pyx_t_66, 16, __pyx_t_59);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_66, 17, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_66, 18, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_66, 19, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_66, 20, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_66, 21, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_66, 22, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_66, 23, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_51);
PyTuple_SET_ITEM(__pyx_t_66, 24, __pyx_t_51);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_66, 25, __pyx_t_50);
__Pyx_GIVEREF(__pyx_t_52);
PyTuple_SET_ITEM(__pyx_t_66, 26, __pyx_t_52);
__Pyx_GIVEREF(__pyx_t_46);
PyTuple_SET_ITEM(__pyx_t_66, 27, __pyx_t_46);
__Pyx_GIVEREF(__pyx_t_48);
PyTuple_SET_ITEM(__pyx_t_66, 28, __pyx_t_48);
__Pyx_GIVEREF(__pyx_t_49);
PyTuple_SET_ITEM(__pyx_t_66, 29, __pyx_t_49);
__Pyx_GIVEREF(__pyx_t_45);
PyTuple_SET_ITEM(__pyx_t_66, 30, __pyx_t_45);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_66, 31, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_66, 32, __pyx_t_47);
__pyx_t_76 = 0;
__pyx_t_74 = 0;
__pyx_t_73 = 0;
__pyx_t_72 = 0;
__pyx_t_70 = 0;
__pyx_t_69 = 0;
__pyx_t_68 = 0;
__pyx_t_62 = 0;
__pyx_t_67 = 0;
__pyx_t_65 = 0;
__pyx_t_71 = 0;
__pyx_t_60 = 0;
__pyx_t_30 = 0;
__pyx_t_63 = 0;
__pyx_t_61 = 0;
__pyx_t_55 = 0;
__pyx_t_59 = 0;
__pyx_t_64 = 0;
__pyx_t_57 = 0;
__pyx_t_56 = 0;
__pyx_t_58 = 0;
__pyx_t_53 = 0;
__pyx_t_42 = 0;
__pyx_t_54 = 0;
__pyx_t_51 = 0;
__pyx_t_50 = 0;
__pyx_t_52 = 0;
__pyx_t_46 = 0;
__pyx_t_48 = 0;
__pyx_t_49 = 0;
__pyx_t_45 = 0;
__pyx_t_44 = 0;
__pyx_t_47 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_unigrams, __pyx_t_66) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_66); __pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":257
*
* s0_n0 = (
* (S0W, S0p, N0W, N0p), # <<<<<<<<<<<<<<
* (S0c, S0p, N0c, N0p),
* (S0c6, S0p, N0c6, N0p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0W); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_45 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_45);
__pyx_t_49 = PyTuple_New(4); if (unlikely(!__pyx_t_49)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_49);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_49, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_49, 1, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_49, 2, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_45);
PyTuple_SET_ITEM(__pyx_t_49, 3, __pyx_t_45);
__pyx_t_66 = 0;
__pyx_t_47 = 0;
__pyx_t_44 = 0;
__pyx_t_45 = 0;
/* "spacy\syntax\_parse_features.pyx":258
* s0_n0 = (
* (S0W, S0p, N0W, N0p),
* (S0c, S0p, N0c, N0p), # <<<<<<<<<<<<<<
* (S0c6, S0p, N0c6, N0p),
* (S0c4, S0p, N0c4, N0p),
*/
__pyx_t_45 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_45);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_48 = PyTuple_New(4); if (unlikely(!__pyx_t_48)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_48);
__Pyx_GIVEREF(__pyx_t_45);
PyTuple_SET_ITEM(__pyx_t_48, 0, __pyx_t_45);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_48, 1, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_48, 2, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_48, 3, __pyx_t_66);
__pyx_t_45 = 0;
__pyx_t_44 = 0;
__pyx_t_47 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":259
* (S0W, S0p, N0W, N0p),
* (S0c, S0p, N0c, N0p),
* (S0c6, S0p, N0c6, N0p), # <<<<<<<<<<<<<<
* (S0c4, S0p, N0c4, N0p),
* (S0p, N0p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c6); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c6); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_45 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_45);
__pyx_t_46 = PyTuple_New(4); if (unlikely(!__pyx_t_46)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_46);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_46, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_46, 1, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_46, 2, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_45);
PyTuple_SET_ITEM(__pyx_t_46, 3, __pyx_t_45);
__pyx_t_66 = 0;
__pyx_t_47 = 0;
__pyx_t_44 = 0;
__pyx_t_45 = 0;
/* "spacy\syntax\_parse_features.pyx":260
* (S0c, S0p, N0c, N0p),
* (S0c6, S0p, N0c6, N0p),
* (S0c4, S0p, N0c4, N0p), # <<<<<<<<<<<<<<
* (S0p, N0p),
* (S0W, N0p),
*/
__pyx_t_45 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c4); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_45);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c4); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_52 = PyTuple_New(4); if (unlikely(!__pyx_t_52)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_52);
__Pyx_GIVEREF(__pyx_t_45);
PyTuple_SET_ITEM(__pyx_t_52, 0, __pyx_t_45);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_52, 1, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_52, 2, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_52, 3, __pyx_t_66);
__pyx_t_45 = 0;
__pyx_t_44 = 0;
__pyx_t_47 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":261
* (S0c6, S0p, N0c6, N0p),
* (S0c4, S0p, N0c4, N0p),
* (S0p, N0p), # <<<<<<<<<<<<<<
* (S0W, N0p),
* (S0p, N0W),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_44 = PyTuple_New(2); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_44, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_44, 1, __pyx_t_47);
__pyx_t_66 = 0;
__pyx_t_47 = 0;
/* "spacy\syntax\_parse_features.pyx":262
* (S0c4, S0p, N0c4, N0p),
* (S0p, N0p),
* (S0W, N0p), # <<<<<<<<<<<<<<
* (S0p, N0W),
* (S0W, N0c),
*/
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0W); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_45 = PyTuple_New(2); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_45);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_45, 0, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_45, 1, __pyx_t_66);
__pyx_t_47 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":263
* (S0p, N0p),
* (S0W, N0p),
* (S0p, N0W), # <<<<<<<<<<<<<<
* (S0W, N0c),
* (S0c, N0W),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_50 = PyTuple_New(2); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_50, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_50, 1, __pyx_t_47);
__pyx_t_66 = 0;
__pyx_t_47 = 0;
/* "spacy\syntax\_parse_features.pyx":264
* (S0W, N0p),
* (S0p, N0W),
* (S0W, N0c), # <<<<<<<<<<<<<<
* (S0c, N0W),
* (S0p, N0c),
*/
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0W); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_51 = PyTuple_New(2); if (unlikely(!__pyx_t_51)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_51);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_51, 0, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_51, 1, __pyx_t_66);
__pyx_t_47 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":265
* (S0p, N0W),
* (S0W, N0c),
* (S0c, N0W), # <<<<<<<<<<<<<<
* (S0p, N0c),
* (S0c, N0p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_54 = PyTuple_New(2); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_54, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_54, 1, __pyx_t_47);
__pyx_t_66 = 0;
__pyx_t_47 = 0;
/* "spacy\syntax\_parse_features.pyx":266
* (S0W, N0c),
* (S0c, N0W),
* (S0p, N0c), # <<<<<<<<<<<<<<
* (S0c, N0p),
* (S0W, S0rp, N0p),
*/
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_42 = PyTuple_New(2); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_42, 0, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_42, 1, __pyx_t_66);
__pyx_t_47 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":267
* (S0c, N0W),
* (S0p, N0c),
* (S0c, N0p), # <<<<<<<<<<<<<<
* (S0W, S0rp, N0p),
* (S0p, S0rp, N0p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_53 = PyTuple_New(2); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_53, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_53, 1, __pyx_t_47);
__pyx_t_66 = 0;
__pyx_t_47 = 0;
/* "spacy\syntax\_parse_features.pyx":268
* (S0p, N0c),
* (S0c, N0p),
* (S0W, S0rp, N0p), # <<<<<<<<<<<<<<
* (S0p, S0rp, N0p),
* (S0p, N0lp, N0W),
*/
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0W); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rp); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_56 = PyTuple_New(3); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_56, 0, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_56, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_56, 2, __pyx_t_58);
__pyx_t_47 = 0;
__pyx_t_66 = 0;
__pyx_t_58 = 0;
/* "spacy\syntax\_parse_features.pyx":269
* (S0c, N0p),
* (S0W, S0rp, N0p),
* (S0p, S0rp, N0p), # <<<<<<<<<<<<<<
* (S0p, N0lp, N0W),
* (S0p, N0lp, N0p),
*/
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rp); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_57 = PyTuple_New(3); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_57, 0, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_57, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_57, 2, __pyx_t_47);
__pyx_t_58 = 0;
__pyx_t_66 = 0;
__pyx_t_47 = 0;
/* "spacy\syntax\_parse_features.pyx":270
* (S0W, S0rp, N0p),
* (S0p, S0rp, N0p),
* (S0p, N0lp, N0W), # <<<<<<<<<<<<<<
* (S0p, N0lp, N0p),
* (S0L, N0p),
*/
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lp); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_64 = PyTuple_New(3); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_64, 0, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_64, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_64, 2, __pyx_t_58);
__pyx_t_47 = 0;
__pyx_t_66 = 0;
__pyx_t_58 = 0;
/* "spacy\syntax\_parse_features.pyx":271
* (S0p, S0rp, N0p),
* (S0p, N0lp, N0W),
* (S0p, N0lp, N0p), # <<<<<<<<<<<<<<
* (S0L, N0p),
* (S0p, S0rL, N0p),
*/
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lp); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_59 = PyTuple_New(3); if (unlikely(!__pyx_t_59)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_59);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_59, 0, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_59, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_59, 2, __pyx_t_47);
__pyx_t_58 = 0;
__pyx_t_66 = 0;
__pyx_t_47 = 0;
/* "spacy\syntax\_parse_features.pyx":272
* (S0p, N0lp, N0W),
* (S0p, N0lp, N0p),
* (S0L, N0p), # <<<<<<<<<<<<<<
* (S0p, S0rL, N0p),
* (S0p, N0lL, N0p),
*/
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0L); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_58 = PyTuple_New(2); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_58, 0, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_58, 1, __pyx_t_66);
__pyx_t_47 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":273
* (S0p, N0lp, N0p),
* (S0L, N0p),
* (S0p, S0rL, N0p), # <<<<<<<<<<<<<<
* (S0p, N0lL, N0p),
* (S0p, S0rv, N0p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rL); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_55 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__pyx_t_61 = PyTuple_New(3); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_61, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_61, 1, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_61, 2, __pyx_t_55);
__pyx_t_66 = 0;
__pyx_t_47 = 0;
__pyx_t_55 = 0;
/* "spacy\syntax\_parse_features.pyx":274
* (S0L, N0p),
* (S0p, S0rL, N0p),
* (S0p, N0lL, N0p), # <<<<<<<<<<<<<<
* (S0p, S0rv, N0p),
* (S0p, N0lv, N0p),
*/
__pyx_t_55 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lL); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_63 = PyTuple_New(3); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_63, 0, __pyx_t_55);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_63, 1, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_63, 2, __pyx_t_66);
__pyx_t_55 = 0;
__pyx_t_47 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":275
* (S0p, S0rL, N0p),
* (S0p, N0lL, N0p),
* (S0p, S0rv, N0p), # <<<<<<<<<<<<<<
* (S0p, N0lv, N0p),
* (S0c6, S0rL, S0r2L, N0p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rv); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_55 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__pyx_t_30 = PyTuple_New(3); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_30, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_30, 1, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_30, 2, __pyx_t_55);
__pyx_t_66 = 0;
__pyx_t_47 = 0;
__pyx_t_55 = 0;
/* "spacy\syntax\_parse_features.pyx":276
* (S0p, N0lL, N0p),
* (S0p, S0rv, N0p),
* (S0p, N0lv, N0p), # <<<<<<<<<<<<<<
* (S0c6, S0rL, S0r2L, N0p),
* (S0p, N0lL, N0l2L, N0p),
*/
__pyx_t_55 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lv); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_60 = PyTuple_New(3); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_60, 0, __pyx_t_55);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_60, 1, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_60, 2, __pyx_t_66);
__pyx_t_55 = 0;
__pyx_t_47 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":277
* (S0p, S0rv, N0p),
* (S0p, N0lv, N0p),
* (S0c6, S0rL, S0r2L, N0p), # <<<<<<<<<<<<<<
* (S0p, N0lL, N0l2L, N0p),
* )
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c6); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rL); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_55 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2L); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_65 = PyTuple_New(4); if (unlikely(!__pyx_t_65)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_65);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_65, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_65, 1, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_65, 2, __pyx_t_55);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_65, 3, __pyx_t_71);
__pyx_t_66 = 0;
__pyx_t_47 = 0;
__pyx_t_55 = 0;
__pyx_t_71 = 0;
/* "spacy\syntax\_parse_features.pyx":278
* (S0p, N0lv, N0p),
* (S0c6, S0rL, S0r2L, N0p),
* (S0p, N0lL, N0l2L, N0p), # <<<<<<<<<<<<<<
* )
*
*/
__pyx_t_71 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_71)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_71);
__pyx_t_55 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lL); if (unlikely(!__pyx_t_55)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_55);
__pyx_t_47 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2L); if (unlikely(!__pyx_t_47)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_47);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_67 = PyTuple_New(4); if (unlikely(!__pyx_t_67)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_67);
__Pyx_GIVEREF(__pyx_t_71);
PyTuple_SET_ITEM(__pyx_t_67, 0, __pyx_t_71);
__Pyx_GIVEREF(__pyx_t_55);
PyTuple_SET_ITEM(__pyx_t_67, 1, __pyx_t_55);
__Pyx_GIVEREF(__pyx_t_47);
PyTuple_SET_ITEM(__pyx_t_67, 2, __pyx_t_47);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_67, 3, __pyx_t_66);
__pyx_t_71 = 0;
__pyx_t_55 = 0;
__pyx_t_47 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":257
*
* s0_n0 = (
* (S0W, S0p, N0W, N0p), # <<<<<<<<<<<<<<
* (S0c, S0p, N0c, N0p),
* (S0c6, S0p, N0c6, N0p),
*/
__pyx_t_66 = PyTuple_New(22); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__Pyx_GIVEREF(__pyx_t_49);
PyTuple_SET_ITEM(__pyx_t_66, 0, __pyx_t_49);
__Pyx_GIVEREF(__pyx_t_48);
PyTuple_SET_ITEM(__pyx_t_66, 1, __pyx_t_48);
__Pyx_GIVEREF(__pyx_t_46);
PyTuple_SET_ITEM(__pyx_t_66, 2, __pyx_t_46);
__Pyx_GIVEREF(__pyx_t_52);
PyTuple_SET_ITEM(__pyx_t_66, 3, __pyx_t_52);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_66, 4, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_45);
PyTuple_SET_ITEM(__pyx_t_66, 5, __pyx_t_45);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_66, 6, __pyx_t_50);
__Pyx_GIVEREF(__pyx_t_51);
PyTuple_SET_ITEM(__pyx_t_66, 7, __pyx_t_51);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_66, 8, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_66, 9, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_66, 10, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_66, 11, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_66, 12, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_66, 13, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_59);
PyTuple_SET_ITEM(__pyx_t_66, 14, __pyx_t_59);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_66, 15, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_61);
PyTuple_SET_ITEM(__pyx_t_66, 16, __pyx_t_61);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_66, 17, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_66, 18, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_66, 19, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_65);
PyTuple_SET_ITEM(__pyx_t_66, 20, __pyx_t_65);
__Pyx_GIVEREF(__pyx_t_67);
PyTuple_SET_ITEM(__pyx_t_66, 21, __pyx_t_67);
__pyx_t_49 = 0;
__pyx_t_48 = 0;
__pyx_t_46 = 0;
__pyx_t_52 = 0;
__pyx_t_44 = 0;
__pyx_t_45 = 0;
__pyx_t_50 = 0;
__pyx_t_51 = 0;
__pyx_t_54 = 0;
__pyx_t_42 = 0;
__pyx_t_53 = 0;
__pyx_t_56 = 0;
__pyx_t_57 = 0;
__pyx_t_64 = 0;
__pyx_t_59 = 0;
__pyx_t_58 = 0;
__pyx_t_61 = 0;
__pyx_t_63 = 0;
__pyx_t_30 = 0;
__pyx_t_60 = 0;
__pyx_t_65 = 0;
__pyx_t_67 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_s0_n0, __pyx_t_66) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_66); __pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":283
*
* s1_s0 = (
* (S1p, S0p), # <<<<<<<<<<<<<<
* (S1p, S0p, S0_has_head),
* (S1W, S0p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_67 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_67)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_67);
__pyx_t_65 = PyTuple_New(2); if (unlikely(!__pyx_t_65)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_65);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_65, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_67);
PyTuple_SET_ITEM(__pyx_t_65, 1, __pyx_t_67);
__pyx_t_66 = 0;
__pyx_t_67 = 0;
/* "spacy\syntax\_parse_features.pyx":284
* s1_s0 = (
* (S1p, S0p),
* (S1p, S0p, S0_has_head), # <<<<<<<<<<<<<<
* (S1W, S0p),
* (S1W, S0p, S0_has_head),
*/
__pyx_t_67 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_67)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_67);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_30 = PyTuple_New(3); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__Pyx_GIVEREF(__pyx_t_67);
PyTuple_SET_ITEM(__pyx_t_30, 0, __pyx_t_67);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_30, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_30, 2, __pyx_t_60);
__pyx_t_67 = 0;
__pyx_t_66 = 0;
__pyx_t_60 = 0;
/* "spacy\syntax\_parse_features.pyx":285
* (S1p, S0p),
* (S1p, S0p, S0_has_head),
* (S1W, S0p), # <<<<<<<<<<<<<<
* (S1W, S0p, S0_has_head),
* (S1c, S0p),
*/
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1W); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_67 = PyTuple_New(2); if (unlikely(!__pyx_t_67)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_67);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_67, 0, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_67, 1, __pyx_t_66);
__pyx_t_60 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":286
* (S1p, S0p, S0_has_head),
* (S1W, S0p),
* (S1W, S0p, S0_has_head), # <<<<<<<<<<<<<<
* (S1c, S0p),
* (S1c, S0p, S0_has_head),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1W); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_61 = PyTuple_New(3); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_61, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_61, 1, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_61, 2, __pyx_t_63);
__pyx_t_66 = 0;
__pyx_t_60 = 0;
__pyx_t_63 = 0;
/* "spacy\syntax\_parse_features.pyx":287
* (S1W, S0p),
* (S1W, S0p, S0_has_head),
* (S1c, S0p), # <<<<<<<<<<<<<<
* (S1c, S0p, S0_has_head),
* (S1p, S1rL, S0p),
*/
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1c); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_66 = PyTuple_New(2); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_66, 0, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_66, 1, __pyx_t_60);
__pyx_t_63 = 0;
__pyx_t_60 = 0;
/* "spacy\syntax\_parse_features.pyx":288
* (S1W, S0p, S0_has_head),
* (S1c, S0p),
* (S1c, S0p, S0_has_head), # <<<<<<<<<<<<<<
* (S1p, S1rL, S0p),
* (S1p, S1rL, S0p, S0_has_head),
*/
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1c); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_59 = PyTuple_New(3); if (unlikely(!__pyx_t_59)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_59);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_59, 0, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_59, 1, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_59, 2, __pyx_t_58);
__pyx_t_60 = 0;
__pyx_t_63 = 0;
__pyx_t_58 = 0;
/* "spacy\syntax\_parse_features.pyx":289
* (S1c, S0p),
* (S1c, S0p, S0_has_head),
* (S1p, S1rL, S0p), # <<<<<<<<<<<<<<
* (S1p, S1rL, S0p, S0_has_head),
* (S1p, S0lL, S0p),
*/
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rL); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_64 = PyTuple_New(3); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_64, 0, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_64, 1, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_64, 2, __pyx_t_60);
__pyx_t_58 = 0;
__pyx_t_63 = 0;
__pyx_t_60 = 0;
/* "spacy\syntax\_parse_features.pyx":290
* (S1c, S0p, S0_has_head),
* (S1p, S1rL, S0p),
* (S1p, S1rL, S0p, S0_has_head), # <<<<<<<<<<<<<<
* (S1p, S0lL, S0p),
* (S1p, S0lL, S0p, S0_has_head),
*/
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rL); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_56 = PyTuple_New(4); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_56, 0, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_56, 1, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_56, 2, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_56, 3, __pyx_t_57);
__pyx_t_60 = 0;
__pyx_t_63 = 0;
__pyx_t_58 = 0;
__pyx_t_57 = 0;
/* "spacy\syntax\_parse_features.pyx":291
* (S1p, S1rL, S0p),
* (S1p, S1rL, S0p, S0_has_head),
* (S1p, S0lL, S0p), # <<<<<<<<<<<<<<
* (S1p, S0lL, S0p, S0_has_head),
* (S1p, S0lL, S0l2L, S0p),
*/
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lL); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_60 = PyTuple_New(3); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_60, 0, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_60, 1, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_60, 2, __pyx_t_63);
__pyx_t_57 = 0;
__pyx_t_58 = 0;
__pyx_t_63 = 0;
/* "spacy\syntax\_parse_features.pyx":292
* (S1p, S1rL, S0p, S0_has_head),
* (S1p, S0lL, S0p),
* (S1p, S0lL, S0p, S0_has_head), # <<<<<<<<<<<<<<
* (S1p, S0lL, S0l2L, S0p),
* (S1p, S0lL, S0l2L, S0p, S0_has_head),
*/
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lL); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_42 = PyTuple_New(4); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_42, 0, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_42, 1, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_42, 2, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_42, 3, __pyx_t_53);
__pyx_t_63 = 0;
__pyx_t_58 = 0;
__pyx_t_57 = 0;
__pyx_t_53 = 0;
/* "spacy\syntax\_parse_features.pyx":293
* (S1p, S0lL, S0p),
* (S1p, S0lL, S0p, S0_has_head),
* (S1p, S0lL, S0l2L, S0p), # <<<<<<<<<<<<<<
* (S1p, S0lL, S0l2L, S0p, S0_has_head),
* (S1L, S0L, S0W),
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lL); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2L); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_54 = PyTuple_New(4); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_54, 0, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_54, 1, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_54, 2, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_54, 3, __pyx_t_63);
__pyx_t_53 = 0;
__pyx_t_57 = 0;
__pyx_t_58 = 0;
__pyx_t_63 = 0;
/* "spacy\syntax\_parse_features.pyx":294
* (S1p, S0lL, S0p, S0_has_head),
* (S1p, S0lL, S0l2L, S0p),
* (S1p, S0lL, S0l2L, S0p, S0_has_head), # <<<<<<<<<<<<<<
* (S1L, S0L, S0W),
* (S1L, S0L, S0p),
*/
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lL); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2L); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_51 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head); if (unlikely(!__pyx_t_51)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_51);
__pyx_t_50 = PyTuple_New(5); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_50, 0, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_50, 1, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_50, 2, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_50, 3, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_51);
PyTuple_SET_ITEM(__pyx_t_50, 4, __pyx_t_51);
__pyx_t_63 = 0;
__pyx_t_58 = 0;
__pyx_t_57 = 0;
__pyx_t_53 = 0;
__pyx_t_51 = 0;
/* "spacy\syntax\_parse_features.pyx":295
* (S1p, S0lL, S0l2L, S0p),
* (S1p, S0lL, S0l2L, S0p, S0_has_head),
* (S1L, S0L, S0W), # <<<<<<<<<<<<<<
* (S1L, S0L, S0p),
* (S1p, S1L, S0L, S0p),
*/
__pyx_t_51 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1L); if (unlikely(!__pyx_t_51)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_51);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0L); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0W); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_58 = PyTuple_New(3); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__Pyx_GIVEREF(__pyx_t_51);
PyTuple_SET_ITEM(__pyx_t_58, 0, __pyx_t_51);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_58, 1, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_58, 2, __pyx_t_57);
__pyx_t_51 = 0;
__pyx_t_53 = 0;
__pyx_t_57 = 0;
/* "spacy\syntax\_parse_features.pyx":296
* (S1p, S0lL, S0l2L, S0p, S0_has_head),
* (S1L, S0L, S0W),
* (S1L, S0L, S0p), # <<<<<<<<<<<<<<
* (S1p, S1L, S0L, S0p),
* (S1p, S0p),
*/
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1L); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0L); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_51 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_51)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_51);
__pyx_t_63 = PyTuple_New(3); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_63, 0, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_63, 1, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_51);
PyTuple_SET_ITEM(__pyx_t_63, 2, __pyx_t_51);
__pyx_t_57 = 0;
__pyx_t_53 = 0;
__pyx_t_51 = 0;
/* "spacy\syntax\_parse_features.pyx":297
* (S1L, S0L, S0W),
* (S1L, S0L, S0p),
* (S1p, S1L, S0L, S0p), # <<<<<<<<<<<<<<
* (S1p, S0p),
* )
*/
__pyx_t_51 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_51)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_51);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1L); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0L); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_45 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_45);
__pyx_t_44 = PyTuple_New(4); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__Pyx_GIVEREF(__pyx_t_51);
PyTuple_SET_ITEM(__pyx_t_44, 0, __pyx_t_51);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_44, 1, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_44, 2, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_45);
PyTuple_SET_ITEM(__pyx_t_44, 3, __pyx_t_45);
__pyx_t_51 = 0;
__pyx_t_53 = 0;
__pyx_t_57 = 0;
__pyx_t_45 = 0;
/* "spacy\syntax\_parse_features.pyx":298
* (S1L, S0L, S0p),
* (S1p, S1L, S0L, S0p),
* (S1p, S0p), # <<<<<<<<<<<<<<
* )
*
*/
__pyx_t_45 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_45);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_53 = PyTuple_New(2); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__Pyx_GIVEREF(__pyx_t_45);
PyTuple_SET_ITEM(__pyx_t_53, 0, __pyx_t_45);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_53, 1, __pyx_t_57);
__pyx_t_45 = 0;
__pyx_t_57 = 0;
/* "spacy\syntax\_parse_features.pyx":283
*
* s1_s0 = (
* (S1p, S0p), # <<<<<<<<<<<<<<
* (S1p, S0p, S0_has_head),
* (S1W, S0p),
*/
__pyx_t_57 = PyTuple_New(16); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__Pyx_GIVEREF(__pyx_t_65);
PyTuple_SET_ITEM(__pyx_t_57, 0, __pyx_t_65);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_57, 1, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_67);
PyTuple_SET_ITEM(__pyx_t_57, 2, __pyx_t_67);
__Pyx_GIVEREF(__pyx_t_61);
PyTuple_SET_ITEM(__pyx_t_57, 3, __pyx_t_61);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_57, 4, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_59);
PyTuple_SET_ITEM(__pyx_t_57, 5, __pyx_t_59);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_57, 6, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_57, 7, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_57, 8, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_57, 9, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_57, 10, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_57, 11, __pyx_t_50);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_57, 12, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_57, 13, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_57, 14, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_57, 15, __pyx_t_53);
__pyx_t_65 = 0;
__pyx_t_30 = 0;
__pyx_t_67 = 0;
__pyx_t_61 = 0;
__pyx_t_66 = 0;
__pyx_t_59 = 0;
__pyx_t_64 = 0;
__pyx_t_56 = 0;
__pyx_t_60 = 0;
__pyx_t_42 = 0;
__pyx_t_54 = 0;
__pyx_t_50 = 0;
__pyx_t_58 = 0;
__pyx_t_63 = 0;
__pyx_t_44 = 0;
__pyx_t_53 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_s1_s0, __pyx_t_57) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_57); __pyx_t_57 = 0;
/* "spacy\syntax\_parse_features.pyx":303
*
* s1_n0 = (
* (S1p, N0p), # <<<<<<<<<<<<<<
* (S1c, N0c),
* (S1c, N0p),
*/
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_44 = PyTuple_New(2); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_44, 0, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_44, 1, __pyx_t_53);
__pyx_t_57 = 0;
__pyx_t_53 = 0;
/* "spacy\syntax\_parse_features.pyx":304
* s1_n0 = (
* (S1p, N0p),
* (S1c, N0c), # <<<<<<<<<<<<<<
* (S1c, N0p),
* (S1p, N0c),
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1c); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_63 = PyTuple_New(2); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_63, 0, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_63, 1, __pyx_t_57);
__pyx_t_53 = 0;
__pyx_t_57 = 0;
/* "spacy\syntax\_parse_features.pyx":305
* (S1p, N0p),
* (S1c, N0c),
* (S1c, N0p), # <<<<<<<<<<<<<<
* (S1p, N0c),
* (S1W, S1p, N0p),
*/
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1c); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_58 = PyTuple_New(2); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_58, 0, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_58, 1, __pyx_t_53);
__pyx_t_57 = 0;
__pyx_t_53 = 0;
/* "spacy\syntax\_parse_features.pyx":306
* (S1c, N0c),
* (S1c, N0p),
* (S1p, N0c), # <<<<<<<<<<<<<<
* (S1W, S1p, N0p),
* (S1p, N0W, N0p),
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_50 = PyTuple_New(2); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_50, 0, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_50, 1, __pyx_t_57);
__pyx_t_53 = 0;
__pyx_t_57 = 0;
/* "spacy\syntax\_parse_features.pyx":307
* (S1c, N0p),
* (S1p, N0c),
* (S1W, S1p, N0p), # <<<<<<<<<<<<<<
* (S1p, N0W, N0p),
* (S1c6, S1p, N0c6, N0p),
*/
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1W); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_42 = PyTuple_New(3); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_42, 0, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_42, 1, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_42, 2, __pyx_t_54);
__pyx_t_57 = 0;
__pyx_t_53 = 0;
__pyx_t_54 = 0;
/* "spacy\syntax\_parse_features.pyx":308
* (S1p, N0c),
* (S1W, S1p, N0p),
* (S1p, N0W, N0p), # <<<<<<<<<<<<<<
* (S1c6, S1p, N0c6, N0p),
* (S1L, N0p),
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_60 = PyTuple_New(3); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_60, 0, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_60, 1, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_60, 2, __pyx_t_57);
__pyx_t_54 = 0;
__pyx_t_53 = 0;
__pyx_t_57 = 0;
/* "spacy\syntax\_parse_features.pyx":309
* (S1W, S1p, N0p),
* (S1p, N0W, N0p),
* (S1c6, S1p, N0c6, N0p), # <<<<<<<<<<<<<<
* (S1L, N0p),
* (S1p, S1rL, N0p),
*/
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1c6); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c6); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_64 = PyTuple_New(4); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_64, 0, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_64, 1, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_64, 2, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_64, 3, __pyx_t_56);
__pyx_t_57 = 0;
__pyx_t_53 = 0;
__pyx_t_54 = 0;
__pyx_t_56 = 0;
/* "spacy\syntax\_parse_features.pyx":310
* (S1p, N0W, N0p),
* (S1c6, S1p, N0c6, N0p),
* (S1L, N0p), # <<<<<<<<<<<<<<
* (S1p, S1rL, N0p),
* (S1p, S1rp, N0p),
*/
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1L); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_53 = PyTuple_New(2); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_53, 0, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_53, 1, __pyx_t_54);
__pyx_t_56 = 0;
__pyx_t_54 = 0;
/* "spacy\syntax\_parse_features.pyx":311
* (S1c6, S1p, N0c6, N0p),
* (S1L, N0p),
* (S1p, S1rL, N0p), # <<<<<<<<<<<<<<
* (S1p, S1rp, N0p),
* )
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rL); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_59 = PyTuple_New(3); if (unlikely(!__pyx_t_59)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_59);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_59, 0, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_59, 1, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_59, 2, __pyx_t_57);
__pyx_t_54 = 0;
__pyx_t_56 = 0;
__pyx_t_57 = 0;
/* "spacy\syntax\_parse_features.pyx":312
* (S1L, N0p),
* (S1p, S1rL, N0p),
* (S1p, S1rp, N0p), # <<<<<<<<<<<<<<
* )
*
*/
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rp); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_66 = PyTuple_New(3); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_66, 0, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_66, 1, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_66, 2, __pyx_t_54);
__pyx_t_57 = 0;
__pyx_t_56 = 0;
__pyx_t_54 = 0;
/* "spacy\syntax\_parse_features.pyx":303
*
* s1_n0 = (
* (S1p, N0p), # <<<<<<<<<<<<<<
* (S1c, N0c),
* (S1c, N0p),
*/
__pyx_t_54 = PyTuple_New(10); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_54, 0, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_54, 1, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_54, 2, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_54, 3, __pyx_t_50);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_54, 4, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_54, 5, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_54, 6, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_54, 7, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_59);
PyTuple_SET_ITEM(__pyx_t_54, 8, __pyx_t_59);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_54, 9, __pyx_t_66);
__pyx_t_44 = 0;
__pyx_t_63 = 0;
__pyx_t_58 = 0;
__pyx_t_50 = 0;
__pyx_t_42 = 0;
__pyx_t_60 = 0;
__pyx_t_64 = 0;
__pyx_t_53 = 0;
__pyx_t_59 = 0;
__pyx_t_66 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_s1_n0, __pyx_t_54) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_54); __pyx_t_54 = 0;
/* "spacy\syntax\_parse_features.pyx":317
*
* s0_n1 = (
* (S0p, N1p), # <<<<<<<<<<<<<<
* (S0c, N1c),
* (S0c, N1p),
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_59 = PyTuple_New(2); if (unlikely(!__pyx_t_59)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_59);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_59, 0, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_59, 1, __pyx_t_66);
__pyx_t_54 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":318
* s0_n1 = (
* (S0p, N1p),
* (S0c, N1c), # <<<<<<<<<<<<<<
* (S0c, N1p),
* (S0p, N1c),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_53 = PyTuple_New(2); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_53, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_53, 1, __pyx_t_54);
__pyx_t_66 = 0;
__pyx_t_54 = 0;
/* "spacy\syntax\_parse_features.pyx":319
* (S0p, N1p),
* (S0c, N1c),
* (S0c, N1p), # <<<<<<<<<<<<<<
* (S0p, N1c),
* (S0W, S0p, N1p),
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_64 = PyTuple_New(2); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_64, 0, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_64, 1, __pyx_t_66);
__pyx_t_54 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":320
* (S0c, N1c),
* (S0c, N1p),
* (S0p, N1c), # <<<<<<<<<<<<<<
* (S0W, S0p, N1p),
* (S0p, N1W, N1p),
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_60 = PyTuple_New(2); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_60, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_60, 1, __pyx_t_54);
__pyx_t_66 = 0;
__pyx_t_54 = 0;
/* "spacy\syntax\_parse_features.pyx":321
* (S0c, N1p),
* (S0p, N1c),
* (S0W, S0p, N1p), # <<<<<<<<<<<<<<
* (S0p, N1W, N1p),
* (S0c6, S0p, N1c6, N1p),
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0W); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_50 = PyTuple_New(3); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_50, 0, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_50, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_50, 2, __pyx_t_42);
__pyx_t_54 = 0;
__pyx_t_66 = 0;
__pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":322
* (S0p, N1c),
* (S0W, S0p, N1p),
* (S0p, N1W, N1p), # <<<<<<<<<<<<<<
* (S0c6, S0p, N1c6, N1p),
* (S0L, N1p),
*/
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1W); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_58 = PyTuple_New(3); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_58, 0, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_58, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_58, 2, __pyx_t_54);
__pyx_t_42 = 0;
__pyx_t_66 = 0;
__pyx_t_54 = 0;
/* "spacy\syntax\_parse_features.pyx":323
* (S0W, S0p, N1p),
* (S0p, N1W, N1p),
* (S0c6, S0p, N1c6, N1p), # <<<<<<<<<<<<<<
* (S0L, N1p),
* (S0p, S0rL, N1p),
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c6); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c6); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_44 = PyTuple_New(4); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_44, 0, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_44, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_44, 2, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_44, 3, __pyx_t_63);
__pyx_t_54 = 0;
__pyx_t_66 = 0;
__pyx_t_42 = 0;
__pyx_t_63 = 0;
/* "spacy\syntax\_parse_features.pyx":324
* (S0p, N1W, N1p),
* (S0c6, S0p, N1c6, N1p),
* (S0L, N1p), # <<<<<<<<<<<<<<
* (S0p, S0rL, N1p),
* )
*/
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0L); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_66 = PyTuple_New(2); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_66, 0, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_66, 1, __pyx_t_42);
__pyx_t_63 = 0;
__pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":325
* (S0c6, S0p, N1c6, N1p),
* (S0L, N1p),
* (S0p, S0rL, N1p), # <<<<<<<<<<<<<<
* )
*
*/
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rL); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_56 = PyTuple_New(3); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_56, 0, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_56, 1, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_56, 2, __pyx_t_54);
__pyx_t_42 = 0;
__pyx_t_63 = 0;
__pyx_t_54 = 0;
/* "spacy\syntax\_parse_features.pyx":317
*
* s0_n1 = (
* (S0p, N1p), # <<<<<<<<<<<<<<
* (S0c, N1c),
* (S0c, N1p),
*/
__pyx_t_54 = PyTuple_New(9); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__Pyx_GIVEREF(__pyx_t_59);
PyTuple_SET_ITEM(__pyx_t_54, 0, __pyx_t_59);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_54, 1, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_54, 2, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_54, 3, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_54, 4, __pyx_t_50);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_54, 5, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_54, 6, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_54, 7, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_54, 8, __pyx_t_56);
__pyx_t_59 = 0;
__pyx_t_53 = 0;
__pyx_t_64 = 0;
__pyx_t_60 = 0;
__pyx_t_50 = 0;
__pyx_t_58 = 0;
__pyx_t_44 = 0;
__pyx_t_66 = 0;
__pyx_t_56 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_s0_n1, __pyx_t_54) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_54); __pyx_t_54 = 0;
/* "spacy\syntax\_parse_features.pyx":330
*
* n0_n1 = (
* (N0W, N0p, N1W, N1p), # <<<<<<<<<<<<<<
* (N0W, N0p, N1p),
* (N0p, N1W, N1p),
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1W); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_58 = PyTuple_New(4); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_58, 0, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_58, 1, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_58, 2, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_58, 3, __pyx_t_44);
__pyx_t_54 = 0;
__pyx_t_56 = 0;
__pyx_t_66 = 0;
__pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":331
* n0_n1 = (
* (N0W, N0p, N1W, N1p),
* (N0W, N0p, N1p), # <<<<<<<<<<<<<<
* (N0p, N1W, N1p),
* (N0c, N0p, N1c, N1p),
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_54 = PyTuple_New(3); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_54, 0, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_54, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_54, 2, __pyx_t_56);
__pyx_t_44 = 0;
__pyx_t_66 = 0;
__pyx_t_56 = 0;
/* "spacy\syntax\_parse_features.pyx":332
* (N0W, N0p, N1W, N1p),
* (N0W, N0p, N1p),
* (N0p, N1W, N1p), # <<<<<<<<<<<<<<
* (N0c, N0p, N1c, N1p),
* (N0c6, N0p, N1c6, N1p),
*/
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1W); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_50 = PyTuple_New(3); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_50, 0, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_50, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_50, 2, __pyx_t_44);
__pyx_t_56 = 0;
__pyx_t_66 = 0;
__pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":333
* (N0W, N0p, N1p),
* (N0p, N1W, N1p),
* (N0c, N0p, N1c, N1p), # <<<<<<<<<<<<<<
* (N0c6, N0p, N1c6, N1p),
* (N0c, N1c),
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_64 = PyTuple_New(4); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_64, 0, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_64, 1, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_64, 2, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_64, 3, __pyx_t_60);
__pyx_t_44 = 0;
__pyx_t_66 = 0;
__pyx_t_56 = 0;
__pyx_t_60 = 0;
/* "spacy\syntax\_parse_features.pyx":334
* (N0p, N1W, N1p),
* (N0c, N0p, N1c, N1p),
* (N0c6, N0p, N1c6, N1p), # <<<<<<<<<<<<<<
* (N0c, N1c),
* (N0p, N1c),
*/
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c6); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c6); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_53 = PyTuple_New(4); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_53, 0, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_53, 1, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_53, 2, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_53, 3, __pyx_t_44);
__pyx_t_60 = 0;
__pyx_t_56 = 0;
__pyx_t_66 = 0;
__pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":335
* (N0c, N0p, N1c, N1p),
* (N0c6, N0p, N1c6, N1p),
* (N0c, N1c), # <<<<<<<<<<<<<<
* (N0p, N1c),
* )
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_56 = PyTuple_New(2); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_56, 0, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_56, 1, __pyx_t_66);
__pyx_t_44 = 0;
__pyx_t_66 = 0;
/* "spacy\syntax\_parse_features.pyx":336
* (N0c6, N0p, N1c6, N1p),
* (N0c, N1c),
* (N0p, N1c), # <<<<<<<<<<<<<<
* )
*
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_60 = PyTuple_New(2); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_60, 0, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_60, 1, __pyx_t_44);
__pyx_t_66 = 0;
__pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":330
*
* n0_n1 = (
* (N0W, N0p, N1W, N1p), # <<<<<<<<<<<<<<
* (N0W, N0p, N1p),
* (N0p, N1W, N1p),
*/
__pyx_t_44 = PyTuple_New(7); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_44, 0, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_44, 1, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_44, 2, __pyx_t_50);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_44, 3, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_44, 4, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_44, 5, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_44, 6, __pyx_t_60);
__pyx_t_58 = 0;
__pyx_t_54 = 0;
__pyx_t_50 = 0;
__pyx_t_64 = 0;
__pyx_t_53 = 0;
__pyx_t_56 = 0;
__pyx_t_60 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_n0_n1, __pyx_t_44) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_44); __pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":340
*
* tree_shape = (
* (dist,), # <<<<<<<<<<<<<<
* (S0p, S0_has_head, S1_has_head, S2_has_head),
* (S0p, S0lv, S0rv),
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_dist); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_60 = PyTuple_New(1); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_60, 0, __pyx_t_44);
__pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":341
* tree_shape = (
* (dist,),
* (S0p, S0_has_head, S1_has_head, S2_has_head), # <<<<<<<<<<<<<<
* (S0p, S0lv, S0rv),
* (N0p, N0lv),
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1_has_head); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2_has_head); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_50 = PyTuple_New(4); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_50, 0, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_50, 1, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_50, 2, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_50, 3, __pyx_t_64);
__pyx_t_44 = 0;
__pyx_t_56 = 0;
__pyx_t_53 = 0;
__pyx_t_64 = 0;
/* "spacy\syntax\_parse_features.pyx":342
* (dist,),
* (S0p, S0_has_head, S1_has_head, S2_has_head),
* (S0p, S0lv, S0rv), # <<<<<<<<<<<<<<
* (N0p, N0lv),
* )
*/
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lv); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rv); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_44 = PyTuple_New(3); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_44, 0, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_44, 1, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_44, 2, __pyx_t_56);
__pyx_t_64 = 0;
__pyx_t_53 = 0;
__pyx_t_56 = 0;
/* "spacy\syntax\_parse_features.pyx":343
* (S0p, S0_has_head, S1_has_head, S2_has_head),
* (S0p, S0lv, S0rv),
* (N0p, N0lv), # <<<<<<<<<<<<<<
* )
*
*/
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lv); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_64 = PyTuple_New(2); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_64, 0, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_64, 1, __pyx_t_53);
__pyx_t_56 = 0;
__pyx_t_53 = 0;
/* "spacy\syntax\_parse_features.pyx":340
*
* tree_shape = (
* (dist,), # <<<<<<<<<<<<<<
* (S0p, S0_has_head, S1_has_head, S2_has_head),
* (S0p, S0lv, S0rv),
*/
__pyx_t_53 = PyTuple_New(4); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_53, 0, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_53, 1, __pyx_t_50);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_53, 2, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_53, 3, __pyx_t_64);
__pyx_t_60 = 0;
__pyx_t_50 = 0;
__pyx_t_44 = 0;
__pyx_t_64 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_tree_shape, __pyx_t_53) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_53); __pyx_t_53 = 0;
/* "spacy\syntax\_parse_features.pyx":347
*
* trigrams = (
* (N0p, N1p, N2p), # <<<<<<<<<<<<<<
* (S0p, S0lp, S0l2p),
* (S0p, S0rp, S0r2p),
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_50 = PyTuple_New(3); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_50, 0, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_50, 1, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_50, 2, __pyx_t_44);
__pyx_t_53 = 0;
__pyx_t_64 = 0;
__pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":348
* trigrams = (
* (N0p, N1p, N2p),
* (S0p, S0lp, S0l2p), # <<<<<<<<<<<<<<
* (S0p, S0rp, S0r2p),
* (S0p, S1p, S2p),
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lp); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_60 = PyTuple_New(3); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_60, 0, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_60, 1, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_60, 2, __pyx_t_53);
__pyx_t_44 = 0;
__pyx_t_64 = 0;
__pyx_t_53 = 0;
/* "spacy\syntax\_parse_features.pyx":349
* (N0p, N1p, N2p),
* (S0p, S0lp, S0l2p),
* (S0p, S0rp, S0r2p), # <<<<<<<<<<<<<<
* (S0p, S1p, S2p),
* (S1p, S0p, N0p),
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rp); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_56 = PyTuple_New(3); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_56, 0, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_56, 1, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_56, 2, __pyx_t_44);
__pyx_t_53 = 0;
__pyx_t_64 = 0;
__pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":350
* (S0p, S0lp, S0l2p),
* (S0p, S0rp, S0r2p),
* (S0p, S1p, S2p), # <<<<<<<<<<<<<<
* (S1p, S0p, N0p),
* (S0p, S0lp, N0p),
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_54 = PyTuple_New(3); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_54, 0, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_54, 1, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_54, 2, __pyx_t_53);
__pyx_t_44 = 0;
__pyx_t_64 = 0;
__pyx_t_53 = 0;
/* "spacy\syntax\_parse_features.pyx":351
* (S0p, S0rp, S0r2p),
* (S0p, S1p, S2p),
* (S1p, S0p, N0p), # <<<<<<<<<<<<<<
* (S0p, S0lp, N0p),
* (S0p, N0p, N0lp),
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_58 = PyTuple_New(3); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_58, 0, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_58, 1, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_58, 2, __pyx_t_44);
__pyx_t_53 = 0;
__pyx_t_64 = 0;
__pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":352
* (S0p, S1p, S2p),
* (S1p, S0p, N0p),
* (S0p, S0lp, N0p), # <<<<<<<<<<<<<<
* (S0p, N0p, N0lp),
* (N0p, N0lp, N0l2p),
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lp); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_66 = PyTuple_New(3); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_66, 0, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_66, 1, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_66, 2, __pyx_t_53);
__pyx_t_44 = 0;
__pyx_t_64 = 0;
__pyx_t_53 = 0;
/* "spacy\syntax\_parse_features.pyx":353
* (S1p, S0p, N0p),
* (S0p, S0lp, N0p),
* (S0p, N0p, N0lp), # <<<<<<<<<<<<<<
* (N0p, N0lp, N0l2p),
*
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lp); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_59 = PyTuple_New(3); if (unlikely(!__pyx_t_59)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_59);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_59, 0, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_59, 1, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_59, 2, __pyx_t_44);
__pyx_t_53 = 0;
__pyx_t_64 = 0;
__pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":354
* (S0p, S0lp, N0p),
* (S0p, N0p, N0lp),
* (N0p, N0lp, N0l2p), # <<<<<<<<<<<<<<
*
* (S0W, S0p, S0rL, S0r2L),
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lp); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_63 = PyTuple_New(3); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_63, 0, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_63, 1, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_63, 2, __pyx_t_53);
__pyx_t_44 = 0;
__pyx_t_64 = 0;
__pyx_t_53 = 0;
/* "spacy\syntax\_parse_features.pyx":356
* (N0p, N0lp, N0l2p),
*
* (S0W, S0p, S0rL, S0r2L), # <<<<<<<<<<<<<<
* (S0p, S0rL, S0r2L),
*
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0W); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rL); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2L); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_57 = PyTuple_New(4); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_57, 0, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_57, 1, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_57, 2, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_57, 3, __pyx_t_42);
__pyx_t_53 = 0;
__pyx_t_64 = 0;
__pyx_t_44 = 0;
__pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":357
*
* (S0W, S0p, S0rL, S0r2L),
* (S0p, S0rL, S0r2L), # <<<<<<<<<<<<<<
*
* (S0W, S0p, S0lL, S0l2L),
*/
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rL); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2L); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_53 = PyTuple_New(3); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_53, 0, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_53, 1, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_53, 2, __pyx_t_64);
__pyx_t_42 = 0;
__pyx_t_44 = 0;
__pyx_t_64 = 0;
/* "spacy\syntax\_parse_features.pyx":359
* (S0p, S0rL, S0r2L),
*
* (S0W, S0p, S0lL, S0l2L), # <<<<<<<<<<<<<<
* (S0p, S0lL, S0l2L),
*
*/
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0W); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lL); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_61 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2L); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
__pyx_t_67 = PyTuple_New(4); if (unlikely(!__pyx_t_67)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_67);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_67, 0, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_67, 1, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_67, 2, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_61);
PyTuple_SET_ITEM(__pyx_t_67, 3, __pyx_t_61);
__pyx_t_64 = 0;
__pyx_t_44 = 0;
__pyx_t_42 = 0;
__pyx_t_61 = 0;
/* "spacy\syntax\_parse_features.pyx":360
*
* (S0W, S0p, S0lL, S0l2L),
* (S0p, S0lL, S0l2L), # <<<<<<<<<<<<<<
*
* (N0W, N0p, N0lL, N0l2L),
*/
__pyx_t_61 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lL); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2L); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_64 = PyTuple_New(3); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
__Pyx_GIVEREF(__pyx_t_61);
PyTuple_SET_ITEM(__pyx_t_64, 0, __pyx_t_61);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_64, 1, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_64, 2, __pyx_t_44);
__pyx_t_61 = 0;
__pyx_t_42 = 0;
__pyx_t_44 = 0;
/* "spacy\syntax\_parse_features.pyx":362
* (S0p, S0lL, S0l2L),
*
* (N0W, N0p, N0lL, N0l2L), # <<<<<<<<<<<<<<
* (N0p, N0lL, N0l2L),
* )
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_61 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lL); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2L); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_65 = PyTuple_New(4); if (unlikely(!__pyx_t_65)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_65);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_65, 0, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_65, 1, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_61);
PyTuple_SET_ITEM(__pyx_t_65, 2, __pyx_t_61);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_65, 3, __pyx_t_30);
__pyx_t_44 = 0;
__pyx_t_42 = 0;
__pyx_t_61 = 0;
__pyx_t_30 = 0;
/* "spacy\syntax\_parse_features.pyx":363
*
* (N0W, N0p, N0lL, N0l2L),
* (N0p, N0lL, N0l2L), # <<<<<<<<<<<<<<
* )
*
*/
__pyx_t_30 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_30)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_30);
__pyx_t_61 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lL); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2L); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__pyx_t_44 = PyTuple_New(3); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
__Pyx_GIVEREF(__pyx_t_30);
PyTuple_SET_ITEM(__pyx_t_44, 0, __pyx_t_30);
__Pyx_GIVEREF(__pyx_t_61);
PyTuple_SET_ITEM(__pyx_t_44, 1, __pyx_t_61);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_44, 2, __pyx_t_42);
__pyx_t_30 = 0;
__pyx_t_61 = 0;
__pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":347
*
* trigrams = (
* (N0p, N1p, N2p), # <<<<<<<<<<<<<<
* (S0p, S0lp, S0l2p),
* (S0p, S0rp, S0r2p),
*/
__pyx_t_42 = PyTuple_New(14); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_42, 0, __pyx_t_50);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_42, 1, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_42, 2, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_42, 3, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_42, 4, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_42, 5, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_59);
PyTuple_SET_ITEM(__pyx_t_42, 6, __pyx_t_59);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_42, 7, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_42, 8, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_42, 9, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_67);
PyTuple_SET_ITEM(__pyx_t_42, 10, __pyx_t_67);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_42, 11, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_65);
PyTuple_SET_ITEM(__pyx_t_42, 12, __pyx_t_65);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_42, 13, __pyx_t_44);
__pyx_t_50 = 0;
__pyx_t_60 = 0;
__pyx_t_56 = 0;
__pyx_t_54 = 0;
__pyx_t_58 = 0;
__pyx_t_66 = 0;
__pyx_t_59 = 0;
__pyx_t_63 = 0;
__pyx_t_57 = 0;
__pyx_t_53 = 0;
__pyx_t_67 = 0;
__pyx_t_64 = 0;
__pyx_t_65 = 0;
__pyx_t_44 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_trigrams, __pyx_t_42) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_42); __pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":368
*
* words = (
* S2w, # <<<<<<<<<<<<<<
* S1w,
* S1rw,
*/
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2w); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
/* "spacy\syntax\_parse_features.pyx":369
* words = (
* S2w,
* S1w, # <<<<<<<<<<<<<<
* S1rw,
* S0lw,
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1w); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
/* "spacy\syntax\_parse_features.pyx":370
* S2w,
* S1w,
* S1rw, # <<<<<<<<<<<<<<
* S0lw,
* S0l2w,
*/
__pyx_t_65 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rw); if (unlikely(!__pyx_t_65)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_65);
/* "spacy\syntax\_parse_features.pyx":371
* S1w,
* S1rw,
* S0lw, # <<<<<<<<<<<<<<
* S0l2w,
* S0w,
*/
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lw); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
/* "spacy\syntax\_parse_features.pyx":372
* S1rw,
* S0lw,
* S0l2w, # <<<<<<<<<<<<<<
* S0w,
* S0r2w,
*/
__pyx_t_67 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2w); if (unlikely(!__pyx_t_67)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_67);
/* "spacy\syntax\_parse_features.pyx":373
* S0lw,
* S0l2w,
* S0w, # <<<<<<<<<<<<<<
* S0r2w,
* S0rw,
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0w); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
/* "spacy\syntax\_parse_features.pyx":374
* S0l2w,
* S0w,
* S0r2w, # <<<<<<<<<<<<<<
* S0rw,
* N0lw,
*/
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2w); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
/* "spacy\syntax\_parse_features.pyx":375
* S0w,
* S0r2w,
* S0rw, # <<<<<<<<<<<<<<
* N0lw,
* N0l2w,
*/
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rw); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
/* "spacy\syntax\_parse_features.pyx":376
* S0r2w,
* S0rw,
* N0lw, # <<<<<<<<<<<<<<
* N0l2w,
* N0w,
*/
__pyx_t_59 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lw); if (unlikely(!__pyx_t_59)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_59);
/* "spacy\syntax\_parse_features.pyx":377
* S0rw,
* N0lw,
* N0l2w, # <<<<<<<<<<<<<<
* N0w,
* N1w,
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2w); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
/* "spacy\syntax\_parse_features.pyx":378
* N0lw,
* N0l2w,
* N0w, # <<<<<<<<<<<<<<
* N1w,
* N2w,
*/
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0w); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
/* "spacy\syntax\_parse_features.pyx":379
* N0l2w,
* N0w,
* N1w, # <<<<<<<<<<<<<<
* N2w,
* P1w,
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1w); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
/* "spacy\syntax\_parse_features.pyx":380
* N0w,
* N1w,
* N2w, # <<<<<<<<<<<<<<
* P1w,
* P2w
*/
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2w); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
/* "spacy\syntax\_parse_features.pyx":381
* N1w,
* N2w,
* P1w, # <<<<<<<<<<<<<<
* P2w
* )
*/
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1w); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
/* "spacy\syntax\_parse_features.pyx":383
* P1w,
* P2w
* ) # <<<<<<<<<<<<<<
*
* tags = (
*/
__pyx_t_50 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2w); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
/* "spacy\syntax\_parse_features.pyx":368
*
* words = (
* S2w, # <<<<<<<<<<<<<<
* S1w,
* S1rw,
*/
__pyx_t_61 = PyTuple_New(15); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_61, 0, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_61, 1, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_65);
PyTuple_SET_ITEM(__pyx_t_61, 2, __pyx_t_65);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_61, 3, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_67);
PyTuple_SET_ITEM(__pyx_t_61, 4, __pyx_t_67);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_61, 5, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_61, 6, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_61, 7, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_59);
PyTuple_SET_ITEM(__pyx_t_61, 8, __pyx_t_59);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_61, 9, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_61, 10, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_61, 11, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_61, 12, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_61, 13, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_61, 14, __pyx_t_50);
__pyx_t_42 = 0;
__pyx_t_44 = 0;
__pyx_t_65 = 0;
__pyx_t_64 = 0;
__pyx_t_67 = 0;
__pyx_t_53 = 0;
__pyx_t_57 = 0;
__pyx_t_63 = 0;
__pyx_t_59 = 0;
__pyx_t_66 = 0;
__pyx_t_58 = 0;
__pyx_t_54 = 0;
__pyx_t_56 = 0;
__pyx_t_60 = 0;
__pyx_t_50 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_words, __pyx_t_61) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_61); __pyx_t_61 = 0;
/* "spacy\syntax\_parse_features.pyx":386
*
* tags = (
* S2p, # <<<<<<<<<<<<<<
* S1p,
* S1rp,
*/
__pyx_t_61 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2p); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
/* "spacy\syntax\_parse_features.pyx":387
* tags = (
* S2p,
* S1p, # <<<<<<<<<<<<<<
* S1rp,
* S0lp,
*/
__pyx_t_50 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
/* "spacy\syntax\_parse_features.pyx":388
* S2p,
* S1p,
* S1rp, # <<<<<<<<<<<<<<
* S0lp,
* S0l2p,
*/
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rp); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
/* "spacy\syntax\_parse_features.pyx":389
* S1p,
* S1rp,
* S0lp, # <<<<<<<<<<<<<<
* S0l2p,
* S0p,
*/
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lp); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
/* "spacy\syntax\_parse_features.pyx":390
* S1rp,
* S0lp,
* S0l2p, # <<<<<<<<<<<<<<
* S0p,
* S0r2p,
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2p); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
/* "spacy\syntax\_parse_features.pyx":391
* S0lp,
* S0l2p,
* S0p, # <<<<<<<<<<<<<<
* S0r2p,
* S0rp,
*/
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
/* "spacy\syntax\_parse_features.pyx":392
* S0l2p,
* S0p,
* S0r2p, # <<<<<<<<<<<<<<
* S0rp,
* N0lp,
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2p); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
/* "spacy\syntax\_parse_features.pyx":393
* S0p,
* S0r2p,
* S0rp, # <<<<<<<<<<<<<<
* N0lp,
* N0l2p,
*/
__pyx_t_59 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rp); if (unlikely(!__pyx_t_59)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_59);
/* "spacy\syntax\_parse_features.pyx":394
* S0r2p,
* S0rp,
* N0lp, # <<<<<<<<<<<<<<
* N0l2p,
* N0p,
*/
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lp); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
/* "spacy\syntax\_parse_features.pyx":395
* S0rp,
* N0lp,
* N0l2p, # <<<<<<<<<<<<<<
* N0p,
* N1p,
*/
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2p); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
/* "spacy\syntax\_parse_features.pyx":396
* N0lp,
* N0l2p,
* N0p, # <<<<<<<<<<<<<<
* N1p,
* N2p,
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
/* "spacy\syntax\_parse_features.pyx":397
* N0l2p,
* N0p,
* N1p, # <<<<<<<<<<<<<<
* N2p,
* P1p,
*/
__pyx_t_67 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p); if (unlikely(!__pyx_t_67)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_67);
/* "spacy\syntax\_parse_features.pyx":398
* N0p,
* N1p,
* N2p, # <<<<<<<<<<<<<<
* P1p,
* P2p
*/
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2p); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
/* "spacy\syntax\_parse_features.pyx":399
* N1p,
* N2p,
* P1p, # <<<<<<<<<<<<<<
* P2p
* )
*/
__pyx_t_65 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1p); if (unlikely(!__pyx_t_65)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_65);
/* "spacy\syntax\_parse_features.pyx":401
* P1p,
* P2p
* ) # <<<<<<<<<<<<<<
*
* labels = (
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2p); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
/* "spacy\syntax\_parse_features.pyx":386
*
* tags = (
* S2p, # <<<<<<<<<<<<<<
* S1p,
* S1rp,
*/
__pyx_t_42 = PyTuple_New(15); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
__Pyx_GIVEREF(__pyx_t_61);
PyTuple_SET_ITEM(__pyx_t_42, 0, __pyx_t_61);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_42, 1, __pyx_t_50);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_42, 2, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_42, 3, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_42, 4, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_42, 5, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_42, 6, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_59);
PyTuple_SET_ITEM(__pyx_t_42, 7, __pyx_t_59);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_42, 8, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_42, 9, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_42, 10, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_67);
PyTuple_SET_ITEM(__pyx_t_42, 11, __pyx_t_67);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_42, 12, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_65);
PyTuple_SET_ITEM(__pyx_t_42, 13, __pyx_t_65);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_42, 14, __pyx_t_44);
__pyx_t_61 = 0;
__pyx_t_50 = 0;
__pyx_t_60 = 0;
__pyx_t_56 = 0;
__pyx_t_54 = 0;
__pyx_t_58 = 0;
__pyx_t_66 = 0;
__pyx_t_59 = 0;
__pyx_t_63 = 0;
__pyx_t_57 = 0;
__pyx_t_53 = 0;
__pyx_t_67 = 0;
__pyx_t_64 = 0;
__pyx_t_65 = 0;
__pyx_t_44 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_tags, __pyx_t_42) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_42); __pyx_t_42 = 0;
/* "spacy\syntax\_parse_features.pyx":404
*
* labels = (
* S2L, # <<<<<<<<<<<<<<
* S1L,
* S1rL,
*/
__pyx_t_42 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2L); if (unlikely(!__pyx_t_42)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_42);
/* "spacy\syntax\_parse_features.pyx":405
* labels = (
* S2L,
* S1L, # <<<<<<<<<<<<<<
* S1rL,
* S0lL,
*/
__pyx_t_44 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1L); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_44);
/* "spacy\syntax\_parse_features.pyx":406
* S2L,
* S1L,
* S1rL, # <<<<<<<<<<<<<<
* S0lL,
* S0l2L,
*/
__pyx_t_65 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rL); if (unlikely(!__pyx_t_65)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_65);
/* "spacy\syntax\_parse_features.pyx":407
* S1L,
* S1rL,
* S0lL, # <<<<<<<<<<<<<<
* S0l2L,
* S0L,
*/
__pyx_t_64 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lL); if (unlikely(!__pyx_t_64)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_64);
/* "spacy\syntax\_parse_features.pyx":408
* S1rL,
* S0lL,
* S0l2L, # <<<<<<<<<<<<<<
* S0L,
* S0r2L,
*/
__pyx_t_67 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2L); if (unlikely(!__pyx_t_67)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_67);
/* "spacy\syntax\_parse_features.pyx":409
* S0lL,
* S0l2L,
* S0L, # <<<<<<<<<<<<<<
* S0r2L,
* S0rL,
*/
__pyx_t_53 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0L); if (unlikely(!__pyx_t_53)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_53);
/* "spacy\syntax\_parse_features.pyx":410
* S0l2L,
* S0L,
* S0r2L, # <<<<<<<<<<<<<<
* S0rL,
* N0lL,
*/
__pyx_t_57 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2L); if (unlikely(!__pyx_t_57)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_57);
/* "spacy\syntax\_parse_features.pyx":411
* S0L,
* S0r2L,
* S0rL, # <<<<<<<<<<<<<<
* N0lL,
* N0l2L,
*/
__pyx_t_63 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rL); if (unlikely(!__pyx_t_63)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_63);
/* "spacy\syntax\_parse_features.pyx":412
* S0r2L,
* S0rL,
* N0lL, # <<<<<<<<<<<<<<
* N0l2L,
* N0L,
*/
__pyx_t_59 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lL); if (unlikely(!__pyx_t_59)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_59);
/* "spacy\syntax\_parse_features.pyx":413
* S0rL,
* N0lL,
* N0l2L, # <<<<<<<<<<<<<<
* N0L,
* N1L,
*/
__pyx_t_66 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2L); if (unlikely(!__pyx_t_66)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_66);
/* "spacy\syntax\_parse_features.pyx":414
* N0lL,
* N0l2L,
* N0L, # <<<<<<<<<<<<<<
* N1L,
* N2L,
*/
__pyx_t_58 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0L); if (unlikely(!__pyx_t_58)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_58);
/* "spacy\syntax\_parse_features.pyx":415
* N0l2L,
* N0L,
* N1L, # <<<<<<<<<<<<<<
* N2L,
* P1L,
*/
__pyx_t_54 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1L); if (unlikely(!__pyx_t_54)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_54);
/* "spacy\syntax\_parse_features.pyx":416
* N0L,
* N1L,
* N2L, # <<<<<<<<<<<<<<
* P1L,
* P2L
*/
__pyx_t_56 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2L); if (unlikely(!__pyx_t_56)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_56);
/* "spacy\syntax\_parse_features.pyx":417
* N1L,
* N2L,
* P1L, # <<<<<<<<<<<<<<
* P2L
* )
*/
__pyx_t_60 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1L); if (unlikely(!__pyx_t_60)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 417; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_60);
/* "spacy\syntax\_parse_features.pyx":419
* P1L,
* P2L
* ) # <<<<<<<<<<<<<<
*/
__pyx_t_50 = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2L); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_50);
/* "spacy\syntax\_parse_features.pyx":404
*
* labels = (
* S2L, # <<<<<<<<<<<<<<
* S1L,
* S1rL,
*/
__pyx_t_61 = PyTuple_New(15); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
__Pyx_GIVEREF(__pyx_t_42);
PyTuple_SET_ITEM(__pyx_t_61, 0, __pyx_t_42);
__Pyx_GIVEREF(__pyx_t_44);
PyTuple_SET_ITEM(__pyx_t_61, 1, __pyx_t_44);
__Pyx_GIVEREF(__pyx_t_65);
PyTuple_SET_ITEM(__pyx_t_61, 2, __pyx_t_65);
__Pyx_GIVEREF(__pyx_t_64);
PyTuple_SET_ITEM(__pyx_t_61, 3, __pyx_t_64);
__Pyx_GIVEREF(__pyx_t_67);
PyTuple_SET_ITEM(__pyx_t_61, 4, __pyx_t_67);
__Pyx_GIVEREF(__pyx_t_53);
PyTuple_SET_ITEM(__pyx_t_61, 5, __pyx_t_53);
__Pyx_GIVEREF(__pyx_t_57);
PyTuple_SET_ITEM(__pyx_t_61, 6, __pyx_t_57);
__Pyx_GIVEREF(__pyx_t_63);
PyTuple_SET_ITEM(__pyx_t_61, 7, __pyx_t_63);
__Pyx_GIVEREF(__pyx_t_59);
PyTuple_SET_ITEM(__pyx_t_61, 8, __pyx_t_59);
__Pyx_GIVEREF(__pyx_t_66);
PyTuple_SET_ITEM(__pyx_t_61, 9, __pyx_t_66);
__Pyx_GIVEREF(__pyx_t_58);
PyTuple_SET_ITEM(__pyx_t_61, 10, __pyx_t_58);
__Pyx_GIVEREF(__pyx_t_54);
PyTuple_SET_ITEM(__pyx_t_61, 11, __pyx_t_54);
__Pyx_GIVEREF(__pyx_t_56);
PyTuple_SET_ITEM(__pyx_t_61, 12, __pyx_t_56);
__Pyx_GIVEREF(__pyx_t_60);
PyTuple_SET_ITEM(__pyx_t_61, 13, __pyx_t_60);
__Pyx_GIVEREF(__pyx_t_50);
PyTuple_SET_ITEM(__pyx_t_61, 14, __pyx_t_50);
__pyx_t_42 = 0;
__pyx_t_44 = 0;
__pyx_t_65 = 0;
__pyx_t_64 = 0;
__pyx_t_67 = 0;
__pyx_t_53 = 0;
__pyx_t_57 = 0;
__pyx_t_63 = 0;
__pyx_t_59 = 0;
__pyx_t_66 = 0;
__pyx_t_58 = 0;
__pyx_t_54 = 0;
__pyx_t_56 = 0;
__pyx_t_60 = 0;
__pyx_t_50 = 0;
if (PyDict_SetItem(__pyx_d, __pyx_n_s_labels, __pyx_t_61) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_61); __pyx_t_61 = 0;
/* "spacy\syntax\_parse_features.pyx":1
* """ # <<<<<<<<<<<<<<
* Fill an array, context, with every _atomic_ value our features reference.
* We then write the _actual features_ as tuples of the atoms. The machinery
*/
__pyx_t_61 = PyDict_New(); if (unlikely(!__pyx_t_61)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_61);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_61) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_61); __pyx_t_61 = 0;
/* "stateclass.pxd":124
* self.c.clone(src.c)
*
* cdef inline void fast_forward(self) nogil: # <<<<<<<<<<<<<<
* self.c.fast_forward()
*/
/*--- Wrapped vars code ---*/
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rw);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1rw", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rW);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1rW", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rp);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1rp", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rc);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1rc", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rc4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1rc4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rc6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1rc6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rL);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1rL", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1r_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1r_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1r_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1r_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1r_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1r_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1r_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1r_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1r_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1r_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lw);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0lw", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lW);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0lW", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lp);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0lp", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lc);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0lc", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lc4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0lc4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lc6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0lc6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lL);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0lL", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0l2_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0l2_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r2_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r2_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rw);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0rw", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rW);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0rW", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rp);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0rp", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rc);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0rc", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rc4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0rc4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rc6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0rc6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rL);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0rL", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0r_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0r_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 133; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 133; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l2_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l2_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lw);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0lw", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lW);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0lW", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lp);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0lp", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lc);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0lc", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lc4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0lc4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lc6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 148; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0lc6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 148; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lL);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0lL", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0l_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0l_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N1_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N1_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 185; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 185; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 192; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 192; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N2_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N2_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P1_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 206; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P1_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 206; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_P2_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "P2_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E0_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E0_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1w);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1w", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1W);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1W", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1p);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1p", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1c);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1c", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1c4);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1c4", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1c6);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1c6", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1L);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1L", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1_prefix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1_prefix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1_suffix);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1_suffix", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1_shape);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1_shape", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1_ne_iob);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1_ne_iob", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_E1_ne_type);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "E1_ne_type", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_dist);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "dist", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_N0lv);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "N0lv", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0lv);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0lv", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0rv);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0rv", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1lv);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1lv", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1rv);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1rv", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S0_has_head);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S0_has_head", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S1_has_head);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S1_has_head", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_S2_has_head);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "S2_has_head", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
{
PyObject* wrapped = __Pyx_PyInt_From_int(__pyx_e_5spacy_6syntax_15_parse_features_CONTEXT_SIZE);
if (unlikely(!wrapped)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttrString(__pyx_m, "CONTEXT_SIZE", wrapped) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_XDECREF(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_7);
__Pyx_XDECREF(__pyx_t_8);
__Pyx_XDECREF(__pyx_t_9);
__Pyx_XDECREF(__pyx_t_10);
__Pyx_XDECREF(__pyx_t_11);
__Pyx_XDECREF(__pyx_t_12);
__Pyx_XDECREF(__pyx_t_13);
__Pyx_XDECREF(__pyx_t_14);
__Pyx_XDECREF(__pyx_t_15);
__Pyx_XDECREF(__pyx_t_16);
__Pyx_XDECREF(__pyx_t_17);
__Pyx_XDECREF(__pyx_t_18);
__Pyx_XDECREF(__pyx_t_19);
__Pyx_XDECREF(__pyx_t_20);
__Pyx_XDECREF(__pyx_t_21);
__Pyx_XDECREF(__pyx_t_22);
__Pyx_XDECREF(__pyx_t_23);
__Pyx_XDECREF(__pyx_t_24);
__Pyx_XDECREF(__pyx_t_25);
__Pyx_XDECREF(__pyx_t_26);
__Pyx_XDECREF(__pyx_t_27);
__Pyx_XDECREF(__pyx_t_28);
__Pyx_XDECREF(__pyx_t_29);
__Pyx_XDECREF(__pyx_t_30);
__Pyx_XDECREF(__pyx_t_31);
__Pyx_XDECREF(__pyx_t_32);
__Pyx_XDECREF(__pyx_t_33);
__Pyx_XDECREF(__pyx_t_34);
__Pyx_XDECREF(__pyx_t_35);
__Pyx_XDECREF(__pyx_t_36);
__Pyx_XDECREF(__pyx_t_37);
__Pyx_XDECREF(__pyx_t_38);
__Pyx_XDECREF(__pyx_t_39);
__Pyx_XDECREF(__pyx_t_40);
__Pyx_XDECREF(__pyx_t_41);
__Pyx_XDECREF(__pyx_t_42);
__Pyx_XDECREF(__pyx_t_43);
__Pyx_XDECREF(__pyx_t_44);
__Pyx_XDECREF(__pyx_t_45);
__Pyx_XDECREF(__pyx_t_46);
__Pyx_XDECREF(__pyx_t_47);
__Pyx_XDECREF(__pyx_t_48);
__Pyx_XDECREF(__pyx_t_49);
__Pyx_XDECREF(__pyx_t_50);
__Pyx_XDECREF(__pyx_t_51);
__Pyx_XDECREF(__pyx_t_52);
__Pyx_XDECREF(__pyx_t_53);
__Pyx_XDECREF(__pyx_t_54);
__Pyx_XDECREF(__pyx_t_55);
__Pyx_XDECREF(__pyx_t_56);
__Pyx_XDECREF(__pyx_t_57);
__Pyx_XDECREF(__pyx_t_58);
__Pyx_XDECREF(__pyx_t_59);
__Pyx_XDECREF(__pyx_t_60);
__Pyx_XDECREF(__pyx_t_61);
__Pyx_XDECREF(__pyx_t_62);
__Pyx_XDECREF(__pyx_t_63);
__Pyx_XDECREF(__pyx_t_64);
__Pyx_XDECREF(__pyx_t_65);
__Pyx_XDECREF(__pyx_t_66);
__Pyx_XDECREF(__pyx_t_67);
__Pyx_XDECREF(__pyx_t_68);
__Pyx_XDECREF(__pyx_t_69);
__Pyx_XDECREF(__pyx_t_70);
__Pyx_XDECREF(__pyx_t_71);
__Pyx_XDECREF(__pyx_t_72);
__Pyx_XDECREF(__pyx_t_73);
__Pyx_XDECREF(__pyx_t_74);
__Pyx_XDECREF(__pyx_t_75);
__Pyx_XDECREF(__pyx_t_76);
if (__pyx_m) {
if (__pyx_d) {
__Pyx_AddTraceback("init spacy.syntax._parse_features", __pyx_clineno, __pyx_lineno, __pyx_filename);
}
Py_DECREF(__pyx_m); __pyx_m = 0;
} else if (!PyErr_Occurred()) {
PyErr_SetString(PyExc_ImportError, "init spacy.syntax._parse_features");
}
__pyx_L0:;
__Pyx_RefNannyFinishContext();
#if PY_MAJOR_VERSION < 3
return;
#else
return __pyx_m;
#endif
}
/* --- Runtime support code --- */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
PyObject *m = NULL, *p = NULL;
void *r = NULL;
m = PyImport_ImportModule((char *)modname);
if (!m) goto end;
p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
if (!p) goto end;
r = PyLong_AsVoidPtr(p);
end:
Py_XDECREF(p);
Py_XDECREF(m);
return (__Pyx_RefNannyAPIStruct *)r;
}
#endif
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
if (unlikely(!result)) {
PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
"name '%U' is not defined", name);
#else
"name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
}
return result;
}
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
PyObject *result;
ternaryfunc call = func->ob_type->tp_call;
if (unlikely(!call))
return PyObject_Call(func, arg, kw);
if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
return NULL;
result = (*call)(func, arg, kw);
Py_LeaveRecursiveCall();
if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
PyErr_SetString(
PyExc_SystemError,
"NULL result without error in PyObject_Call");
}
return result;
}
#endif
static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
#if CYTHON_COMPILING_IN_CPYTHON
PyObject *tmp_type, *tmp_value, *tmp_tb;
PyThreadState *tstate = PyThreadState_GET();
tmp_type = tstate->curexc_type;
tmp_value = tstate->curexc_value;
tmp_tb = tstate->curexc_traceback;
tstate->curexc_type = type;
tstate->curexc_value = value;
tstate->curexc_traceback = tb;
Py_XDECREF(tmp_type);
Py_XDECREF(tmp_value);
Py_XDECREF(tmp_tb);
#else
PyErr_Restore(type, value, tb);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
#if CYTHON_COMPILING_IN_CPYTHON
PyThreadState *tstate = PyThreadState_GET();
*type = tstate->curexc_type;
*value = tstate->curexc_value;
*tb = tstate->curexc_traceback;
tstate->curexc_type = 0;
tstate->curexc_value = 0;
tstate->curexc_traceback = 0;
#else
PyErr_Fetch(type, value, tb);
#endif
}
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
CYTHON_UNUSED PyObject *cause) {
Py_XINCREF(type);
if (!value || value == Py_None)
value = NULL;
else
Py_INCREF(value);
if (!tb || tb == Py_None)
tb = NULL;
else {
Py_INCREF(tb);
if (!PyTraceBack_Check(tb)) {
PyErr_SetString(PyExc_TypeError,
"raise: arg 3 must be a traceback or None");
goto raise_error;
}
}
if (PyType_Check(type)) {
#if CYTHON_COMPILING_IN_PYPY
if (!value) {
Py_INCREF(Py_None);
value = Py_None;
}
#endif
PyErr_NormalizeException(&type, &value, &tb);
} else {
if (value) {
PyErr_SetString(PyExc_TypeError,
"instance exception may not have a separate value");
goto raise_error;
}
value = type;
type = (PyObject*) Py_TYPE(type);
Py_INCREF(type);
if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
PyErr_SetString(PyExc_TypeError,
"raise: exception class must be a subclass of BaseException");
goto raise_error;
}
}
__Pyx_ErrRestore(type, value, tb);
return;
raise_error:
Py_XDECREF(value);
Py_XDECREF(type);
Py_XDECREF(tb);
return;
}
#else
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
PyObject* owned_instance = NULL;
if (tb == Py_None) {
tb = 0;
} else if (tb && !PyTraceBack_Check(tb)) {
PyErr_SetString(PyExc_TypeError,
"raise: arg 3 must be a traceback or None");
goto bad;
}
if (value == Py_None)
value = 0;
if (PyExceptionInstance_Check(type)) {
if (value) {
PyErr_SetString(PyExc_TypeError,
"instance exception may not have a separate value");
goto bad;
}
value = type;
type = (PyObject*) Py_TYPE(value);
} else if (PyExceptionClass_Check(type)) {
PyObject *instance_class = NULL;
if (value && PyExceptionInstance_Check(value)) {
instance_class = (PyObject*) Py_TYPE(value);
if (instance_class != type) {
int is_subclass = PyObject_IsSubclass(instance_class, type);
if (!is_subclass) {
instance_class = NULL;
} else if (unlikely(is_subclass == -1)) {
goto bad;
} else {
type = instance_class;
}
}
}
if (!instance_class) {
PyObject *args;
if (!value)
args = PyTuple_New(0);
else if (PyTuple_Check(value)) {
Py_INCREF(value);
args = value;
} else
args = PyTuple_Pack(1, value);
if (!args)
goto bad;
owned_instance = PyObject_Call(type, args, NULL);
Py_DECREF(args);
if (!owned_instance)
goto bad;
value = owned_instance;
if (!PyExceptionInstance_Check(value)) {
PyErr_Format(PyExc_TypeError,
"calling %R should have returned an instance of "
"BaseException, not %R",
type, Py_TYPE(value));
goto bad;
}
}
} else {
PyErr_SetString(PyExc_TypeError,
"raise: exception class must be a subclass of BaseException");
goto bad;
}
#if PY_VERSION_HEX >= 0x03030000
if (cause) {
#else
if (cause && cause != Py_None) {
#endif
PyObject *fixed_cause;
if (cause == Py_None) {
fixed_cause = NULL;
} else if (PyExceptionClass_Check(cause)) {
fixed_cause = PyObject_CallObject(cause, NULL);
if (fixed_cause == NULL)
goto bad;
} else if (PyExceptionInstance_Check(cause)) {
fixed_cause = cause;
Py_INCREF(fixed_cause);
} else {
PyErr_SetString(PyExc_TypeError,
"exception causes must derive from "
"BaseException");
goto bad;
}
PyException_SetCause(value, fixed_cause);
}
PyErr_SetObject(type, value);
if (tb) {
#if CYTHON_COMPILING_IN_PYPY
PyObject *tmp_type, *tmp_value, *tmp_tb;
PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
Py_INCREF(tb);
PyErr_Restore(tmp_type, tmp_value, tb);
Py_XDECREF(tmp_tb);
#else
PyThreadState *tstate = PyThreadState_GET();
PyObject* tmp_tb = tstate->curexc_traceback;
if (tb != tmp_tb) {
Py_INCREF(tb);
tstate->curexc_traceback = tb;
Py_XDECREF(tmp_tb);
}
#endif
}
bad:
Py_XDECREF(owned_instance);
return;
}
#endif
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
PyErr_Format(PyExc_ValueError,
"too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
PyErr_Format(PyExc_ValueError,
"need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
index, (index == 1) ? "" : "s");
}
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
if (unlikely(!type)) {
PyErr_SetString(PyExc_SystemError, "Missing type object");
return 0;
}
if (likely(PyObject_TypeCheck(obj, type)))
return 1;
PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s",
Py_TYPE(obj)->tp_name, type->tp_name);
return 0;
}
static void* __Pyx_GetVtable(PyObject *dict) {
void* ptr;
PyObject *ob = PyObject_GetItem(dict, __pyx_n_s_pyx_vtable);
if (!ob)
goto bad;
#if PY_VERSION_HEX >= 0x02070000
ptr = PyCapsule_GetPointer(ob, 0);
#else
ptr = PyCObject_AsVoidPtr(ob);
#endif
if (!ptr && !PyErr_Occurred())
PyErr_SetString(PyExc_RuntimeError, "invalid vtable found for imported type");
Py_DECREF(ob);
return ptr;
bad:
Py_XDECREF(ob);
return NULL;
}
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
PyObject *empty_list = 0;
PyObject *module = 0;
PyObject *global_dict = 0;
PyObject *empty_dict = 0;
PyObject *list;
#if PY_VERSION_HEX < 0x03030000
PyObject *py_import;
py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
if (!py_import)
goto bad;
#endif
if (from_list)
list = from_list;
else {
empty_list = PyList_New(0);
if (!empty_list)
goto bad;
list = empty_list;
}
global_dict = PyModule_GetDict(__pyx_m);
if (!global_dict)
goto bad;
empty_dict = PyDict_New();
if (!empty_dict)
goto bad;
{
#if PY_MAJOR_VERSION >= 3
if (level == -1) {
if (strchr(__Pyx_MODULE_NAME, '.')) {
#if PY_VERSION_HEX < 0x03030000
PyObject *py_level = PyInt_FromLong(1);
if (!py_level)
goto bad;
module = PyObject_CallFunctionObjArgs(py_import,
name, global_dict, empty_dict, list, py_level, NULL);
Py_DECREF(py_level);
#else
module = PyImport_ImportModuleLevelObject(
name, global_dict, empty_dict, list, 1);
#endif
if (!module) {
if (!PyErr_ExceptionMatches(PyExc_ImportError))
goto bad;
PyErr_Clear();
}
}
level = 0;
}
#endif
if (!module) {
#if PY_VERSION_HEX < 0x03030000
PyObject *py_level = PyInt_FromLong(level);
if (!py_level)
goto bad;
module = PyObject_CallFunctionObjArgs(py_import,
name, global_dict, empty_dict, list, py_level, NULL);
Py_DECREF(py_level);
#else
module = PyImport_ImportModuleLevelObject(
name, global_dict, empty_dict, list, level);
#endif
}
}
bad:
#if PY_VERSION_HEX < 0x03030000
Py_XDECREF(py_import);
#endif
Py_XDECREF(empty_list);
Py_XDECREF(empty_dict);
return module;
}
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
PyErr_Format(PyExc_ImportError,
#if PY_MAJOR_VERSION < 3
"cannot import name %.230s", PyString_AS_STRING(name));
#else
"cannot import name %S", name);
#endif
}
return value;
}
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
int start = 0, mid = 0, end = count - 1;
if (end >= 0 && code_line > entries[end].code_line) {
return count;
}
while (start < end) {
mid = start + (end - start) / 2;
if (code_line < entries[mid].code_line) {
end = mid;
} else if (code_line > entries[mid].code_line) {
start = mid + 1;
} else {
return mid;
}
}
if (code_line <= entries[mid].code_line) {
return mid;
} else {
return mid + 1;
}
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
PyCodeObject* code_object;
int pos;
if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
return NULL;
}
pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
return NULL;
}
code_object = __pyx_code_cache.entries[pos].code_object;
Py_INCREF(code_object);
return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
int pos, i;
__Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
if (unlikely(!code_line)) {
return;
}
if (unlikely(!entries)) {
entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
if (likely(entries)) {
__pyx_code_cache.entries = entries;
__pyx_code_cache.max_count = 64;
__pyx_code_cache.count = 1;
entries[0].code_line = code_line;
entries[0].code_object = code_object;
Py_INCREF(code_object);
}
return;
}
pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
PyCodeObject* tmp = entries[pos].code_object;
entries[pos].code_object = code_object;
Py_DECREF(tmp);
return;
}
if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
int new_max = __pyx_code_cache.max_count + 64;
entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
__pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry));
if (unlikely(!entries)) {
return;
}
__pyx_code_cache.entries = entries;
__pyx_code_cache.max_count = new_max;
}
for (i=__pyx_code_cache.count; i>pos; i--) {
entries[i] = entries[i-1];
}
entries[pos].code_line = code_line;
entries[pos].code_object = code_object;
__pyx_code_cache.count++;
Py_INCREF(code_object);
}
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
const char *funcname, int c_line,
int py_line, const char *filename) {
PyCodeObject *py_code = 0;
PyObject *py_srcfile = 0;
PyObject *py_funcname = 0;
#if PY_MAJOR_VERSION < 3
py_srcfile = PyString_FromString(filename);
#else
py_srcfile = PyUnicode_FromString(filename);
#endif
if (!py_srcfile) goto bad;
if (c_line) {
#if PY_MAJOR_VERSION < 3
py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
#else
py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
#endif
}
else {
#if PY_MAJOR_VERSION < 3
py_funcname = PyString_FromString(funcname);
#else
py_funcname = PyUnicode_FromString(funcname);
#endif
}
if (!py_funcname) goto bad;
py_code = __Pyx_PyCode_New(
0,
0,
0,
0,
0,
__pyx_empty_bytes, /*PyObject *code,*/
__pyx_empty_tuple, /*PyObject *consts,*/
__pyx_empty_tuple, /*PyObject *names,*/
__pyx_empty_tuple, /*PyObject *varnames,*/
__pyx_empty_tuple, /*PyObject *freevars,*/
__pyx_empty_tuple, /*PyObject *cellvars,*/
py_srcfile, /*PyObject *filename,*/
py_funcname, /*PyObject *name,*/
py_line,
__pyx_empty_bytes /*PyObject *lnotab*/
);
Py_DECREF(py_srcfile);
Py_DECREF(py_funcname);
return py_code;
bad:
Py_XDECREF(py_srcfile);
Py_XDECREF(py_funcname);
return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
int py_line, const char *filename) {
PyCodeObject *py_code = 0;
PyFrameObject *py_frame = 0;
py_code = __pyx_find_code_object(c_line ? c_line : py_line);
if (!py_code) {
py_code = __Pyx_CreateCodeObjectForTraceback(
funcname, c_line, py_line, filename);
if (!py_code) goto bad;
__pyx_insert_code_object(c_line ? c_line : py_line, py_code);
}
py_frame = PyFrame_New(
PyThreadState_GET(), /*PyThreadState *tstate,*/
py_code, /*PyCodeObject *code,*/
__pyx_d, /*PyObject *globals,*/
0 /*PyObject *locals*/
);
if (!py_frame) goto bad;
py_frame->f_lineno = py_line;
PyTraceBack_Here(py_frame);
bad:
Py_XDECREF(py_code);
Py_XDECREF(py_frame);
}
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
const int neg_one = (int) -1, const_zero = (int) 0;
const int is_unsigned = neg_one > const_zero;
if (is_unsigned) {
if (sizeof(int) < sizeof(long)) {
return PyInt_FromLong((long) value);
} else if (sizeof(int) <= sizeof(unsigned long)) {
return PyLong_FromUnsignedLong((unsigned long) value);
} else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
}
} else {
if (sizeof(int) <= sizeof(long)) {
return PyInt_FromLong((long) value);
} else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
return PyLong_FromLongLong((PY_LONG_LONG) value);
}
}
{
int one = 1; int little = (int)*(unsigned char *)&one;
unsigned char *bytes = (unsigned char *)&value;
return _PyLong_FromByteArray(bytes, sizeof(int),
little, !is_unsigned);
}
}
#if CYTHON_CCOMPLEX
#ifdef __cplusplus
static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
return ::std::complex< float >(x, y);
}
#else
static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
return x + y*(__pyx_t_float_complex)_Complex_I;
}
#endif
#else
static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
__pyx_t_float_complex z;
z.real = x;
z.imag = y;
return z;
}
#endif
#if CYTHON_CCOMPLEX
#else
static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
return (a.real == b.real) && (a.imag == b.imag);
}
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
__pyx_t_float_complex z;
z.real = a.real + b.real;
z.imag = a.imag + b.imag;
return z;
}
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex a, __pyx_t_float_complex b) {
__pyx_t_float_complex z;
z.real = a.real - b.real;
z.imag = a.imag - b.imag;
return z;
}
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prodf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
__pyx_t_float_complex z;
z.real = a.real * b.real - a.imag * b.imag;
z.imag = a.real * b.imag + a.imag * b.real;
return z;
}
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
__pyx_t_float_complex z;
float denom = b.real * b.real + b.imag * b.imag;
z.real = (a.real * b.real + a.imag * b.imag) / denom;
z.imag = (a.imag * b.real - a.real * b.imag) / denom;
return z;
}
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex a) {
__pyx_t_float_complex z;
z.real = -a.real;
z.imag = -a.imag;
return z;
}
static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex a) {
return (a.real == 0) && (a.imag == 0);
}
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex a) {
__pyx_t_float_complex z;
z.real = a.real;
z.imag = -a.imag;
return z;
}
#if 1
static CYTHON_INLINE float __Pyx_c_absf(__pyx_t_float_complex z) {
#if !defined(HAVE_HYPOT) || defined(_MSC_VER)
return sqrtf(z.real*z.real + z.imag*z.imag);
#else
return hypotf(z.real, z.imag);
#endif
}
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
__pyx_t_float_complex z;
float r, lnr, theta, z_r, z_theta;
if (b.imag == 0 && b.real == (int)b.real) {
if (b.real < 0) {
float denom = a.real * a.real + a.imag * a.imag;
a.real = a.real / denom;
a.imag = -a.imag / denom;
b.real = -b.real;
}
switch ((int)b.real) {
case 0:
z.real = 1;
z.imag = 0;
return z;
case 1:
return a;
case 2:
z = __Pyx_c_prodf(a, a);
return __Pyx_c_prodf(a, a);
case 3:
z = __Pyx_c_prodf(a, a);
return __Pyx_c_prodf(z, a);
case 4:
z = __Pyx_c_prodf(a, a);
return __Pyx_c_prodf(z, z);
}
}
if (a.imag == 0) {
if (a.real == 0) {
return a;
}
r = a.real;
theta = 0;
} else {
r = __Pyx_c_absf(a);
theta = atan2f(a.imag, a.real);
}
lnr = logf(r);
z_r = expf(lnr * b.real - theta * b.imag);
z_theta = theta * b.real + lnr * b.imag;
z.real = z_r * cosf(z_theta);
z.imag = z_r * sinf(z_theta);
return z;
}
#endif
#endif
#if CYTHON_CCOMPLEX
#ifdef __cplusplus
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
return ::std::complex< double >(x, y);
}
#else
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
return x + y*(__pyx_t_double_complex)_Complex_I;
}
#endif
#else
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
__pyx_t_double_complex z;
z.real = x;
z.imag = y;
return z;
}
#endif
#if CYTHON_CCOMPLEX
#else
static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex a, __pyx_t_double_complex b) {
return (a.real == b.real) && (a.imag == b.imag);
}
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex a, __pyx_t_double_complex b) {
__pyx_t_double_complex z;
z.real = a.real + b.real;
z.imag = a.imag + b.imag;
return z;
}
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex a, __pyx_t_double_complex b) {
__pyx_t_double_complex z;
z.real = a.real - b.real;
z.imag = a.imag - b.imag;
return z;
}
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod(__pyx_t_double_complex a, __pyx_t_double_complex b) {
__pyx_t_double_complex z;
z.real = a.real * b.real - a.imag * b.imag;
z.imag = a.real * b.imag + a.imag * b.real;
return z;
}
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex a, __pyx_t_double_complex b) {
__pyx_t_double_complex z;
double denom = b.real * b.real + b.imag * b.imag;
z.real = (a.real * b.real + a.imag * b.imag) / denom;
z.imag = (a.imag * b.real - a.real * b.imag) / denom;
return z;
}
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex a) {
__pyx_t_double_complex z;
z.real = -a.real;
z.imag = -a.imag;
return z;
}
static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex a) {
return (a.real == 0) && (a.imag == 0);
}
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex a) {
__pyx_t_double_complex z;
z.real = a.real;
z.imag = -a.imag;
return z;
}
#if 1
static CYTHON_INLINE double __Pyx_c_abs(__pyx_t_double_complex z) {
#if !defined(HAVE_HYPOT) || defined(_MSC_VER)
return sqrt(z.real*z.real + z.imag*z.imag);
#else
return hypot(z.real, z.imag);
#endif
}
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex a, __pyx_t_double_complex b) {
__pyx_t_double_complex z;
double r, lnr, theta, z_r, z_theta;
if (b.imag == 0 && b.real == (int)b.real) {
if (b.real < 0) {
double denom = a.real * a.real + a.imag * a.imag;
a.real = a.real / denom;
a.imag = -a.imag / denom;
b.real = -b.real;
}
switch ((int)b.real) {
case 0:
z.real = 1;
z.imag = 0;
return z;
case 1:
return a;
case 2:
z = __Pyx_c_prod(a, a);
return __Pyx_c_prod(a, a);
case 3:
z = __Pyx_c_prod(a, a);
return __Pyx_c_prod(z, a);
case 4:
z = __Pyx_c_prod(a, a);
return __Pyx_c_prod(z, z);
}
}
if (a.imag == 0) {
if (a.real == 0) {
return a;
}
r = a.real;
theta = 0;
} else {
r = __Pyx_c_abs(a);
theta = atan2(a.imag, a.real);
}
lnr = log(r);
z_r = exp(lnr * b.real - theta * b.imag);
z_theta = theta * b.real + lnr * b.imag;
z.real = z_r * cos(z_theta);
z.imag = z_r * sin(z_theta);
return z;
}
#endif
#endif
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
__PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
__PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#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 (unlikely(value != (func_type) (target_type) value)) {\
func_type zero = 0;\
if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
return (target_type) -1;\
if (is_unsigned && unlikely(value < zero))\
goto raise_neg_overflow;\
else\
goto raise_overflow;\
}\
}\
return (target_type) value;\
}
#if CYTHON_USE_PYLONG_INTERNALS
#include "longintrepr.h"
#endif
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
const int neg_one = (int) -1, const_zero = (int) 0;
const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
if (likely(PyInt_Check(x))) {
if (sizeof(int) < sizeof(long)) {
__PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
} else {
long val = PyInt_AS_LONG(x);
if (is_unsigned && unlikely(val < 0)) {
goto raise_neg_overflow;
}
return (int) val;
}
} else
#endif
if (likely(PyLong_Check(x))) {
if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
const digit* digits = ((PyLongObject*)x)->ob_digit;
switch (Py_SIZE(x)) {
case 0: return (int) 0;
case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
case 2:
if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
}
}
break;
case 3:
if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
}
}
break;
case 4:
if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
__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])))
} else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
}
}
break;
}
#endif
#if CYTHON_COMPILING_IN_CPYTHON
if (unlikely(Py_SIZE(x) < 0)) {
goto raise_neg_overflow;
}
#else
{
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
if (unlikely(result < 0))
return (int) -1;
if (unlikely(result == 1))
goto raise_neg_overflow;
}
#endif
if (sizeof(int) <= sizeof(unsigned long)) {
__PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
} else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
__PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
}
} else {
#if CYTHON_USE_PYLONG_INTERNALS
const digit* digits = ((PyLongObject*)x)->ob_digit;
switch (Py_SIZE(x)) {
case 0: return (int) 0;
case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0])
case -2:
if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
}
}
break;
case 2:
if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
}
}
break;
case -3:
if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
}
}
break;
case 3:
if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
}
}
break;
case -4:
if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
__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])))
} else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
}
}
break;
case 4:
if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
__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])))
} else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
}
}
break;
}
#endif
if (sizeof(int) <= sizeof(long)) {
__PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
} else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
__PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
}
}
{
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
PyErr_SetString(PyExc_RuntimeError,
"_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
int val;
PyObject *v = __Pyx_PyNumber_Int(x);
#if PY_MAJOR_VERSION < 3
if (likely(v) && !PyLong_Check(v)) {
PyObject *tmp = v;
v = PyNumber_Long(tmp);
Py_DECREF(tmp);
}
#endif
if (likely(v)) {
int one = 1; int is_little = (int)*(unsigned char *)&one;
unsigned char *bytes = (unsigned char *)&val;
int ret = _PyLong_AsByteArray((PyLongObject *)v,
bytes, sizeof(val),
is_little, !is_unsigned);
Py_DECREF(v);
if (likely(!ret))
return val;
}
#endif
return (int) -1;
}
} else {
int val;
PyObject *tmp = __Pyx_PyNumber_Int(x);
if (!tmp) return (int) -1;
val = __Pyx_PyInt_As_int(tmp);
Py_DECREF(tmp);
return val;
}
raise_overflow:
PyErr_SetString(PyExc_OverflowError,
"value too large to convert to int");
return (int) -1;
raise_neg_overflow:
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to int");
return (int) -1;
}
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value) {
const enum NPY_TYPES neg_one = (enum NPY_TYPES) -1, const_zero = (enum NPY_TYPES) 0;
const int is_unsigned = neg_one > const_zero;
if (is_unsigned) {
if (sizeof(enum NPY_TYPES) < sizeof(long)) {
return PyInt_FromLong((long) value);
} else if (sizeof(enum NPY_TYPES) <= sizeof(unsigned long)) {
return PyLong_FromUnsignedLong((unsigned long) value);
} else if (sizeof(enum NPY_TYPES) <= sizeof(unsigned PY_LONG_LONG)) {
return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
}
} else {
if (sizeof(enum NPY_TYPES) <= sizeof(long)) {
return PyInt_FromLong((long) value);
} else if (sizeof(enum NPY_TYPES) <= sizeof(PY_LONG_LONG)) {
return PyLong_FromLongLong((PY_LONG_LONG) value);
}
}
{
int one = 1; int little = (int)*(unsigned char *)&one;
unsigned char *bytes = (unsigned char *)&value;
return _PyLong_FromByteArray(bytes, sizeof(enum NPY_TYPES),
little, !is_unsigned);
}
}
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int32_t(int32_t value) {
const int32_t neg_one = (int32_t) -1, const_zero = (int32_t) 0;
const int is_unsigned = neg_one > const_zero;
if (is_unsigned) {
if (sizeof(int32_t) < sizeof(long)) {
return PyInt_FromLong((long) value);
} else if (sizeof(int32_t) <= sizeof(unsigned long)) {
return PyLong_FromUnsignedLong((unsigned long) value);
} else if (sizeof(int32_t) <= sizeof(unsigned PY_LONG_LONG)) {
return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
}
} else {
if (sizeof(int32_t) <= sizeof(long)) {
return PyInt_FromLong((long) value);
} else if (sizeof(int32_t) <= sizeof(PY_LONG_LONG)) {
return PyLong_FromLongLong((PY_LONG_LONG) value);
}
}
{
int one = 1; int little = (int)*(unsigned char *)&one;
unsigned char *bytes = (unsigned char *)&value;
return _PyLong_FromByteArray(bytes, sizeof(int32_t),
little, !is_unsigned);
}
}
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
const long neg_one = (long) -1, const_zero = (long) 0;
const int is_unsigned = neg_one > const_zero;
if (is_unsigned) {
if (sizeof(long) < sizeof(long)) {
return PyInt_FromLong((long) value);
} else if (sizeof(long) <= sizeof(unsigned long)) {
return PyLong_FromUnsignedLong((unsigned long) value);
} else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
}
} else {
if (sizeof(long) <= sizeof(long)) {
return PyInt_FromLong((long) value);
} else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
return PyLong_FromLongLong((PY_LONG_LONG) value);
}
}
{
int one = 1; int little = (int)*(unsigned char *)&one;
unsigned char *bytes = (unsigned char *)&value;
return _PyLong_FromByteArray(bytes, sizeof(long),
little, !is_unsigned);
}
}
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
const long neg_one = (long) -1, const_zero = (long) 0;
const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
if (likely(PyInt_Check(x))) {
if (sizeof(long) < sizeof(long)) {
__PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
} else {
long val = PyInt_AS_LONG(x);
if (is_unsigned && unlikely(val < 0)) {
goto raise_neg_overflow;
}
return (long) val;
}
} else
#endif
if (likely(PyLong_Check(x))) {
if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
const digit* digits = ((PyLongObject*)x)->ob_digit;
switch (Py_SIZE(x)) {
case 0: return (long) 0;
case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
case 2:
if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
}
}
break;
case 3:
if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
}
}
break;
case 4:
if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
__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])))
} else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
}
}
break;
}
#endif
#if CYTHON_COMPILING_IN_CPYTHON
if (unlikely(Py_SIZE(x) < 0)) {
goto raise_neg_overflow;
}
#else
{
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
if (unlikely(result < 0))
return (long) -1;
if (unlikely(result == 1))
goto raise_neg_overflow;
}
#endif
if (sizeof(long) <= sizeof(unsigned long)) {
__PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
} else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
__PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
}
} else {
#if CYTHON_USE_PYLONG_INTERNALS
const digit* digits = ((PyLongObject*)x)->ob_digit;
switch (Py_SIZE(x)) {
case 0: return (long) 0;
case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0])
case -2:
if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
}
}
break;
case 2:
if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
}
}
break;
case -3:
if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
}
}
break;
case 3:
if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
} else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
}
}
break;
case -4:
if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
__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])))
} else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
}
}
break;
case 4:
if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
__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])))
} else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
}
}
break;
}
#endif
if (sizeof(long) <= sizeof(long)) {
__PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
} else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
__PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
}
}
{
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
PyErr_SetString(PyExc_RuntimeError,
"_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
long val;
PyObject *v = __Pyx_PyNumber_Int(x);
#if PY_MAJOR_VERSION < 3
if (likely(v) && !PyLong_Check(v)) {
PyObject *tmp = v;
v = PyNumber_Long(tmp);
Py_DECREF(tmp);
}
#endif
if (likely(v)) {
int one = 1; int is_little = (int)*(unsigned char *)&one;
unsigned char *bytes = (unsigned char *)&val;
int ret = _PyLong_AsByteArray((PyLongObject *)v,
bytes, sizeof(val),
is_little, !is_unsigned);
Py_DECREF(v);
if (likely(!ret))
return val;
}
#endif
return (long) -1;
}
} else {
long val;
PyObject *tmp = __Pyx_PyNumber_Int(x);
if (!tmp) return (long) -1;
val = __Pyx_PyInt_As_long(tmp);
Py_DECREF(tmp);
return val;
}
raise_overflow:
PyErr_SetString(PyExc_OverflowError,
"value too large to convert to long");
return (long) -1;
raise_neg_overflow:
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to long");
return (long) -1;
}
static int __Pyx_check_binary_version(void) {
char ctversion[4], rtversion[4];
PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
char message[200];
PyOS_snprintf(message, sizeof(message),
"compiletime version %s of module '%.100s' "
"does not match runtime version %s",
ctversion, __Pyx_MODULE_NAME, rtversion);
return PyErr_WarnEx(NULL, message, 1);
}
return 0;
}
static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) {
PyObject *d = 0;
PyObject *cobj = 0;
union {
void (*fp)(void);
void *p;
} tmp;
d = PyObject_GetAttrString(__pyx_m, (char *)"__pyx_capi__");
if (!d) {
PyErr_Clear();
d = PyDict_New();
if (!d)
goto bad;
Py_INCREF(d);
if (PyModule_AddObject(__pyx_m, (char *)"__pyx_capi__", d) < 0)
goto bad;
}
tmp.fp = f;
#if PY_VERSION_HEX >= 0x02070000
cobj = PyCapsule_New(tmp.p, sig, 0);
#else
cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (void *)sig, 0);
#endif
if (!cobj)
goto bad;
if (PyDict_SetItemString(d, name, cobj) < 0)
goto bad;
Py_DECREF(cobj);
Py_DECREF(d);
return 0;
bad:
Py_XDECREF(cobj);
Py_XDECREF(d);
return -1;
}
#ifndef __PYX_HAVE_RT_ImportModule
#define __PYX_HAVE_RT_ImportModule
static PyObject *__Pyx_ImportModule(const char *name) {
PyObject *py_name = 0;
PyObject *py_module = 0;
py_name = __Pyx_PyIdentifier_FromString(name);
if (!py_name)
goto bad;
py_module = PyImport_Import(py_name);
Py_DECREF(py_name);
return py_module;
bad:
Py_XDECREF(py_name);
return 0;
}
#endif
#ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name,
size_t size, int strict)
{
PyObject *py_module = 0;
PyObject *result = 0;
PyObject *py_name = 0;
char warning[200];
Py_ssize_t basicsize;
#ifdef Py_LIMITED_API
PyObject *py_basicsize;
#endif
py_module = __Pyx_ImportModule(module_name);
if (!py_module)
goto bad;
py_name = __Pyx_PyIdentifier_FromString(class_name);
if (!py_name)
goto bad;
result = PyObject_GetAttr(py_module, py_name);
Py_DECREF(py_name);
py_name = 0;
Py_DECREF(py_module);
py_module = 0;
if (!result)
goto bad;
if (!PyType_Check(result)) {
PyErr_Format(PyExc_TypeError,
"%.200s.%.200s is not a type object",
module_name, class_name);
goto bad;
}
#ifndef Py_LIMITED_API
basicsize = ((PyTypeObject *)result)->tp_basicsize;
#else
py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
if (!py_basicsize)
goto bad;
basicsize = PyLong_AsSsize_t(py_basicsize);
Py_DECREF(py_basicsize);
py_basicsize = 0;
if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
goto bad;
#endif
if (!strict && (size_t)basicsize > size) {
PyOS_snprintf(warning, sizeof(warning),
"%s.%s size changed, may indicate binary incompatibility",
module_name, class_name);
if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
}
else if ((size_t)basicsize != size) {
PyErr_Format(PyExc_ValueError,
"%.200s.%.200s has the wrong size, try recompiling",
module_name, class_name);
goto bad;
}
return (PyTypeObject *)result;
bad:
Py_XDECREF(py_module);
Py_XDECREF(result);
return NULL;
}
#endif
#ifndef __PYX_HAVE_RT_ImportVoidPtr
#define __PYX_HAVE_RT_ImportVoidPtr
static int __Pyx_ImportVoidPtr(PyObject *module, const char *name, void **p, const char *sig) {
PyObject *d = 0;
PyObject *cobj = 0;
d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
if (!d)
goto bad;
cobj = PyDict_GetItemString(d, name);
if (!cobj) {
PyErr_Format(PyExc_ImportError,
"%.200s does not export expected C variable %.200s",
PyModule_GetName(module), name);
goto bad;
}
#if PY_VERSION_HEX >= 0x02070000
if (!PyCapsule_IsValid(cobj, sig)) {
PyErr_Format(PyExc_TypeError,
"C variable %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj));
goto bad;
}
*p = PyCapsule_GetPointer(cobj, sig);
#else
{const char *desc, *s1, *s2;
desc = (const char *)PyCObject_GetDesc(cobj);
if (!desc)
goto bad;
s1 = desc; s2 = sig;
while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
if (*s1 != *s2) {
PyErr_Format(PyExc_TypeError,
"C variable %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
PyModule_GetName(module), name, sig, desc);
goto bad;
}
*p = PyCObject_AsVoidPtr(cobj);}
#endif
if (!(*p))
goto bad;
Py_DECREF(d);
return 0;
bad:
Py_XDECREF(d);
return -1;
}
#endif
#ifndef __PYX_HAVE_RT_ImportFunction
#define __PYX_HAVE_RT_ImportFunction
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
PyObject *d = 0;
PyObject *cobj = 0;
union {
void (*fp)(void);
void *p;
} tmp;
d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
if (!d)
goto bad;
cobj = PyDict_GetItemString(d, funcname);
if (!cobj) {
PyErr_Format(PyExc_ImportError,
"%.200s does not export expected C function %.200s",
PyModule_GetName(module), funcname);
goto bad;
}
#if PY_VERSION_HEX >= 0x02070000
if (!PyCapsule_IsValid(cobj, sig)) {
PyErr_Format(PyExc_TypeError,
"C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
goto bad;
}
tmp.p = PyCapsule_GetPointer(cobj, sig);
#else
{const char *desc, *s1, *s2;
desc = (const char *)PyCObject_GetDesc(cobj);
if (!desc)
goto bad;
s1 = desc; s2 = sig;
while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
if (*s1 != *s2) {
PyErr_Format(PyExc_TypeError,
"C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
PyModule_GetName(module), funcname, sig, desc);
goto bad;
}
tmp.p = PyCObject_AsVoidPtr(cobj);}
#endif
*f = tmp.fp;
if (!(*f))
goto bad;
Py_DECREF(d);
return 0;
bad:
Py_XDECREF(d);
return -1;
}
#endif
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
while (t->p) {
#if PY_MAJOR_VERSION < 3
if (t->is_unicode) {
*t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
} else if (t->intern) {
*t->p = PyString_InternFromString(t->s);
} else {
*t->p = PyString_FromStringAndSize(t->s, t->n - 1);
}
#else
if (t->is_unicode | t->is_str) {
if (t->intern) {
*t->p = PyUnicode_InternFromString(t->s);
} else if (t->encoding) {
*t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
} else {
*t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
}
} else {
*t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
}
#endif
if (!*t->p)
return -1;
++t;
}
return 0;
}
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
}
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) {
Py_ssize_t ignore;
return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
__Pyx_sys_getdefaultencoding_not_ascii &&
#endif
PyUnicode_Check(o)) {
#if PY_VERSION_HEX < 0x03030000
char* defenc_c;
PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
if (!defenc) return NULL;
defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
{
char* end = defenc_c + PyBytes_GET_SIZE(defenc);
char* c;
for (c = defenc_c; c < end; c++) {
if ((unsigned char) (*c) >= 128) {
PyUnicode_AsASCIIString(o);
return NULL;
}
}
}
#endif
*length = PyBytes_GET_SIZE(defenc);
return defenc_c;
#else
if (__Pyx_PyUnicode_READY(o) == -1) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
if (PyUnicode_IS_ASCII(o)) {
*length = PyUnicode_GET_LENGTH(o);
return PyUnicode_AsUTF8(o);
} else {
PyUnicode_AsASCIIString(o);
return NULL;
}
#else
return PyUnicode_AsUTF8AndSize(o, length);
#endif
#endif
} else
#endif
#if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
if (PyByteArray_Check(o)) {
*length = PyByteArray_GET_SIZE(o);
return PyByteArray_AS_STRING(o);
} else
#endif
{
char* result;
int r = PyBytes_AsStringAndSize(o, &result, length);
if (unlikely(r < 0)) {
return NULL;
} else {
return result;
}
}
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
int is_true = x == Py_True;
if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
else return PyObject_IsTrue(x);
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
PyNumberMethods *m;
const char *name = NULL;
PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
if (PyInt_Check(x) || PyLong_Check(x))
#else
if (PyLong_Check(x))
#endif
return __Pyx_NewRef(x);
m = Py_TYPE(x)->tp_as_number;
#if PY_MAJOR_VERSION < 3
if (m && m->nb_int) {
name = "int";
res = PyNumber_Int(x);
}
else if (m && m->nb_long) {
name = "long";
res = PyNumber_Long(x);
}
#else
if (m && m->nb_int) {
name = "int";
res = PyNumber_Long(x);
}
#endif
if (res) {
#if PY_MAJOR_VERSION < 3
if (!PyInt_Check(res) && !PyLong_Check(res)) {
#else
if (!PyLong_Check(res)) {
#endif
PyErr_Format(PyExc_TypeError,
"__%.4s__ returned non-%.4s (type %.200s)",
name, name, Py_TYPE(res)->tp_name);
Py_DECREF(res);
return NULL;
}
}
else if (!PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,
"an integer is required");
}
return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
Py_ssize_t ival;
PyObject *x;
#if PY_MAJOR_VERSION < 3
if (likely(PyInt_CheckExact(b))) {
if (sizeof(Py_ssize_t) >= sizeof(long))
return PyInt_AS_LONG(b);
else
return PyInt_AsSsize_t(x);
}
#endif
if (likely(PyLong_CheckExact(b))) {
#if CYTHON_USE_PYLONG_INTERNALS
const digit* digits = ((PyLongObject*)b)->ob_digit;
const Py_ssize_t size = Py_SIZE(b);
if (likely(__Pyx_sst_abs(size) <= 1)) {
ival = likely(size) ? digits[0] : 0;
if (size == -1) ival = -ival;
return ival;
} else {
switch (size) {
case 2:
if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
}
break;
case -2:
if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
}
break;
case 3:
if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
}
break;
case -3:
if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
}
break;
case 4:
if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
}
break;
case -4:
if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
}
break;
}
}
#endif
return PyLong_AsSsize_t(b);
}
x = PyNumber_Index(b);
if (!x) return -1;
ival = PyInt_AsSsize_t(x);
Py_DECREF(x);
return ival;
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
return PyInt_FromSize_t(ival);
}
#endif /* Py_PYTHON_H */
| [
"[email protected]"
] | |
308822286731704498ad6f5e24f0a30d728cf38d | a47a3ed2f97a2bcae507c2990083dc18b852d616 | /ZigZagRacer/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/UnityEngine.AnimationModule_Attr.cpp | 233a3c9f2c69743254c03d2552754862d03929d8 | [] | no_license | MiPatni/ZigZagRacer | 463c6aa549613f90e6919c80798c168206250f88 | 2f6f9e6b26c4c58f8645dd9f30d6360eacb57021 | refs/heads/main | 2023-07-04T20:19:26.103275 | 2021-08-11T08:06:26 | 2021-08-11T08:06:26 | 393,265,100 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 168,281 | cpp | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// System.Char[]
struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34;
// System.AttributeUsageAttribute
struct AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C;
// System.Runtime.CompilerServices.CompilationRelaxationsAttribute
struct CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF;
// System.Diagnostics.DebuggableAttribute
struct DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B;
// System.Reflection.DefaultMemberAttribute
struct DefaultMemberAttribute_t8C9B3330DEA69EE364962477FF14FD2CFE30D4B5;
// UnityEngine.ExcludeFromObjectFactoryAttribute
struct ExcludeFromObjectFactoryAttribute_t76EEA428CB04C23B2844EB37275816B16C847271;
// System.Runtime.CompilerServices.ExtensionAttribute
struct ExtensionAttribute_t917F3F92E717DC8B2D7BC03967A9790B1B8EF7CC;
// UnityEngine.Bindings.FreeFunctionAttribute
struct FreeFunctionAttribute_tBB3B939D760190FEC84762F1BA94B99672613D03;
// System.Runtime.CompilerServices.InternalsVisibleToAttribute
struct InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C;
// UnityEngine.Scripting.APIUpdating.MovedFromAttribute
struct MovedFromAttribute_t7DFA9E51FA9540D9D5EB8D41E363D2BC51F43BC8;
// UnityEngine.Bindings.NativeConditionalAttribute
struct NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B;
// UnityEngine.Bindings.NativeHeaderAttribute
struct NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C;
// UnityEngine.Bindings.NativeMethodAttribute
struct NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866;
// UnityEngine.Bindings.NativeNameAttribute
struct NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7;
// UnityEngine.Bindings.NativeTypeAttribute
struct NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9;
// UnityEngine.Scripting.RequiredByNativeCodeAttribute
struct RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20;
// System.Runtime.CompilerServices.RuntimeCompatibilityAttribute
struct RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80;
// UnityEngine.Bindings.StaticAccessorAttribute
struct StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA;
// System.String
struct String_t;
// UnityEngine.UnityEngineModuleAssembly
struct UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF;
// UnityEngine.Scripting.UsedByNativeCodeAttribute
struct UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Object
// System.Attribute
struct Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 : public RuntimeObject
{
public:
public:
};
// System.String
struct String_t : public RuntimeObject
{
public:
// System.Int32 System.String::m_stringLength
int32_t ___m_stringLength_0;
// System.Char System.String::m_firstChar
Il2CppChar ___m_firstChar_1;
public:
inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
inline void set_m_stringLength_0(int32_t value)
{
___m_stringLength_0 = value;
}
inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
inline void set_m_firstChar_1(Il2CppChar value)
{
___m_firstChar_1 = value;
}
};
struct String_t_StaticFields
{
public:
// System.String System.String::Empty
String_t* ___Empty_5;
public:
inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
inline String_t* get_Empty_5() const { return ___Empty_5; }
inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
inline void set_Empty_5(String_t* value)
{
___Empty_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
}
};
// System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com
{
};
// System.Boolean
struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37
{
public:
// System.Boolean System.Boolean::m_value
bool ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37, ___m_value_0)); }
inline bool get_m_value_0() const { return ___m_value_0; }
inline bool* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(bool value)
{
___m_value_0 = value;
}
};
struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields
{
public:
// System.String System.Boolean::TrueString
String_t* ___TrueString_5;
// System.String System.Boolean::FalseString
String_t* ___FalseString_6;
public:
inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___TrueString_5)); }
inline String_t* get_TrueString_5() const { return ___TrueString_5; }
inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
inline void set_TrueString_5(String_t* value)
{
___TrueString_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
}
inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___FalseString_6)); }
inline String_t* get_FalseString_6() const { return ___FalseString_6; }
inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
inline void set_FalseString_6(String_t* value)
{
___FalseString_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
}
};
// System.Runtime.CompilerServices.CompilationRelaxationsAttribute
struct CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.Int32 System.Runtime.CompilerServices.CompilationRelaxationsAttribute::m_relaxations
int32_t ___m_relaxations_0;
public:
inline static int32_t get_offset_of_m_relaxations_0() { return static_cast<int32_t>(offsetof(CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF, ___m_relaxations_0)); }
inline int32_t get_m_relaxations_0() const { return ___m_relaxations_0; }
inline int32_t* get_address_of_m_relaxations_0() { return &___m_relaxations_0; }
inline void set_m_relaxations_0(int32_t value)
{
___m_relaxations_0 = value;
}
};
// System.Reflection.DefaultMemberAttribute
struct DefaultMemberAttribute_t8C9B3330DEA69EE364962477FF14FD2CFE30D4B5 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String System.Reflection.DefaultMemberAttribute::m_memberName
String_t* ___m_memberName_0;
public:
inline static int32_t get_offset_of_m_memberName_0() { return static_cast<int32_t>(offsetof(DefaultMemberAttribute_t8C9B3330DEA69EE364962477FF14FD2CFE30D4B5, ___m_memberName_0)); }
inline String_t* get_m_memberName_0() const { return ___m_memberName_0; }
inline String_t** get_address_of_m_memberName_0() { return &___m_memberName_0; }
inline void set_m_memberName_0(String_t* value)
{
___m_memberName_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_memberName_0), (void*)value);
}
};
// System.Enum
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA : public ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52
{
public:
public:
};
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_com
{
};
// UnityEngine.ExcludeFromObjectFactoryAttribute
struct ExcludeFromObjectFactoryAttribute_t76EEA428CB04C23B2844EB37275816B16C847271 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
public:
};
// System.Runtime.CompilerServices.ExtensionAttribute
struct ExtensionAttribute_t917F3F92E717DC8B2D7BC03967A9790B1B8EF7CC : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
public:
};
// System.Runtime.CompilerServices.InternalsVisibleToAttribute
struct InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String System.Runtime.CompilerServices.InternalsVisibleToAttribute::_assemblyName
String_t* ____assemblyName_0;
// System.Boolean System.Runtime.CompilerServices.InternalsVisibleToAttribute::_allInternalsVisible
bool ____allInternalsVisible_1;
public:
inline static int32_t get_offset_of__assemblyName_0() { return static_cast<int32_t>(offsetof(InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C, ____assemblyName_0)); }
inline String_t* get__assemblyName_0() const { return ____assemblyName_0; }
inline String_t** get_address_of__assemblyName_0() { return &____assemblyName_0; }
inline void set__assemblyName_0(String_t* value)
{
____assemblyName_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&____assemblyName_0), (void*)value);
}
inline static int32_t get_offset_of__allInternalsVisible_1() { return static_cast<int32_t>(offsetof(InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C, ____allInternalsVisible_1)); }
inline bool get__allInternalsVisible_1() const { return ____allInternalsVisible_1; }
inline bool* get_address_of__allInternalsVisible_1() { return &____allInternalsVisible_1; }
inline void set__allInternalsVisible_1(bool value)
{
____allInternalsVisible_1 = value;
}
};
// UnityEngine.Scripting.APIUpdating.MovedFromAttributeData
struct MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C
{
public:
// System.String UnityEngine.Scripting.APIUpdating.MovedFromAttributeData::className
String_t* ___className_0;
// System.String UnityEngine.Scripting.APIUpdating.MovedFromAttributeData::nameSpace
String_t* ___nameSpace_1;
// System.String UnityEngine.Scripting.APIUpdating.MovedFromAttributeData::assembly
String_t* ___assembly_2;
// System.Boolean UnityEngine.Scripting.APIUpdating.MovedFromAttributeData::classHasChanged
bool ___classHasChanged_3;
// System.Boolean UnityEngine.Scripting.APIUpdating.MovedFromAttributeData::nameSpaceHasChanged
bool ___nameSpaceHasChanged_4;
// System.Boolean UnityEngine.Scripting.APIUpdating.MovedFromAttributeData::assemblyHasChanged
bool ___assemblyHasChanged_5;
// System.Boolean UnityEngine.Scripting.APIUpdating.MovedFromAttributeData::autoUdpateAPI
bool ___autoUdpateAPI_6;
public:
inline static int32_t get_offset_of_className_0() { return static_cast<int32_t>(offsetof(MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C, ___className_0)); }
inline String_t* get_className_0() const { return ___className_0; }
inline String_t** get_address_of_className_0() { return &___className_0; }
inline void set_className_0(String_t* value)
{
___className_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___className_0), (void*)value);
}
inline static int32_t get_offset_of_nameSpace_1() { return static_cast<int32_t>(offsetof(MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C, ___nameSpace_1)); }
inline String_t* get_nameSpace_1() const { return ___nameSpace_1; }
inline String_t** get_address_of_nameSpace_1() { return &___nameSpace_1; }
inline void set_nameSpace_1(String_t* value)
{
___nameSpace_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___nameSpace_1), (void*)value);
}
inline static int32_t get_offset_of_assembly_2() { return static_cast<int32_t>(offsetof(MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C, ___assembly_2)); }
inline String_t* get_assembly_2() const { return ___assembly_2; }
inline String_t** get_address_of_assembly_2() { return &___assembly_2; }
inline void set_assembly_2(String_t* value)
{
___assembly_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___assembly_2), (void*)value);
}
inline static int32_t get_offset_of_classHasChanged_3() { return static_cast<int32_t>(offsetof(MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C, ___classHasChanged_3)); }
inline bool get_classHasChanged_3() const { return ___classHasChanged_3; }
inline bool* get_address_of_classHasChanged_3() { return &___classHasChanged_3; }
inline void set_classHasChanged_3(bool value)
{
___classHasChanged_3 = value;
}
inline static int32_t get_offset_of_nameSpaceHasChanged_4() { return static_cast<int32_t>(offsetof(MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C, ___nameSpaceHasChanged_4)); }
inline bool get_nameSpaceHasChanged_4() const { return ___nameSpaceHasChanged_4; }
inline bool* get_address_of_nameSpaceHasChanged_4() { return &___nameSpaceHasChanged_4; }
inline void set_nameSpaceHasChanged_4(bool value)
{
___nameSpaceHasChanged_4 = value;
}
inline static int32_t get_offset_of_assemblyHasChanged_5() { return static_cast<int32_t>(offsetof(MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C, ___assemblyHasChanged_5)); }
inline bool get_assemblyHasChanged_5() const { return ___assemblyHasChanged_5; }
inline bool* get_address_of_assemblyHasChanged_5() { return &___assemblyHasChanged_5; }
inline void set_assemblyHasChanged_5(bool value)
{
___assemblyHasChanged_5 = value;
}
inline static int32_t get_offset_of_autoUdpateAPI_6() { return static_cast<int32_t>(offsetof(MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C, ___autoUdpateAPI_6)); }
inline bool get_autoUdpateAPI_6() const { return ___autoUdpateAPI_6; }
inline bool* get_address_of_autoUdpateAPI_6() { return &___autoUdpateAPI_6; }
inline void set_autoUdpateAPI_6(bool value)
{
___autoUdpateAPI_6 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.Scripting.APIUpdating.MovedFromAttributeData
struct MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C_marshaled_pinvoke
{
char* ___className_0;
char* ___nameSpace_1;
char* ___assembly_2;
int32_t ___classHasChanged_3;
int32_t ___nameSpaceHasChanged_4;
int32_t ___assemblyHasChanged_5;
int32_t ___autoUdpateAPI_6;
};
// Native definition for COM marshalling of UnityEngine.Scripting.APIUpdating.MovedFromAttributeData
struct MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C_marshaled_com
{
Il2CppChar* ___className_0;
Il2CppChar* ___nameSpace_1;
Il2CppChar* ___assembly_2;
int32_t ___classHasChanged_3;
int32_t ___nameSpaceHasChanged_4;
int32_t ___assemblyHasChanged_5;
int32_t ___autoUdpateAPI_6;
};
// UnityEngine.Bindings.NativeConditionalAttribute
struct NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String UnityEngine.Bindings.NativeConditionalAttribute::<Condition>k__BackingField
String_t* ___U3CConditionU3Ek__BackingField_0;
// System.Boolean UnityEngine.Bindings.NativeConditionalAttribute::<Enabled>k__BackingField
bool ___U3CEnabledU3Ek__BackingField_1;
public:
inline static int32_t get_offset_of_U3CConditionU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B, ___U3CConditionU3Ek__BackingField_0)); }
inline String_t* get_U3CConditionU3Ek__BackingField_0() const { return ___U3CConditionU3Ek__BackingField_0; }
inline String_t** get_address_of_U3CConditionU3Ek__BackingField_0() { return &___U3CConditionU3Ek__BackingField_0; }
inline void set_U3CConditionU3Ek__BackingField_0(String_t* value)
{
___U3CConditionU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CConditionU3Ek__BackingField_0), (void*)value);
}
inline static int32_t get_offset_of_U3CEnabledU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B, ___U3CEnabledU3Ek__BackingField_1)); }
inline bool get_U3CEnabledU3Ek__BackingField_1() const { return ___U3CEnabledU3Ek__BackingField_1; }
inline bool* get_address_of_U3CEnabledU3Ek__BackingField_1() { return &___U3CEnabledU3Ek__BackingField_1; }
inline void set_U3CEnabledU3Ek__BackingField_1(bool value)
{
___U3CEnabledU3Ek__BackingField_1 = value;
}
};
// UnityEngine.Bindings.NativeHeaderAttribute
struct NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String UnityEngine.Bindings.NativeHeaderAttribute::<Header>k__BackingField
String_t* ___U3CHeaderU3Ek__BackingField_0;
public:
inline static int32_t get_offset_of_U3CHeaderU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C, ___U3CHeaderU3Ek__BackingField_0)); }
inline String_t* get_U3CHeaderU3Ek__BackingField_0() const { return ___U3CHeaderU3Ek__BackingField_0; }
inline String_t** get_address_of_U3CHeaderU3Ek__BackingField_0() { return &___U3CHeaderU3Ek__BackingField_0; }
inline void set_U3CHeaderU3Ek__BackingField_0(String_t* value)
{
___U3CHeaderU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CHeaderU3Ek__BackingField_0), (void*)value);
}
};
// UnityEngine.Bindings.NativeMethodAttribute
struct NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String UnityEngine.Bindings.NativeMethodAttribute::<Name>k__BackingField
String_t* ___U3CNameU3Ek__BackingField_0;
// System.Boolean UnityEngine.Bindings.NativeMethodAttribute::<IsThreadSafe>k__BackingField
bool ___U3CIsThreadSafeU3Ek__BackingField_1;
// System.Boolean UnityEngine.Bindings.NativeMethodAttribute::<IsFreeFunction>k__BackingField
bool ___U3CIsFreeFunctionU3Ek__BackingField_2;
// System.Boolean UnityEngine.Bindings.NativeMethodAttribute::<ThrowsException>k__BackingField
bool ___U3CThrowsExceptionU3Ek__BackingField_3;
// System.Boolean UnityEngine.Bindings.NativeMethodAttribute::<HasExplicitThis>k__BackingField
bool ___U3CHasExplicitThisU3Ek__BackingField_4;
public:
inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866, ___U3CNameU3Ek__BackingField_0)); }
inline String_t* get_U3CNameU3Ek__BackingField_0() const { return ___U3CNameU3Ek__BackingField_0; }
inline String_t** get_address_of_U3CNameU3Ek__BackingField_0() { return &___U3CNameU3Ek__BackingField_0; }
inline void set_U3CNameU3Ek__BackingField_0(String_t* value)
{
___U3CNameU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CNameU3Ek__BackingField_0), (void*)value);
}
inline static int32_t get_offset_of_U3CIsThreadSafeU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866, ___U3CIsThreadSafeU3Ek__BackingField_1)); }
inline bool get_U3CIsThreadSafeU3Ek__BackingField_1() const { return ___U3CIsThreadSafeU3Ek__BackingField_1; }
inline bool* get_address_of_U3CIsThreadSafeU3Ek__BackingField_1() { return &___U3CIsThreadSafeU3Ek__BackingField_1; }
inline void set_U3CIsThreadSafeU3Ek__BackingField_1(bool value)
{
___U3CIsThreadSafeU3Ek__BackingField_1 = value;
}
inline static int32_t get_offset_of_U3CIsFreeFunctionU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866, ___U3CIsFreeFunctionU3Ek__BackingField_2)); }
inline bool get_U3CIsFreeFunctionU3Ek__BackingField_2() const { return ___U3CIsFreeFunctionU3Ek__BackingField_2; }
inline bool* get_address_of_U3CIsFreeFunctionU3Ek__BackingField_2() { return &___U3CIsFreeFunctionU3Ek__BackingField_2; }
inline void set_U3CIsFreeFunctionU3Ek__BackingField_2(bool value)
{
___U3CIsFreeFunctionU3Ek__BackingField_2 = value;
}
inline static int32_t get_offset_of_U3CThrowsExceptionU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866, ___U3CThrowsExceptionU3Ek__BackingField_3)); }
inline bool get_U3CThrowsExceptionU3Ek__BackingField_3() const { return ___U3CThrowsExceptionU3Ek__BackingField_3; }
inline bool* get_address_of_U3CThrowsExceptionU3Ek__BackingField_3() { return &___U3CThrowsExceptionU3Ek__BackingField_3; }
inline void set_U3CThrowsExceptionU3Ek__BackingField_3(bool value)
{
___U3CThrowsExceptionU3Ek__BackingField_3 = value;
}
inline static int32_t get_offset_of_U3CHasExplicitThisU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866, ___U3CHasExplicitThisU3Ek__BackingField_4)); }
inline bool get_U3CHasExplicitThisU3Ek__BackingField_4() const { return ___U3CHasExplicitThisU3Ek__BackingField_4; }
inline bool* get_address_of_U3CHasExplicitThisU3Ek__BackingField_4() { return &___U3CHasExplicitThisU3Ek__BackingField_4; }
inline void set_U3CHasExplicitThisU3Ek__BackingField_4(bool value)
{
___U3CHasExplicitThisU3Ek__BackingField_4 = value;
}
};
// UnityEngine.Bindings.NativeNameAttribute
struct NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String UnityEngine.Bindings.NativeNameAttribute::<Name>k__BackingField
String_t* ___U3CNameU3Ek__BackingField_0;
public:
inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7, ___U3CNameU3Ek__BackingField_0)); }
inline String_t* get_U3CNameU3Ek__BackingField_0() const { return ___U3CNameU3Ek__BackingField_0; }
inline String_t** get_address_of_U3CNameU3Ek__BackingField_0() { return &___U3CNameU3Ek__BackingField_0; }
inline void set_U3CNameU3Ek__BackingField_0(String_t* value)
{
___U3CNameU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CNameU3Ek__BackingField_0), (void*)value);
}
};
// UnityEngine.Scripting.RequiredByNativeCodeAttribute
struct RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String UnityEngine.Scripting.RequiredByNativeCodeAttribute::<Name>k__BackingField
String_t* ___U3CNameU3Ek__BackingField_0;
// System.Boolean UnityEngine.Scripting.RequiredByNativeCodeAttribute::<Optional>k__BackingField
bool ___U3COptionalU3Ek__BackingField_1;
// System.Boolean UnityEngine.Scripting.RequiredByNativeCodeAttribute::<GenerateProxy>k__BackingField
bool ___U3CGenerateProxyU3Ek__BackingField_2;
public:
inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20, ___U3CNameU3Ek__BackingField_0)); }
inline String_t* get_U3CNameU3Ek__BackingField_0() const { return ___U3CNameU3Ek__BackingField_0; }
inline String_t** get_address_of_U3CNameU3Ek__BackingField_0() { return &___U3CNameU3Ek__BackingField_0; }
inline void set_U3CNameU3Ek__BackingField_0(String_t* value)
{
___U3CNameU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CNameU3Ek__BackingField_0), (void*)value);
}
inline static int32_t get_offset_of_U3COptionalU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20, ___U3COptionalU3Ek__BackingField_1)); }
inline bool get_U3COptionalU3Ek__BackingField_1() const { return ___U3COptionalU3Ek__BackingField_1; }
inline bool* get_address_of_U3COptionalU3Ek__BackingField_1() { return &___U3COptionalU3Ek__BackingField_1; }
inline void set_U3COptionalU3Ek__BackingField_1(bool value)
{
___U3COptionalU3Ek__BackingField_1 = value;
}
inline static int32_t get_offset_of_U3CGenerateProxyU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20, ___U3CGenerateProxyU3Ek__BackingField_2)); }
inline bool get_U3CGenerateProxyU3Ek__BackingField_2() const { return ___U3CGenerateProxyU3Ek__BackingField_2; }
inline bool* get_address_of_U3CGenerateProxyU3Ek__BackingField_2() { return &___U3CGenerateProxyU3Ek__BackingField_2; }
inline void set_U3CGenerateProxyU3Ek__BackingField_2(bool value)
{
___U3CGenerateProxyU3Ek__BackingField_2 = value;
}
};
// System.Runtime.CompilerServices.RuntimeCompatibilityAttribute
struct RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.Boolean System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::m_wrapNonExceptionThrows
bool ___m_wrapNonExceptionThrows_0;
public:
inline static int32_t get_offset_of_m_wrapNonExceptionThrows_0() { return static_cast<int32_t>(offsetof(RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80, ___m_wrapNonExceptionThrows_0)); }
inline bool get_m_wrapNonExceptionThrows_0() const { return ___m_wrapNonExceptionThrows_0; }
inline bool* get_address_of_m_wrapNonExceptionThrows_0() { return &___m_wrapNonExceptionThrows_0; }
inline void set_m_wrapNonExceptionThrows_0(bool value)
{
___m_wrapNonExceptionThrows_0 = value;
}
};
// UnityEngine.UnityEngineModuleAssembly
struct UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
public:
};
// UnityEngine.Scripting.UsedByNativeCodeAttribute
struct UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
public:
};
// System.Void
struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5
{
public:
union
{
struct
{
};
uint8_t Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5__padding[1];
};
public:
};
// System.AttributeTargets
struct AttributeTargets_t5F71273DFE1D0CA9B8109F02A023A7DBA9BFC923
{
public:
// System.Int32 System.AttributeTargets::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(AttributeTargets_t5F71273DFE1D0CA9B8109F02A023A7DBA9BFC923, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.Bindings.CodegenOptions
struct CodegenOptions_t2D0BDBDCEFA8EC8B714E6F9E84A55557343398FA
{
public:
// System.Int32 UnityEngine.Bindings.CodegenOptions::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CodegenOptions_t2D0BDBDCEFA8EC8B714E6F9E84A55557343398FA, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.Bindings.FreeFunctionAttribute
struct FreeFunctionAttribute_tBB3B939D760190FEC84762F1BA94B99672613D03 : public NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866
{
public:
public:
};
// UnityEngine.Scripting.APIUpdating.MovedFromAttribute
struct MovedFromAttribute_t7DFA9E51FA9540D9D5EB8D41E363D2BC51F43BC8 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// UnityEngine.Scripting.APIUpdating.MovedFromAttributeData UnityEngine.Scripting.APIUpdating.MovedFromAttribute::data
MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C ___data_0;
public:
inline static int32_t get_offset_of_data_0() { return static_cast<int32_t>(offsetof(MovedFromAttribute_t7DFA9E51FA9540D9D5EB8D41E363D2BC51F43BC8, ___data_0)); }
inline MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C get_data_0() const { return ___data_0; }
inline MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C * get_address_of_data_0() { return &___data_0; }
inline void set_data_0(MovedFromAttributeData_tD215FAE7C2C99058DABB245C5A5EC95AEF05533C value)
{
___data_0 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___data_0))->___className_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___data_0))->___nameSpace_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___data_0))->___assembly_2), (void*)NULL);
#endif
}
};
// UnityEngine.Bindings.StaticAccessorType
struct StaticAccessorType_tFA86A321ADAC16A48DF7FC82F8FBBE5F71D2DC4C
{
public:
// System.Int32 UnityEngine.Bindings.StaticAccessorType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StaticAccessorType_tFA86A321ADAC16A48DF7FC82F8FBBE5F71D2DC4C, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.Diagnostics.DebuggableAttribute/DebuggingModes
struct DebuggingModes_t279D5B9C012ABA935887CB73C5A63A1F46AF08A8
{
public:
// System.Int32 System.Diagnostics.DebuggableAttribute/DebuggingModes::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DebuggingModes_t279D5B9C012ABA935887CB73C5A63A1F46AF08A8, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.AttributeUsageAttribute
struct AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.AttributeTargets System.AttributeUsageAttribute::m_attributeTarget
int32_t ___m_attributeTarget_0;
// System.Boolean System.AttributeUsageAttribute::m_allowMultiple
bool ___m_allowMultiple_1;
// System.Boolean System.AttributeUsageAttribute::m_inherited
bool ___m_inherited_2;
public:
inline static int32_t get_offset_of_m_attributeTarget_0() { return static_cast<int32_t>(offsetof(AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C, ___m_attributeTarget_0)); }
inline int32_t get_m_attributeTarget_0() const { return ___m_attributeTarget_0; }
inline int32_t* get_address_of_m_attributeTarget_0() { return &___m_attributeTarget_0; }
inline void set_m_attributeTarget_0(int32_t value)
{
___m_attributeTarget_0 = value;
}
inline static int32_t get_offset_of_m_allowMultiple_1() { return static_cast<int32_t>(offsetof(AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C, ___m_allowMultiple_1)); }
inline bool get_m_allowMultiple_1() const { return ___m_allowMultiple_1; }
inline bool* get_address_of_m_allowMultiple_1() { return &___m_allowMultiple_1; }
inline void set_m_allowMultiple_1(bool value)
{
___m_allowMultiple_1 = value;
}
inline static int32_t get_offset_of_m_inherited_2() { return static_cast<int32_t>(offsetof(AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C, ___m_inherited_2)); }
inline bool get_m_inherited_2() const { return ___m_inherited_2; }
inline bool* get_address_of_m_inherited_2() { return &___m_inherited_2; }
inline void set_m_inherited_2(bool value)
{
___m_inherited_2 = value;
}
};
struct AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C_StaticFields
{
public:
// System.AttributeUsageAttribute System.AttributeUsageAttribute::Default
AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * ___Default_3;
public:
inline static int32_t get_offset_of_Default_3() { return static_cast<int32_t>(offsetof(AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C_StaticFields, ___Default_3)); }
inline AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * get_Default_3() const { return ___Default_3; }
inline AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C ** get_address_of_Default_3() { return &___Default_3; }
inline void set_Default_3(AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * value)
{
___Default_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Default_3), (void*)value);
}
};
// System.Diagnostics.DebuggableAttribute
struct DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.Diagnostics.DebuggableAttribute/DebuggingModes System.Diagnostics.DebuggableAttribute::m_debuggingModes
int32_t ___m_debuggingModes_0;
public:
inline static int32_t get_offset_of_m_debuggingModes_0() { return static_cast<int32_t>(offsetof(DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B, ___m_debuggingModes_0)); }
inline int32_t get_m_debuggingModes_0() const { return ___m_debuggingModes_0; }
inline int32_t* get_address_of_m_debuggingModes_0() { return &___m_debuggingModes_0; }
inline void set_m_debuggingModes_0(int32_t value)
{
___m_debuggingModes_0 = value;
}
};
// UnityEngine.Bindings.NativeTypeAttribute
struct NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String UnityEngine.Bindings.NativeTypeAttribute::<Header>k__BackingField
String_t* ___U3CHeaderU3Ek__BackingField_0;
// System.String UnityEngine.Bindings.NativeTypeAttribute::<IntermediateScriptingStructName>k__BackingField
String_t* ___U3CIntermediateScriptingStructNameU3Ek__BackingField_1;
// UnityEngine.Bindings.CodegenOptions UnityEngine.Bindings.NativeTypeAttribute::<CodegenOptions>k__BackingField
int32_t ___U3CCodegenOptionsU3Ek__BackingField_2;
public:
inline static int32_t get_offset_of_U3CHeaderU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9, ___U3CHeaderU3Ek__BackingField_0)); }
inline String_t* get_U3CHeaderU3Ek__BackingField_0() const { return ___U3CHeaderU3Ek__BackingField_0; }
inline String_t** get_address_of_U3CHeaderU3Ek__BackingField_0() { return &___U3CHeaderU3Ek__BackingField_0; }
inline void set_U3CHeaderU3Ek__BackingField_0(String_t* value)
{
___U3CHeaderU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CHeaderU3Ek__BackingField_0), (void*)value);
}
inline static int32_t get_offset_of_U3CIntermediateScriptingStructNameU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9, ___U3CIntermediateScriptingStructNameU3Ek__BackingField_1)); }
inline String_t* get_U3CIntermediateScriptingStructNameU3Ek__BackingField_1() const { return ___U3CIntermediateScriptingStructNameU3Ek__BackingField_1; }
inline String_t** get_address_of_U3CIntermediateScriptingStructNameU3Ek__BackingField_1() { return &___U3CIntermediateScriptingStructNameU3Ek__BackingField_1; }
inline void set_U3CIntermediateScriptingStructNameU3Ek__BackingField_1(String_t* value)
{
___U3CIntermediateScriptingStructNameU3Ek__BackingField_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CIntermediateScriptingStructNameU3Ek__BackingField_1), (void*)value);
}
inline static int32_t get_offset_of_U3CCodegenOptionsU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9, ___U3CCodegenOptionsU3Ek__BackingField_2)); }
inline int32_t get_U3CCodegenOptionsU3Ek__BackingField_2() const { return ___U3CCodegenOptionsU3Ek__BackingField_2; }
inline int32_t* get_address_of_U3CCodegenOptionsU3Ek__BackingField_2() { return &___U3CCodegenOptionsU3Ek__BackingField_2; }
inline void set_U3CCodegenOptionsU3Ek__BackingField_2(int32_t value)
{
___U3CCodegenOptionsU3Ek__BackingField_2 = value;
}
};
// UnityEngine.Bindings.StaticAccessorAttribute
struct StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String UnityEngine.Bindings.StaticAccessorAttribute::<Name>k__BackingField
String_t* ___U3CNameU3Ek__BackingField_0;
// UnityEngine.Bindings.StaticAccessorType UnityEngine.Bindings.StaticAccessorAttribute::<Type>k__BackingField
int32_t ___U3CTypeU3Ek__BackingField_1;
public:
inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA, ___U3CNameU3Ek__BackingField_0)); }
inline String_t* get_U3CNameU3Ek__BackingField_0() const { return ___U3CNameU3Ek__BackingField_0; }
inline String_t** get_address_of_U3CNameU3Ek__BackingField_0() { return &___U3CNameU3Ek__BackingField_0; }
inline void set_U3CNameU3Ek__BackingField_0(String_t* value)
{
___U3CNameU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CNameU3Ek__BackingField_0), (void*)value);
}
inline static int32_t get_offset_of_U3CTypeU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA, ___U3CTypeU3Ek__BackingField_1)); }
inline int32_t get_U3CTypeU3Ek__BackingField_1() const { return ___U3CTypeU3Ek__BackingField_1; }
inline int32_t* get_address_of_U3CTypeU3Ek__BackingField_1() { return &___U3CTypeU3Ek__BackingField_1; }
inline void set_U3CTypeU3Ek__BackingField_1(int32_t value)
{
___U3CTypeU3Ek__BackingField_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// System.Void System.Runtime.CompilerServices.InternalsVisibleToAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9 (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * __this, String_t* ___assemblyName0, const RuntimeMethod* method);
// System.Void System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RuntimeCompatibilityAttribute__ctor_m551DDF1438CE97A984571949723F30F44CF7317C (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * __this, const RuntimeMethod* method);
// System.Void System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::set_WrapNonExceptionThrows(System.Boolean)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void RuntimeCompatibilityAttribute_set_WrapNonExceptionThrows_m8562196F90F3EBCEC23B5708EE0332842883C490_inline (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * __this, bool ___value0, const RuntimeMethod* method);
// System.Void System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompilationRelaxationsAttribute__ctor_mAC3079EBC4EEAB474EED8208EF95DB39C922333B (CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF * __this, int32_t ___relaxations0, const RuntimeMethod* method);
// System.Void System.Diagnostics.DebuggableAttribute::.ctor(System.Diagnostics.DebuggableAttribute/DebuggingModes)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DebuggableAttribute__ctor_m7FF445C8435494A4847123A668D889E692E55550 (DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B * __this, int32_t ___modes0, const RuntimeMethod* method);
// System.Void System.Runtime.CompilerServices.ExtensionAttribute::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ExtensionAttribute__ctor_mB331519C39C4210259A248A4C629DF934937C1FA (ExtensionAttribute_t917F3F92E717DC8B2D7BC03967A9790B1B8EF7CC * __this, const RuntimeMethod* method);
// System.Void UnityEngine.UnityEngineModuleAssembly::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void UnityEngineModuleAssembly__ctor_m76C129AC6AA438BE601F5279EE9EB599BEF90AF9 (UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Scripting.RequiredByNativeCodeAttribute::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5 (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * __this, const RuntimeMethod* method);
// System.Void System.AttributeUsageAttribute::.ctor(System.AttributeTargets)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * __this, int32_t ___validOn0, const RuntimeMethod* method);
// System.Void System.AttributeUsageAttribute::set_AllowMultiple(System.Boolean)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void AttributeUsageAttribute_set_AllowMultiple_mF412CDAFFE16D056721EF81A1EC04ACE63612055_inline (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * __this, bool ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.Scripting.UsedByNativeCodeAttribute::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void UsedByNativeCodeAttribute__ctor_mA8236FADF130BCDD86C6017039295F9D521EECB8 (UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Bindings.NativeHeaderAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76 (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * __this, String_t* ___header0, const RuntimeMethod* method);
// System.Void UnityEngine.Bindings.NativeTypeAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NativeTypeAttribute__ctor_m3DB005847AE3BBCFF1F20783B78E10CF9BA0FFA9 (NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 * __this, String_t* ___header0, const RuntimeMethod* method);
// System.Void UnityEngine.Bindings.NativeNameAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * __this, String_t* ___name0, const RuntimeMethod* method);
// System.Void UnityEngine.Bindings.NativeMethodAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NativeMethodAttribute__ctor_m7F91BF50E5248D4FC3B6938488ABA3F1A883B825 (NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866 * __this, String_t* ___name0, const RuntimeMethod* method);
// System.Void UnityEngine.Bindings.FreeFunctionAttribute::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void FreeFunctionAttribute__ctor_m89A928D5B13E0189814C007431EA5EA8EE4768C1 (FreeFunctionAttribute_tBB3B939D760190FEC84762F1BA94B99672613D03 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Bindings.NativeMethodAttribute::set_Name(System.String)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void NativeMethodAttribute_set_Name_mC85A9B1CE4650D43D0E73B503753864CA4952A9C_inline (NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866 * __this, String_t* ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.Bindings.NativeMethodAttribute::set_HasExplicitThis(System.Boolean)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void NativeMethodAttribute_set_HasExplicitThis_mB44D70CDD0D14884A4FA84776C3091C742FAFE44_inline (NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866 * __this, bool ___value0, const RuntimeMethod* method);
// System.Void System.Reflection.DefaultMemberAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DefaultMemberAttribute__ctor_mA025B6F5B3A9292696E01108027840C8DFF7F4D7 (DefaultMemberAttribute_t8C9B3330DEA69EE364962477FF14FD2CFE30D4B5 * __this, String_t* ___memberName0, const RuntimeMethod* method);
// System.Void UnityEngine.Bindings.NativeConditionalAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NativeConditionalAttribute__ctor_m2D44C123AE8913373A143BBE663F4DEF8D21DEF9 (NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B * __this, String_t* ___condition0, const RuntimeMethod* method);
// System.Void UnityEngine.Bindings.NativeTypeAttribute::.ctor(UnityEngine.Bindings.CodegenOptions,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NativeTypeAttribute__ctor_m0914A881DE5A0E58B381CDE59CB821D6DBA4B711 (NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 * __this, int32_t ___codegenOptions0, String_t* ___intermediateStructName1, const RuntimeMethod* method);
// System.Void UnityEngine.ExcludeFromObjectFactoryAttribute::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ExcludeFromObjectFactoryAttribute__ctor_mAF8163E246AD4F05E98775F7E0904F296770B06C (ExcludeFromObjectFactoryAttribute_t76EEA428CB04C23B2844EB37275816B16C847271 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Bindings.StaticAccessorAttribute::.ctor(System.String,UnityEngine.Bindings.StaticAccessorType)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706 (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * __this, String_t* ___name0, int32_t ___type1, const RuntimeMethod* method);
// System.Void UnityEngine.Scripting.APIUpdating.MovedFromAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MovedFromAttribute__ctor_mA4B2632CE3004A3E0EA8E1241736518320806568 (MovedFromAttribute_t7DFA9E51FA9540D9D5EB8D41E363D2BC51F43BC8 * __this, String_t* ___sourceNamespace0, const RuntimeMethod* method);
static void UnityEngine_AnimationModule_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[0];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6D\x62\x72\x61\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * tmp = (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 *)cache->attributes[1];
RuntimeCompatibilityAttribute__ctor_m551DDF1438CE97A984571949723F30F44CF7317C(tmp, NULL);
RuntimeCompatibilityAttribute_set_WrapNonExceptionThrows_m8562196F90F3EBCEC23B5708EE0332842883C490_inline(tmp, true, NULL);
}
{
CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF * tmp = (CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF *)cache->attributes[2];
CompilationRelaxationsAttribute__ctor_mAC3079EBC4EEAB474EED8208EF95DB39C922333B(tmp, 8LL, NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[3];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x49\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[4];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x48\x6F\x74\x52\x65\x6C\x6F\x61\x64\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[5];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x49\x6D\x61\x67\x65\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[6];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x49\x6E\x70\x75\x74\x4C\x65\x67\x61\x63\x79\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[7];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x65\x72\x72\x61\x69\x6E\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[8];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x4C\x53\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[9];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x75\x62\x73\x79\x73\x74\x65\x6D\x73\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[10];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x75\x62\x73\x74\x61\x6E\x63\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[11];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x74\x72\x65\x61\x6D\x69\x6E\x67\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[12];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x70\x72\x69\x74\x65\x53\x68\x61\x70\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[13];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x70\x72\x69\x74\x65\x4D\x61\x73\x6B\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B * tmp = (DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B *)cache->attributes[14];
DebuggableAttribute__ctor_m7FF445C8435494A4847123A668D889E692E55550(tmp, 263LL, NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[15];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x63\x72\x65\x65\x6E\x43\x61\x70\x74\x75\x72\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[16];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x72\x6F\x66\x69\x6C\x65\x72\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[17];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x68\x79\x73\x69\x63\x73\x32\x44\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[18];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x68\x79\x73\x69\x63\x73\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[19];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x61\x72\x74\x69\x63\x6C\x65\x53\x79\x73\x74\x65\x6D\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[20];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x4C\x6F\x63\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[21];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x4A\x53\x4F\x4E\x53\x65\x72\x69\x61\x6C\x69\x7A\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[22];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x53\x35\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
ExtensionAttribute_t917F3F92E717DC8B2D7BC03967A9790B1B8EF7CC * tmp = (ExtensionAttribute_t917F3F92E717DC8B2D7BC03967A9790B1B8EF7CC *)cache->attributes[23];
ExtensionAttribute__ctor_mB331519C39C4210259A248A4C629DF934937C1FA(tmp, NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[24];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x53\x35\x56\x52\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[25];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x43\x6C\x6F\x75\x64"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[26];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x32"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[27];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x31"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[28];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x30"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[29];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x52\x75\x6E\x74\x69\x6D\x65\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x4F\x6E\x4C\x6F\x61\x64\x4D\x61\x6E\x61\x67\x65\x72\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x72\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[30];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[31];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x68\x61\x72\x65\x64\x49\x6E\x74\x65\x72\x6E\x61\x6C\x73\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[32];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x43\x6F\x72\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[33];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x49\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[34];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x49\x6E\x70\x75\x74\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[35];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73\x4E\x61\x74\x69\x76\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[36];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x53\x34\x56\x52\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[37];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x53\x34\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[38];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x58\x62\x6F\x78\x4F\x6E\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[39];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x77\x69\x74\x63\x68\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[40];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x56\x52\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[41];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[42];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x65\x78\x74\x43\x6F\x72\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[43];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x65\x72\x66\x6F\x72\x6D\x61\x6E\x63\x65\x52\x65\x70\x6F\x72\x74\x69\x6E\x67\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[44];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x52\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[45];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x58\x52\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[46];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x57\x65\x62\x52\x65\x71\x75\x65\x73\x74\x57\x57\x57\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[47];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x57\x65\x62\x52\x65\x71\x75\x65\x73\x74\x41\x73\x73\x65\x74\x42\x75\x6E\x64\x6C\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[48];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x41\x6E\x61\x6C\x79\x74\x69\x63\x73\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[49];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x4E\x45\x54\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[50];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x43\x72\x61\x73\x68\x52\x65\x70\x6F\x72\x74\x69\x6E\x67\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[51];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x69\x6C\x65\x6D\x61\x70\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[52];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x65\x78\x74\x52\x65\x6E\x64\x65\x72\x69\x6E\x67\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[53];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x65\x72\x72\x61\x69\x6E\x50\x68\x79\x73\x69\x63\x73\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[54];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x47\x49\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[55];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x44\x69\x72\x65\x63\x74\x6F\x72\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[56];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x44\x53\x50\x47\x72\x61\x70\x68\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[57];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x75\x64\x69\x6F\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[58];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[59];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x6E\x64\x72\x6F\x69\x64\x4A\x4E\x49\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[60];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x47\x72\x69\x64\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[61];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x63\x63\x65\x73\x73\x69\x62\x69\x6C\x69\x74\x79\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[62];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x39"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[63];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x38"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[64];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x37"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[65];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x33"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[66];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x44\x65\x70\x6C\x6F\x79\x6D\x65\x6E\x74\x54\x65\x73\x74\x73\x2E\x53\x65\x72\x76\x69\x63\x65\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[67];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x42\x75\x72\x73\x74\x2E\x45\x64\x69\x74\x6F\x72"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[68];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x52\x75\x6E\x74\x69\x6D\x65\x54\x65\x73\x74\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[69];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x42\x75\x72\x73\x74"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[70];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x65\x73\x74\x52\x75\x6E\x6E\x65\x72"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[71];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x75\x72\x63\x68\x61\x73\x69\x6E\x67"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[72];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x64\x76\x65\x72\x74\x69\x73\x65\x6D\x65\x6E\x74\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[73];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x6E\x61\x6C\x79\x74\x69\x63\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[74];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x41\x6E\x61\x6C\x79\x74\x69\x63\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[75];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x43\x6C\x6F\x75\x64\x2E\x53\x65\x72\x76\x69\x63\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[76];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[77];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x52\x75\x6E\x74\x69\x6D\x65\x54\x65\x73\x74\x73\x2E\x46\x72\x61\x6D\x65\x77\x6F\x72\x6B"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[78];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x52\x75\x6E\x74\x69\x6D\x65\x54\x65\x73\x74\x73\x2E\x46\x72\x61\x6D\x65\x77\x6F\x72\x6B\x2E\x54\x65\x73\x74\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[79];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x50\x65\x72\x66\x6F\x72\x6D\x61\x6E\x63\x65\x54\x65\x73\x74\x73\x2E\x52\x75\x6E\x74\x69\x6D\x65\x54\x65\x73\x74\x52\x75\x6E\x6E\x65\x72\x2E\x54\x65\x73\x74\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[80];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73\x2E\x45\x64\x69\x74\x6F\x72"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[81];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73\x47\x61\x6D\x65\x4F\x62\x6A\x65\x63\x74\x73\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[82];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[83];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x55\x49\x2E\x42\x75\x69\x6C\x64\x65\x72\x2E\x45\x64\x69\x74\x6F\x72\x54\x65\x73\x74\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[84];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x64\x69\x74\x6F\x72\x2E\x55\x49\x42\x75\x69\x6C\x64\x65\x72\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[85];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x55\x49\x2E\x42\x75\x69\x6C\x64\x65\x72\x2E\x45\x64\x69\x74\x6F\x72"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[86];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x32\x44\x2E\x53\x70\x72\x69\x74\x65\x2E\x45\x64\x69\x74\x6F\x72\x54\x65\x73\x74\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[87];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x32\x44\x2E\x53\x70\x72\x69\x74\x65\x2E\x45\x64\x69\x74\x6F\x72"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[88];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x57\x69\x6E\x64\x6F\x77\x73\x4D\x52\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[89];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x47\x6F\x6F\x67\x6C\x65\x41\x52\x2E\x55\x6E\x69\x74\x79\x4E\x61\x74\x69\x76\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[90];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x70\x61\x74\x69\x61\x6C\x54\x72\x61\x63\x6B\x69\x6E\x67"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[91];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x41\x73\x73\x65\x6D\x62\x6C\x79\x2D\x43\x53\x68\x61\x72\x70\x2D\x66\x69\x72\x73\x74\x70\x61\x73\x73\x2D\x74\x65\x73\x74\x61\x62\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[92];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x41\x73\x73\x65\x6D\x62\x6C\x79\x2D\x43\x53\x68\x61\x72\x70\x2D\x74\x65\x73\x74\x61\x62\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[93];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x54\x69\x6D\x65\x6C\x69\x6E\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[94];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x52\x75\x6E\x74\x69\x6D\x65\x54\x65\x73\x74\x73\x2E\x41\x6C\x6C\x49\x6E\x31\x52\x75\x6E\x6E\x65\x72"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[95];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x54\x65\x73\x74\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[96];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x57\x65\x62\x52\x65\x71\x75\x65\x73\x74\x54\x65\x78\x74\x75\x72\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[97];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x54\x65\x73\x74\x73\x2E\x55\x6E\x69\x74\x79\x41\x6E\x61\x6C\x79\x74\x69\x63\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[98];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x54\x65\x73\x74\x73\x2E\x46\x72\x61\x6D\x65\x77\x6F\x72\x6B"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[99];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x36"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[100];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x34"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[101];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x33"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[102];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x32"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[103];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x31"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[104];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x43\x6F\x72\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[105];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x43\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[106];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x35"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[107];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x45\x6E\x74\x69\x74\x69\x65\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[108];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x34"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[109];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x36"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[110];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x53\x75\x62\x73\x79\x73\x74\x65\x6D\x2E\x52\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[111];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x44\x65\x76\x2E\x30\x30\x35"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[112];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x44\x65\x76\x2E\x30\x30\x34"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[113];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x44\x65\x76\x2E\x30\x30\x33"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[114];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x44\x65\x76\x2E\x30\x30\x32"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[115];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x44\x65\x76\x2E\x30\x30\x31"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[116];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x35"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[117];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x32\x34"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[118];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x32\x32"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[119];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x32\x31"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[120];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x32\x30"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[121];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x39"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[122];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x38"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[123];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x37"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[124];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x32\x33"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[125];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x75\x63\x67\x2E\x51\x6F\x53"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[126];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x4E\x65\x74\x77\x6F\x72\x6B\x69\x6E\x67\x2E\x54\x72\x61\x6E\x73\x70\x6F\x72\x74"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[127];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73\x2E\x45\x64\x69\x74\x6F\x72\x54\x65\x73\x74\x73"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[128];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x54\x65\x73\x74\x73\x2E\x54\x69\x6D\x65\x6C\x69\x6E\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[129];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x4E\x65\x74\x77\x6F\x72\x6B\x69\x6E\x67"), NULL);
}
{
UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF * tmp = (UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF *)cache->attributes[130];
UnityEngineModuleAssembly__ctor_m76C129AC6AA438BE601F5279EE9EB599BEF90AF9(tmp, NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[131];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x43\x75\x72\x6C\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[132];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x54\x65\x73\x74\x50\x72\x6F\x74\x6F\x63\x6F\x6C\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[133];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x57\x65\x62\x52\x65\x71\x75\x65\x73\x74\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[134];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x57\x65\x62\x52\x65\x71\x75\x65\x73\x74\x41\x75\x64\x69\x6F\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[135];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x56\x46\x58\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[136];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x49\x4D\x47\x55\x49\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[137];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x56\x65\x68\x69\x63\x6C\x65\x73\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[138];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x56\x69\x64\x65\x6F\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[139];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x57\x69\x6E\x64\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[140];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x73\x73\x65\x74\x42\x75\x6E\x64\x6C\x65\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[141];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x43\x6C\x6F\x74\x68\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[142];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x47\x61\x6D\x65\x43\x65\x6E\x74\x65\x72\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
{
InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[143];
InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x43\x6F\x6E\x6E\x65\x63\x74\x4D\x6F\x64\x75\x6C\x65"), NULL);
}
}
static void SharedBetweenAnimatorsAttribute_t1F94A6AF21AC0F90F38FFEDE964054F34A117279_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[0];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1];
AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 4LL, NULL);
AttributeUsageAttribute_set_AllowMultiple_mF412CDAFFE16D056721EF81A1EC04ACE63612055_inline(tmp, false, NULL);
}
}
static void StateMachineBehaviour_tBEDE439261DEB4C7334646339BC6F1E7958F095F_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[0];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
}
static void AnimationState_tDB7088046A65ABCEC66B45147693CA0AD803A3AD_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 * tmp = (UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 *)cache->attributes[0];
UsedByNativeCodeAttribute__ctor_mA8236FADF130BCDD86C6017039295F9D521EECB8(tmp, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x53\x74\x61\x74\x65\x2E\x68"), NULL);
}
}
static void AnimationEvent_tC15CA47BE450896AF876FFA75D7A8E22C2D286AF_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[0];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
}
static void AnimationClip_tD9BFD73D43793BA608D5C0B46BE29EB59E40D178_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x43\x6C\x69\x70\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 * tmp = (NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 *)cache->attributes[1];
NativeTypeAttribute__ctor_m3DB005847AE3BBCFF1F20783B78E10CF9BA0FFA9(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x43\x6C\x69\x70\x2E\x68"), NULL);
}
}
static void AnimatorClipInfo_t758011D6F2B4C04893FCD364DAA936C801FBC610_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x49\x6E\x66\x6F\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 * tmp = (UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 *)cache->attributes[2];
UsedByNativeCodeAttribute__ctor_mA8236FADF130BCDD86C6017039295F9D521EECB8(tmp, NULL);
}
}
static void AnimatorStateInfo_t052E146D2DB1EC155950ECA45734BF57134258AA_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[0];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x49\x6E\x66\x6F\x2E\x68"), NULL);
}
}
static void AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[0];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x49\x6E\x66\x6F\x2E\x68"), NULL);
}
}
static void AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_FullPath(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x66\x75\x6C\x6C\x50\x61\x74\x68\x48\x61\x73\x68"), NULL);
}
}
static void AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_UserName(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x75\x73\x65\x72\x4E\x61\x6D\x65\x48\x61\x73\x68"), NULL);
}
}
static void AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_Name(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x6E\x61\x6D\x65\x48\x61\x73\x68"), NULL);
}
}
static void AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_HasFixedDuration(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x68\x61\x73\x46\x69\x78\x65\x64\x44\x75\x72\x61\x74\x69\x6F\x6E"), NULL);
}
}
static void AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_Duration(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x64\x75\x72\x61\x74\x69\x6F\x6E"), NULL);
}
}
static void AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_NormalizedTime(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x6E\x6F\x72\x6D\x61\x6C\x69\x7A\x65\x64\x54\x69\x6D\x65"), NULL);
}
}
static void AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_AnyState(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x61\x6E\x79\x53\x74\x61\x74\x65"), NULL);
}
}
static void AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_TransitionType(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x74\x72\x61\x6E\x73\x69\x74\x69\x6F\x6E\x54\x79\x70\x65"), NULL);
}
}
static void Animator_t9DD1D43680A61D65A3C98C6EFF559709DC9CE149_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 * tmp = (UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 *)cache->attributes[0];
UsedByNativeCodeAttribute__ctor_mA8236FADF130BCDD86C6017039295F9D521EECB8(tmp, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x43\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[2];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[3];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x2E\x68"), NULL);
}
}
static void Animator_t9DD1D43680A61D65A3C98C6EFF559709DC9CE149_CustomAttributesCacheGenerator_Animator_get_hasBoundPlayables_m1ADEF28BC77A4C8DBC707DA02A1B72E00AC0C88A(CustomAttributesCache* cache)
{
{
NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866 * tmp = (NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866 *)cache->attributes[0];
NativeMethodAttribute__ctor_m7F91BF50E5248D4FC3B6938488ABA3F1A883B825(tmp, il2cpp_codegen_string_new_wrapper("\x48\x61\x73\x42\x6F\x75\x6E\x64\x50\x6C\x61\x79\x61\x62\x6C\x65\x73"), NULL);
}
}
static void Animator_t9DD1D43680A61D65A3C98C6EFF559709DC9CE149_CustomAttributesCacheGenerator_Animator_SetTriggerString_m38F66A49276BCED56B89BB6AF8A36183BE4285F0(CustomAttributesCache* cache)
{
{
FreeFunctionAttribute_tBB3B939D760190FEC84762F1BA94B99672613D03 * tmp = (FreeFunctionAttribute_tBB3B939D760190FEC84762F1BA94B99672613D03 *)cache->attributes[0];
FreeFunctionAttribute__ctor_m89A928D5B13E0189814C007431EA5EA8EE4768C1(tmp, NULL);
NativeMethodAttribute_set_Name_mC85A9B1CE4650D43D0E73B503753864CA4952A9C_inline(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x6F\x72\x42\x69\x6E\x64\x69\x6E\x67\x73\x3A\x3A\x53\x65\x74\x54\x72\x69\x67\x67\x65\x72\x53\x74\x72\x69\x6E\x67"), NULL);
NativeMethodAttribute_set_HasExplicitThis_mB44D70CDD0D14884A4FA84776C3091C742FAFE44_inline(tmp, true, NULL);
}
}
static void Animator_t9DD1D43680A61D65A3C98C6EFF559709DC9CE149_CustomAttributesCacheGenerator_Animator_ResetTriggerString_m6FC21A6B7732A31338EE22E78F3D6220903EDBB2(CustomAttributesCache* cache)
{
{
FreeFunctionAttribute_tBB3B939D760190FEC84762F1BA94B99672613D03 * tmp = (FreeFunctionAttribute_tBB3B939D760190FEC84762F1BA94B99672613D03 *)cache->attributes[0];
FreeFunctionAttribute__ctor_m89A928D5B13E0189814C007431EA5EA8EE4768C1(tmp, NULL);
NativeMethodAttribute_set_Name_mC85A9B1CE4650D43D0E73B503753864CA4952A9C_inline(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x6F\x72\x42\x69\x6E\x64\x69\x6E\x67\x73\x3A\x3A\x52\x65\x73\x65\x74\x54\x72\x69\x67\x67\x65\x72\x53\x74\x72\x69\x6E\x67"), NULL);
NativeMethodAttribute_set_HasExplicitThis_mB44D70CDD0D14884A4FA84776C3091C742FAFE44_inline(tmp, true, NULL);
}
}
static void AnimatorOverrideController_t4630AA9761965F735AEB26B9A92D210D6338B2DA_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x4F\x76\x65\x72\x72\x69\x64\x65\x43\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 * tmp = (UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 *)cache->attributes[2];
UsedByNativeCodeAttribute__ctor_mA8236FADF130BCDD86C6017039295F9D521EECB8(tmp, NULL);
}
{
DefaultMemberAttribute_t8C9B3330DEA69EE364962477FF14FD2CFE30D4B5 * tmp = (DefaultMemberAttribute_t8C9B3330DEA69EE364962477FF14FD2CFE30D4B5 *)cache->attributes[3];
DefaultMemberAttribute__ctor_mA025B6F5B3A9292696E01108027840C8DFF7F4D7(tmp, il2cpp_codegen_string_new_wrapper("\x49\x74\x65\x6D"), NULL);
}
}
static void AnimatorOverrideController_t4630AA9761965F735AEB26B9A92D210D6338B2DA_CustomAttributesCacheGenerator_AnimatorOverrideController_OnInvalidateOverrideController_m579571520B7C607B6983D4973EBAE982EAC9AA40(CustomAttributesCache* cache)
{
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[0];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B * tmp = (NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B *)cache->attributes[1];
NativeConditionalAttribute__ctor_m2D44C123AE8913373A143BBE663F4DEF8D21DEF9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x4E\x49\x54\x59\x5F\x45\x44\x49\x54\x4F\x52"), NULL);
}
}
static void SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[0];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x48\x75\x6D\x61\x6E\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x2E\x68"), NULL);
}
{
NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 * tmp = (NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 *)cache->attributes[2];
NativeTypeAttribute__ctor_m0914A881DE5A0E58B381CDE59CB821D6DBA4B711(tmp, 1LL, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x6E\x6F\x53\x6B\x65\x6C\x65\x74\x6F\x6E\x42\x6F\x6E\x65"), NULL);
}
}
static void SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator_name(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x6D\x5F\x4E\x61\x6D\x65"), NULL);
}
}
static void SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator_parentName(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x6D\x5F\x50\x61\x72\x65\x6E\x74\x4E\x61\x6D\x65"), NULL);
}
}
static void SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator_position(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x6D\x5F\x50\x6F\x73\x69\x74\x69\x6F\x6E"), NULL);
}
}
static void SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator_rotation(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x6D\x5F\x52\x6F\x74\x61\x74\x69\x6F\x6E"), NULL);
}
}
static void SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator_scale(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x6D\x5F\x53\x63\x61\x6C\x65"), NULL);
}
}
static void HumanLimit_t8F488DD21062BE1259B0F4C77E4EB24FB931E8D8_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x48\x75\x6D\x61\x6E\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x76\x61\x74\x61\x72\x42\x75\x69\x6C\x64\x65\x72\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 * tmp = (NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 *)cache->attributes[2];
NativeTypeAttribute__ctor_m0914A881DE5A0E58B381CDE59CB821D6DBA4B711(tmp, 1LL, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x6E\x6F\x48\x75\x6D\x61\x6E\x4C\x69\x6D\x69\x74"), NULL);
}
}
static void HumanBone_tFEE7CD9B6E62BBB95CC4A6F1AA7FC7A26541D62D_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x48\x75\x6D\x61\x6E\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x2E\x68"), NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[1];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 * tmp = (NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9 *)cache->attributes[2];
NativeTypeAttribute__ctor_m0914A881DE5A0E58B381CDE59CB821D6DBA4B711(tmp, 1LL, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x6E\x6F\x48\x75\x6D\x61\x6E\x42\x6F\x6E\x65"), NULL);
}
}
static void HumanBone_tFEE7CD9B6E62BBB95CC4A6F1AA7FC7A26541D62D_CustomAttributesCacheGenerator_limit(CustomAttributesCache* cache)
{
{
NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 * tmp = (NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7 *)cache->attributes[0];
NativeNameAttribute__ctor_mDF2A6FD7D84F21F69BAA6AEC1586427D12882FFC(tmp, il2cpp_codegen_string_new_wrapper("\x6D\x5F\x4C\x69\x6D\x69\x74"), NULL);
}
}
static void Motion_t3EAEF01D52B05F10A21CC9B54A35C8F3F6BA3A67_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x4D\x6F\x74\x69\x6F\x6E\x2E\x68"), NULL);
}
}
static void RuntimeAnimatorController_t6F70D5BE51CCBA99132F444EFFA41439DFE71BAB_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x52\x75\x6E\x74\x69\x6D\x65\x41\x6E\x69\x6D\x61\x74\x6F\x72\x43\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x68"), NULL);
}
{
ExcludeFromObjectFactoryAttribute_t76EEA428CB04C23B2844EB37275816B16C847271 * tmp = (ExcludeFromObjectFactoryAttribute_t76EEA428CB04C23B2844EB37275816B16C847271 *)cache->attributes[1];
ExcludeFromObjectFactoryAttribute__ctor_mAF8163E246AD4F05E98775F7E0904F296770B06C(tmp, NULL);
}
{
UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 * tmp = (UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92 *)cache->attributes[2];
UsedByNativeCodeAttribute__ctor_mA8236FADF130BCDD86C6017039295F9D521EECB8(tmp, NULL);
}
}
static void NotKeyableAttribute_tE0C94B5FF990C6B4BB118486BCA35CCDA91AA905_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[0];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1];
AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 260LL, NULL);
}
}
static void AnimationClipPlayable_t6386488B0C0300A21A352B4C17B9E6D5D38DF953_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * tmp = (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA *)cache->attributes[0];
StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x43\x6C\x69\x70\x50\x6C\x61\x79\x61\x62\x6C\x65\x42\x69\x6E\x64\x69\x6E\x67\x73"), 2LL, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x43\x6C\x69\x70\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[2];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x43\x6C\x69\x70\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[3];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
}
static void AnimationHumanStream_t98A25119C1A24795BA152F54CF9F0673EEDF1C3F_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
MovedFromAttribute_t7DFA9E51FA9540D9D5EB8D41E363D2BC51F43BC8 * tmp = (MovedFromAttribute_t7DFA9E51FA9540D9D5EB8D41E363D2BC51F43BC8 *)cache->attributes[0];
MovedFromAttribute__ctor_mA4B2632CE3004A3E0EA8E1241736518320806568(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x45\x78\x70\x65\x72\x69\x6D\x65\x6E\x74\x61\x6C\x2E\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x73"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x48\x75\x6D\x61\x6E\x53\x74\x72\x65\x61\x6D\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[2];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x48\x75\x6D\x61\x6E\x53\x74\x72\x65\x61\x6D\x2E\x68"), NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[3];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
}
static void AnimationLayerMixerPlayable_tF647DD9BCA6E0F49367A5F13AAE0D5B093A91880_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4C\x61\x79\x65\x72\x4D\x69\x78\x65\x72\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4C\x61\x79\x65\x72\x4D\x69\x78\x65\x72\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[2];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x52\x75\x6E\x74\x69\x6D\x65\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x43\x6F\x72\x65\x2F\x48\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * tmp = (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA *)cache->attributes[3];
StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4C\x61\x79\x65\x72\x4D\x69\x78\x65\x72\x50\x6C\x61\x79\x61\x62\x6C\x65\x42\x69\x6E\x64\x69\x6E\x67\x73"), 2LL, NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[4];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
}
static void AnimationMixerPlayable_t7C6D407FE0D55712B07081F8114CFA347F124741_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4D\x69\x78\x65\x72\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4D\x69\x78\x65\x72\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[2];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x52\x75\x6E\x74\x69\x6D\x65\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x43\x6F\x72\x65\x2F\x48\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * tmp = (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA *)cache->attributes[3];
StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4D\x69\x78\x65\x72\x50\x6C\x61\x79\x61\x62\x6C\x65\x42\x69\x6E\x64\x69\x6E\x67\x73"), 2LL, NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[4];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
}
static void AnimationMotionXToDeltaPlayable_t6E21B629D4689F5E3CFCFACA0B31411082773076_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4D\x6F\x74\x69\x6F\x6E\x58\x54\x6F\x44\x65\x6C\x74\x61\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * tmp = (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA *)cache->attributes[1];
StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4D\x6F\x74\x69\x6F\x6E\x58\x54\x6F\x44\x65\x6C\x74\x61\x50\x6C\x61\x79\x61\x62\x6C\x65\x42\x69\x6E\x64\x69\x6E\x67\x73"), 2LL, NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[2];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
}
static void AnimationOffsetPlayable_tBB8333A8E35A23D8FAA2D34E35FF02BD53FF9941_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4F\x66\x66\x73\x65\x74\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[1];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[2];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x52\x75\x6E\x74\x69\x6D\x65\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x43\x6F\x72\x65\x2F\x48\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[3];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4F\x66\x66\x73\x65\x74\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * tmp = (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA *)cache->attributes[4];
StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4F\x66\x66\x73\x65\x74\x50\x6C\x61\x79\x61\x62\x6C\x65\x42\x69\x6E\x64\x69\x6E\x67\x73"), 2LL, NULL);
}
}
static void AnimationPlayableOutput_t14570F3E63619E52ABB0B0306D4F4AAA6225DE17_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[0];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * tmp = (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA *)cache->attributes[1];
StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x50\x6C\x61\x79\x61\x62\x6C\x65\x4F\x75\x74\x70\x75\x74\x42\x69\x6E\x64\x69\x6E\x67\x73"), 2LL, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[2];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x52\x75\x6E\x74\x69\x6D\x65\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x43\x6F\x72\x65\x2F\x48\x50\x6C\x61\x79\x61\x62\x6C\x65\x4F\x75\x74\x70\x75\x74\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[3];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[4];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x50\x6C\x61\x79\x61\x62\x6C\x65\x4F\x75\x74\x70\x75\x74\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[5];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x50\x6C\x61\x79\x61\x62\x6C\x65\x4F\x75\x74\x70\x75\x74\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[6];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x52\x75\x6E\x74\x69\x6D\x65\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x43\x6F\x72\x65\x2F\x48\x50\x6C\x61\x79\x61\x62\x6C\x65\x47\x72\x61\x70\x68\x2E\x68"), NULL);
}
}
static void AnimationPosePlayable_t455DFF8AB153FC8930BD1B79342EC791033662B9_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[0];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x50\x6F\x73\x65\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[2];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x50\x6F\x73\x65\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[3];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x52\x75\x6E\x74\x69\x6D\x65\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x43\x6F\x72\x65\x2F\x48\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * tmp = (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA *)cache->attributes[4];
StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x50\x6F\x73\x65\x50\x6C\x61\x79\x61\x62\x6C\x65\x42\x69\x6E\x64\x69\x6E\x67\x73"), 2LL, NULL);
}
}
static void AnimationRemoveScalePlayable_t774D428669D5CF715E9A7E80E52A619AECC80429_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x52\x65\x6D\x6F\x76\x65\x53\x63\x61\x6C\x65\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x52\x65\x6D\x6F\x76\x65\x53\x63\x61\x6C\x65\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[2];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x52\x75\x6E\x74\x69\x6D\x65\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x43\x6F\x72\x65\x2F\x48\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * tmp = (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA *)cache->attributes[3];
StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x52\x65\x6D\x6F\x76\x65\x53\x63\x61\x6C\x65\x50\x6C\x61\x79\x61\x62\x6C\x65\x42\x69\x6E\x64\x69\x6E\x67\x73"), 2LL, NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[4];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
}
static void AnimationScriptPlayable_tC1413FB51680271522811045B1BAA555B8F01C6B_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * tmp = (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA *)cache->attributes[0];
StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x53\x63\x72\x69\x70\x74\x50\x6C\x61\x79\x61\x62\x6C\x65\x42\x69\x6E\x64\x69\x6E\x67\x73"), 2LL, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x52\x75\x6E\x74\x69\x6D\x65\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x43\x6F\x72\x65\x2F\x48\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[2];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[3];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x52\x75\x6E\x74\x69\x6D\x65\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x43\x6F\x72\x65\x2F\x48\x50\x6C\x61\x79\x61\x62\x6C\x65\x47\x72\x61\x70\x68\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[4];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x53\x63\x72\x69\x70\x74\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
MovedFromAttribute_t7DFA9E51FA9540D9D5EB8D41E363D2BC51F43BC8 * tmp = (MovedFromAttribute_t7DFA9E51FA9540D9D5EB8D41E363D2BC51F43BC8 *)cache->attributes[5];
MovedFromAttribute__ctor_mA4B2632CE3004A3E0EA8E1241736518320806568(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x45\x78\x70\x65\x72\x69\x6D\x65\x6E\x74\x61\x6C\x2E\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x73"), NULL);
}
}
static void AnimationStream_t32D9239CBAA66CE867094B820035B2121D7E2714_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
MovedFromAttribute_t7DFA9E51FA9540D9D5EB8D41E363D2BC51F43BC8 * tmp = (MovedFromAttribute_t7DFA9E51FA9540D9D5EB8D41E363D2BC51F43BC8 *)cache->attributes[0];
MovedFromAttribute__ctor_mA4B2632CE3004A3E0EA8E1241736518320806568(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x45\x78\x70\x65\x72\x69\x6D\x65\x6E\x74\x61\x6C\x2E\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x73"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[1];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x53\x74\x72\x65\x61\x6D\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[2];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x53\x74\x72\x65\x61\x6D\x2E\x68"), NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[3];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
}
static void AnimatorControllerPlayable_tEABD56FA5A36BD337DA6E049FCB4F1D521DA17A4_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[0];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 * tmp = (RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20 *)cache->attributes[1];
RequiredByNativeCodeAttribute__ctor_m97C095D1EE6AAB2894AE7E8B2F07D9B47CB8F8B5(tmp, NULL);
}
{
StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA * tmp = (StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA *)cache->attributes[2];
StaticAccessorAttribute__ctor_m0C3215256AEFAEFDDCBCD2BA9AA579CDBB230706(tmp, il2cpp_codegen_string_new_wrapper("\x41\x6E\x69\x6D\x61\x74\x6F\x72\x43\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x50\x6C\x61\x79\x61\x62\x6C\x65\x42\x69\x6E\x64\x69\x6E\x67\x73"), 2LL, NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[3];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x53\x63\x72\x69\x70\x74\x42\x69\x6E\x64\x69\x6E\x67\x73\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x43\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x62\x69\x6E\x64\x69\x6E\x67\x73\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[4];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x49\x6E\x66\x6F\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[5];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x44\x69\x72\x65\x63\x74\x6F\x72\x2F\x41\x6E\x69\x6D\x61\x74\x6F\x72\x43\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x50\x6C\x61\x79\x61\x62\x6C\x65\x2E\x68"), NULL);
}
{
NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C * tmp = (NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C *)cache->attributes[6];
NativeHeaderAttribute__ctor_m0E83F29C5939F185D6E90541591802EB2845FD76(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x6F\x64\x75\x6C\x65\x73\x2F\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x2F\x52\x75\x6E\x74\x69\x6D\x65\x41\x6E\x69\x6D\x61\x74\x6F\x72\x43\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x68"), NULL);
}
}
IL2CPP_EXTERN_C const CustomAttributesCacheGenerator g_UnityEngine_AnimationModule_AttributeGenerators[];
const CustomAttributesCacheGenerator g_UnityEngine_AnimationModule_AttributeGenerators[47] =
{
SharedBetweenAnimatorsAttribute_t1F94A6AF21AC0F90F38FFEDE964054F34A117279_CustomAttributesCacheGenerator,
StateMachineBehaviour_tBEDE439261DEB4C7334646339BC6F1E7958F095F_CustomAttributesCacheGenerator,
AnimationState_tDB7088046A65ABCEC66B45147693CA0AD803A3AD_CustomAttributesCacheGenerator,
AnimationEvent_tC15CA47BE450896AF876FFA75D7A8E22C2D286AF_CustomAttributesCacheGenerator,
AnimationClip_tD9BFD73D43793BA608D5C0B46BE29EB59E40D178_CustomAttributesCacheGenerator,
AnimatorClipInfo_t758011D6F2B4C04893FCD364DAA936C801FBC610_CustomAttributesCacheGenerator,
AnimatorStateInfo_t052E146D2DB1EC155950ECA45734BF57134258AA_CustomAttributesCacheGenerator,
AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator,
Animator_t9DD1D43680A61D65A3C98C6EFF559709DC9CE149_CustomAttributesCacheGenerator,
AnimatorOverrideController_t4630AA9761965F735AEB26B9A92D210D6338B2DA_CustomAttributesCacheGenerator,
SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator,
HumanLimit_t8F488DD21062BE1259B0F4C77E4EB24FB931E8D8_CustomAttributesCacheGenerator,
HumanBone_tFEE7CD9B6E62BBB95CC4A6F1AA7FC7A26541D62D_CustomAttributesCacheGenerator,
Motion_t3EAEF01D52B05F10A21CC9B54A35C8F3F6BA3A67_CustomAttributesCacheGenerator,
RuntimeAnimatorController_t6F70D5BE51CCBA99132F444EFFA41439DFE71BAB_CustomAttributesCacheGenerator,
NotKeyableAttribute_tE0C94B5FF990C6B4BB118486BCA35CCDA91AA905_CustomAttributesCacheGenerator,
AnimationClipPlayable_t6386488B0C0300A21A352B4C17B9E6D5D38DF953_CustomAttributesCacheGenerator,
AnimationHumanStream_t98A25119C1A24795BA152F54CF9F0673EEDF1C3F_CustomAttributesCacheGenerator,
AnimationLayerMixerPlayable_tF647DD9BCA6E0F49367A5F13AAE0D5B093A91880_CustomAttributesCacheGenerator,
AnimationMixerPlayable_t7C6D407FE0D55712B07081F8114CFA347F124741_CustomAttributesCacheGenerator,
AnimationMotionXToDeltaPlayable_t6E21B629D4689F5E3CFCFACA0B31411082773076_CustomAttributesCacheGenerator,
AnimationOffsetPlayable_tBB8333A8E35A23D8FAA2D34E35FF02BD53FF9941_CustomAttributesCacheGenerator,
AnimationPlayableOutput_t14570F3E63619E52ABB0B0306D4F4AAA6225DE17_CustomAttributesCacheGenerator,
AnimationPosePlayable_t455DFF8AB153FC8930BD1B79342EC791033662B9_CustomAttributesCacheGenerator,
AnimationRemoveScalePlayable_t774D428669D5CF715E9A7E80E52A619AECC80429_CustomAttributesCacheGenerator,
AnimationScriptPlayable_tC1413FB51680271522811045B1BAA555B8F01C6B_CustomAttributesCacheGenerator,
AnimationStream_t32D9239CBAA66CE867094B820035B2121D7E2714_CustomAttributesCacheGenerator,
AnimatorControllerPlayable_tEABD56FA5A36BD337DA6E049FCB4F1D521DA17A4_CustomAttributesCacheGenerator,
AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_FullPath,
AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_UserName,
AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_Name,
AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_HasFixedDuration,
AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_Duration,
AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_NormalizedTime,
AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_AnyState,
AnimatorTransitionInfo_t7D0BAD3D274C055F1FC7ACE0F3A195CA3C9026A0_CustomAttributesCacheGenerator_m_TransitionType,
SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator_name,
SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator_parentName,
SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator_position,
SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator_rotation,
SkeletonBone_t0AD95EAD0BE7D2EC13B2C7505225D340CB456A9E_CustomAttributesCacheGenerator_scale,
HumanBone_tFEE7CD9B6E62BBB95CC4A6F1AA7FC7A26541D62D_CustomAttributesCacheGenerator_limit,
Animator_t9DD1D43680A61D65A3C98C6EFF559709DC9CE149_CustomAttributesCacheGenerator_Animator_get_hasBoundPlayables_m1ADEF28BC77A4C8DBC707DA02A1B72E00AC0C88A,
Animator_t9DD1D43680A61D65A3C98C6EFF559709DC9CE149_CustomAttributesCacheGenerator_Animator_SetTriggerString_m38F66A49276BCED56B89BB6AF8A36183BE4285F0,
Animator_t9DD1D43680A61D65A3C98C6EFF559709DC9CE149_CustomAttributesCacheGenerator_Animator_ResetTriggerString_m6FC21A6B7732A31338EE22E78F3D6220903EDBB2,
AnimatorOverrideController_t4630AA9761965F735AEB26B9A92D210D6338B2DA_CustomAttributesCacheGenerator_AnimatorOverrideController_OnInvalidateOverrideController_m579571520B7C607B6983D4973EBAE982EAC9AA40,
UnityEngine_AnimationModule_CustomAttributesCacheGenerator,
};
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void RuntimeCompatibilityAttribute_set_WrapNonExceptionThrows_m8562196F90F3EBCEC23B5708EE0332842883C490_inline (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * __this, bool ___value0, const RuntimeMethod* method)
{
{
bool L_0 = ___value0;
__this->set_m_wrapNonExceptionThrows_0(L_0);
return;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void AttributeUsageAttribute_set_AllowMultiple_mF412CDAFFE16D056721EF81A1EC04ACE63612055_inline (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * __this, bool ___value0, const RuntimeMethod* method)
{
{
bool L_0 = ___value0;
__this->set_m_allowMultiple_1(L_0);
return;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void NativeMethodAttribute_set_Name_mC85A9B1CE4650D43D0E73B503753864CA4952A9C_inline (NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866 * __this, String_t* ___value0, const RuntimeMethod* method)
{
{
String_t* L_0 = ___value0;
__this->set_U3CNameU3Ek__BackingField_0(L_0);
return;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void NativeMethodAttribute_set_HasExplicitThis_mB44D70CDD0D14884A4FA84776C3091C742FAFE44_inline (NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866 * __this, bool ___value0, const RuntimeMethod* method)
{
{
bool L_0 = ___value0;
__this->set_U3CHasExplicitThisU3Ek__BackingField_4(L_0);
return;
}
}
| [
"[email protected]"
] | |
f2a68d8f84d94e87f28b997f0edf8eed7622dcd4 | c2d270aff0a4d939f43b6359ac2c564b2565be76 | /src/components/history/core/browser/expire_history_backend.cc | 609341e369a52af72849d5d0aa3f0ea76180ffc8 | [
"BSD-3-Clause"
] | permissive | bopopescu/QuicDep | dfa5c2b6aa29eb6f52b12486ff7f3757c808808d | bc86b705a6cf02d2eade4f3ea8cf5fe73ef52aa0 | refs/heads/master | 2022-04-26T04:36:55.675836 | 2020-04-29T21:29:26 | 2020-04-29T21:29:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,976 | cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/history/core/browser/expire_history_backend.h"
#include <stddef.h>
#include <algorithm>
#include <functional>
#include <limits>
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/feature_list.h"
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/sequenced_task_runner.h"
#include "components/history/core/browser/history_backend_client.h"
#include "components/history/core/browser/history_backend_notifier.h"
#include "components/history/core/browser/history_database.h"
#include "components/history/core/browser/thumbnail_database.h"
namespace history {
// Helpers --------------------------------------------------------------------
namespace {
// The number of days by which the expiration threshold is advanced for items
// that we want to expire early, such as those of AUTO_SUBFRAME transition type.
//
// Early expiration stuff is kept around only for edge cases, as subframes
// don't appear in history and the vast majority of them are ads anyway. The
// main use case for these is if you're on a site with links to different
// frames, you'll be able to see those links as visited, and we'll also be
// able to get redirect information for those URLs.
//
// But since these uses are most valuable when you're actually on the site,
// and because these can take up the bulk of your history, we get a lot of
// space savings by deleting them quickly.
const int kEarlyExpirationAdvanceDays = 3;
// Reads all types of visits starting from beginning of time to the given end
// time. This is the most general reader.
class AllVisitsReader : public ExpiringVisitsReader {
public:
bool Read(base::Time end_time,
HistoryDatabase* db,
VisitVector* visits,
int max_visits) const override {
DCHECK(db) << "must have a database to operate upon";
DCHECK(visits) << "visit vector has to exist in order to populate it";
db->GetAllVisitsInRange(base::Time(), end_time, max_visits, visits);
// When we got the maximum number of visits we asked for, we say there could
// be additional things to expire now.
return static_cast<int>(visits->size()) == max_visits;
}
};
// Reads only AUTO_SUBFRAME visits, within a computed range. The range is
// computed as follows:
// * |begin_time| is read from the meta table. This value is updated whenever
// there are no more additional visits to expire by this reader.
// * |end_time| is advanced forward by a constant (kEarlyExpirationAdvanceDay),
// but not past the current time.
class AutoSubframeVisitsReader : public ExpiringVisitsReader {
public:
bool Read(base::Time end_time,
HistoryDatabase* db,
VisitVector* visits,
int max_visits) const override {
DCHECK(db) << "must have a database to operate upon";
DCHECK(visits) << "visit vector has to exist in order to populate it";
base::Time begin_time = db->GetEarlyExpirationThreshold();
// Advance |end_time| to expire early.
base::Time early_end_time = end_time +
base::TimeDelta::FromDays(kEarlyExpirationAdvanceDays);
// We don't want to set the early expiration threshold to a time in the
// future.
base::Time now = base::Time::Now();
if (early_end_time > now)
early_end_time = now;
db->GetVisitsInRangeForTransition(begin_time, early_end_time,
max_visits,
ui::PAGE_TRANSITION_AUTO_SUBFRAME,
visits);
bool more = static_cast<int>(visits->size()) == max_visits;
if (!more)
db->UpdateEarlyExpirationThreshold(early_end_time);
return more;
}
};
// The number of visits we will expire very time we check for old items. This
// Prevents us from doing too much work any given time.
const int kNumExpirePerIteration = 32;
// The number of seconds between checking for items that should be expired when
// we think there might be more items to expire. This timeout is used when the
// last expiration found at least kNumExpirePerIteration and we want to check
// again "soon."
const int kExpirationDelaySec = 30;
// The number of minutes between checking, as with kExpirationDelaySec, but
// when we didn't find enough things to expire last time. If there was no
// history to expire last iteration, it's likely there is nothing next
// iteration, so we want to wait longer before checking to avoid wasting CPU.
const int kExpirationEmptyDelayMin = 5;
// The minimum number of hours between checking for old on-demand favicons that
// should be cleared.
const int kClearOnDemandFaviconsIntervalHours = 24;
bool IsAnyURLBookmarked(HistoryBackendClient* backend_client,
const std::vector<GURL>& urls) {
for (const GURL& url : urls) {
if (backend_client->IsBookmarked(url))
return true;
}
return false;
}
} // namespace
namespace internal {
const base::Feature kClearOldOnDemandFavicons{
"ClearOldOnDemandFavicons", base::FEATURE_DISABLED_BY_DEFAULT};
const int kOnDemandFaviconIsOldAfterDays = 30;
} // namespace internal
// ExpireHistoryBackend::DeleteEffects ----------------------------------------
ExpireHistoryBackend::DeleteEffects::DeleteEffects() {
}
ExpireHistoryBackend::DeleteEffects::~DeleteEffects() {
}
// ExpireHistoryBackend -------------------------------------------------------
ExpireHistoryBackend::ExpireHistoryBackend(
HistoryBackendNotifier* notifier,
HistoryBackendClient* backend_client,
scoped_refptr<base::SequencedTaskRunner> task_runner)
: notifier_(notifier),
main_db_(nullptr),
thumb_db_(nullptr),
backend_client_(backend_client),
task_runner_(task_runner),
weak_factory_(this) {
DCHECK(notifier_);
}
ExpireHistoryBackend::~ExpireHistoryBackend() {
}
void ExpireHistoryBackend::SetDatabases(HistoryDatabase* main_db,
ThumbnailDatabase* thumb_db) {
main_db_ = main_db;
thumb_db_ = thumb_db;
}
void ExpireHistoryBackend::DeleteURL(const GURL& url) {
DeleteURLs(std::vector<GURL>(1, url));
}
void ExpireHistoryBackend::DeleteURLs(const std::vector<GURL>& urls) {
if (!main_db_)
return;
DeleteEffects effects;
for (std::vector<GURL>::const_iterator url = urls.begin(); url != urls.end();
++url) {
const bool is_bookmarked =
backend_client_ && backend_client_->IsBookmarked(*url);
URLRow url_row;
if (!main_db_->GetRowForURL(*url, &url_row) && !is_bookmarked) {
// If the URL isn't in the database and not bookmarked, we should still
// check to see if any favicons need to be deleted.
DeleteIcons(*url, &effects);
continue;
}
// Collect all the visits and delete them. Note that we don't give up if
// there are no visits, since the URL could still have an entry that we
// should delete.
VisitVector visits;
main_db_->GetVisitsForURL(url_row.id(), &visits);
DeleteVisitRelatedInfo(visits, &effects);
// We skip ExpireURLsForVisits (since we are deleting from the
// URL, and not starting with visits in a given time range). We
// therefore need to call the deletion and favicon update
// functions manually.
DeleteOneURL(url_row, is_bookmarked, &effects);
}
DeleteFaviconsIfPossible(&effects);
BroadcastNotifications(&effects, DELETION_USER_INITIATED);
}
void ExpireHistoryBackend::ExpireHistoryBetween(
const std::set<GURL>& restrict_urls,
base::Time begin_time,
base::Time end_time) {
if (!main_db_)
return;
// Find the affected visits and delete them.
VisitVector visits;
main_db_->GetAllVisitsInRange(begin_time, end_time, 0, &visits);
if (!restrict_urls.empty()) {
std::set<URLID> url_ids;
for (std::set<GURL>::const_iterator url = restrict_urls.begin();
url != restrict_urls.end(); ++url)
url_ids.insert(main_db_->GetRowForURL(*url, nullptr));
VisitVector all_visits;
all_visits.swap(visits);
for (VisitVector::iterator visit = all_visits.begin();
visit != all_visits.end(); ++visit) {
if (url_ids.find(visit->url_id) != url_ids.end())
visits.push_back(*visit);
}
}
ExpireVisits(visits);
}
void ExpireHistoryBackend::ExpireHistoryForTimes(
const std::vector<base::Time>& times) {
// |times| must be in reverse chronological order and have no
// duplicates, i.e. each member must be earlier than the one before
// it.
DCHECK(
std::adjacent_find(
times.begin(), times.end(), std::less_equal<base::Time>()) ==
times.end());
if (!main_db_)
return;
// Find the affected visits and delete them.
VisitVector visits;
main_db_->GetVisitsForTimes(times, &visits);
ExpireVisits(visits);
}
void ExpireHistoryBackend::ExpireVisits(const VisitVector& visits) {
if (visits.empty())
return;
const VisitVector visits_and_redirects = GetVisitsAndRedirectParents(visits);
DeleteEffects effects;
DeleteVisitRelatedInfo(visits_and_redirects, &effects);
// Delete or update the URLs affected. We want to update the visit counts
// since this is called by the user who wants to delete their recent history,
// and we don't want to leave any evidence.
ExpireURLsForVisits(visits_and_redirects, &effects);
DeleteFaviconsIfPossible(&effects);
BroadcastNotifications(&effects, DELETION_USER_INITIATED);
// Pick up any bits possibly left over.
ParanoidExpireHistory();
}
void ExpireHistoryBackend::ExpireHistoryBefore(base::Time end_time) {
if (!main_db_)
return;
// Expire as much history as possible before the given date.
ExpireSomeOldHistory(end_time, GetAllVisitsReader(),
std::numeric_limits<int>::max());
ParanoidExpireHistory();
}
void ExpireHistoryBackend::InitWorkQueue() {
DCHECK(work_queue_.empty()) << "queue has to be empty prior to init";
for (size_t i = 0; i < readers_.size(); i++)
work_queue_.push(readers_[i]);
}
const ExpiringVisitsReader* ExpireHistoryBackend::GetAllVisitsReader() {
if (!all_visits_reader_)
all_visits_reader_.reset(new AllVisitsReader());
return all_visits_reader_.get();
}
const ExpiringVisitsReader*
ExpireHistoryBackend::GetAutoSubframeVisitsReader() {
if (!auto_subframe_visits_reader_)
auto_subframe_visits_reader_.reset(new AutoSubframeVisitsReader());
return auto_subframe_visits_reader_.get();
}
void ExpireHistoryBackend::StartExpiringOldStuff(
base::TimeDelta expiration_threshold) {
expiration_threshold_ = expiration_threshold;
// Remove all readers, just in case this was method was called before.
readers_.clear();
// For now, we explicitly add all known readers. If we come up with more
// reader types (in case we want to expire different types of visits in
// different ways), we can make it be populated by creator/owner of
// ExpireHistoryBackend.
readers_.push_back(GetAllVisitsReader());
readers_.push_back(GetAutoSubframeVisitsReader());
// Initialize the queue with all tasks for the first set of iterations.
InitWorkQueue();
ScheduleExpire();
}
void ExpireHistoryBackend::DeleteFaviconsIfPossible(DeleteEffects* effects) {
if (!thumb_db_)
return;
for (std::set<favicon_base::FaviconID>::const_iterator i =
effects->affected_favicons.begin();
i != effects->affected_favicons.end(); ++i) {
if (!thumb_db_->HasMappingFor(*i)) {
GURL icon_url;
favicon_base::IconType icon_type;
if (thumb_db_->GetFaviconHeader(*i,
&icon_url,
&icon_type) &&
thumb_db_->DeleteFavicon(*i)) {
effects->deleted_favicons.insert(icon_url);
}
}
}
}
void ExpireHistoryBackend::BroadcastNotifications(DeleteEffects* effects,
DeletionType type) {
if (!effects->modified_urls.empty()) {
notifier_->NotifyURLsModified(effects->modified_urls);
}
if (!effects->deleted_urls.empty()) {
notifier_->NotifyURLsDeleted(false,
type == DELETION_EXPIRED,
effects->deleted_urls,
effects->deleted_favicons);
}
}
VisitVector ExpireHistoryBackend::GetVisitsAndRedirectParents(
const VisitVector& visits) {
VisitVector visits_and_redirects;
for (const auto v : visits) {
VisitRow current_visit = v;
do {
visits_and_redirects.push_back(current_visit);
} while (current_visit.referring_visit &&
main_db_->GetRowForVisit(current_visit.referring_visit,
¤t_visit));
}
return visits_and_redirects;
}
void ExpireHistoryBackend::DeleteVisitRelatedInfo(const VisitVector& visits,
DeleteEffects* effects) {
for (size_t i = 0; i < visits.size(); i++) {
// Delete the visit itself.
main_db_->DeleteVisit(visits[i]);
// Add the URL row to the affected URL list.
if (!effects->affected_urls.count(visits[i].url_id)) {
URLRow row;
if (main_db_->GetURLRow(visits[i].url_id, &row))
effects->affected_urls[visits[i].url_id] = row;
}
}
}
void ExpireHistoryBackend::DeleteOneURL(const URLRow& url_row,
bool is_bookmarked,
DeleteEffects* effects) {
main_db_->DeleteSegmentForURL(url_row.id());
effects->deleted_urls.push_back(url_row);
// If the URL is bookmarked we should still keep its favicon around to show
// in bookmark-related UI. We'll delete this icon if the URL is unbookmarked.
// (See comments in DeleteURLs().)
if (!is_bookmarked)
DeleteIcons(url_row.url(), effects);
main_db_->DeleteURLRow(url_row.id());
}
void ExpireHistoryBackend::DeleteIcons(const GURL& gurl,
DeleteEffects* effects) {
// Collect shared information.
std::vector<IconMapping> icon_mappings;
if (thumb_db_ && thumb_db_->GetIconMappingsForPageURL(gurl, &icon_mappings)) {
for (std::vector<IconMapping>::iterator m = icon_mappings.begin();
m != icon_mappings.end(); ++m) {
effects->affected_favicons.insert(m->icon_id);
}
// Delete the mapping entries for the url.
thumb_db_->DeleteIconMappings(gurl);
}
}
namespace {
struct ChangedURL {
ChangedURL() : visit_count(0), typed_count(0) {}
int visit_count;
int typed_count;
};
} // namespace
void ExpireHistoryBackend::ExpireURLsForVisits(const VisitVector& visits,
DeleteEffects* effects) {
// First find all unique URLs and the number of visits we're deleting for
// each one.
std::map<URLID, ChangedURL> changed_urls;
for (size_t i = 0; i < visits.size(); i++) {
ChangedURL& cur = changed_urls[visits[i].url_id];
// NOTE: This code must stay in sync with HistoryBackend::AddPageVisit().
if (!ui::PageTransitionCoreTypeIs(visits[i].transition,
ui::PAGE_TRANSITION_RELOAD)) {
cur.visit_count++;
}
if (ui::PageTransitionIsNewNavigation(visits[i].transition) &&
((ui::PageTransitionCoreTypeIs(visits[i].transition,
ui::PAGE_TRANSITION_TYPED) &&
!ui::PageTransitionIsRedirect(visits[i].transition)) ||
ui::PageTransitionCoreTypeIs(visits[i].transition,
ui::PAGE_TRANSITION_KEYWORD_GENERATED)))
cur.typed_count++;
}
// Check each unique URL with deleted visits.
for (std::map<URLID, ChangedURL>::const_iterator i = changed_urls.begin();
i != changed_urls.end(); ++i) {
// The unique URL rows should already be filled in.
URLRow& url_row = effects->affected_urls[i->first];
if (!url_row.id())
continue; // URL row doesn't exist in the database.
// Check if there are any other visits for this URL and update the time
// (the time change may not actually be synced to disk below when we're
// archiving).
VisitRow last_visit;
if (main_db_->GetMostRecentVisitForURL(url_row.id(), &last_visit))
url_row.set_last_visit(last_visit.visit_time);
else
url_row.set_last_visit(base::Time());
// Don't delete URLs with visits still in the DB, or bookmarked.
bool is_bookmarked =
(backend_client_ && backend_client_->IsBookmarked(url_row.url()));
if (!is_bookmarked && url_row.last_visit().is_null()) {
// Not bookmarked and no more visits. Nuke the url.
DeleteOneURL(url_row, is_bookmarked, effects);
} else {
// NOTE: The calls to std::max() below are a backstop, but they should
// never actually be needed unless the database is corrupt (I think).
url_row.set_visit_count(
std::max(0, url_row.visit_count() - i->second.visit_count));
url_row.set_typed_count(
std::max(0, url_row.typed_count() - i->second.typed_count));
// Update the db with the new details.
main_db_->UpdateURLRow(url_row.id(), url_row);
effects->modified_urls.push_back(url_row);
}
}
}
void ExpireHistoryBackend::ScheduleExpire() {
base::TimeDelta delay;
if (work_queue_.empty()) {
// If work queue is empty, reset the work queue to contain all tasks and
// schedule next iteration after a longer delay.
InitWorkQueue();
delay = base::TimeDelta::FromMinutes(kExpirationEmptyDelayMin);
} else {
delay = base::TimeDelta::FromSeconds(kExpirationDelaySec);
}
task_runner_->PostDelayedTask(
FROM_HERE,
base::Bind(&ExpireHistoryBackend::DoExpireIteration,
weak_factory_.GetWeakPtr()),
delay);
}
void ExpireHistoryBackend::DoExpireIteration() {
DCHECK(!work_queue_.empty()) << "queue has to be non-empty";
const ExpiringVisitsReader* reader = work_queue_.front();
bool more_to_expire = ExpireSomeOldHistory(
GetCurrentExpirationTime(), reader, kNumExpirePerIteration);
work_queue_.pop();
if (more_to_expire) {
// If there are more items to expire, add the reader back to the queue, thus
// creating a new task for future iterations.
work_queue_.push(reader);
} else {
// Otherwise do a final clean-up - remove old favicons not bound to visits.
ClearOldOnDemandFavicons(
base::Time::Now() -
base::TimeDelta::FromDays(internal::kOnDemandFaviconIsOldAfterDays));
}
ScheduleExpire();
}
void ExpireHistoryBackend::ClearOldOnDemandFavicons(
base::Time expiration_threshold) {
if (!base::FeatureList::IsEnabled(internal::kClearOldOnDemandFavicons))
return;
// Extra precaution to avoid repeated calls to GetOldOnDemandFavicons() close
// in time, since it can be fairly expensive.
if (expiration_threshold <
last_on_demand_expiration_threshold_ +
base::TimeDelta::FromHours(kClearOnDemandFaviconsIntervalHours)) {
return;
}
last_on_demand_expiration_threshold_ = expiration_threshold;
std::map<favicon_base::FaviconID, IconMappingsForExpiry> icon_mappings =
thumb_db_->GetOldOnDemandFavicons(expiration_threshold);
DeleteEffects effects;
for (auto id_and_mappings_pair : icon_mappings) {
favicon_base::FaviconID icon_id = id_and_mappings_pair.first;
const IconMappingsForExpiry& mappings = id_and_mappings_pair.second;
if (backend_client_ &&
IsAnyURLBookmarked(backend_client_, mappings.page_urls)) {
continue;
}
thumb_db_->DeleteFavicon(icon_id);
thumb_db_->DeleteIconMappingsForFaviconId(icon_id);
effects.deleted_favicons.insert(mappings.icon_url);
}
BroadcastNotifications(&effects, DELETION_EXPIRED);
}
bool ExpireHistoryBackend::ExpireSomeOldHistory(
base::Time end_time,
const ExpiringVisitsReader* reader,
int max_visits) {
if (!main_db_)
return false;
// Add an extra time unit to given end time, because
// GetAllVisitsInRange, et al. queries' end value is non-inclusive.
base::Time effective_end_time =
base::Time::FromInternalValue(end_time.ToInternalValue() + 1);
VisitVector deleted_visits;
bool more_to_expire = reader->Read(effective_end_time, main_db_,
&deleted_visits, max_visits);
DeleteEffects deleted_effects;
DeleteVisitRelatedInfo(deleted_visits, &deleted_effects);
ExpireURLsForVisits(deleted_visits, &deleted_effects);
DeleteFaviconsIfPossible(&deleted_effects);
BroadcastNotifications(&deleted_effects, DELETION_EXPIRED);
return more_to_expire;
}
void ExpireHistoryBackend::ParanoidExpireHistory() {
// TODO(brettw): Bug 1067331: write this to clean up any errors.
}
} // namespace history
| [
"[email protected]"
] | |
f6797d0017dbd93fd1f62274c97f2f8766c6133b | d7a34948297eac6a30796ab250e3fcd8d4a4015b | /ViewSynLibStatic/include/ViewSynthesis.h | 2ac25c05c24c697ad095efc2f38eb7b91f1f3f41 | [] | no_license | keifergu/vsrs | 9d3fc846fad16707eec05b19e91635d9261a421e | 95f0f94e97110e03c810e0a864aedcc7639966b0 | refs/heads/master | 2020-03-19T11:42:52.277428 | 2018-06-09T02:56:27 | 2018-06-09T02:56:27 | 136,471,926 | 10 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,038 | h | #ifndef _VIEW_SYNTHESIS_H_
#define _VIEW_SYNTHESIS_H_
#pragma warning(disable:4996)
#pragma warning(disable:4244)
#pragma warning(disable:4819)
#ifndef WIN32
#define BYTE unsigned char
#endif
#include <iostream>
#include <fstream>
#include "yuv.h"
#include "version.h"
typedef unsigned char uchar;
//using namespace std;
#ifndef UInt
#define UInt unsigned int
#endif
class CViewInterpolationGeneral
{
public:
CViewInterpolationGeneral ();
virtual ~CViewInterpolationGeneral ();
// Member function InitLR was added to class CViewInterpolationGeneral.
bool InitLR ( UInt uiWidth, UInt uiHeight, UInt uiPrecision, UInt uiDepthType,
double dZnearL, double dZfarL, double dZnearR, double dZfarR,
const char *strCamParamFile, const char *strRefLCamID, const char *strRefRCamID, const char *strVirCamID,
double Mat_In_Left[9], double Mat_Ex_Left[9], double Mat_Trans_Left[3],
double Mat_In_Right[9], double Mat_Ex_Right[9], double Mat_Trans_Right[3],
double Mat_In_Virtual[9], double Mat_Ex_Virtual[9], double Mat_Trans_Virtual[3]);
// The number of arguments of Init increased.
bool Init ( UInt uiWidth, UInt uiHeight, UInt uiPrecision, UInt uiDepthType,
#ifdef NICT_IVSRS
// NICT start
UInt uiIvsrsInpaint, // iVSRS inpaint flag
// NICT end
#endif
double dZnear, double dZfar, const char *strCamParamFile, const char *strRefCamID, const char *strVirCamID,
double Mat_In_Ref[9], double Mat_Ex_Ref[9], double Mat_Trans_Ref[3], double Mat_In_Vir[9], double Mat_Ex_Vir[9], double Mat_Trans_Vir[3]);
void xReleaseMemory ();
bool xSynthesizeView (ImageType ***src, DepthType **pDepthMap, int th_same_depth=5);
bool xSynthesizeDepth (DepthType **pDepthMap, ImageType ***src);
bool xSynthesizeView_reverse (ImageType ***src, DepthType **pDepthMap, int th_same_depth=5);
double getBaselineDistance () { return m_dBaselineDistance; }
double getLeftBaselineDistance () { return LeftBaselineDistance; }
double getRightBaselineDistance () { return RightBaselineDistance; }
IplImage* getHolePixels () { return m_imgHoles; }
IplImage* getSynthesizedPixels () { return m_imgSuccessSynthesis; }
IplImage* getUnstablePixels () { return m_imgMask[0]; }
IplImage* getVirtualImage () { return m_imgVirtualImage; }
IplImage* getVirtualDepthMap () { return m_imgVirtualDepth; }
//Nagoya start
ImageType** getVirtualImageY () { return m_pVirtualImageY; }
ImageType** getVirtualImageU () { return m_pVirtualImageU; }
ImageType** getVirtualImageV () { return m_pVirtualImageV; }
//Nagoya end
DepthType** getVirtualDepth () { return m_pVirtualDepth; }
HoleType** getNonHoles () { return m_pSuccessSynthesis; }
void SetWidth (int sWidth ) { m_uiWidth = sWidth; }
void SetHeight(int sHeight) { m_uiHeight = sHeight; }
void SetDepthType(int sDepthType) {m_uiDepthType = sDepthType; }
void SetColorSpace(int sColorSpace) { m_uiColorSpace = sColorSpace; }
void SetSubPelOption(int sPrecision) { m_uiPrecision = sPrecision; }
#ifdef NICT_IVSRS
// NICT start
void SetIvsrsInpaint(unsigned int uiIvsrsInpaint) { m_uiIvsrsInpaint = uiIvsrsInpaint; } // NICT iVSRS inpaint flag
// NICT end
#endif
void SetViewBlending(int sViewBlending) { ViewBlending = sViewBlending; }
void SetBoundaryNoiseRemoval(int sBoundaryNoiseRemoval) { m_uiBoundaryNoiseRemoval = sBoundaryNoiseRemoval; }
#ifdef POZNAN_DEPTH_BLEND
void SetDepthBlendDiff(int iDepthBlendDiff) { m_iDepthBlendDiff = iDepthBlendDiff; }
#endif
int DoOneFrameGeneral(ImageType*** RefLeft, ImageType*** RefRight, DepthType** RefDepthLeft, DepthType** RefDepthRight, CIYuv<ImageType>* pSynYuvBuffer);
IplImage* getImgSynthesizedViewLeft ();
IplImage* getImgSynthesizedViewRight ();
// GIST added
#ifdef POZNAN_GENERAL_HOMOGRAPHY
CvMat* GetMatH_V2R() { return m_matH_V2R; }
#else
CvMat** GetMatH_V2R() { return m_matH_V2R; }
#endif
CViewInterpolationGeneral* GetInterpolatedLeft () { return m_pcViewSynthesisLeft;}
CViewInterpolationGeneral* GetInterpolatedRight() { return m_pcViewSynthesisRight;}
IplImage* GetSynLeftWithHole () { return m_imgSynLeftforBNR; }
IplImage* GetSynRightWithHole () { return m_imgSynRightforBNR; }
IplImage* GetSynDepthLeftWithHole () { return m_imgDepthLeftforBNR; }
IplImage* GetSynDepthRightWithHole() { return m_imgDepthRightforBNR;}
IplImage* GetSynHoleLeft () { return m_imgHoleLeftforBNR; }
IplImage* GetSynHoleRight () { return m_imgHoleRightforBNR; }
int GetPrecision () { return m_uiPrecision; }
#ifdef NICT_IVSRS
// NICT start
unsigned int GetIvsrsInpaint () { return m_uiIvsrsInpaint; } // NICT get iVSRS inpaint flag
// NICT end
#endif
void SetLeftBaselineDistance( double sLeftBaselineDistance) { LeftBaselineDistance = sLeftBaselineDistance; }
void SetRightBaselineDistance( double sRightBaselineDistance) { RightBaselineDistance = sRightBaselineDistance; }
// GIST end
//Nagoya start
ImageType* GetSynColorLeftY () { return *(m_pcViewSynthesisLeft->getVirtualImageY()); }
ImageType* GetSynColorRightY() { return *(m_pcViewSynthesisRight->getVirtualImageY()); }
ImageType* GetSynColorLeftU () { return *(m_pcViewSynthesisLeft->getVirtualImageU()); }
ImageType* GetSynColorRightU() { return *(m_pcViewSynthesisRight->getVirtualImageU()); }
ImageType* GetSynColorLeftV () { return *(m_pcViewSynthesisLeft->getVirtualImageV()); }
ImageType* GetSynColorRightV() { return *(m_pcViewSynthesisRight->getVirtualImageV()); }
DepthType* GetSynDepthLeft () { return *(m_pcViewSynthesisLeft->getVirtualDepth()); }
DepthType* GetSynDepthRight () { return *(m_pcViewSynthesisRight->getVirtualDepth()); }
//Nagoya end
protected:
private:
void convertCameraParam (CvMat *exMat_dst, CvMat *exMat_src);
void cvexMedian (IplImage* dst);
void cvexBilateral (IplImage* dst, int sigma_d, int sigma_c);
void erodebound (IplImage* bound, int flag);
int median_filter_depth (IplImage *srcDepth, IplImage *dstDepth, IplImage *srcMask, IplImage *dstMask, int sizeX, int sizeY, bool bSmoothing);
int median_filter_depth_wCheck (IplImage *srcDepth, IplImage *dstDepth, IplImage *srcMask, IplImage *dstMask, int sizeX, int sizeY, bool bSmoothing, int th_same_plane=5);
CViewInterpolationGeneral* m_pcViewSynthesisLeft;
CViewInterpolationGeneral* m_pcViewSynthesisRight;
bool init_camera_param(double Mat_In_Ref[9], double Mat_Ex_Ref[9], double Mat_Trans_Ref[3], double Mat_In_Vir[9], double Mat_Ex_Vir[9], double Mat_Trans_Vir[3],
CvMat *mat_in[2], CvMat *mat_ex_c2w[2], CvMat *mat_proj[2]);
bool init_3Dwarp(double Z_near, double Z_far, unsigned int uiDepthType,
const char *strCamParamFile, const char *strRefCamID, const char *strVirCamID,
double Mat_In_Ref[9], double Mat_Ex_Ref[9], double Mat_Trans_Ref[3],
double Mat_In_Vir[9], double Mat_Ex_Vir[9], double Mat_Trans_Vir[3]);
bool init_shift (double Z_near, double Z_far, unsigned int uiDepthType, const char *strCamParamFile, const char *strRefCamID, const char *strVirCamID);
void image2world_with_z (CvMat *mat_Rc2w_invIN_from, CvMat *matEX_c2w_from, CvMat *image, CvMat *world);
#ifdef POZNAN_GENERAL_HOMOGRAPHY
void makeHomography (CvMat *&matH_F2T, CvMat *&matH_T2F, double adTable[MAX_DEPTH], CvMat *matIN_from, CvMat *matEX_c2w_from, CvMat *matProj_to);
#else
void makeHomography (CvMat *matH_F2T[MAX_DEPTH], CvMat *matH_T2F[MAX_DEPTH], double adTable[MAX_DEPTH], CvMat *matIN_from, CvMat *matEX_c2w_from, CvMat *matProj_to);
#endif
bool depthsynthesis_3Dwarp (DepthType **pDepthMap, ImageType ***src);
bool depthsynthesis_3Dwarp_ipel (DepthType **pDepthMap, ImageType ***src);
bool viewsynthesis_reverse_3Dwarp (ImageType ***src, DepthType **pDepthMap, int th_same_depth);
bool viewsynthesis_reverse_3Dwarp_ipel (ImageType ***src, DepthType **pDepthMap, int th_same_depth);
double m_dWeightLeft;
double m_dWeightRight;
double WeightLeft;
double WeightRight;
unsigned int m_uiViewBlending;
unsigned int ViewBlending;
#ifdef POZNAN_DEPTH_BLEND
int m_iDepthBlendDiff;
#endif
#ifdef NICT_IVSRS
// NICT start
unsigned int m_uiIvsrsInpaint; // NICT iVSRS inpaint flag for set get
// NICT end
#endif
unsigned int m_uiWidth;
unsigned int m_uiHeight;
unsigned int m_uiPicsize;
unsigned int m_uiPrecision;
unsigned int m_uiDepthType;
unsigned char m_ucLeftSide;
unsigned int m_uiColorSpace;
unsigned int m_uiBoundaryNoiseRemoval;
std::string CameraParameterFile;
std::string LeftCameraName;
std::string RightCameraName;
std::string VirtualCameraName;
// unsigned int Width;
// unsigned int Height;
// unsigned int Picsize;
// unsigned int Precision;
// unsigned int DepthType;
// unsigned int ColorSpace;
double Mat_Ex_Left[9];
double Mat_Ex_Virtual[9];
double Mat_Ex_Right[9];
double Mat_In_Left[9];
double Mat_In_Virtual[9];
double Mat_In_Right[9];
double Mat_Trans_Left[3];
double Mat_Trans_Virtual[3];
double Mat_Trans_Right[3];
IplImage* m_imgBlended; //!> Blended image
// NICT start
#ifdef NICT_IVSRS
IplImage* m_imgBlendedDepth; //!> Blended depth // NICT
#endif
// NICT end
IplImage* m_imgInterpolatedView; //!> The final image buffer to be output
IplImage* getImgInterpolatedView () { return m_imgInterpolatedView; }
double m_dBaselineDistance;
double LeftBaselineDistance;
double RightBaselineDistance;
DepthType** m_pVirtualDepth;
HoleType** m_pSuccessSynthesis;
//Nagoya start
ImageType** m_pVirtualImageY;
ImageType** m_pVirtualImageU;
ImageType** m_pVirtualImageV;
//Nagoya end
IplImage* m_imgVirtualImage;
IplImage* m_imgVirtualDepth;
IplImage* m_imgSuccessSynthesis;
IplImage* m_imgHoles;
IplImage* m_imgBound;
IplImage* m_imgMask[5];
IplImage* m_imgTemp[5];
IplImage* m_imgDepthTemp[5];
IplConvKernel* m_pConvKernel;
#ifdef POZNAN_GENERAL_HOMOGRAPHY
CvMat* m_matH_R2V;
CvMat* m_matH_V2R;
double m_dTableD2Z[MAX_DEPTH];
#ifdef POZNAN_DEPTH_PROJECT2COMMON
double m_dInvZNearMinusInvZFar;
double m_dInvZfar;
#endif
#else
CvMat* m_matH_R2V[MAX_DEPTH];
CvMat* m_matH_V2R[MAX_DEPTH];
#endif
int* m_aiTableDisparity_ipel;
int* m_aiTableDisparity_subpel;
bool (CViewInterpolationGeneral::*m_pFunc_ViewSynthesisReverse) (ImageType ***src, DepthType **pDepthMap, int th_same_depth) ;
bool (CViewInterpolationGeneral::*m_pFunc_DepthSynthesis) (DepthType **pDepthMap, ImageType ***src) ;
// GIST added
IplImage* m_imgSynLeftforBNR;
IplImage* m_imgSynRightforBNR;
IplImage* m_imgDepthLeftforBNR;
IplImage* m_imgDepthRightforBNR;
IplImage* m_imgHoleLeftforBNR;
IplImage* m_imgHoleRightforBNR;
// GIST end
#ifdef _DEBUG
unsigned char m_ucSetup;
#endif
};
#endif
| [
"[email protected]"
] | |
b9a5bf5ab6393f238f5dd8e985c58e8570203f49 | bc7e9f41cc6b438d805f6d88e4b822fb6001f8b4 | /include/flann/algorithms/kmeans_index.h | 656593c6a258e12b38342713fa19446b45a96bc5 | [] | no_license | deliangye/KDTreeCuda | 2f7e6039b8ac7c8fdef4b5b1280a539c2d19adb6 | bd8dd28df92f83c131210abc31f3aa6899e76668 | refs/heads/master | 2021-01-22T18:08:20.500856 | 2017-05-12T09:51:06 | 2017-05-12T09:51:06 | 100,747,510 | 4 | 2 | null | 2017-08-18T20:22:32 | 2017-08-18T20:22:32 | null | UTF-8 | C++ | false | false | 33,432 | h | /***********************************************************************
* Software License Agreement (BSD License)
*
* Copyright 2008-2009 Marius Muja ([email protected]). All rights reserved.
* Copyright 2008-2009 David G. Lowe ([email protected]). All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*************************************************************************/
#ifndef FLANN_KMEANS_INDEX_H_
#define FLANN_KMEANS_INDEX_H_
#include <algorithm>
#include <string>
#include <map>
#include <cassert>
#include <limits>
#include <cmath>
#include "flann/general.h"
#include "flann/algorithms/nn_index.h"
#include "flann/algorithms/dist.h"
#include <flann/algorithms/center_chooser.h>
#include "flann/util/matrix.h"
#include "flann/util/result_set.h"
#include "flann/util/heap.h"
#include "flann/util/allocator.h"
#include "flann/util/random.h"
#include "flann/util/saving.h"
#include "flann/util/logger.h"
namespace flann
{
struct KMeansIndexParams : public IndexParams
{
KMeansIndexParams(int branching = 32, int iterations = 11,
flann_centers_init_t centers_init = FLANN_CENTERS_RANDOM, float cb_index = 0.2 )
{
(*this)["algorithm"] = FLANN_INDEX_KMEANS;
// branching factor
(*this)["branching"] = branching;
// max iterations to perform in one kmeans clustering (kmeans tree)
(*this)["iterations"] = iterations;
// algorithm used for picking the initial cluster centers for kmeans tree
(*this)["centers_init"] = centers_init;
// cluster boundary index. Used when searching the kmeans tree
(*this)["cb_index"] = cb_index;
}
};
/**
* Hierarchical kmeans index
*
* Contains a tree constructed through a hierarchical kmeans clustering
* and other information for indexing a set of points for nearest-neighbour matching.
*/
template <typename Distance>
class KMeansIndex : public NNIndex<Distance>
{
public:
typedef typename Distance::ElementType ElementType;
typedef typename Distance::ResultType DistanceType;
typedef NNIndex<Distance> BaseClass;
typedef bool needs_vector_space_distance;
flann_algorithm_t getType() const
{
return FLANN_INDEX_KMEANS;
}
/**
* Index constructor
*
* Params:
* inputData = dataset with the input features
* params = parameters passed to the hierarchical k-means algorithm
*/
KMeansIndex(const Matrix<ElementType>& inputData, const IndexParams& params = KMeansIndexParams(),
Distance d = Distance())
: BaseClass(params,d), root_(NULL), memoryCounter_(0)
{
branching_ = get_param(params,"branching",32);
iterations_ = get_param(params,"iterations",11);
if (iterations_<0) {
iterations_ = (std::numeric_limits<int>::max)();
}
centers_init_ = get_param(params,"centers_init",FLANN_CENTERS_RANDOM);
cb_index_ = get_param(params,"cb_index",0.4f);
initCenterChooser();
setDataset(inputData);
}
/**
* Index constructor
*
* Params:
* inputData = dataset with the input features
* params = parameters passed to the hierarchical k-means algorithm
*/
KMeansIndex(const IndexParams& params = KMeansIndexParams(), Distance d = Distance())
: BaseClass(params, d), root_(NULL), memoryCounter_(0)
{
branching_ = get_param(params,"branching",32);
iterations_ = get_param(params,"iterations",11);
if (iterations_<0) {
iterations_ = (std::numeric_limits<int>::max)();
}
centers_init_ = get_param(params,"centers_init",FLANN_CENTERS_RANDOM);
cb_index_ = get_param(params,"cb_index",0.4f);
initCenterChooser();
}
KMeansIndex(const KMeansIndex& other) : BaseClass(other),
branching_(other.branching_),
iterations_(other.iterations_),
centers_init_(other.centers_init_),
cb_index_(other.cb_index_),
memoryCounter_(other.memoryCounter_)
{
initCenterChooser();
copyTree(root_, other.root_);
}
KMeansIndex& operator=(KMeansIndex other)
{
this->swap(other);
return *this;
}
void initCenterChooser()
{
switch(centers_init_) {
case FLANN_CENTERS_RANDOM:
chooseCenters_ = new RandomCenterChooser<Distance>(distance_, points_);
break;
case FLANN_CENTERS_GONZALES:
chooseCenters_ = new GonzalesCenterChooser<Distance>(distance_, points_);
break;
case FLANN_CENTERS_KMEANSPP:
chooseCenters_ = new KMeansppCenterChooser<Distance>(distance_, points_);
break;
default:
throw FLANNException("Unknown algorithm for choosing initial centers.");
}
}
/**
* Index destructor.
*
* Release the memory used by the index.
*/
virtual ~KMeansIndex()
{
delete chooseCenters_;
freeIndex();
}
BaseClass* clone() const
{
return new KMeansIndex(*this);
}
void set_cb_index( float index)
{
cb_index_ = index;
}
/**
* Computes the inde memory usage
* Returns: memory used by the index
*/
int usedMemory() const
{
return pool_.usedMemory+pool_.wastedMemory+memoryCounter_;
}
using BaseClass::buildIndex;
void addPoints(const Matrix<ElementType>& points, float rebuild_threshold = 2)
{
assert(points.cols==veclen_);
size_t old_size = size_;
extendDataset(points);
if (rebuild_threshold>1 && size_at_build_*rebuild_threshold<size_) {
buildIndex();
}
else {
for (size_t i=0;i<points.rows;++i) {
DistanceType dist = distance_(root_->pivot, points[i], veclen_);
addPointToTree(root_, old_size + i, dist);
}
}
}
template<typename Archive>
void serialize(Archive& ar)
{
ar.setObject(this);
ar & *static_cast<NNIndex<Distance>*>(this);
ar & branching_;
ar & iterations_;
ar & memoryCounter_;
ar & cb_index_;
ar & centers_init_;
if (Archive::is_loading::value) {
root_ = new(pool_) Node();
}
ar & *root_;
if (Archive::is_loading::value) {
index_params_["algorithm"] = getType();
index_params_["branching"] = branching_;
index_params_["iterations"] = iterations_;
index_params_["centers_init"] = centers_init_;
index_params_["cb_index"] = cb_index_;
}
}
void saveIndex(FILE* stream)
{
serialization::SaveArchive sa(stream);
sa & *this;
}
void loadIndex(FILE* stream)
{
freeIndex();
serialization::LoadArchive la(stream);
la & *this;
}
/**
* Find set of nearest neighbors to vec. Their indices are stored inside
* the result object.
*
* Params:
* result = the result object in which the indices of the nearest-neighbors are stored
* vec = the vector for which to search the nearest neighbors
* searchParams = parameters that influence the search algorithm (checks, cb_index)
*/
void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& searchParams) const
{
if (removed_) {
findNeighborsWithRemoved<true>(result, vec, searchParams);
}
else {
findNeighborsWithRemoved<false>(result, vec, searchParams);
}
}
/**
* Clustering function that takes a cut in the hierarchical k-means
* tree and return the clusters centers of that clustering.
* Params:
* numClusters = number of clusters to have in the clustering computed
* Returns: number of cluster centers
*/
int getClusterCenters(Matrix<DistanceType>& centers)
{
int numClusters = centers.rows;
if (numClusters<1) {
throw FLANNException("Number of clusters must be at least 1");
}
DistanceType variance;
std::vector<NodePtr> clusters(numClusters);
int clusterCount = getMinVarianceClusters(root_, clusters, numClusters, variance);
Logger::info("Clusters requested: %d, returning %d\n",numClusters, clusterCount);
for (int i=0; i<clusterCount; ++i) {
DistanceType* center = clusters[i]->pivot;
for (size_t j=0; j<veclen_; ++j) {
centers[i][j] = center[j];
}
}
return clusterCount;
}
protected:
/**
* Builds the index
*/
void buildIndexImpl()
{
chooseCenters_->setDataSize(veclen_);
if (branching_<2) {
throw FLANNException("Branching factor must be at least 2");
}
std::vector<int> indices(size_);
for (size_t i=0; i<size_; ++i) {
indices[i] = int(i);
}
root_ = new(pool_) Node();
computeNodeStatistics(root_, indices);
computeClustering(root_, &indices[0], (int)size_, branching_);
}
private:
struct PointInfo
{
size_t index;
ElementType* point;
private:
template<typename Archive>
void serialize(Archive& ar)
{
typedef KMeansIndex<Distance> Index;
Index* obj = static_cast<Index*>(ar.getObject());
ar & index;
// ar & point;
if (Archive::is_loading::value) point = obj->points_[index];
}
friend struct serialization::access;
};
/**
* Struture representing a node in the hierarchical k-means tree.
*/
struct Node
{
/**
* The cluster center.
*/
DistanceType* pivot;
/**
* The cluster radius.
*/
DistanceType radius;
/**
* The cluster variance.
*/
DistanceType variance;
/**
* The cluster size (number of points in the cluster)
*/
int size;
/**
* Child nodes (only for non-terminal nodes)
*/
std::vector<Node*> childs;
/**
* Node points (only for terminal nodes)
*/
std::vector<PointInfo> points;
/**
* Level
*/
// int level;
~Node()
{
delete[] pivot;
if (!childs.empty()) {
for (size_t i=0; i<childs.size(); ++i) {
childs[i]->~Node();
}
}
}
template<typename Archive>
void serialize(Archive& ar)
{
typedef KMeansIndex<Distance> Index;
Index* obj = static_cast<Index*>(ar.getObject());
if (Archive::is_loading::value) {
delete[] pivot;
pivot = new DistanceType[obj->veclen_];
}
ar & serialization::make_binary_object(pivot, obj->veclen_*sizeof(DistanceType));
ar & radius;
ar & variance;
ar & size;
size_t childs_size;
if (Archive::is_saving::value) {
childs_size = childs.size();
}
ar & childs_size;
if (childs_size==0) {
ar & points;
}
else {
if (Archive::is_loading::value) {
childs.resize(childs_size);
}
for (size_t i=0;i<childs_size;++i) {
if (Archive::is_loading::value) {
childs[i] = new(obj->pool_) Node();
}
ar & *childs[i];
}
}
}
friend struct serialization::access;
};
typedef Node* NodePtr;
/**
* Alias definition for a nicer syntax.
*/
typedef BranchStruct<NodePtr, DistanceType> BranchSt;
/**
* Helper function
*/
void freeIndex()
{
if (root_) root_->~Node();
root_ = NULL;
pool_.free();
}
void copyTree(NodePtr& dst, const NodePtr& src)
{
dst = new(pool_) Node();
dst->pivot = new DistanceType[veclen_];
std::copy(src->pivot, src->pivot+veclen_, dst->pivot);
dst->radius = src->radius;
dst->variance = src->variance;
dst->size = src->size;
if (src->childs.size()==0) {
dst->points = src->points;
}
else {
dst->childs.resize(src->childs.size());
for (size_t i=0;i<src->childs.size();++i) {
copyTree(dst->childs[i], src->childs[i]);
}
}
}
/**
* Computes the statistics of a node (mean, radius, variance).
*
* Params:
* node = the node to use
* indices = the indices of the points belonging to the node
*/
void computeNodeStatistics(NodePtr node, const std::vector<int>& indices)
{
size_t size = indices.size();
DistanceType* mean = new DistanceType[veclen_];
memoryCounter_ += int(veclen_*sizeof(DistanceType));
memset(mean,0,veclen_*sizeof(DistanceType));
for (size_t i=0; i<size; ++i) {
ElementType* vec = points_[indices[i]];
for (size_t j=0; j<veclen_; ++j) {
mean[j] += vec[j];
}
}
DistanceType div_factor = DistanceType(1)/size;
for (size_t j=0; j<veclen_; ++j) {
mean[j] *= div_factor;
}
DistanceType radius = 0;
DistanceType variance = 0;
for (size_t i=0; i<size; ++i) {
DistanceType dist = distance_(mean, points_[indices[i]], veclen_);
if (dist>radius) {
radius = dist;
}
variance += dist;
}
variance /= size;
node->variance = variance;
node->radius = radius;
delete[] node->pivot;
node->pivot = mean;
}
/**
* The method responsible with actually doing the recursive hierarchical
* clustering
*
* Params:
* node = the node to cluster
* indices = indices of the points belonging to the current node
* branching = the branching factor to use in the clustering
*
* TODO: for 1-sized clusters don't store a cluster center (it's the same as the single cluster point)
*/
void computeClustering(NodePtr node, int* indices, int indices_length, int branching)
{
node->size = indices_length;
if (indices_length < branching) {
node->points.resize(indices_length);
for (int i=0;i<indices_length;++i) {
node->points[i].index = indices[i];
node->points[i].point = points_[indices[i]];
}
node->childs.clear();
return;
}
std::vector<int> centers_idx(branching);
int centers_length;
(*chooseCenters_)(branching, indices, indices_length, ¢ers_idx[0], centers_length);
if (centers_length<branching) {
node->points.resize(indices_length);
for (int i=0;i<indices_length;++i) {
node->points[i].index = indices[i];
node->points[i].point = points_[indices[i]];
}
node->childs.clear();
return;
}
Matrix<double> dcenters(new double[branching*veclen_],branching,veclen_);
for (int i=0; i<centers_length; ++i) {
ElementType* vec = points_[centers_idx[i]];
for (size_t k=0; k<veclen_; ++k) {
dcenters[i][k] = double(vec[k]);
}
}
std::vector<DistanceType> radiuses(branching,0);
std::vector<int> count(branching,0);
// assign points to clusters
std::vector<int> belongs_to(indices_length);
for (int i=0; i<indices_length; ++i) {
DistanceType sq_dist = distance_(points_[indices[i]], dcenters[0], veclen_);
belongs_to[i] = 0;
for (int j=1; j<branching; ++j) {
DistanceType new_sq_dist = distance_(points_[indices[i]], dcenters[j], veclen_);
if (sq_dist>new_sq_dist) {
belongs_to[i] = j;
sq_dist = new_sq_dist;
}
}
if (sq_dist>radiuses[belongs_to[i]]) {
radiuses[belongs_to[i]] = sq_dist;
}
count[belongs_to[i]]++;
}
bool converged = false;
int iteration = 0;
while (!converged && iteration<iterations_) {
converged = true;
iteration++;
// compute the new cluster centers
for (int i=0; i<branching; ++i) {
memset(dcenters[i],0,sizeof(double)*veclen_);
radiuses[i] = 0;
}
for (int i=0; i<indices_length; ++i) {
ElementType* vec = points_[indices[i]];
double* center = dcenters[belongs_to[i]];
for (size_t k=0; k<veclen_; ++k) {
center[k] += vec[k];
}
}
for (int i=0; i<branching; ++i) {
int cnt = count[i];
double div_factor = 1.0/cnt;
for (size_t k=0; k<veclen_; ++k) {
dcenters[i][k] *= div_factor;
}
}
// reassign points to clusters
for (int i=0; i<indices_length; ++i) {
DistanceType sq_dist = distance_(points_[indices[i]], dcenters[0], veclen_);
int new_centroid = 0;
for (int j=1; j<branching; ++j) {
DistanceType new_sq_dist = distance_(points_[indices[i]], dcenters[j], veclen_);
if (sq_dist>new_sq_dist) {
new_centroid = j;
sq_dist = new_sq_dist;
}
}
if (sq_dist>radiuses[new_centroid]) {
radiuses[new_centroid] = sq_dist;
}
if (new_centroid != belongs_to[i]) {
count[belongs_to[i]]--;
count[new_centroid]++;
belongs_to[i] = new_centroid;
converged = false;
}
}
for (int i=0; i<branching; ++i) {
// if one cluster converges to an empty cluster,
// move an element into that cluster
if (count[i]==0) {
int j = (i+1)%branching;
while (count[j]<=1) {
j = (j+1)%branching;
}
for (int k=0; k<indices_length; ++k) {
if (belongs_to[k]==j) {
belongs_to[k] = i;
count[j]--;
count[i]++;
break;
}
}
converged = false;
}
}
}
std::vector<DistanceType*> centers(branching);
for (int i=0; i<branching; ++i) {
centers[i] = new DistanceType[veclen_];
memoryCounter_ += veclen_*sizeof(DistanceType);
for (size_t k=0; k<veclen_; ++k) {
centers[i][k] = (DistanceType)dcenters[i][k];
}
}
// compute kmeans clustering for each of the resulting clusters
node->childs.resize(branching);
int start = 0;
int end = start;
for (int c=0; c<branching; ++c) {
int s = count[c];
DistanceType variance = 0;
for (int i=0; i<indices_length; ++i) {
if (belongs_to[i]==c) {
variance += distance_(centers[c], points_[indices[i]], veclen_);
std::swap(indices[i],indices[end]);
std::swap(belongs_to[i],belongs_to[end]);
end++;
}
}
variance /= s;
node->childs[c] = new(pool_) Node();
node->childs[c]->radius = radiuses[c];
node->childs[c]->pivot = centers[c];
node->childs[c]->variance = variance;
computeClustering(node->childs[c],indices+start, end-start, branching);
start=end;
}
delete[] dcenters.ptr();
}
template<bool with_removed>
void findNeighborsWithRemoved(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& searchParams) const
{
int maxChecks = searchParams.checks;
if (maxChecks==FLANN_CHECKS_UNLIMITED) {
findExactNN<with_removed>(root_, result, vec);
}
else {
// Priority queue storing intermediate branches in the best-bin-first search
int heapSize = (int)(result.capacity_*std::log((double)size_) / std::log((double)2));
if (heapSize > std::pow(2, std::log((double) size_) / std::log((double)2))) {
heapSize = std::pow(2, std::log((double) size_) / std::log((double)2));
}
Heap<BranchSt>* heap = new Heap<BranchSt>(heapSize);
int checks = 0;
findNN<with_removed>(root_, result, vec, checks, maxChecks, heap);
BranchSt branch;
while (heap->popMin(branch) && (checks<maxChecks || !result.full())) {
NodePtr node = branch.node;
findNN<with_removed>(node, result, vec, checks, maxChecks, heap);
}
delete heap;
}
}
/**
* Performs one descent in the hierarchical k-means tree. The branches not
* visited are stored in a priority queue.
*
* Params:
* node = node to explore
* result = container for the k-nearest neighbors found
* vec = query points
* checks = how many points in the dataset have been checked so far
* maxChecks = maximum dataset points to checks
*/
template<bool with_removed>
void findNN(NodePtr node, ResultSet<DistanceType>& result, const ElementType* vec, int& checks, int maxChecks,
Heap<BranchSt>* heap) const
{
// Ignore those clusters that are too far away
{
DistanceType bsq = distance_(vec, node->pivot, veclen_);
DistanceType rsq = node->radius;
DistanceType wsq = result.worstDist();
DistanceType val = bsq-rsq-wsq;
DistanceType val2 = val*val-4*rsq*wsq;
//if (val>0) {
if ((val>0)&&(val2>0)) {
return;
}
}
if (node->childs.empty()) {
if (checks>=maxChecks) {
if (result.full()) return;
}
for (int i=0; i<node->size; ++i) {
PointInfo& point_info = node->points[i];
int index = point_info.index;
if (with_removed) {
if (removed_points_.test(index)) continue;
}
DistanceType dist = distance_(point_info.point, vec, veclen_);
result.addPoint(dist, index);
++checks;
}
}
else {
int closest_center = exploreNodeBranches(node, vec, heap);
findNN<with_removed>(node->childs[closest_center],result,vec, checks, maxChecks, heap);
}
}
/**
* Helper function that computes the nearest childs of a node to a given query point.
* Params:
* node = the node
* q = the query point
* distances = array with the distances to each child node.
* Returns:
*/
int exploreNodeBranches(NodePtr node, const ElementType* q, Heap<BranchSt>* heap) const
{
std::vector<DistanceType> domain_distances(branching_);
int best_index = 0;
domain_distances[best_index] = distance_(q, node->childs[best_index]->pivot, veclen_);
for (int i=1; i<branching_; ++i) {
domain_distances[i] = distance_(q, node->childs[i]->pivot, veclen_);
if (domain_distances[i]<domain_distances[best_index]) {
best_index = i;
}
}
// float* best_center = node->childs[best_index]->pivot;
for (int i=0; i<branching_; ++i) {
if (i != best_index) {
domain_distances[i] -= cb_index_*node->childs[i]->variance;
// float dist_to_border = getDistanceToBorder(node.childs[i].pivot,best_center,q);
// if (domain_distances[i]<dist_to_border) {
// domain_distances[i] = dist_to_border;
// }
heap->insert(BranchSt(node->childs[i],domain_distances[i]));
}
}
return best_index;
}
/**
* Function the performs exact nearest neighbor search by traversing the entire tree.
*/
template<bool with_removed>
void findExactNN(NodePtr node, ResultSet<DistanceType>& result, const ElementType* vec) const
{
// Ignore those clusters that are too far away
{
DistanceType bsq = distance_(vec, node->pivot, veclen_);
DistanceType rsq = node->radius;
DistanceType wsq = result.worstDist();
DistanceType val = bsq-rsq-wsq;
DistanceType val2 = val*val-4*rsq*wsq;
// if (val>0) {
if ((val>0)&&(val2>0)) {
return;
}
}
if (node->childs.empty()) {
for (int i=0; i<node->size; ++i) {
PointInfo& point_info = node->points[i];
int index = point_info.index;
if (with_removed) {
if (removed_points_.test(index)) continue;
}
DistanceType dist = distance_(point_info.point, vec, veclen_);
result.addPoint(dist, index);
}
}
else {
std::vector<int> sort_indices(branching_);
getCenterOrdering(node, vec, sort_indices);
for (int i=0; i<branching_; ++i) {
findExactNN<with_removed>(node->childs[sort_indices[i]],result,vec);
}
}
}
/**
* Helper function.
*
* I computes the order in which to traverse the child nodes of a particular node.
*/
void getCenterOrdering(NodePtr node, const ElementType* q, std::vector<int>& sort_indices) const
{
std::vector<DistanceType> domain_distances(branching_);
for (int i=0; i<branching_; ++i) {
DistanceType dist = distance_(q, node->childs[i]->pivot, veclen_);
int j=0;
while (domain_distances[j]<dist && j<i) j++;
for (int k=i; k>j; --k) {
domain_distances[k] = domain_distances[k-1];
sort_indices[k] = sort_indices[k-1];
}
domain_distances[j] = dist;
sort_indices[j] = i;
}
}
/**
* Method that computes the squared distance from the query point q
* from inside region with center c to the border between this
* region and the region with center p
*/
DistanceType getDistanceToBorder(DistanceType* p, DistanceType* c, DistanceType* q) const
{
DistanceType sum = 0;
DistanceType sum2 = 0;
for (int i=0; i<veclen_; ++i) {
DistanceType t = c[i]-p[i];
sum += t*(q[i]-(c[i]+p[i])/2);
sum2 += t*t;
}
return sum*sum/sum2;
}
/**
* Helper function the descends in the hierarchical k-means tree by spliting those clusters that minimize
* the overall variance of the clustering.
* Params:
* root = root node
* clusters = array with clusters centers (return value)
* varianceValue = variance of the clustering (return value)
* Returns:
*/
int getMinVarianceClusters(NodePtr root, std::vector<NodePtr>& clusters, int clusters_length, DistanceType& varianceValue) const
{
int clusterCount = 1;
clusters[0] = root;
DistanceType meanVariance = root->variance*root->size;
while (clusterCount<clusters_length) {
DistanceType minVariance = (std::numeric_limits<DistanceType>::max)();
int splitIndex = -1;
for (int i=0; i<clusterCount; ++i) {
if (!clusters[i]->childs.empty()) {
DistanceType variance = meanVariance - clusters[i]->variance*clusters[i]->size;
for (int j=0; j<branching_; ++j) {
variance += clusters[i]->childs[j]->variance*clusters[i]->childs[j]->size;
}
if (variance<minVariance) {
minVariance = variance;
splitIndex = i;
}
}
}
if (splitIndex==-1) break;
if ( (branching_+clusterCount-1) > clusters_length) break;
meanVariance = minVariance;
// split node
NodePtr toSplit = clusters[splitIndex];
clusters[splitIndex] = toSplit->childs[0];
for (int i=1; i<branching_; ++i) {
clusters[clusterCount++] = toSplit->childs[i];
}
}
varianceValue = meanVariance/root->size;
return clusterCount;
}
void addPointToTree(NodePtr node, size_t index, DistanceType dist_to_pivot)
{
ElementType* point = points_[index];
if (dist_to_pivot>node->radius) {
node->radius = dist_to_pivot;
}
// if radius changed above, the variance will be an approximation
node->variance = (node->size*node->variance+dist_to_pivot)/(node->size+1);
node->size++;
if (node->childs.empty()) { // leaf node
PointInfo point_info;
point_info.index = index;
point_info.point = point;
node->points.push_back(point_info);
std::vector<int> indices(node->points.size());
for (size_t i=0;i<node->points.size();++i) {
indices[i] = node->points[i].index;
}
computeNodeStatistics(node, indices);
if (indices.size()>=size_t(branching_)) {
computeClustering(node, &indices[0], indices.size(), branching_);
}
}
else {
// find the closest child
int closest = 0;
DistanceType dist = distance_(node->childs[closest]->pivot, point, veclen_);
for (size_t i=1;i<size_t(branching_);++i) {
DistanceType crt_dist = distance_(node->childs[i]->pivot, point, veclen_);
if (crt_dist<dist) {
dist = crt_dist;
closest = i;
}
}
addPointToTree(node->childs[closest], index, dist);
}
}
void swap(KMeansIndex& other)
{
std::swap(branching_, other.branching_);
std::swap(iterations_, other.iterations_);
std::swap(centers_init_, other.centers_init_);
std::swap(cb_index_, other.cb_index_);
std::swap(root_, other.root_);
std::swap(pool_, other.pool_);
std::swap(memoryCounter_, other.memoryCounter_);
std::swap(chooseCenters_, other.chooseCenters_);
}
private:
/** The branching factor used in the hierarchical k-means clustering */
int branching_;
/** Maximum number of iterations to use when performing k-means clustering */
int iterations_;
/** Algorithm for choosing the cluster centers */
flann_centers_init_t centers_init_;
/**
* Cluster border index. This is used in the tree search phase when determining
* the closest cluster to explore next. A zero value takes into account only
* the cluster centres, a value greater then zero also take into account the size
* of the cluster.
*/
float cb_index_;
/**
* The root node in the tree.
*/
NodePtr root_;
/**
* Pooled memory allocator.
*/
PooledAllocator pool_;
/**
* Memory occupied by the index.
*/
int memoryCounter_;
/**
* Algorithm used to choose initial centers
*/
CenterChooser<Distance>* chooseCenters_;
USING_BASECLASS_SYMBOLS
};
}
#endif //FLANN_KMEANS_INDEX_H_
| [
"[email protected]"
] | |
f0ba296b5616ff566bf40d91c6773c3395b23ce0 | dca653bb975528bd1b8ab2547f6ef4f48e15b7b7 | /tags/wxPy-2.8.0.1/src/univ/themes/mono.cpp | 221a7162ff1bf471bc0d18b4c13f6174db0376a2 | [] | no_license | czxxjtu/wxPython-1 | 51ca2f62ff6c01722e50742d1813f4be378c0517 | 6a7473c258ea4105f44e31d140ea5c0ae6bc46d8 | refs/heads/master | 2021-01-15T12:09:59.328778 | 2015-01-05T20:55:10 | 2015-01-05T20:55:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,817 | cpp | ///////////////////////////////////////////////////////////////////////////////
// Name: src/univ/themes/mono.cpp
// Purpose: wxUniversal theme for monochrome displays
// Author: Vadim Zeitlin
// Modified by:
// Created: 2006-08-27
// RCS-ID: $Id$
// Copyright: (c) 2006 REA Elektronik GmbH
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ===========================================================================
// declarations
// ===========================================================================
// ---------------------------------------------------------------------------
// headers
// ---------------------------------------------------------------------------
// for compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/univ/theme.h"
#if wxUSE_THEME_MONO
#ifndef WX_PRECOMP
#include "wx/dc.h"
#endif // WX_PRECOMP
#include "wx/artprov.h"
#include "wx/univ/stdrend.h"
#include "wx/univ/inphand.h"
#include "wx/univ/colschem.h"
class wxMonoColourScheme;
#define wxMONO_BG_COL (*wxWHITE)
#define wxMONO_FG_COL (*wxBLACK)
// ----------------------------------------------------------------------------
// wxMonoRenderer: draw the GUI elements in simplest possible way
// ----------------------------------------------------------------------------
// Warning: many of the methods here are not implemented, the code won't work
// if any but a few wxUSE_XXXs are on
class wxMonoRenderer : public wxStdRenderer
{
public:
wxMonoRenderer(const wxColourScheme *scheme);
virtual void DrawButtonLabel(wxDC& dc,
const wxString& label,
const wxBitmap& image,
const wxRect& rect,
int flags = 0,
int alignment = wxALIGN_LEFT | wxALIGN_TOP,
int indexAccel = -1,
wxRect *rectBounds = NULL);
virtual void DrawFocusRect(wxDC& dc, const wxRect& rect, int flags = 0);
virtual void DrawButtonBorder(wxDC& dc,
const wxRect& rect,
int flags = 0,
wxRect *rectIn = NULL);
virtual void DrawHorizontalLine(wxDC& dc,
wxCoord y, wxCoord x1, wxCoord x2);
virtual void DrawVerticalLine(wxDC& dc,
wxCoord x, wxCoord y1, wxCoord y2);
virtual void DrawArrow(wxDC& dc,
wxDirection dir,
const wxRect& rect,
int flags = 0);
virtual void DrawScrollbarThumb(wxDC& dc,
wxOrientation orient,
const wxRect& rect,
int flags = 0);
virtual void DrawScrollbarShaft(wxDC& dc,
wxOrientation orient,
const wxRect& rect,
int flags = 0);
#if wxUSE_TOOLBAR
virtual void DrawToolBarButton(wxDC& dc,
const wxString& label,
const wxBitmap& bitmap,
const wxRect& rect,
int flags = 0,
long style = 0,
int tbarStyle = 0);
#endif // wxUSE_TOOLBAR
#if wxUSE_NOTEBOOK
virtual void DrawTab(wxDC& dc,
const wxRect& rect,
wxDirection dir,
const wxString& label,
const wxBitmap& bitmap = wxNullBitmap,
int flags = 0,
int indexAccel = -1);
#endif // wxUSE_NOTEBOOK
#if wxUSE_SLIDER
virtual void DrawSliderShaft(wxDC& dc,
const wxRect& rect,
int lenThumb,
wxOrientation orient,
int flags = 0,
long style = 0,
wxRect *rectShaft = NULL);
virtual void DrawSliderThumb(wxDC& dc,
const wxRect& rect,
wxOrientation orient,
int flags = 0,
long style = 0);
virtual void DrawSliderTicks(wxDC& dc,
const wxRect& rect,
int lenThumb,
wxOrientation orient,
int start,
int end,
int step = 1,
int flags = 0,
long style = 0);
#endif // wxUSE_SLIDER
#if wxUSE_MENUS
virtual void DrawMenuBarItem(wxDC& dc,
const wxRect& rect,
const wxString& label,
int flags = 0,
int indexAccel = -1);
virtual void DrawMenuItem(wxDC& dc,
wxCoord y,
const wxMenuGeometryInfo& geometryInfo,
const wxString& label,
const wxString& accel,
const wxBitmap& bitmap = wxNullBitmap,
int flags = 0,
int indexAccel = -1);
virtual void DrawMenuSeparator(wxDC& dc,
wxCoord y,
const wxMenuGeometryInfo& geomInfo);
#endif // wxUSE_MENUS
#if wxUSE_COMBOBOX
virtual void GetComboBitmaps(wxBitmap *bmpNormal,
wxBitmap *bmpFocus,
wxBitmap *bmpPressed,
wxBitmap *bmpDisabled);
#endif // wxUSE_COMBOBOX
virtual wxRect GetBorderDimensions(wxBorder border) const;
#if wxUSE_SCROLLBAR
virtual wxSize GetScrollbarArrowSize() const { return GetStdBmpSize(); }
#endif // wxUSE_SCROLLBAR
virtual wxSize GetCheckBitmapSize() const { return GetStdBmpSize(); }
virtual wxSize GetRadioBitmapSize() const { return GetStdBmpSize(); }
#if wxUSE_TOOLBAR
virtual wxSize GetToolBarButtonSize(wxCoord *separator) const;
virtual wxSize GetToolBarMargin() const;
#endif // wxUSE_TOOLBAR
#if wxUSE_NOTEBOOK
virtual wxSize GetTabIndent() const;
virtual wxSize GetTabPadding() const;
#endif // wxUSE_NOTEBOOK
#if wxUSE_SLIDER
virtual wxCoord GetSliderDim() const;
virtual wxCoord GetSliderTickLen() const;
virtual wxRect GetSliderShaftRect(const wxRect& rect,
int lenThumb,
wxOrientation orient,
long style = 0) const;
virtual wxSize GetSliderThumbSize(const wxRect& rect,
int lenThumb,
wxOrientation orient) const;
#endif // wxUSE_SLIDER
virtual wxSize GetProgressBarStep() const;
#if wxUSE_MENUS
virtual wxSize GetMenuBarItemSize(const wxSize& sizeText) const;
virtual wxMenuGeometryInfo *GetMenuGeometry(wxWindow *win,
const wxMenu& menu) const;
#endif // wxUSE_MENUS
#if wxUSE_STATUSBAR
virtual wxCoord GetStatusBarBorderBetweenFields() const;
virtual wxSize GetStatusBarFieldMargins() const;
#endif // wxUSE_STATUSBAR
protected:
// override base class border drawing routines: we always draw just a
// single simple border
void DrawSimpleBorder(wxDC& dc, wxRect *rect)
{ DrawRect(dc, rect, m_penFg); }
virtual void DrawRaisedBorder(wxDC& dc, wxRect *rect)
{ DrawSimpleBorder(dc, rect); }
virtual void DrawSunkenBorder(wxDC& dc, wxRect *rect)
{ DrawSimpleBorder(dc, rect); }
virtual void DrawAntiSunkenBorder(wxDC& dc, wxRect *rect)
{ DrawSimpleBorder(dc, rect); }
virtual void DrawBoxBorder(wxDC& dc, wxRect *rect)
{ DrawSimpleBorder(dc, rect); }
virtual void DrawStaticBorder(wxDC& dc, wxRect *rect)
{ DrawSimpleBorder(dc, rect); }
virtual void DrawExtraBorder(wxDC& WXUNUSED(dc), wxRect * WXUNUSED(rect))
{ /* no extra borders for us */ }
// all our XPMs are of this size
static wxSize GetStdBmpSize() { return wxSize(8, 8); }
wxBitmap GetIndicator(IndicatorType indType, int flags);
virtual wxBitmap GetCheckBitmap(int flags)
{ return GetIndicator(IndicatorType_Check, flags); }
virtual wxBitmap GetRadioBitmap(int flags)
{ return GetIndicator(IndicatorType_Radio, flags); }
virtual wxBitmap GetFrameButtonBitmap(FrameButtonType type);
virtual int GetFrameBorderWidth(int flags) const;
private:
// the bitmaps returned by GetIndicator()
wxBitmap m_bmpIndicators[IndicatorType_MaxCtrl]
[IndicatorState_MaxCtrl]
[IndicatorStatus_Max];
static const char **ms_xpmIndicators[IndicatorType_MaxCtrl]
[IndicatorState_MaxCtrl]
[IndicatorStatus_Max];
// the arrow bitmaps used by DrawArrow()
wxBitmap m_bmpArrows[Arrow_Max];
static const char **ms_xpmArrows[Arrow_Max];
// the close bitmap for the frame for GetFrameButtonBitmap()
wxBitmap m_bmpFrameClose;
// pen used for foreground drawing
wxPen m_penFg;
};
// ----------------------------------------------------------------------------
// standard bitmaps
// ----------------------------------------------------------------------------
static const char *xpmUnchecked[] = {
/* columns rows colors chars-per-pixel */
"8 8 2 1",
" c white",
"X c black",
/* pixels */
"XXXXXXXX",
"X X",
"X X",
"X X",
"X X",
"X X",
"X X",
"XXXXXXXX",
};
static const char *xpmChecked[] = {
/* columns rows colors chars-per-pixel */
"8 8 2 1",
" c white",
"X c black",
/* pixels */
"XXXXXXXX",
"X X",
"X X X X",
"X XX X",
"X XX X",
"X X X X",
"X X",
"XXXXXXXX",
};
static const char *xpmUndeterminate[] = {
/* columns rows colors chars-per-pixel */
"8 8 2 1",
" c white",
"X c black",
/* pixels */
"XXXXXXXX",
"X X X XX",
"XX X X X",
"X X X XX",
"XX X X X",
"X X X XX",
"XX X X X",
"XXXXXXXX",
};
static const char *xpmRadioUnchecked[] = {
/* columns rows colors chars-per-pixel */
"8 8 2 1",
" c white",
"X c black",
/* pixels */
"XXXXXXXX",
"X X",
"X XX X",
"X X X X",
"X X X X",
"X XX X",
"X X",
"XXXXXXXX",
};
static const char *xpmRadioChecked[] = {
/* columns rows colors chars-per-pixel */
"8 8 2 1",
" c white",
"X c black",
/* pixels */
"XXXXXXXX",
"X X",
"X XX X",
"X XXXX X",
"X XXXX X",
"X XX X",
"X X",
"XXXXXXXX",
};
const char **wxMonoRenderer::ms_xpmIndicators[IndicatorType_MaxCtrl]
[IndicatorState_MaxCtrl]
[IndicatorStatus_Max] =
{
// checkboxes first
{
// normal state
{ xpmChecked, xpmUnchecked, xpmUndeterminate },
// pressed state
{ xpmUndeterminate, xpmUndeterminate, xpmUndeterminate },
// disabled state
{ xpmUndeterminate, xpmUndeterminate, xpmUndeterminate },
},
// radio
{
// normal state
{ xpmRadioChecked, xpmRadioUnchecked, xpmUndeterminate },
// pressed state
{ xpmUndeterminate, xpmUndeterminate, xpmUndeterminate },
// disabled state
{ xpmUndeterminate, xpmUndeterminate, xpmUndeterminate },
},
};
static const char *xpmLeftArrow[] = {
/* columns rows colors chars-per-pixel */
"8 8 2 1",
" c white",
"X c black",
/* pixels */
" X ",
" XX ",
" XXX ",
"XXXX ",
"XXXX ",
" XXX ",
" XX ",
" X ",
};
static const char *xpmRightArrow[] = {
/* columns rows colors chars-per-pixel */
"8 8 2 1",
" c white",
"X c black",
/* pixels */
" X ",
" XX ",
" XXX ",
" XXXX",
" XXXX",
" XXX ",
" XX ",
" X ",
};
static const char *xpmUpArrow[] = {
/* columns rows colors chars-per-pixel */
"8 8 2 1",
" c white",
"X c black",
/* pixels */
" ",
" XX ",
" XXXX ",
" XXXXXX ",
"XXXXXXXX",
" ",
" ",
" ",
};
static const char *xpmDownArrow[] = {
/* columns rows colors chars-per-pixel */
"8 8 2 1",
" c white",
"X c black",
/* pixels */
" ",
" ",
" ",
"XXXXXXXX",
" XXXXXX ",
" XXXX ",
" XX ",
" ",
};
const char **wxMonoRenderer::ms_xpmArrows[Arrow_Max] =
{
xpmLeftArrow, xpmRightArrow, xpmUpArrow, xpmDownArrow,
};
// ----------------------------------------------------------------------------
// wxMonoColourScheme: uses just white and black
// ----------------------------------------------------------------------------
class wxMonoColourScheme : public wxColourScheme
{
public:
// we use only 2 colours, white and black, but we avoid referring to them
// like this, instead use the functions below
wxColour GetFg() const { return wxMONO_FG_COL; }
wxColour GetBg() const { return wxMONO_BG_COL; }
// implement base class pure virtuals
virtual wxColour Get(StdColour col) const;
virtual wxColour GetBackground(wxWindow *win) const;
};
// ----------------------------------------------------------------------------
// wxMonoArtProvider
// ----------------------------------------------------------------------------
class wxMonoArtProvider : public wxArtProvider
{
protected:
virtual wxBitmap CreateBitmap(const wxArtID& id,
const wxArtClient& client,
const wxSize& size);
};
// ----------------------------------------------------------------------------
// wxMonoTheme
// ----------------------------------------------------------------------------
class wxMonoTheme : public wxTheme
{
public:
wxMonoTheme();
virtual ~wxMonoTheme();
virtual wxRenderer *GetRenderer();
virtual wxArtProvider *GetArtProvider();
virtual wxInputHandler *GetInputHandler(const wxString& control,
wxInputConsumer *consumer);
virtual wxColourScheme *GetColourScheme();
private:
wxMonoRenderer *m_renderer;
wxMonoArtProvider *m_artProvider;
wxMonoColourScheme *m_scheme;
WX_DECLARE_THEME(mono)
};
// ============================================================================
// implementation
// ============================================================================
WX_IMPLEMENT_THEME(wxMonoTheme, mono, wxTRANSLATE("Simple monochrome theme"));
// ----------------------------------------------------------------------------
// wxMonoTheme
// ----------------------------------------------------------------------------
wxMonoTheme::wxMonoTheme()
{
m_scheme = NULL;
m_renderer = NULL;
m_artProvider = NULL;
}
wxMonoTheme::~wxMonoTheme()
{
delete m_renderer;
delete m_scheme;
delete m_artProvider;
}
wxRenderer *wxMonoTheme::GetRenderer()
{
if ( !m_renderer )
{
m_renderer = new wxMonoRenderer(GetColourScheme());
}
return m_renderer;
}
wxArtProvider *wxMonoTheme::GetArtProvider()
{
if ( !m_artProvider )
{
m_artProvider = new wxMonoArtProvider;
}
return m_artProvider;
}
wxColourScheme *wxMonoTheme::GetColourScheme()
{
if ( !m_scheme )
{
m_scheme = new wxMonoColourScheme;
}
return m_scheme;
}
wxInputHandler *wxMonoTheme::GetInputHandler(const wxString& WXUNUSED(control),
wxInputConsumer *consumer)
{
// no special input handlers so far
return consumer->DoGetStdInputHandler(NULL);
}
// ============================================================================
// wxMonoColourScheme
// ============================================================================
wxColour wxMonoColourScheme::GetBackground(wxWindow *win) const
{
wxColour col;
if ( win->UseBgCol() )
{
// use the user specified colour
col = win->GetBackgroundColour();
}
// doesn't depend on the state
if ( !col.Ok() )
{
col = GetBg();
}
return col;
}
wxColour wxMonoColourScheme::Get(wxMonoColourScheme::StdColour col) const
{
switch ( col )
{
case WINDOW:
case CONTROL:
case CONTROL_PRESSED:
case CONTROL_CURRENT:
case SCROLLBAR:
case SCROLLBAR_PRESSED:
case GAUGE:
case TITLEBAR:
case TITLEBAR_ACTIVE:
case HIGHLIGHT_TEXT:
case DESKTOP:
return GetBg();
case MAX:
default:
wxFAIL_MSG(_T("invalid standard colour"));
// fall through
case SHADOW_DARK:
case SHADOW_HIGHLIGHT:
case SHADOW_IN:
case SHADOW_OUT:
case CONTROL_TEXT:
case CONTROL_TEXT_DISABLED:
case CONTROL_TEXT_DISABLED_SHADOW:
case TITLEBAR_TEXT:
case TITLEBAR_ACTIVE_TEXT:
case HIGHLIGHT:
return GetFg();
}
}
// ============================================================================
// wxMonoRenderer
// ============================================================================
// ----------------------------------------------------------------------------
// construction
// ----------------------------------------------------------------------------
wxMonoRenderer::wxMonoRenderer(const wxColourScheme *scheme)
: wxStdRenderer(scheme)
{
m_penFg = wxPen(wxMONO_FG_COL);
}
// ----------------------------------------------------------------------------
// borders
// ----------------------------------------------------------------------------
wxRect wxMonoRenderer::GetBorderDimensions(wxBorder border) const
{
wxCoord width;
switch ( border )
{
case wxBORDER_SIMPLE:
case wxBORDER_STATIC:
case wxBORDER_RAISED:
case wxBORDER_SUNKEN:
width = 1;
break;
case wxBORDER_DOUBLE:
width = 2;
break;
default:
wxFAIL_MSG(_T("unknown border type"));
// fall through
case wxBORDER_DEFAULT:
case wxBORDER_NONE:
width = 0;
break;
}
wxRect rect;
rect.x =
rect.y =
rect.width =
rect.height = width;
return rect;
}
void wxMonoRenderer::DrawButtonBorder(wxDC& dc,
const wxRect& rect,
int flags,
wxRect *rectIn)
{
DrawBorder(dc, wxBORDER_SIMPLE, rect, flags, rectIn);
}
// ----------------------------------------------------------------------------
// lines and frames
// ----------------------------------------------------------------------------
void
wxMonoRenderer::DrawHorizontalLine(wxDC& dc, wxCoord y, wxCoord x1, wxCoord x2)
{
dc.SetPen(m_penFg);
dc.DrawLine(x1, y, x2 + 1, y);
}
void
wxMonoRenderer::DrawVerticalLine(wxDC& dc, wxCoord x, wxCoord y1, wxCoord y2)
{
dc.SetPen(m_penFg);
dc.DrawLine(x, y1, x, y2 + 1);
}
void wxMonoRenderer::DrawFocusRect(wxDC& dc, const wxRect& rect, int flags)
{
// no need to draw the focus rect for selected items, it would be invisible
// anyhow
if ( !(flags & wxCONTROL_SELECTED) )
{
dc.SetPen(m_penFg);
dc.SetBrush(*wxTRANSPARENT_BRUSH);
dc.DrawRectangle(rect);
}
}
// ----------------------------------------------------------------------------
// label
// ----------------------------------------------------------------------------
void wxMonoRenderer::DrawButtonLabel(wxDC& dc,
const wxString& label,
const wxBitmap& image,
const wxRect& rect,
int flags,
int alignment,
int indexAccel,
wxRect *rectBounds)
{
dc.SetTextForeground(m_penFg.GetColour());
dc.DrawLabel(label, image, rect, alignment, indexAccel, rectBounds);
if ( flags & wxCONTROL_DISABLED )
{
// this is ugly but I don't know how to show disabled button visually
// in monochrome theme otherwise, so cross it out
dc.SetPen(m_penFg);
dc.DrawLine(rect.GetTopLeft(), rect.GetBottomRight());
dc.DrawLine(rect.GetTopRight(), rect.GetBottomLeft());
}
}
// ----------------------------------------------------------------------------
// bitmaps
// ----------------------------------------------------------------------------
wxBitmap wxMonoRenderer::GetIndicator(IndicatorType indType, int flags)
{
IndicatorState indState;
IndicatorStatus indStatus;
GetIndicatorsFromFlags(flags, indState, indStatus);
wxBitmap& bmp = m_bmpIndicators[indType][indState][indStatus];
if ( !bmp.Ok() )
{
const char **xpm = ms_xpmIndicators[indType][indState][indStatus];
if ( xpm )
{
// create and cache it
bmp = wxBitmap(xpm);
}
}
return bmp;
}
wxBitmap wxMonoRenderer::GetFrameButtonBitmap(FrameButtonType type)
{
if ( type == FrameButton_Close )
{
if ( !m_bmpFrameClose.Ok() )
{
static const char *xpmFrameClose[] = {
/* columns rows colors chars-per-pixel */
"8 8 2 1",
" c white",
"X c black",
/* pixels */
" ",
" XX XX ",
" X X ",
" XX ",
" XX ",
" X X ",
" XX XX ",
" ",
};
m_bmpFrameClose = wxBitmap(xpmFrameClose);
}
return m_bmpFrameClose;
}
// we don't show any other buttons than close
return wxNullBitmap;
}
// ----------------------------------------------------------------------------
// toolbar
// ----------------------------------------------------------------------------
#if wxUSE_TOOLBAR
void wxMonoRenderer::DrawToolBarButton(wxDC& WXUNUSED(dc),
const wxString& WXUNUSED(label),
const wxBitmap& WXUNUSED(bitmap),
const wxRect& WXUNUSED(rect),
int WXUNUSED(flags),
long WXUNUSED(style),
int WXUNUSED(tbarStyle))
{
wxFAIL_MSG(_T("TODO"));
}
wxSize wxMonoRenderer::GetToolBarButtonSize(wxCoord *WXUNUSED(separator)) const
{
wxFAIL_MSG(_T("TODO"));
return wxSize();
}
wxSize wxMonoRenderer::GetToolBarMargin() const
{
wxFAIL_MSG(_T("TODO"));
return wxSize();
}
#endif // wxUSE_TOOLBAR
// ----------------------------------------------------------------------------
// notebook
// ----------------------------------------------------------------------------
#if wxUSE_NOTEBOOK
void wxMonoRenderer::DrawTab(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
wxDirection WXUNUSED(dir),
const wxString& WXUNUSED(label),
const wxBitmap& WXUNUSED(bitmap),
int WXUNUSED(flags),
int WXUNUSED(indexAccel))
{
wxFAIL_MSG(_T("TODO"));
}
wxSize wxMonoRenderer::GetTabIndent() const
{
wxFAIL_MSG(_T("TODO"));
return wxSize();
}
wxSize wxMonoRenderer::GetTabPadding() const
{
wxFAIL_MSG(_T("TODO"));
return wxSize();
}
#endif // wxUSE_NOTEBOOK
// ----------------------------------------------------------------------------
// combobox
// ----------------------------------------------------------------------------
#if wxUSE_COMBOBOX
void wxMonoRenderer::GetComboBitmaps(wxBitmap *WXUNUSED(bmpNormal),
wxBitmap *WXUNUSED(bmpFocus),
wxBitmap *WXUNUSED(bmpPressed),
wxBitmap *WXUNUSED(bmpDisabled))
{
wxFAIL_MSG(_T("TODO"));
}
#endif // wxUSE_COMBOBOX
// ----------------------------------------------------------------------------
// menus
// ----------------------------------------------------------------------------
#if wxUSE_MENUS
void wxMonoRenderer::DrawMenuBarItem(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
const wxString& WXUNUSED(label),
int WXUNUSED(flags),
int WXUNUSED(indexAccel))
{
wxFAIL_MSG(_T("TODO"));
}
void wxMonoRenderer::DrawMenuItem(wxDC& WXUNUSED(dc),
wxCoord WXUNUSED(y),
const wxMenuGeometryInfo& WXUNUSED(geometryInfo),
const wxString& WXUNUSED(label),
const wxString& WXUNUSED(accel),
const wxBitmap& WXUNUSED(bitmap),
int WXUNUSED(flags),
int WXUNUSED(indexAccel))
{
wxFAIL_MSG(_T("TODO"));
}
void wxMonoRenderer::DrawMenuSeparator(wxDC& WXUNUSED(dc),
wxCoord WXUNUSED(y),
const wxMenuGeometryInfo& WXUNUSED(geomInfo))
{
wxFAIL_MSG(_T("TODO"));
}
wxSize wxMonoRenderer::GetMenuBarItemSize(const wxSize& WXUNUSED(sizeText)) const
{
wxFAIL_MSG(_T("TODO"));
return wxSize();
}
wxMenuGeometryInfo *wxMonoRenderer::GetMenuGeometry(wxWindow *WXUNUSED(win),
const wxMenu& WXUNUSED(menu)) const
{
wxFAIL_MSG(_T("TODO"));
return NULL;
}
#endif // wxUSE_MENUS
// ----------------------------------------------------------------------------
// slider
// ----------------------------------------------------------------------------
#if wxUSE_SLIDER
void wxMonoRenderer::DrawSliderShaft(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
int WXUNUSED(lenThumb),
wxOrientation WXUNUSED(orient),
int WXUNUSED(flags),
long WXUNUSED(style),
wxRect *WXUNUSED(rectShaft))
{
wxFAIL_MSG(_T("TODO"));
}
void wxMonoRenderer::DrawSliderThumb(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
wxOrientation WXUNUSED(orient),
int WXUNUSED(flags),
long WXUNUSED(style))
{
wxFAIL_MSG(_T("TODO"));
}
void wxMonoRenderer::DrawSliderTicks(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
int WXUNUSED(lenThumb),
wxOrientation WXUNUSED(orient),
int WXUNUSED(start),
int WXUNUSED(end),
int WXUNUSED(step),
int WXUNUSED(flags),
long WXUNUSED(style))
{
wxFAIL_MSG(_T("TODO"));
}
wxCoord wxMonoRenderer::GetSliderDim() const
{
wxFAIL_MSG(_T("TODO"));
return 0;
}
wxCoord wxMonoRenderer::GetSliderTickLen() const
{
wxFAIL_MSG(_T("TODO"));
return 0;
}
wxRect wxMonoRenderer::GetSliderShaftRect(const wxRect& WXUNUSED(rect),
int WXUNUSED(lenThumb),
wxOrientation WXUNUSED(orient),
long WXUNUSED(style)) const
{
wxFAIL_MSG(_T("TODO"));
return wxRect();
}
wxSize wxMonoRenderer::GetSliderThumbSize(const wxRect& WXUNUSED(rect),
int WXUNUSED(lenThumb),
wxOrientation WXUNUSED(orient)) const
{
wxFAIL_MSG(_T("TODO"));
return wxSize();
}
#endif // wxUSE_SLIDER
wxSize wxMonoRenderer::GetProgressBarStep() const
{
wxFAIL_MSG(_T("TODO"));
return wxSize();
}
// ----------------------------------------------------------------------------
// scrollbar
// ----------------------------------------------------------------------------
void wxMonoRenderer::DrawArrow(wxDC& dc,
wxDirection dir,
const wxRect& rect,
int WXUNUSED(flags))
{
ArrowDirection arrowDir = GetArrowDirection(dir);
wxCHECK_RET( arrowDir != Arrow_Max, _T("invalid arrow direction") );
wxBitmap& bmp = m_bmpArrows[arrowDir];
if ( !bmp.Ok() )
{
bmp = wxBitmap(ms_xpmArrows[arrowDir]);
}
wxRect rectArrow(0, 0, bmp.GetWidth(), bmp.GetHeight());
dc.DrawBitmap(bmp, rectArrow.CentreIn(rect).GetPosition(), true /* use mask */);
}
void wxMonoRenderer::DrawScrollbarThumb(wxDC& dc,
wxOrientation WXUNUSED(orient),
const wxRect& rect,
int WXUNUSED(flags))
{
DrawSolidRect(dc, wxMONO_BG_COL, rect);
// manually draw stipple pattern (wxDFB doesn't implement the wxSTIPPLE
// brush style):
dc.SetPen(m_penFg);
for ( wxCoord y = rect.GetTop(); y <= rect.GetBottom(); y++ )
{
for ( wxCoord x = rect.GetLeft() + (y % 2); x <= rect.GetRight(); x+=2 )
{
dc.DrawPoint(x, y);
}
}
}
void wxMonoRenderer::DrawScrollbarShaft(wxDC& dc,
wxOrientation WXUNUSED(orient),
const wxRect& rect,
int WXUNUSED(flags))
{
DrawSolidRect(dc, wxMONO_BG_COL, rect);
}
// ----------------------------------------------------------------------------
// status bar
// ----------------------------------------------------------------------------
#if wxUSE_STATUSBAR
wxCoord wxMonoRenderer::GetStatusBarBorderBetweenFields() const
{
return 1;
}
wxSize wxMonoRenderer::GetStatusBarFieldMargins() const
{
return wxSize(1, 1);
}
#endif // wxUSE_STATUSBAR
// ----------------------------------------------------------------------------
// top level windows
// ----------------------------------------------------------------------------
int wxMonoRenderer::GetFrameBorderWidth(int WXUNUSED(flags)) const
{
// all our borders are simple
return 1;
}
// ----------------------------------------------------------------------------
// wxMonoArtProvider
// ----------------------------------------------------------------------------
wxBitmap wxMonoArtProvider::CreateBitmap(const wxArtID& WXUNUSED(id),
const wxArtClient& WXUNUSED(client),
const wxSize& WXUNUSED(size))
{
return wxNullBitmap;
}
#endif // wxUSE_THEME_MONO
| [
"RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775"
] | RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 |
3a52467c4efbda1ed22fade7fc75d6809a53e47e | ead060e34bca1cdbdbc7497f98bef1977e16d0f4 | /Slambook/ch9/src/config.cpp | c853c62bb85c5c635b5ade086b3b6fc14514b809 | [] | no_license | Stevenhyh1/Slam | 0dad83dcc6b3222598d070997614d9dc627e3af2 | cdf0aedc15ab087316687fa36ac91936df1fedc8 | refs/heads/master | 2022-11-21T09:23:55.275857 | 2020-07-27T14:58:45 | 2020-07-27T14:58:45 | 245,870,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 651 | cpp | #include "config.h"
namespace myvo{
void Config::setParameterFile( const std::string& filename)
{
if ( config_ == nullptr )
config_ = shared_ptr<Config>(new Config);
config_->file_ = cv::FileStorage( filename.c_str(), cv::FileStorage::READ );
if ( config_->file_.isOpened() == false )
{
std::cerr<<"parameter file "<<filename<<" does not exist."<<std::endl;
config_->file_.release();
return;
}
}
Config::~Config()
{
if ( file_.isOpened() )
file_.release();
}
shared_ptr<Config> Config::config_ = nullptr;
} | [
"[email protected]"
] | |
20611f385379914b97054029c67a3a41c365aa3e | 6c996ca5146bd307a062f38819acec16d710656f | /workspace/iw8/code_source/src/online/fence_manager.cpp | 605ac3384b21128cd510444cd4c319757cc72713 | [] | no_license | Omn1z/OpenIW8 | d46f095d4d743d1d8657f7e396e6d3cf944aa562 | 6c01a9548e4d5f7e1185369a62846f2c6f8304ba | refs/heads/main | 2023-08-15T22:43:01.627895 | 2021-10-10T20:44:57 | 2021-10-10T20:44:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 59,985 | cpp | /*
==============
FenceManager_GetStatusStringForFenceIndex
==============
*/
void __fastcall FenceManager_GetStatusStringForFenceIndex(int controllerIndex, const int fenceIndex, char *fenceStatusString, const int maxLength)
{
?FenceManager_GetStatusStringForFenceIndex@@YAXHHPEADH@Z(controllerIndex, fenceIndex, fenceStatusString, maxLength);
}
/*
==============
FenceManager_Init
==============
*/
void FenceManager_Init(void)
{
?FenceManager_Init@@YAXXZ();
}
/*
==============
FenceManager_PrintStatusStringForAllFences
==============
*/
void __fastcall FenceManager_PrintStatusStringForAllFences(int controllerIndex)
{
?FenceManager_PrintStatusStringForAllFences@@YAXH@Z(controllerIndex);
}
/*
==============
FenceManager_Frame
==============
*/
void FenceManager_Frame(void)
{
?FenceManager_Frame@@YAXXZ();
}
/*
==============
FenceManager_IsFencePassing
==============
*/
bool __fastcall FenceManager_IsFencePassing(int controllerIndex, FenceType fenceType)
{
return ?FenceManager_IsFencePassing@@YA_NHW4FenceType@@@Z(controllerIndex, fenceType);
}
/*
==============
FenceManager_GetStatusStringForRootFenceNotPassing
==============
*/
void __fastcall FenceManager_GetStatusStringForRootFenceNotPassing(int controllerIndex, FenceType fenceType, char *fenceStatusString, const int maxLength)
{
?FenceManager_GetStatusStringForRootFenceNotPassing@@YAXHW4FenceType@@PEADH@Z(controllerIndex, fenceType, fenceStatusString, maxLength);
}
/*
==============
FenceManager_RegisterForFenceDependenciesUpdatesForController
==============
*/
void __fastcall FenceManager_RegisterForFenceDependenciesUpdatesForController(int controllerIndex, FenceType fenceType, void (__fastcall *callback)(int, bool))
{
?FenceManager_RegisterForFenceDependenciesUpdatesForController@@YAXHW4FenceType@@P6AXH_N@Z@Z(controllerIndex, fenceType, callback);
}
/*
==============
FenceManager_ResetFenceObjectsForController
==============
*/
void __fastcall FenceManager_ResetFenceObjectsForController(int controllerIndex, bool shouldClearCallbacks)
{
?FenceManager_ResetFenceObjectsForController@@YAXH_N@Z(controllerIndex, shouldClearCallbacks);
}
/*
==============
FenceManager_IsFencePassingForAllControllers
==============
*/
bool __fastcall FenceManager_IsFencePassingForAllControllers(FenceType fenceType)
{
return ?FenceManager_IsFencePassingForAllControllers@@YA_NW4FenceType@@@Z(fenceType);
}
/*
==============
FenceManager_AreDependenciesMet
==============
*/
bool __fastcall FenceManager_AreDependenciesMet(int controllerIndex, FenceType fenceType)
{
return ?FenceManager_AreDependenciesMet@@YA_NHW4FenceType@@@Z(controllerIndex, fenceType);
}
/*
==============
FenceManager_GetRootFenceNotPassingForFenceType
==============
*/
int __fastcall FenceManager_GetRootFenceNotPassingForFenceType(int controllerIndex, FenceType fenceType)
{
return ?FenceManager_GetRootFenceNotPassingForFenceType@@YAHHW4FenceType@@@Z(controllerIndex, fenceType);
}
/*
==============
FenceManager_GetRetailDebug
==============
*/
void __fastcall FenceManager_GetRetailDebug(char *destString, const int maxLength)
{
?FenceManager_GetRetailDebug@@YAXPEADH@Z(destString, maxLength);
}
/*
==============
FenceManager_ResetFenceObjectForControllerByType
==============
*/
void __fastcall FenceManager_ResetFenceObjectForControllerByType(int controllerIndex, FenceType fenceType, bool shouldClearCallbacks)
{
?FenceManager_ResetFenceObjectForControllerByType@@YAXHW4FenceType@@_N@Z(controllerIndex, fenceType, shouldClearCallbacks);
}
/*
==============
FenceManager_IsFenceFailed
==============
*/
bool __fastcall FenceManager_IsFenceFailed(int controllerIndex, FenceType fenceType)
{
return ?FenceManager_IsFenceFailed@@YA_NHW4FenceType@@@Z(controllerIndex, fenceType);
}
/*
==============
FenceManager_RegisterFence
==============
*/
void __fastcall FenceManager_RegisterFence(FenceType fenceType, FenceObject *fence)
{
?FenceManager_RegisterFence@@YAXW4FenceType@@PEAUFenceObject@@@Z(fenceType, fence);
}
/*
==============
FenceManager_RegisterForFenceDependenciesUpdatesForAllControllers
==============
*/
void __fastcall FenceManager_RegisterForFenceDependenciesUpdatesForAllControllers(FenceType fenceType, void (__fastcall *callback)(int, bool))
{
?FenceManager_RegisterForFenceDependenciesUpdatesForAllControllers@@YAXW4FenceType@@P6AXH_N@Z@Z(fenceType, callback);
}
/*
==============
FenceManager_ResetAllControllers
==============
*/
void FenceManager_ResetAllControllers(void)
{
?FenceManager_ResetAllControllers@@YAXXZ();
}
/*
==============
FenceManager_GetStatusStringForAllFences
==============
*/
void __fastcall FenceManager_GetStatusStringForAllFences(int controllerIndex, char *fenceStatusString, const int maxLength)
{
?FenceManager_GetStatusStringForAllFences@@YAXHPEADH@Z(controllerIndex, fenceStatusString, maxLength);
}
/*
==============
FenceManager_AreDependenciesMetForAllControllers
==============
*/
bool __fastcall FenceManager_AreDependenciesMetForAllControllers(FenceType fenceType)
{
return ?FenceManager_AreDependenciesMetForAllControllers@@YA_NW4FenceType@@@Z(fenceType);
}
/*
==============
FenceManager_DrawDebug
==============
*/
void __fastcall FenceManager_DrawDebug(const int controllerIndex, const CgDrawDebug *drawDebug)
{
?FenceManager_DrawDebug@@YAXHPEBVCgDrawDebug@@@Z(controllerIndex, drawDebug);
}
/*
==============
FenceManager_GetErrorCode
==============
*/
int __fastcall FenceManager_GetErrorCode(int controllerIndex, FenceType fenceType)
{
return ?FenceManager_GetErrorCode@@YAHHW4FenceType@@@Z(controllerIndex, fenceType);
}
/*
==============
FenceManager_IsFenceComplete
==============
*/
bool __fastcall FenceManager_IsFenceComplete(int controllerIndex, FenceType fenceType)
{
return ?FenceManager_IsFenceComplete@@YA_NHW4FenceType@@@Z(controllerIndex, fenceType);
}
/*
==============
FenceManager_GetFenceIndexForFenceType
==============
*/
int __fastcall FenceManager_GetFenceIndexForFenceType(FenceType fenceType)
{
return ?FenceManager_GetFenceIndexForFenceType@@YAHW4FenceType@@@Z(fenceType);
}
/*
==============
FenceManager_ResetFenceObjectForControllerByIndex
==============
*/
void __fastcall FenceManager_ResetFenceObjectForControllerByIndex(int controllerIndex, int fenceIndex, bool shouldClearCallbacks)
{
?FenceManager_ResetFenceObjectForControllerByIndex@@YAXHH_N@Z(controllerIndex, fenceIndex, shouldClearCallbacks);
}
/*
==============
FenceManager_ResetFenceObjectForControllers
==============
*/
void __fastcall FenceManager_ResetFenceObjectForControllers(FenceType fenceType, bool shouldClearCallbacks)
{
?FenceManager_ResetFenceObjectForControllers@@YAXW4FenceType@@_N@Z(fenceType, shouldClearCallbacks);
}
/*
==============
FenceManager_AreDependenciesMet
==============
*/
_BOOL8 FenceManager_AreDependenciesMet(int controllerIndex, FenceType fenceType)
{
__int64 v3;
float v4;
float v5;
float v6;
unsigned int v7;
FenceObject *v8;
__int64 v10;
__int64 v11;
int v12;
v3 = controllerIndex;
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 308, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
v4 = (float)fenceType;
if ( fenceType < 0 )
{
v5 = (float)fenceType;
v4 = v5 + 1.8446744e19;
}
v6 = log2f(v4);
v7 = (int)(float)(v6 + 0.5);
if ( v7 >= 0x1F )
{
v12 = 31;
LODWORD(v10) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 311, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v10, v12) )
__debugbreak();
}
v8 = s_fenceObjects[v3][v7];
if ( v8->m_controllerIndex >= 8u )
{
LODWORD(v11) = 8;
LODWORD(v10) = v8->m_controllerIndex;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 247, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v10, v11) )
__debugbreak();
}
return v8->m_dependenciesMet;
}
/*
==============
FenceManager_AreDependenciesMetForAllControllers
==============
*/
char FenceManager_AreDependenciesMetForAllControllers(FenceType fenceType)
{
float v2;
float v3;
float v4;
unsigned int v5;
__int64 v6;
char *i;
__int64 v8;
__int64 v10;
__int64 v11;
int v12;
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 288, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
v2 = (float)fenceType;
if ( fenceType < 0 )
{
v3 = (float)fenceType;
v2 = v3 + 1.8446744e19;
}
v4 = log2f(v2);
v5 = (int)(float)(v4 + 0.5);
if ( v5 >= 0x1F )
{
v12 = 31;
LODWORD(v10) = (int)(float)(v4 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 291, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v10, v12) )
__debugbreak();
}
v6 = 0i64;
for ( i = (char *)s_fenceObjects + 8 * (int)v5; ; i += 248 )
{
v8 = *(_QWORD *)i;
if ( *(_DWORD *)(*(_QWORD *)i + 8i64) >= 8u )
{
LODWORD(v11) = 8;
LODWORD(v10) = *(_DWORD *)(*(_QWORD *)i + 8i64);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 247, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v10, v11) )
__debugbreak();
}
if ( !*(_BYTE *)(v8 + 12) )
break;
if ( ++v6 >= 8 )
return 1;
}
return 0;
}
/*
==============
FenceManager_DrawDebug
==============
*/
void FenceManager_DrawDebug(const int controllerIndex, const CgDrawDebug *drawDebug)
{
__int64 v2;
LocalClientNum_t ClientFromController;
bool v5;
const ScreenPlacement *v6;
__int128 v7;
const char **v8;
char *v9;
__int64 v10;
bool v11;
unsigned int v12;
unsigned int v13;
const vec4_t *color;
__int64 (__fastcall *v15)(__int64);
unsigned int v16;
unsigned int v17;
double v18;
__int128 v19;
char *text;
char *label;
char dest[64];
v2 = controllerIndex;
ClientFromController = CL_Mgr_GetClientFromController(controllerIndex);
if ( activeScreenPlacementMode )
{
if ( activeScreenPlacementMode == SCRMODE_DISPLAY )
{
v6 = &scrPlaceViewDisplay[ClientFromController];
goto LABEL_8;
}
if ( activeScreenPlacementMode == SCRMODE_INVALID )
v5 = CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\client\\screen_placement.h", 127, ASSERT_TYPE_ASSERT, (const char *)&queryFormat.fmt + 3, "ScrPlace_GetActivePlacement() called when outside of a valid render loop.");
else
v5 = CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\client\\screen_placement.h", 130, ASSERT_TYPE_ASSERT, (const char *)&queryFormat.fmt + 3, "Unsupported activeScreenPlacementMode");
if ( v5 )
__debugbreak();
}
v6 = &scrPlaceFull;
LABEL_8:
v7 = LODWORD(FLOAT_20_0);
v8 = s_fenceNames;
v9 = (char *)s_fenceObjects + 248 * v2 - (_QWORD)s_fenceNames;
do
{
v10 = *(__int64 *)((char *)v8 + (_QWORD)v9);
if ( *(_DWORD *)(v10 + 8) >= 8u )
{
LODWORD(label) = 8;
LODWORD(text) = *(_DWORD *)(v10 + 8);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 253, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", text, label) )
__debugbreak();
}
v11 = *(_BYTE *)(v10 + 13) || *(_BYTE *)(v10 + 14);
v12 = *(_DWORD *)(v10 + 8);
if ( !v11 )
{
*(_DWORD *)(v10 + 72) = 0;
if ( v12 >= 8 )
{
LODWORD(label) = 8;
LODWORD(text) = v12;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 247, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", text, label) )
__debugbreak();
}
v15 = **(__int64 (__fastcall ***)(__int64))v10;
if ( *(_BYTE *)(v10 + 12) )
{
v16 = v15(v10);
Com_sprintf<64>((char (*)[64])dest, "Active %d ", v16);
color = &colorGreen;
}
else
{
v17 = v15(v10);
Com_sprintf<64>((char (*)[64])dest, "Pending %d ", v17);
color = &colorWhite;
}
goto LABEL_33;
}
if ( v12 >= 8 )
{
LODWORD(label) = 8;
LODWORD(text) = *(_DWORD *)(v10 + 8);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 265, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", text, label) )
__debugbreak();
}
if ( *(_BYTE *)(v10 + 14) )
{
if ( !*(_DWORD *)(v10 + 72) )
*(_DWORD *)(v10 + 72) = Sys_Milliseconds();
if ( Sys_Milliseconds() - *(_DWORD *)(v10 + 72) < 5000 )
{
v13 = (**(__int64 (__fastcall ***)(__int64))v10)(v10);
Com_sprintf<64>((char (*)[64])dest, "Failed %d ", v13);
color = &colorRed;
LABEL_33:
v18 = CgDrawDebug::CornerPrint((CgDrawDebug *)drawDebug, v6, 75.0, *(float *)&v7, 50.0, dest, *v8, color);
v19 = v7;
*(float *)&v19 = *(float *)&v7 + *(float *)&v18;
v7 = v19;
}
}
++v8;
}
while ( (__int64)v8 < (__int64)&unk_147806438 );
}
/*
==============
FenceManager_Frame
==============
*/
void FenceManager_Frame(void)
{
int v0;
signed __int64 v1;
unsigned int v2;
const char **v3;
char v4;
__int64 *v5;
char v6;
char v7;
char v8;
void (__fastcall **v9)(_QWORD, _QWORD);
__int64 v10;
const char *v11;
__int64 v12;
__int64 v13;
__int64 v14;
__int64 v15;
const char *v16;
__int64 v17;
__int64 v18;
const char *v19;
__int64 v20;
__int64 v21;
int v22;
__int64 v23;
signed __int64 v24;
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 332, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
v0 = 0;
v22 = 0;
v1 = (char *)s_fenceObjects - (char *)s_fenceNames;
v23 = 0i64;
v24 = (char *)s_fenceObjects - (char *)s_fenceNames;
do
{
v2 = 0;
v3 = s_fenceNames;
v4 = 0;
do
{
if ( !*(const char **)((char *)v3 + v1) )
{
LODWORD(v21) = v2;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 337, ASSERT_TYPE_ASSERT, "(s_fenceObjects[controllerIndex][fenceIndex])", "%s\n\tFenceManager_Frame : Fence index %d (%s) is not registered with the fence manager", "s_fenceObjects[controllerIndex][fenceIndex]", v21, *v3) )
__debugbreak();
}
v5 = *(__int64 **)((char *)v3 + v1);
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 247, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
v6 = *((_BYTE *)v5 + 12);
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 259, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
v7 = *((_BYTE *)v5 + 13);
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 265, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
v8 = *((_BYTE *)v5 + 14);
(*(void (__fastcall **)(__int64 *, _QWORD, _QWORD))(*v5 + 16))(v5, *(unsigned __int64 *)((char *)s_passingFlags + v23), *(unsigned __int64 *)((char *)s_failedFlags + v23));
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 247, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
if ( v6 != *((_BYTE *)v5 + 12) )
{
v9 = (void (__fastcall **)(_QWORD, _QWORD))(v5 + 5);
v10 = 4i64;
do
{
if ( *v9 )
(*v9)(*((unsigned int *)v5 + 2), *((unsigned __int8 *)v5 + 12));
++v9;
--v10;
}
while ( v10 );
v11 = *v3;
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 247, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
v0 = v22;
LODWORD(v20) = v22;
Com_Printf(25, "FenceManager_Frame : Fence dependency changed to %d for fence index %d (%s), controller %d\n", *((unsigned __int8 *)v5 + 12), v2, v11, v20);
}
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 283, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 276, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
if ( *((_BYTE *)v5 + 32) && Live_UserIsGuest(*((_DWORD *)v5 + 2)) )
{
*((_BYTE *)v5 + 13) = 1;
}
else
{
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 247, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
if ( *((_BYTE *)v5 + 12) )
{
v12 = *v5;
*((_BYTE *)v5 + 13) = 1;
(*(void (__fastcall **)(__int64 *))(v12 + 8))(v5);
}
else
{
*((_BYTE *)v5 + 13) = 0;
}
}
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 259, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
if ( v7 == *((_BYTE *)v5 + 13) )
{
v13 = v23;
}
else
{
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 259, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
v13 = v23;
v14 = *(unsigned __int64 *)((char *)s_passingFlags + v23);
if ( *((_BYTE *)v5 + 13) )
v15 = v14 | (1i64 << v4);
else
v15 = v14 & ~(1i64 << v4);
v16 = *v3;
*(unsigned __int64 *)((char *)s_passingFlags + v23) = v15;
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 259, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
LODWORD(v20) = v0;
Com_Printf(25, "FenceManager_Frame : Fence is passing changed to %d for fence index %d (%s), controller %d\n", *((unsigned __int8 *)v5 + 13), v2, v16, v20);
}
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 265, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
if ( v8 != *((_BYTE *)v5 + 14) )
{
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 265, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
v17 = *(unsigned __int64 *)((char *)s_failedFlags + v13);
if ( *((_BYTE *)v5 + 14) )
v18 = v17 | (1i64 << v4);
else
v18 = v17 & ~(1i64 << v4);
v19 = *v3;
*(unsigned __int64 *)((char *)s_failedFlags + v13) = v18;
if ( *((_DWORD *)v5 + 2) >= 8u )
{
LODWORD(v21) = 8;
LODWORD(v20) = *((_DWORD *)v5 + 2);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 265, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v20, v21) )
__debugbreak();
}
LODWORD(v20) = v0;
Com_Printf(25, "FenceManager_Frame : Fence is failed changed to %d for fence index %d (%s), controller %d\n", *((unsigned __int8 *)v5 + 14), v2, v19, v20);
}
v1 = v24;
++v2;
++v4;
++v3;
}
while ( (int)v2 < 31 );
v22 = ++v0;
v1 = v24 + 248;
v23 = v13 + 8;
v24 += 248i64;
}
while ( v0 < 8 );
}
/*
==============
FenceManager_GetErrorCode
==============
*/
__int64 FenceManager_GetErrorCode(int controllerIndex, FenceType fenceType)
{
__int64 v3;
float v4;
float v5;
float v6;
unsigned int v7;
FenceObject *v8;
__int64 v10;
int v11;
v3 = controllerIndex;
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 320, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
v4 = (float)fenceType;
if ( fenceType < 0 )
{
v5 = (float)fenceType;
v4 = v5 + 1.8446744e19;
}
v6 = log2f(v4);
v7 = (int)(float)(v6 + 0.5);
if ( v7 >= 0x1F )
{
v11 = 31;
LODWORD(v10) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 323, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v10, v11) )
__debugbreak();
}
v8 = s_fenceObjects[v3][v7];
return v8->GetErrorCode(v8);
}
/*
==============
FenceManager_GetFenceIndexForFenceType
==============
*/
__int64 FenceManager_GetFenceIndexForFenceType(FenceType fenceType)
{
float v1;
float v2;
v1 = (float)fenceType;
if ( fenceType < 0 )
{
v2 = (float)fenceType;
v1 = v2 + 1.8446744e19;
}
return (unsigned int)(int)(float)(log2f(v1) + 0.5);
}
/*
==============
FenceManager_GetRetailDebug
==============
*/
void FenceManager_GetRetailDebug(char *destString, const int maxLength)
{
unsigned __int64 v3;
int ControllerFromClient;
unsigned int v5;
FenceObject **v6;
FenceObject *v7;
const char *v8;
__int64 v9;
__int64 v10;
v3 = maxLength;
ControllerFromClient = CL_Mgr_GetControllerFromClient(LOCAL_CLIENT_0);
if ( ControllerFromClient != -1 )
{
v5 = 0;
v6 = s_fenceObjects[ControllerFromClient];
do
{
v7 = *v6;
if ( (*v6)->m_controllerIndex >= 8u )
{
LODWORD(v10) = 8;
LODWORD(v9) = (*v6)->m_controllerIndex;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 247, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v9, v10) )
__debugbreak();
}
if ( !v7->m_dependenciesMet )
goto LABEL_26;
if ( v7->m_controllerIndex >= 8u )
{
LODWORD(v10) = 8;
LODWORD(v9) = v7->m_controllerIndex;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 259, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v9, v10) )
__debugbreak();
}
if ( v7->m_isPassing )
{
LABEL_26:
if ( v7->m_controllerIndex >= 8u )
{
LODWORD(v10) = 8;
LODWORD(v9) = v7->m_controllerIndex;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 247, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v9, v10) )
__debugbreak();
}
if ( v7->m_dependenciesMet )
{
if ( v7->m_controllerIndex >= 8u )
{
LODWORD(v10) = 8;
LODWORD(v9) = v7->m_controllerIndex;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 265, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v9, v10) )
__debugbreak();
}
if ( !v7->m_failed )
goto LABEL_23;
v8 = j_va("Fence %i: FAILED!\n", v5);
}
else
{
v8 = j_va("Fence %i: Pending\n", v5);
}
}
else
{
v8 = j_va("Fence %i: Active\n", v5);
}
I_strcat_truncate(destString, v3, v8);
LABEL_23:
++v5;
++v6;
}
while ( (int)v5 < 31 );
}
}
/*
==============
FenceManager_GetRootFenceNotPassingForFenceType
==============
*/
__int64 FenceManager_GetRootFenceNotPassingForFenceType(int controllerIndex, FenceType fenceType)
{
__int64 v2;
float v3;
float v4;
unsigned int v5;
__int64 v6;
__int64 v7;
__int64 v8;
__int64 v9;
FenceObject *v10;
int v11;
FenceObject **v12;
int v13;
__int64 v14;
__int64 v15;
int v16;
FenceObject **j;
unsigned __int64 m_fenceDependencies;
FenceObject *v19;
Online_ErrorReporting *InstancePtr;
__int64 v22;
__int64 v23;
unsigned __int64 v24;
FenceObject **i;
v2 = controllerIndex;
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED )
return 0xFFFFFFFFi64;
v3 = (float)fenceType;
if ( fenceType < 0 )
{
v4 = (float)fenceType;
v3 = v4 + 1.8446744e19;
}
v5 = (int)(float)(log2f(v3) + 0.5);
if ( v5 > 0x1E )
return 0xFFFFFFFFi64;
v6 = 31 * v2;
v7 = v2;
v8 = (int)v5;
v24 = 31 * v2;
v9 = 31 * v2 + (int)v5;
v10 = s_fenceObjects[0][v9];
if ( v10->m_controllerIndex >= 8u )
{
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 259, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v10->m_controllerIndex, 8) )
__debugbreak();
v6 = v24;
}
if ( v10->m_isPassing )
{
return (unsigned int)-1;
}
else
{
v11 = 0;
if ( s_fenceObjects[0][v9]->m_fenceDependencies )
{
v12 = s_fenceObjects[v7];
for ( i = v12; ; v12 = i )
{
v13 = 0;
v14 = v6 + v8;
v15 = 0i64;
v16 = v11;
for ( j = v12; ; ++j )
{
m_fenceDependencies = s_fenceObjects[0][v14]->m_fenceDependencies;
if ( _bittest64((const __int64 *)&m_fenceDependencies, (unsigned int)v13) )
{
v19 = *j;
if ( (*j)->m_controllerIndex >= 8u )
{
LODWORD(v23) = 8;
LODWORD(v22) = (*j)->m_controllerIndex;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 259, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v22, v23) )
__debugbreak();
}
if ( !v19->m_isPassing )
break;
}
++v13;
++v15;
if ( v13 >= 31 )
return v5;
}
++v11;
v5 = v13;
v8 = v15;
if ( v16 >= 31 )
break;
v6 = v24;
if ( !s_fenceObjects[v24 / 0x1F][v15]->m_fenceDependencies )
return v5;
}
InstancePtr = Online_ErrorReporting::GetInstancePtr();
Online_ErrorReporting::ReportError(InstancePtr, (Online_Error_CAT_DEFAULT_t)0x400000, NULL);
}
}
return v5;
}
/*
==============
FenceManager_GetStatusStringForAllFences
==============
*/
void FenceManager_GetStatusStringForAllFences(int controllerIndex, char *fenceStatusString, const int maxLength)
{
__int64 v4;
unsigned __int64 v5;
__int64 v6;
FenceObject *v7;
const char *v8;
unsigned int v9;
const char *v10;
bool v11;
int (__fastcall *GetErrorCode)(FenceObject *);
unsigned int v13;
unsigned int v14;
v4 = 0i64;
v5 = maxLength;
v6 = controllerIndex;
do
{
if ( (unsigned __int64)v4 <= 0x1E )
{
v7 = s_fenceObjects[v6][v4];
if ( FenceObject::IsComplete(v7) )
{
v8 = "3%d ";
if ( !FenceObject::IsFailed(v7) )
v8 = "0%d ";
v9 = v7->GetErrorCode(v7);
v10 = j_va(v8, v9);
}
else
{
v11 = FenceObject::AreDependenciesMet(v7);
GetErrorCode = v7->GetErrorCode;
if ( v11 )
{
v13 = GetErrorCode(v7);
v10 = j_va("1%d ", v13);
}
else
{
v14 = GetErrorCode(v7);
v10 = j_va("2%d ", v14);
}
}
I_strcat_truncate(fenceStatusString, v5, v10);
}
++v4;
}
while ( v4 < 31 );
}
/*
==============
FenceManager_GetStatusStringForFenceIndex
==============
*/
void FenceManager_GetStatusStringForFenceIndex(int controllerIndex, const int fenceIndex, char *fenceStatusString, const int maxLength)
{
unsigned __int64 v5;
FenceObject *v6;
const char *v7;
unsigned int v8;
const char *v9;
bool v10;
int (__fastcall *GetErrorCode)(FenceObject *);
unsigned int v12;
const char *v13;
unsigned int v14;
if ( (unsigned int)fenceIndex <= 0x1E )
{
v5 = maxLength;
v6 = s_fenceObjects[controllerIndex][fenceIndex];
if ( FenceObject::IsComplete(v6) )
{
v7 = "3%d ";
if ( !FenceObject::IsFailed(v6) )
v7 = "0%d ";
v8 = v6->GetErrorCode(v6);
v9 = j_va(v7, v8);
I_strcat_truncate(fenceStatusString, v5, v9);
}
else
{
v10 = FenceObject::AreDependenciesMet(v6);
GetErrorCode = v6->GetErrorCode;
if ( v10 )
{
v12 = GetErrorCode(v6);
v13 = j_va("1%d ", v12);
}
else
{
v14 = GetErrorCode(v6);
v13 = j_va("2%d ", v14);
}
I_strcat_truncate(fenceStatusString, v5, v13);
}
}
}
/*
==============
FenceManager_GetStatusStringForRootFenceNotPassing
==============
*/
void FenceManager_GetStatusStringForRootFenceNotPassing(int controllerIndex, FenceType fenceType, char *fenceStatusString, const int maxLength)
{
unsigned __int64 v4;
__int64 RootFenceNotPassingForFenceType;
const char *v8;
v4 = maxLength;
RootFenceNotPassingForFenceType = (unsigned int)FenceManager_GetRootFenceNotPassingForFenceType(controllerIndex, fenceType);
v8 = j_va("%02d", RootFenceNotPassingForFenceType);
I_strcat_truncate(fenceStatusString, v4, v8);
if ( (int)RootFenceNotPassingForFenceType >= 0 )
FenceManager_GetStatusStringForFenceIndex(controllerIndex, RootFenceNotPassingForFenceType, fenceStatusString, v4);
}
/*
==============
FenceManager_Init
==============
*/
void FenceManager_Init(void)
{
FenceObject **v0;
int i;
int j;
s_fenceManagerInitState = FENCE_MANAGER_INITING;
s_failedFlags[0] = 0i64;
v0 = &s_fenceObjects[0][2];
s_failedFlags[1] = 0i64;
s_failedFlags[2] = 0i64;
s_failedFlags[3] = 0i64;
s_failedFlags[4] = 0i64;
s_failedFlags[5] = 0i64;
s_failedFlags[6] = 0i64;
s_failedFlags[7] = 0i64;
s_passingFlags[0] = 0i64;
s_passingFlags[1] = 0i64;
s_passingFlags[2] = 0i64;
s_passingFlags[3] = 0i64;
s_passingFlags[4] = 0i64;
s_passingFlags[5] = 0i64;
s_passingFlags[6] = 0i64;
s_passingFlags[7] = 0i64;
do
{
*(v0 - 2) = NULL;
*(v0 - 1) = NULL;
*v0 = NULL;
v0[1] = NULL;
v0[2] = NULL;
v0[3] = NULL;
v0[4] = NULL;
v0[5] = NULL;
v0[6] = NULL;
v0[7] = NULL;
v0[8] = NULL;
v0[9] = NULL;
v0[10] = NULL;
v0[11] = NULL;
v0[12] = NULL;
v0[13] = NULL;
v0[14] = NULL;
v0[15] = NULL;
v0[16] = NULL;
v0[17] = NULL;
v0[18] = NULL;
v0[19] = NULL;
v0[20] = NULL;
v0[21] = NULL;
v0[22] = NULL;
v0[23] = NULL;
v0[24] = NULL;
v0[25] = NULL;
v0[26] = NULL;
v0[27] = NULL;
v0[28] = NULL;
v0 += 31;
}
while ( (__int64)v0 < (__int64)&s_passingFlags[2] );
FenceObjects_Init();
for ( i = 0; i < 8; ++i )
{
for ( j = 0; j < 31; ++j )
FenceManager_ResetFenceObjectForControllerByIndex(i, j, 1);
}
s_fenceManagerInitState = FENCE_MANAGER_INITED;
}
/*
==============
FenceManager_IsFenceComplete
==============
*/
bool FenceManager_IsFenceComplete(int controllerIndex, FenceType fenceType)
{
__int64 v3;
float v4;
float v5;
float v6;
int v7;
__int64 v8;
__int64 v10;
__int64 v11;
int v12;
v3 = controllerIndex;
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 225, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
if ( (unsigned int)v3 >= 8 )
{
v12 = 8;
LODWORD(v10) = v3;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 226, ASSERT_TYPE_ASSERT, "(unsigned)( controllerIndex ) < (unsigned)( 8 )", "controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v10, v12) )
__debugbreak();
}
v4 = (float)fenceType;
if ( fenceType < 0 )
{
v5 = (float)fenceType;
v4 = v5 + 1.8446744e19;
}
v6 = log2f(v4);
v7 = (int)(float)(v6 + 0.5);
if ( (unsigned int)v7 >= 0x1F )
{
LODWORD(v11) = 31;
LODWORD(v10) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 229, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v10, v11) )
__debugbreak();
}
v8 = v7 + 31 * v3;
if ( !s_fenceObjects[0][v8] )
{
LODWORD(v11) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 231, ASSERT_TYPE_ASSERT, "(s_fenceObjects[controllerIndex][fenceIndex])", "%s\n\tFenceManager_IsFencePassing : Fence index %d (%s) is not registered with the fence manager", "s_fenceObjects[controllerIndex][fenceIndex]", v11, s_fenceNames[v7]) )
__debugbreak();
}
return FenceObject::IsComplete(s_fenceObjects[0][v8]);
}
/*
==============
FenceManager_IsFenceFailed
==============
*/
_BOOL8 FenceManager_IsFenceFailed(int controllerIndex, FenceType fenceType)
{
__int64 v3;
float v4;
float v5;
float v6;
int v7;
__int64 v8;
FenceObject *v9;
__int64 v11;
__int64 v12;
int v13;
v3 = controllerIndex;
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 274, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
if ( (unsigned int)v3 >= 8 )
{
v13 = 8;
LODWORD(v11) = v3;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 275, ASSERT_TYPE_ASSERT, "(unsigned)( controllerIndex ) < (unsigned)( 8 )", "controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v11, v13) )
__debugbreak();
}
v4 = (float)fenceType;
if ( fenceType < 0 )
{
v5 = (float)fenceType;
v4 = v5 + 1.8446744e19;
}
v6 = log2f(v4);
v7 = (int)(float)(v6 + 0.5);
if ( (unsigned int)v7 >= 0x1F )
{
LODWORD(v12) = 31;
LODWORD(v11) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 278, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v11, v12) )
__debugbreak();
}
v8 = v7 + 31 * v3;
if ( !s_fenceObjects[0][v8] )
{
LODWORD(v12) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 280, ASSERT_TYPE_ASSERT, "(s_fenceObjects[controllerIndex][fenceIndex])", "%s\n\tFenceManager_IsFencePassing : Fence index %d (%s) is not registered with the fence manager", "s_fenceObjects[controllerIndex][fenceIndex]", v12, s_fenceNames[v7]) )
__debugbreak();
}
v9 = s_fenceObjects[0][v8];
if ( v9->m_controllerIndex >= 8u )
{
LODWORD(v12) = 8;
LODWORD(v11) = v9->m_controllerIndex;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 265, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v11, v12) )
__debugbreak();
}
return v9->m_failed;
}
/*
==============
FenceManager_IsFencePassing
==============
*/
bool FenceManager_IsFencePassing(int controllerIndex, FenceType fenceType)
{
__int64 v3;
float v4;
float v5;
float v6;
int v7;
__int64 v8;
FenceObject *v9;
__int64 v11;
__int64 v12;
v3 = controllerIndex;
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 239, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
if ( (unsigned int)v3 >= 8 )
{
LODWORD(v11) = v3;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 240, ASSERT_TYPE_ASSERT, "(unsigned)( controllerIndex ) < (unsigned)( 8 )", "controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v11, 8) )
__debugbreak();
}
v4 = (float)fenceType;
if ( fenceType < 0 )
{
v5 = (float)fenceType;
v4 = v5 + 1.8446744e19;
}
v6 = log2f(v4);
v7 = (int)(float)(v6 + 0.5);
if ( (unsigned int)v7 >= 0x1F )
{
LODWORD(v12) = 31;
LODWORD(v11) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 243, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v11, v12) )
__debugbreak();
}
v8 = v7 + 31 * v3;
if ( !s_fenceObjects[0][v8] )
{
LODWORD(v12) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 245, ASSERT_TYPE_ASSERT, "(s_fenceObjects[controllerIndex][fenceIndex])", "%s\n\tFenceManager_IsFencePassing : Fence index %d (%s) is not registered with the fence manager", "s_fenceObjects[controllerIndex][fenceIndex]", v12, s_fenceNames[v7]) )
__debugbreak();
}
v9 = s_fenceObjects[0][v8];
return v9 && FenceObject::IsPassing(v9);
}
/*
==============
FenceManager_IsFencePassingForAllControllers
==============
*/
char FenceManager_IsFencePassingForAllControllers(FenceType fenceType)
{
unsigned int v2;
float v3;
float v4;
__int64 i;
float v6;
int v7;
__int64 v8;
FenceObject *v9;
__int64 v11;
__int64 v12;
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 258, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
v2 = 0;
v3 = (float)fenceType;
if ( fenceType < 0 )
{
v4 = (float)fenceType;
v3 = v4 + 1.8446744e19;
}
for ( i = 0i64; ; i += 31i64 )
{
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 239, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
if ( v2 >= 8 )
{
LODWORD(v12) = 8;
LODWORD(v11) = v2;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 240, ASSERT_TYPE_ASSERT, "(unsigned)( controllerIndex ) < (unsigned)( 8 )", "controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v11, v12) )
__debugbreak();
}
v6 = log2f(v3);
v7 = (int)(float)(v6 + 0.5);
if ( (unsigned int)v7 >= 0x1F )
{
LODWORD(v12) = 31;
LODWORD(v11) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 243, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v11, v12) )
__debugbreak();
}
v8 = i + v7;
if ( !s_fenceObjects[0][v8] )
{
LODWORD(v12) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 245, ASSERT_TYPE_ASSERT, "(s_fenceObjects[controllerIndex][fenceIndex])", "%s\n\tFenceManager_IsFencePassing : Fence index %d (%s) is not registered with the fence manager", "s_fenceObjects[controllerIndex][fenceIndex]", v12, s_fenceNames[v7]) )
__debugbreak();
}
v9 = s_fenceObjects[0][v8];
if ( !v9 )
break;
if ( v9->m_controllerIndex >= 8u )
{
LODWORD(v12) = 8;
LODWORD(v11) = v9->m_controllerIndex;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.h", 259, ASSERT_TYPE_ASSERT, "(unsigned)( m_controllerIndex ) < (unsigned)( 8 )", "m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v11, v12) )
__debugbreak();
}
if ( !v9->m_isPassing )
break;
if ( (int)++v2 >= 8 )
return 1;
}
return 0;
}
/*
==============
FenceManager_PrintStatusStringForAllFences
==============
*/
void FenceManager_PrintStatusStringForAllFences(int controllerIndex)
{
int i;
char fenceStatusString[1024];
memset_0(fenceStatusString, 0, sizeof(fenceStatusString));
for ( i = 0; i < 31; ++i )
FenceManager_GetStatusStringForFenceIndex(controllerIndex, i, fenceStatusString, 1024);
Com_Printf(25, "FenceManager_PrintStatusStringForAllFences\n");
Com_Printf(25, "%s\n", fenceStatusString);
}
/*
==============
FenceManager_RegisterFence
==============
*/
void FenceManager_RegisterFence(FenceType fenceType, FenceObject *fence)
{
float v4;
float v5;
float v6;
int v7;
__int64 v8;
__int64 v9;
__int64 v10;
if ( s_fenceManagerInitState < FENCE_MANAGER_INITING && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 203, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState >= FENCE_MANAGER_INITING)", (const char *)&queryFormat, "s_fenceManagerInitState >= FENCE_MANAGER_INITING") )
__debugbreak();
if ( fence->m_controllerIndex >= 8u )
{
LODWORD(v9) = fence->m_controllerIndex;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 204, ASSERT_TYPE_ASSERT, "(unsigned)( fence->m_controllerIndex ) < (unsigned)( 8 )", "fence->m_controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v9, 8) )
__debugbreak();
}
v4 = (float)fenceType;
if ( fenceType < 0 )
{
v5 = (float)fenceType;
v4 = v5 + 1.8446744e19;
}
v6 = log2f(v4);
v7 = (int)(float)(v6 + 0.5);
if ( (unsigned int)v7 >= 0x1F )
{
LODWORD(v10) = 31;
LODWORD(v9) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 207, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v9, v10) )
__debugbreak();
}
v8 = v7 + 31i64 * fence->m_controllerIndex;
if ( s_fenceObjects[0][v8] )
{
LODWORD(v9) = (int)(float)(v6 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 211, ASSERT_TYPE_ASSERT, (const char *)&queryFormat.fmt + 3, "FenceManager_RegisterFence : fence index %d (%s) already has a registered object for controller %d\n", v9, s_fenceNames[v7], fence->m_controllerIndex) )
__debugbreak();
}
else
{
s_fenceObjects[0][v8] = fence;
}
}
/*
==============
FenceManager_RegisterForFenceDependenciesUpdatesForAllControllers
==============
*/
void FenceManager_RegisterForFenceDependenciesUpdatesForAllControllers(FenceType fenceType, void (*callback)(int, bool))
{
int v2;
float v4;
float v5;
__int64 v6;
float v7;
int v8;
__int64 v9;
FenceObject *v10;
int v11;
__int64 v12;
void (__fastcall **m_callbacks)(int, bool);
__int64 v14;
__int64 v15;
v2 = 0;
v4 = (float)fenceType;
if ( fenceType < 0 )
{
v5 = (float)fenceType;
v4 = v5 + 1.8446744e19;
}
v6 = 0i64;
do
{
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 180, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
if ( (unsigned int)v2 >= 8 )
{
LODWORD(v15) = 8;
LODWORD(v14) = v2;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 181, ASSERT_TYPE_ASSERT, "(unsigned)( controllerIndex ) < (unsigned)( 8 )", "controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v14, v15) )
__debugbreak();
}
v7 = log2f(v4);
v8 = (int)(float)(v7 + 0.5);
if ( (unsigned int)v8 >= 0x1F )
{
LODWORD(v15) = 31;
LODWORD(v14) = (int)(float)(v7 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 184, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v14, v15) )
__debugbreak();
}
v9 = v6 + v8;
if ( !s_fenceObjects[0][v9] )
{
LODWORD(v15) = (int)(float)(v7 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 185, ASSERT_TYPE_ASSERT, "(s_fenceObjects[controllerIndex][fenceIndex])", "%s\n\tFenceManager_RegisterForFenceDependenciesUpdatesForController: Fence index %d (%s) is not registered with the fence manager", "s_fenceObjects[controllerIndex][fenceIndex]", v15, s_fenceNames[v8]) )
__debugbreak();
}
v10 = s_fenceObjects[0][v9];
v11 = 0;
v12 = 0i64;
m_callbacks = v10->m_callbacks;
while ( *m_callbacks )
{
++v11;
++v12;
++m_callbacks;
if ( v12 >= 4 )
goto LABEL_21;
}
v10->m_callbacks[v12] = callback;
if ( v11 >= 0 )
goto LABEL_23;
LABEL_21:
LODWORD(v14) = (int)(float)(v7 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 196, ASSERT_TYPE_ASSERT, (const char *)&queryFormat.fmt + 3, "FenceManager_RegisterForFenceDependenciesUpdatesForController: No update callback slot found for fence index %d (%s)", v14, s_fenceNames[v8]) )
__debugbreak();
LABEL_23:
++v2;
v6 += 31i64;
}
while ( v2 < 8 );
}
/*
==============
FenceManager_RegisterForFenceDependenciesUpdatesForController
==============
*/
void FenceManager_RegisterForFenceDependenciesUpdatesForController(int controllerIndex, FenceType fenceType, void (*callback)(int, bool))
{
__int64 v5;
float v6;
float v7;
float v8;
int v9;
__int64 v10;
FenceObject *v11;
int v12;
__int64 v13;
void (__fastcall **m_callbacks)(int, bool);
__int64 v15;
__int64 v16;
int v17;
v5 = controllerIndex;
if ( s_fenceManagerInitState != FENCE_MANAGER_INITED && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 180, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState == FENCE_MANAGER_INITED)", (const char *)&queryFormat, "s_fenceManagerInitState == FENCE_MANAGER_INITED") )
__debugbreak();
if ( (unsigned int)v5 >= 8 )
{
v17 = 8;
LODWORD(v15) = v5;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 181, ASSERT_TYPE_ASSERT, "(unsigned)( controllerIndex ) < (unsigned)( 8 )", "controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v15, v17) )
__debugbreak();
}
v6 = (float)fenceType;
if ( fenceType < 0 )
{
v7 = (float)fenceType;
v6 = v7 + 1.8446744e19;
}
v8 = log2f(v6);
v9 = (int)(float)(v8 + 0.5);
if ( (unsigned int)v9 >= 0x1F )
{
LODWORD(v16) = 31;
LODWORD(v15) = (int)(float)(v8 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 184, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v15, v16) )
__debugbreak();
}
v10 = v9 + 31 * v5;
if ( !s_fenceObjects[0][v10] )
{
LODWORD(v16) = (int)(float)(v8 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 185, ASSERT_TYPE_ASSERT, "(s_fenceObjects[controllerIndex][fenceIndex])", "%s\n\tFenceManager_RegisterForFenceDependenciesUpdatesForController: Fence index %d (%s) is not registered with the fence manager", "s_fenceObjects[controllerIndex][fenceIndex]", v16, s_fenceNames[v9]) )
__debugbreak();
}
v11 = s_fenceObjects[0][v10];
v12 = 0;
v13 = 0i64;
m_callbacks = v11->m_callbacks;
while ( *m_callbacks )
{
++v12;
++v13;
++m_callbacks;
if ( v13 >= 4 )
goto LABEL_20;
}
v11->m_callbacks[v12] = callback;
if ( v12 >= 0 )
return;
LABEL_20:
LODWORD(v15) = (int)(float)(v8 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 196, ASSERT_TYPE_ASSERT, (const char *)&queryFormat.fmt + 3, "FenceManager_RegisterForFenceDependenciesUpdatesForController: No update callback slot found for fence index %d (%s)", v15, s_fenceNames[v9]) )
__debugbreak();
}
/*
==============
FenceManager_ResetAllControllers
==============
*/
void FenceManager_ResetAllControllers(void)
{
int i;
int j;
for ( i = 0; i < 8; ++i )
{
for ( j = 0; j < 31; ++j )
FenceManager_ResetFenceObjectForControllerByIndex(i, j, 1);
}
}
/*
==============
FenceManager_ResetFenceObjectForControllerByIndex
==============
*/
void FenceManager_ResetFenceObjectForControllerByIndex(int controllerIndex, int fenceIndex, bool shouldClearCallbacks)
{
__int64 v4;
__int64 v5;
FenceObject **v6;
FenceObject *v7;
__int64 v8;
__int64 v9;
int v10;
v4 = fenceIndex;
v5 = controllerIndex;
if ( s_fenceManagerInitState < FENCE_MANAGER_INITING && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 156, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState >= FENCE_MANAGER_INITING)", (const char *)&queryFormat, "s_fenceManagerInitState >= FENCE_MANAGER_INITING") )
__debugbreak();
if ( (unsigned int)v5 >= 8 )
{
v10 = 8;
LODWORD(v8) = v5;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 157, ASSERT_TYPE_ASSERT, "(unsigned)( controllerIndex ) < (unsigned)( 8 )", "controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v8, v10) )
__debugbreak();
}
if ( (unsigned int)v4 >= 0x1F )
{
LODWORD(v9) = 31;
LODWORD(v8) = v4;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 158, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v8, v9) )
__debugbreak();
}
v6 = &s_fenceObjects[v5][v4];
if ( !*v6 )
{
LODWORD(v9) = v4;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 159, ASSERT_TYPE_ASSERT, "(s_fenceObjects[controllerIndex][fenceIndex])", "%s\n\tFenceManager_ResetFenceObjectForControllerByIndex : Fence index %d (%s) is not registered with the fence manager", "s_fenceObjects[controllerIndex][fenceIndex]", v9, s_fenceNames[v4]) )
__debugbreak();
}
v7 = *v6;
*(_WORD *)&v7->m_dependenciesMet = 0;
v7->m_errorCode = 0;
v7->m_failed = 0;
v7->m_failureDrawTime = 0;
if ( shouldClearCallbacks )
{
v7->m_callbacks[0] = NULL;
v7->m_callbacks[1] = NULL;
v7->m_callbacks[2] = NULL;
v7->m_callbacks[3] = NULL;
}
}
/*
==============
FenceManager_ResetFenceObjectForControllerByType
==============
*/
void FenceManager_ResetFenceObjectForControllerByType(int controllerIndex, FenceType fenceType, bool shouldClearCallbacks)
{
float v5;
float v6;
float v7;
unsigned int v8;
int v9;
int v10;
v5 = (float)fenceType;
if ( fenceType < 0 )
{
v6 = (float)fenceType;
v5 = v6 + 1.8446744e19;
}
v7 = log2f(v5);
v8 = (int)(float)(v7 + 0.5);
if ( v8 >= 0x1F )
{
v10 = 31;
v9 = (int)(float)(v7 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 148, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v9, v10) )
__debugbreak();
}
FenceManager_ResetFenceObjectForControllerByIndex(controllerIndex, v8, shouldClearCallbacks);
}
/*
==============
FenceManager_ResetFenceObjectForControllers
==============
*/
void FenceManager_ResetFenceObjectForControllers(FenceType fenceType, bool shouldClearCallbacks)
{
float v3;
float v4;
float v5;
unsigned int v6;
int i;
int v8;
int v9;
v3 = (float)fenceType;
if ( fenceType < 0 )
{
v4 = (float)fenceType;
v3 = v4 + 1.8446744e19;
}
v5 = log2f(v3);
v6 = (int)(float)(v5 + 0.5);
if ( v6 >= 0x1F )
{
v9 = 31;
v8 = (int)(float)(v5 + 0.5);
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 127, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v8, v9) )
__debugbreak();
}
for ( i = 0; i < 8; ++i )
FenceManager_ResetFenceObjectForControllerByIndex(i, v6, shouldClearCallbacks);
}
/*
==============
FenceManager_ResetFenceObjectsForController
==============
*/
void FenceManager_ResetFenceObjectsForController(int controllerIndex, bool shouldClearCallbacks)
{
unsigned __int64 v3;
signed __int64 v4;
FenceObject **v6;
int i;
FenceObject *v8;
__int64 v9;
__int64 v10;
v3 = 248i64 * controllerIndex;
v4 = (char *)&s_fenceNames[v3 / 0xFFFFFFFFFFFFFFF8ui64] - (char *)s_fenceObjects;
v6 = s_fenceObjects[v3 / 0xF8];
for ( i = 0; i < 31; ++i )
{
if ( s_fenceManagerInitState < FENCE_MANAGER_INITING && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 156, ASSERT_TYPE_ASSERT, "(s_fenceManagerInitState >= FENCE_MANAGER_INITING)", (const char *)&queryFormat, "s_fenceManagerInitState >= FENCE_MANAGER_INITING") )
__debugbreak();
if ( (unsigned int)controllerIndex >= 8 )
{
LODWORD(v10) = 8;
LODWORD(v9) = controllerIndex;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 157, ASSERT_TYPE_ASSERT, "(unsigned)( controllerIndex ) < (unsigned)( 8 )", "controllerIndex doesn't index MAX_GPAD_COUNT\n\t%i not in [0, %i)", v9, v10) )
__debugbreak();
}
if ( (unsigned int)i >= 0x1F )
{
LODWORD(v10) = 31;
LODWORD(v9) = i;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 158, ASSERT_TYPE_ASSERT, "(unsigned)( fenceIndex ) < (unsigned)( 31 )", "fenceIndex doesn't index FENCE_COUNT\n\t%i not in [0, %i)", v9, v10) )
__debugbreak();
}
if ( !*v6 )
{
LODWORD(v10) = i;
if ( CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\online\\fence_manager.cpp", 159, ASSERT_TYPE_ASSERT, "(s_fenceObjects[controllerIndex][fenceIndex])", "%s\n\tFenceManager_ResetFenceObjectForControllerByIndex : Fence index %d (%s) is not registered with the fence manager", "s_fenceObjects[controllerIndex][fenceIndex]", v10, *(const char **)((char *)v6 + v4)) )
__debugbreak();
}
v8 = *v6;
*(_WORD *)&v8->m_dependenciesMet = 0;
v8->m_errorCode = 0;
v8->m_failed = 0;
v8->m_failureDrawTime = 0;
if ( shouldClearCallbacks )
{
v8->m_callbacks[0] = NULL;
v8->m_callbacks[1] = NULL;
v8->m_callbacks[2] = NULL;
v8->m_callbacks[3] = NULL;
}
++v6;
}
}
| [
"[email protected]"
] | |
f634162d380a10de6391689895088a30656d414b | 2a4d841aa312e1759f6cea6d66b4eaae81d67f99 | /candcpp/utils/Supervisor.cpp | 537bae6707ab55ef7203d5169c3648cea3890c86 | [] | no_license | amit-k-s-pundir/computing-programming | 9f8e136658322bb9a61e7160301c1a780cec84ca | 9104f371fe97c9cd3c9f9bcd4a06038b936500a4 | refs/heads/master | 2021-07-12T22:46:09.849331 | 2017-10-16T08:50:48 | 2017-10-16T08:50:48 | 106,879,266 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 825 | cpp | #include <unistd.h>
#include <stdlib.h>
#include <initializer_list>
#include <iostream>
#include <string>
#include "boost/asio.hpp"
#include "boost/chrono.hpp"
using namespace std;
using namespace boost;
class Supervisor{
public:
Supervisor();
void runProcess(Process process, Duration duration, int freq);
void runProcessInGroups(vector<string> processList, int groupSize);
};
void Supervisor::run_process(Process process, Duration duration, int freq){
pid_t pid = fork();
(if 0 == pid){// we are in child
}else{// we are in the parent
}
}
void Supervisor::runProcessInGroups(vector<string> processList, int groupSize){
div_t result = div(processList.size(), groupSize);
for(int i = 0; i < result.quot; ++i){
for(int j = i * groupSize; j < (i + 1) * groupSize; ++j){
runProcessGroup(
| [
"[email protected]"
] | |
e222e38191bfcdaa3995cbf6de9203ea0696e01d | dc933e6c4af6db8e5938612935bb51ead04da9b3 | /android-x86/external/opencore/fileformats/mp4/composer/include/decoderspecificinfo.h | 6ce0e7b550bf6a4e2fdc6f1e24a9fd474ce1313a | [] | no_license | leotfrancisco/patch-hosting-for-android-x86-support | 213f0b28a7171570a77a3cec48a747087f700928 | e932645af3ff9515bd152b124bb55479758c2344 | refs/heads/master | 2021-01-10T08:40:36.731838 | 2009-05-28T04:29:43 | 2009-05-28T04:29:43 | 51,474,005 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,967 | h | /* ------------------------------------------------------------------
* Copyright (C) 2008 PacketVideo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied.
* See the License for the specific language governing permissions
* and limitations under the License.
* -------------------------------------------------------------------
*/
/*********************************************************************************/
/*
This PVA_FF_DecoderSpecificInfo Class that holds the Mpeg4 VOL header for the
video stream
*/
#ifndef __DecoderSpecificInfo_H__
#define __DecoderSpecificInfo_H__
#include "basedescriptor.h"
#include "textsampledescinfo.h"
class PVA_FF_DecoderSpecificInfo : public PVA_FF_BaseDescriptor
{
public:
PVA_FF_DecoderSpecificInfo(); // Default constructor
PVA_FF_DecoderSpecificInfo(uint8 *pdata, uint32 size); // Constructor
PVA_FF_DecoderSpecificInfo(PVA_FF_TextSampleDescInfo *pdata, uint32 size); //Constructor for timed text case
virtual ~PVA_FF_DecoderSpecificInfo(); // Destructor
void addInfo(uint8 *info, uint32 size);
// Member get methods
uint32 getInfoSize() const
{
return _infoSize; // Returns the size of the info data
}
uint8 *getInfo() const
{
return _pinfo; // Returns the byte pointer to info
}
virtual bool renderToFileStream(MP4_AUTHOR_FF_FILE_IO_WRAP *fp);
virtual void recomputeSize();
private:
uint32 _infoSize;
uint8 *_pinfo;
};
#endif
| [
"beyounn@8848914e-2522-11de-9896-099eabac0e35"
] | beyounn@8848914e-2522-11de-9896-099eabac0e35 |
6a73df2c5ba21441014bc8f9b723cb4f220d769a | 32f3befacb387118c4d9859210323ce6448094ee | /Contest/ASC39/pG.cpp | 6cb55d3941d66e57c95312fead46c71d369c0f33 | [] | no_license | chmnchiang/bcw_codebook | 4e447e7d06538f3893e54a50fa5c1d6dcdcd0e01 | e09d704ea17bb602ff1661b76d47ef52d81e8072 | refs/heads/master | 2023-04-11T08:29:05.463394 | 2021-04-19T09:16:31 | 2021-04-19T09:16:31 | 20,440,425 | 15 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,654 | cpp | #include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#ifdef ONLINE_JUDGE
#define FILEIO(name) \
freopen(name".in", "r", stdin); \
freopen(name".out", "w", stdout);
#else
#define FILEIO(name)
#endif
template<typename A, typename B>
ostream& operator <<(ostream &s, const pair<A,B> &p) {
return s<<"("<<p.first<<","<<p.second<<")";
}
template<typename T>
ostream& operator <<(ostream &s, const vector<T> &c) {
s<<"[ ";
for (auto it : c) s << it << " ";
s<<"]";
return s;
}
// Let's Fight!
typedef long long ll;
const int MAXN = 514;
const ll MOD = 1000000007;
int N;
ll fact[MAXN];
ll ifact[MAXN];
ll inv(ll x)
{
ll p = MOD-2, cur = x, res = 1;
while(p)
{
if(p&1LL)
res = res * cur % MOD;
cur = cur * cur % MOD;
p >>= 1;
}
return res;
}
void pre()
{
fact[0] = 1;
for(int i=1; i<MAXN; i++)
fact[i] = (fact[i-1] * i) % MOD;
for(int i=0; i<MAXN; i++)
ifact[i] = inv(fact[i]);
}
ll calc(int a, int b, int c)
{
ll ret = (fact[N] * (a-c+2) * (a-b+1) * (b-c+1)) % MOD;
ret = ret * ifact[a+2] % MOD;
ret = ret * ifact[b+1] % MOD;
ret = ret * ifact[c] % MOD;
return ret;
}
int main() {
FILEIO("great");
pre();
IOS;
cin>>N;
ll ans = 0;
for(int a=0; a<=N; a++)
{
for(int b=0; b<=a; b++)
{
int c = N-a-b;
if(c < 0 || c > b) continue;
ll val = calc(a, b, c);
ans += val * val;
ans %= MOD;
}
}
cout<<ans<<endl;
return 0;
}
| [
"[email protected]"
] | |
6c07a18824777834799b63f9068a6473f8d8829c | d0bd359c088d643d6b367cbfc6ca61af3d8a0781 | /codeforces/919A : Supermarket.cpp | 37d3880ab3ddc254593d0d314be92ee7dfbf52a6 | [
"MIT"
] | permissive | him1411/algorithmic-coding-and-data-structures | 3ad7aefeb442e8b57e38dee00a62c65fccfebfdd | 685aa95539692daca68ce79c20467c335aa9bb7f | refs/heads/master | 2021-03-19T18:01:14.157771 | 2019-02-19T17:43:04 | 2019-02-19T17:43:04 | 112,864,817 | 0 | 2 | MIT | 2018-10-05T09:18:46 | 2017-12-02T18:05:57 | C++ | UTF-8 | C++ | false | false | 880 | cpp | #include <bits/stdc++.h>
#include<string.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define endl "\n"
#define Max(x,y,z) max(x,max(y,z))
#define Min(x,y,z) min(x,min(y,z))
#define ll long long
#define trace1(x) cerr<<#x<<": "<<x<<endl
#define trace2(x, y) cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z) cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
#define trace4(a, b, c, d) cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<endl
int32_t main()
{
IOS;
double n,m,a,b;
double temp,ans=0;
cin>>n>>m;
cin>>a>>b;
temp = a/b;
//cout<<temp<<endl;
for (int i = 0; i < n-1; ++i)
{
cin>>a>>b;
if ((a/b)<temp)
{
temp = a/b;
}
}
ans = temp * m;
cout<<setprecision(9)<<ans;
return 0;
} | [
"[email protected]"
] | |
4b7db38789eb1d71ff1dcfd2e1776dcfe2b4f9ee | 14dc92441df4cd20d19b2fe9dafce1bbdbad108c | /TpPDS/Consultas.cpp | 976cb9c4856e13b760eac73045c62ff7b9f425c3 | [] | no_license | oovalente/TP_Consultorio | 58f4bacef98f6d49a0a41ba2aeb9efe1a720603b | d0a4696f6644e1c6fdffd09b2b832ebd48b9fcf4 | refs/heads/master | 2022-05-09T09:32:24.103856 | 2019-12-07T07:16:56 | 2019-12-07T07:16:56 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,101 | cpp | #include "Consultas.h"
using namespace std;
void Consultas::CadastraConsulta() {
ArquivoConsulta* arq = new ArquivoConsulta("");
cout << "Digite a data: " << endl;
string stData;
cin >> stData;
arq->SetData(stData);
cout << "Digite o nome: " << endl;
string stNomePaciente;
cin >> stNomePaciente;
arq->SetNomePaciente(stNomePaciente);
cout << "Digite a modalidade: " << endl;
string stModalidade;
cin >> stModalidade;
arq->SetModalidade(stModalidade);
cout << "Digite a descricao: " << endl;
string stDescricao;
cin >> stDescricao;
arq->SetDescricao(stDescricao);
cout << "Digite se o exame já está marcado: " << endl;
string stExameMarcado;
cin >> stExameMarcado;
arq->SetExameMarcado(stExameMarcado);
arq->Cadastrar();
cout << "Consulta cadastrado com sucesso " << endl;
delete arq;
this->ImprimeOpcoesConsultas();
}
void Consultas::EditarConsulta() {
ArquivoConsulta* arq = new ArquivoConsulta("");
cout << "Digite a data: " << endl;
string stData;
cin >> stData;
arq->SetData(stData);
cout << "Digite o nome: " << endl;
string stNomePaciente;
cin >> stNomePaciente;
arq->SetNomePaciente(stNomePaciente);
cout << "Digite a modalidade: " << endl;
string stModalidade;
cin >> stModalidade;
arq->SetModalidade(stModalidade);
cout << "Digite a descricao: " << endl;
string stDescricao;
cin >> stDescricao;
arq->SetDescricao(stDescricao);
cout << "Digite se o exame já está marcado: " << endl;
string stExameMarcado;
cin >> stExameMarcado;
arq->SetExameMarcado(stExameMarcado);
arq->Editar();
cout << "Consulta alterada com sucesso " << endl;
delete arq;
this->ImprimeOpcoesConsultas();
}
void Consultas::ExcluirConsulta() {
ArquivoConsulta* arq = new ArquivoConsulta("");
cout << "Digite a data: " << endl;
string stData;
cin >> stData;
arq->SetData(stData);
cout << "Digite o nome: " << endl;
string stNomePaciente;
cin >> stNomePaciente;
arq->SetNomePaciente(stNomePaciente);
arq->Excluir();
cout << "Consulta alterado com sucesso " << endl;
delete arq;
this->ImprimeOpcoesConsultas();
}
void Consultas::PesquisarConsulta() {
ArquivoConsulta* arq = new ArquivoConsulta("");
cout << "Digite a data: " << endl;
string stData;
cin >> stData;
arq->SetData(stData);
cout << "Digite o nome: " << endl;
string stNomePaciente;
cin >> stNomePaciente;
arq->SetNomePaciente(stNomePaciente);
arq->Pesquisar();
delete arq;
this->ImprimeOpcoesConsultas();
}
void Consultas::ChamaOpcaoSelecionadaConsulta(int itOp) {
cout << "--------------------------------------------------------------" << endl;
switch (itOp)
{
case 1:
CadastraConsulta();
case 2:
EditarConsulta();
case 3:
ExcluirConsulta();
case 4:
PesquisarConsulta();
}
}
void Consultas::ImprimeOpcoesConsultas() {
cout << "Digite o número para as seguintes opções: " << endl;
cout << "1 - Cadastrar nova consulta " << endl;
cout << "2 - Editar consulta " << endl;
cout << "3 - Excluir consulta " << endl;
cout << "4 - Pesquisar consulta " << endl;
cout << "5 - Sair " << endl;
int itOp = 0;
cin >> itOp;
ChamaOpcaoSelecionadaConsulta(itOp);
} | [
"[email protected]"
] | |
2b1ec46f11bfdd4ed387452a98edc66e665b7547 | 9df24e9110f06ea1004588c87a908c68497b22c0 | /2016/51NOD/1094.cpp | 0268869ee5f0c942f5ddfba2f1f54bc6e2945add | [] | no_license | zhangz5434/code | b98f9df50f9ec687342737a4a2eaa9ef5bbf5579 | def5fdcdc19c01f34ab08c5f27fe9d1b7253ba4f | refs/heads/master | 2020-07-02T17:24:14.355545 | 2019-03-13T12:39:45 | 2019-03-13T12:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <map>
using namespace std;
const int MAXN=10005;
const int INF=(1<<30)-1;
int a[MAXN];
long long s[MAXN];
map<long long,int>Map;
int n,k;
int l,r;
void init()
{
scanf("%d%d",&n,&k);
for(int i=1;i<=n;i++)
scanf("%d",&a[i]),
s[i]=s[i-1]+a[i];
}
int main()
{
init();
int l=INF;
for(int i=0;i<=n;i++)
{
if(Map[s[i]-k]&&Map[s[i]-k]<l)
{
l=Map[s[i]-k];
r=i;
}
if(!Map[s[i]])
Map[s[i]]=i+1;
}
if(l==INF)
cout<<"No Solution"<<endl;
else
cout<<l<<" "<<r<<endl;
return 0;
}
| [
"[email protected]"
] | |
d5415e580ba82bea47b5e9e4b43f43be7c171f3a | c06ac91ab41f84a2f340a24e236d309efe2d88d7 | /main_test.cpp | 8ec28439c839886b459cb971b43d1803f8cc4458 | [
"MIT"
] | permissive | IamFake/ZPack | f21b4b34980e4c398858170cee56d22c6818c6d7 | 3292a86e517c52e295ca4dead8f659fc1b1a7983 | refs/heads/master | 2021-04-28T09:06:25.151612 | 2018-02-19T09:10:54 | 2018-02-19T09:10:54 | 122,032,394 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,392 | cpp | #include <gtest/gtest.h>
#include "zpack.h"
namespace {
TEST(General, CreateAndReadNewWithItem) {
std::string tempFileName = tmpnam(NULL);
std::string tempItemText = "AZZZAKAJSLKDNLAK SNDLK NSFLAKSNF ALKSFN ALKSFN ALKSFN LKFN ALSKNFALKSNFKsldknf";
ZPack pack1;
ZPack pack2;
pack1.open(tempFileName.c_str(), true);
pack1.packItem("special_item", tempItemText, "");
pack1.write();
pack1.close();
auto stats1 = pack1.getStats();
pack2.open(tempFileName.c_str());
pack2.write();
pack2.close();
auto stats2 = pack2.getStats();
remove(tempFileName.c_str());
ASSERT_EQ(stats1.archiveSize, stats2.archiveSize);
}
TEST(General, CreateAndExtract) {
std::string tempFileName = tmpnam(NULL);
std::string tempItemText = "AZZZAKAJSLKDNLAK SNDLK NSFLAKSNF ALKSFN ALKSFN ALKSFN LKFN ALSKNFALKSNFKsldknfSNDLK NSFLAKSNF "
"ALKSFN ALKSFN ALKSFN LKFN ALSKNFALKSNFKsldknfSNDLK NSFLAKSNF ALKSFN ALKSFN ALKSFN LKFN ALSKNFALKSNFKsldknfSNDLK NSFLAK"
"SNF ALKSFN ALKSFN ALKSFN LKFN ALSKNFALKSNFKsldknf";
ZPack pack1;
pack1.open(tempFileName.c_str(), true);
pack1.packItem("special_item", tempItemText, "");
pack1.write();
auto extractItem = pack1.extractStr("special_item");
pack1.close();
remove(tempFileName.c_str());
ASSERT_EQ(extractItem.size(), tempItemText.size());
}
TEST(General, CreateDeleteAndRepack) {
std::string tempFileName = tmpnam(NULL);
std::string tempItemText = "AZZZAKAJSLKDNLAK SNDLK NSFLAKSNF ALKSFN ALKSFN ALKSFN LKFN ALSKNFALKSNFKsldknfSNDLK NSFLAKSNF "
"ALKSFN ALKSFN ALKSFN LKFN ALSKNFALKSNFKsldknfSNDLK NSFLAKSNF ALKSFN ALKSFN ALKSFN LKFN ALSKNFALKSNFKsldknfSNDLK NSFLAK"
"SNF ALKSFN ALKSFN ALKSFN LKFN ALSKNFALKSNFKsldknf";
std::string tempItemText2 = "lkn asldknf aslknf owi34nfo3 4nr2o34nrt 2i3br2i sgdfi gsd98f ghs9d87f g6sd97ftg";
ZPack pack1;
std::cout << std::endl << "-------------------------------------" << std::endl;
pack1.open(tempFileName.c_str(), true);
pack1.packItem("special_item", tempItemText, "");
pack1.packItem("special_item2", tempItemText2, "");
pack1.write();
auto stats = pack1.getStats();
auto startOffset = stats.lastOffset;
std::cout << "STATS 1:" << std::endl
<< "dir offset : " << stats.directoryOffset << std::endl
<< "records : " << stats.records << std::endl
<< "lastOffset : " << stats.lastOffset << std::endl
<< "archiveSize : " << stats.archiveSize << std::endl
<< "size Com : " << stats.filesSizeCompressed << std::endl
<< "size Unc : " << stats.filesSizeUncompressed << std::endl << std::endl;
pack1.remove("special_item2");
pack1.write();
stats = pack1.getStats();
auto midOffset = stats.lastOffset;
std::cout << "STATS 2:" << std::endl
<< "dir offset : " << stats.directoryOffset << std::endl
<< "records : " << stats.records << std::endl
<< "lastOffset : " << stats.lastOffset << std::endl
<< "archiveSize : " << stats.archiveSize << std::endl
<< "size Com : " << stats.filesSizeCompressed << std::endl
<< "size Unc : " << stats.filesSizeUncompressed << std::endl << std::endl;
ASSERT_LT(midOffset, startOffset);
pack1.repack();
stats = pack1.getStats();
auto lastOffset = stats.lastOffset;
std::cout << "STATS 3:" << std::endl
<< "dir offset : " << stats.directoryOffset << std::endl
<< "records : " << stats.records << std::endl
<< "lastOffset : " << stats.lastOffset << std::endl
<< "archiveSize : " << stats.archiveSize << std::endl
<< "size Com : " << stats.filesSizeCompressed << std::endl
<< "size Unc : " << stats.filesSizeUncompressed << std::endl << std::endl;
ASSERT_LT(lastOffset, midOffset);
ASSERT_GT(lastOffset, 0);
pack1.close();
remove(tempFileName.c_str());
}
} | [
"[email protected]"
] | |
798624e77fc942ecbe31bfcc27d6ede5dc4cee8c | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/blink/renderer/platform/speech/platform_speech_synthesizer.cc | f56c547e8432b88c2bc74f0ccdd588c29bf8f19e | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | C++ | false | false | 4,311 | cc | /*
* Copyright (C) 2013 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "third_party/blink/renderer/platform/speech/platform_speech_synthesizer.h"
#include "build/build_config.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_speech_synthesis_utterance.h"
#include "third_party/blink/public/platform/web_speech_synthesizer.h"
#include "third_party/blink/public/platform/web_speech_synthesizer_client.h"
#include "third_party/blink/renderer/platform/exported/web_speech_synthesizer_client_impl.h"
#include "third_party/blink/renderer/platform/speech/platform_speech_synthesis_utterance.h"
namespace blink {
PlatformSpeechSynthesizer* PlatformSpeechSynthesizer::Create(
PlatformSpeechSynthesizerClient* client) {
PlatformSpeechSynthesizer* synthesizer =
new PlatformSpeechSynthesizer(client);
#if defined(OS_ANDROID)
// On Android devices we don't fetch voices until the object
// is touched to avoid needlessly binding to TTS service, see
// https://crbug.com/811929.
#else
synthesizer->InitializeVoiceList();
#endif
return synthesizer;
}
PlatformSpeechSynthesizer::PlatformSpeechSynthesizer(
PlatformSpeechSynthesizerClient* client)
: speech_synthesizer_client_(client) {
web_speech_synthesizer_client_ =
new WebSpeechSynthesizerClientImpl(this, client);
web_speech_synthesizer_ = Platform::Current()->CreateSpeechSynthesizer(
web_speech_synthesizer_client_);
}
PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer() = default;
void PlatformSpeechSynthesizer::Speak(
PlatformSpeechSynthesisUtterance* utterance) {
MaybeInitializeVoiceList();
if (web_speech_synthesizer_ && web_speech_synthesizer_client_)
web_speech_synthesizer_->Speak(WebSpeechSynthesisUtterance(utterance));
}
void PlatformSpeechSynthesizer::Pause() {
MaybeInitializeVoiceList();
if (web_speech_synthesizer_)
web_speech_synthesizer_->Pause();
}
void PlatformSpeechSynthesizer::Resume() {
MaybeInitializeVoiceList();
if (web_speech_synthesizer_)
web_speech_synthesizer_->Resume();
}
void PlatformSpeechSynthesizer::Cancel() {
MaybeInitializeVoiceList();
if (web_speech_synthesizer_)
web_speech_synthesizer_->Cancel();
}
const Vector<scoped_refptr<PlatformSpeechSynthesisVoice>>&
PlatformSpeechSynthesizer::GetVoiceList() {
MaybeInitializeVoiceList();
return voice_list_;
}
void PlatformSpeechSynthesizer::SetVoiceList(
Vector<scoped_refptr<PlatformSpeechSynthesisVoice>>& voices) {
voice_list_ = voices;
}
void PlatformSpeechSynthesizer::MaybeInitializeVoiceList() {
if (!voices_initialized_)
InitializeVoiceList();
}
void PlatformSpeechSynthesizer::InitializeVoiceList() {
if (web_speech_synthesizer_) {
voices_initialized_ = true;
web_speech_synthesizer_->UpdateVoiceList();
}
}
void PlatformSpeechSynthesizer::Trace(blink::Visitor* visitor) {
visitor->Trace(speech_synthesizer_client_);
visitor->Trace(web_speech_synthesizer_client_);
}
} // namespace blink
| [
"[email protected]"
] | |
e9c2057400cb360b8074d7803fc9d26445b086f1 | 8ecbcd850fd4bc098bbd5a8be3b0efd2d1706c2c | /src/main.cpp | 49269bc2be52e762ab188d048013e9520a5ac51a | [] | no_license | xivitazo/Driver | 1e137a35ce02cd86c7c951b8024041c7030a171a | 1c750067a188f0958ce8f66b618576563d60ad6b | refs/heads/master | 2023-04-13T16:04:36.469521 | 2021-04-21T12:24:37 | 2021-04-21T12:24:37 | 210,957,057 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | cpp | #include "ofMain.h"
#include "ofApp.h"
#include "ofAppNoWindow.h"
//========================================================================
int main( ){
ofAppNoWindow window;
ofSetupOpenGL(&window, 1024, 768, OF_WINDOW);
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
ofRunApp( new ofApp());
}
| [
"[email protected]"
] | |
748d45b7e69265071ccf5ca98e4464a94a1c2a05 | d627d1d5236a46b4791d0486d60e7c1a74602d56 | /docker/planners/FD/src/search/merge_and_shrink/labels.h | f5be90f08693c726ab7d56c8ba48bcf472854bc0 | [] | no_license | racinmat/PDDL-docker | caebde3ab174c110771c15a5ec65cd8986d3a3d3 | 4b53d44ea52f50bf87c194cd799e8fcfd4da0666 | refs/heads/master | 2021-01-17T22:21:01.284588 | 2020-01-27T23:21:10 | 2020-01-27T23:21:10 | 84,191,113 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,991 | h | #ifndef MERGE_AND_SHRINK_LABELS_H
#define MERGE_AND_SHRINK_LABELS_H
#include <vector>
class EquivalenceRelation;
class Label;
class Options;
class TransitionSystem;
/*
This class serves both as a container class to handle the set of all labels
and to perform label reduction on this set.
*/
class Labels {
std::vector<Label *> labels;
/*
none: no label reduction will be performed
two_transition_systems: compute the 'combinable relation'
for labels only for the two transition_systems that will
be merged next and reduce labels.
all_transition_systems: compute the 'combinable relation'
for labels once for every transition_system and reduce
labels.
all_transition_systems_with_fixpoint: keep computing the
'combinable relation' for labels iteratively for all
transition systems until no more labels can be reduced.
*/
enum LabelReductionMethod {
NONE,
TWO_TRANSITION_SYSTEMS,
ALL_TRANSITION_SYSTEMS,
ALL_TRANSITION_SYSTEMS_WITH_FIXPOINT
};
/*
Order in which iterations of label reduction considers the set of all
transition systems. Regular is the fast downward order plus appending
new composite transition systems after the atomic ones, revers is the
reversed regulard order and random is a random one. All orders are
precomputed and reused for every call to reduce().
*/
enum LabelReductionSystemOrder {
REGULAR,
REVERSE,
RANDOM
};
LabelReductionMethod label_reduction_method;
LabelReductionSystemOrder label_reduction_system_order;
std::vector<int> transition_system_order;
// Apply the label mapping to all transition systems. Also clear cache.
void notify_transition_systems(
int ts_index,
const std::vector<TransitionSystem *> &all_transition_systems,
const std::vector<std::pair<int, std::vector<int> > > &label_mapping,
std::vector<EquivalenceRelation *> &cached_equivalence_relations) const;
// Apply the given label equivalence relation to the set of labels
bool apply_label_reduction(
const EquivalenceRelation *relation,
std::vector<std::pair<int, std::vector<int> > > &label_mapping);
EquivalenceRelation *compute_combinable_equivalence_relation(
int ts_index,
const std::vector<TransitionSystem *> &all_transition_systems,
std::vector<EquivalenceRelation *> &cached_local_equivalence_relations) const;
public:
explicit Labels(const Options &options);
~Labels() {}
void add_label(int cost);
void reduce(std::pair<int, int> next_merge,
const std::vector<TransitionSystem *> &all_transition_systems);
bool is_current_label(int label_no) const;
int get_label_cost(int label_no) const;
void dump_labels() const;
void dump_label_reduction_options() const;
int get_size() const {
return labels.size();
}
};
#endif
| [
"Azathoth Sumerian"
] | Azathoth Sumerian |
60907a14eda630819b79d0b201a90707def3baec | 3d7fc34309dae695a17e693741a07cbf7ee26d6a | /aluminizerFPGA/exp_results.cpp | 076649af1608bc5c2403f165811e5eb3a93d31fe | [
"LicenseRef-scancode-public-domain"
] | permissive | nist-ionstorage/ionizer | f42706207c4fb962061796dbbc1afbff19026e09 | 70b52abfdee19e3fb7acdf6b4709deea29d25b15 | refs/heads/master | 2021-01-16T21:45:36.502297 | 2010-05-14T01:05:09 | 2010-05-14T01:05:09 | 20,006,050 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,749 | cpp | #include "util.h"
#include "exp_results.h"
#include "pulse_controller.h"
exp_results::~exp_results()
{
enable_interrupts();
print_timing_failures();
}
void exp_results::init(GbE_msg* msg_out, unsigned nChannels, bool bCumulativeTimingCheck)
{
this->nChannels = nChannels;
this->msg = msg_out;
this->PMTsum = 0;
this->nValues = 0;
if (!bCumulativeTimingCheck)
{
this->tBad = 0;
this->tChecked = 0;
}
this->iNumShots = nChannels + 1;
this->j = nChannels + 2;
if (msg)
{
msg->what = S2C_OK;
for (unsigned i = 0; i < MSG_STD_PAYLOAD_SIZE; i++)
msg->insertU(i, 0);
msg->insertU(0, nChannels);
}
}
void exp_results::begin_timing_check(unsigned padding_t, unsigned padding_ttl)
{
tChecked++;
//set the thread to have max. priority
//set_priority(0);
disable_interrupts();
PULSE_CONTROLLER_clear_timing_check(pulser);
//provide some padding so that the processor gets a head start in
//filling the timing buffer
TTL_pulse(padding_t, padding_ttl);
PULSE_CONTROLLER_enable_timing_check(pulser);
}
void exp_results::end_timing_check()
{
PULSE_CONTROLLER_disable_timing_check(pulser);
//restore old thread priority
/* if(old_priority >= 0)
{
set_priority(old_priority);
old_priority = -1;
}
*/
enable_interrupts();
if (PULSE_CONTROLLER_timing_ok(pulser) != 1)
tBad++;
}
unsigned exp_results::get_new_data(unsigned scale, bool bStore)
{
// while(PULSE_CONTROLLER_read_empty(pulser))
// yield_execution();
PULSE_CONTROLLER_set_idle_function(yield_execution);
unsigned new_data = PULSE_CONTROLLER_get_PMT(pulser);
if (msg && bStore)
insert_PMT_data(scale * new_data);
return new_data;
}
| [
"trosen@814e38a0-0077-4020-8740-4f49b76d3b44"
] | trosen@814e38a0-0077-4020-8740-4f49b76d3b44 |
3ccbc49562dde3df5765d264cf6faebc96053e7b | a2624f3002ac22d2e37c9a96193a42e834ddc4f2 | /Components/FastReport 4.12/LibD16/fsDB16.hpp | 27fefb40256ab57a363d23ceac55b5bc0019a463 | [] | no_license | kusvas/PolMan | 38584bb0998324b15fe6d1f1f2f8108b67722cf9 | 6f6c292eff7dfd0386f51d781c43436ec2ac66da | refs/heads/master | 2021-01-10T08:00:48.568863 | 2016-03-04T20:01:13 | 2016-03-04T20:01:13 | 53,162,104 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,206 | hpp | // CodeGear C++Builder
// Copyright (c) 1995, 2011 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'fsDB16.pas' rev: 23.00 (Win32)
#ifndef Fsdb16HPP
#define Fsdb16HPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <fs_idbctrlsrtti.hpp> // Pascal unit
#include <fs_idbrtti.hpp> // Pascal unit
#include <Winapi.Windows.hpp> // Pascal unit
#include <System.Internal.ExcUtils.hpp> // Pascal unit
#include <System.SysUtils.hpp> // Pascal unit
#include <System.VarUtils.hpp> // Pascal unit
#include <System.Variants.hpp> // Pascal unit
#include <System.TypInfo.hpp> // Pascal unit
#include <System.Classes.hpp> // Pascal unit
#include <System.TimeSpan.hpp> // Pascal unit
#include <System.SyncObjs.hpp> // Pascal unit
#include <fs_iconst.hpp> // Pascal unit
#include <fs_itools.hpp> // Pascal unit
#include <Winapi.ShellAPI.hpp> // Pascal unit
#include <System.Win.ComObj.hpp> // Pascal unit
#include <System.DateUtils.hpp> // Pascal unit
#include <System.IOUtils.hpp> // Pascal unit
#include <System.IniFiles.hpp> // Pascal unit
#include <System.Win.Registry.hpp> // Pascal unit
#include <System.UIConsts.hpp> // Pascal unit
#include <Vcl.Graphics.hpp> // Pascal unit
#include <Winapi.UxTheme.hpp> // Pascal unit
#include <Vcl.ActnList.hpp> // Pascal unit
#include <Vcl.GraphUtil.hpp> // Pascal unit
#include <Vcl.Controls.hpp> // Pascal unit
#include <Vcl.StdCtrls.hpp> // Pascal unit
#include <Vcl.ExtCtrls.hpp> // Pascal unit
#include <Vcl.Themes.hpp> // Pascal unit
#include <Vcl.Menus.hpp> // Pascal unit
#include <System.HelpIntfs.hpp> // Pascal unit
#include <Winapi.FlatSB.hpp> // Pascal unit
#include <Vcl.Clipbrd.hpp> // Pascal unit
#include <Vcl.ComCtrls.hpp> // Pascal unit
#include <Vcl.Forms.hpp> // Pascal unit
#include <Vcl.Printers.hpp> // Pascal unit
#include <Vcl.Dialogs.hpp> // Pascal unit
#include <fs_iinterpreter.hpp> // Pascal unit
#include <fs_iclassesrtti.hpp> // Pascal unit
#include <fs_igraphicsrtti.hpp> // Pascal unit
#include <fs_iformsrtti.hpp> // Pascal unit
#include <Data.SqlTimSt.hpp> // Pascal unit
#include <Data.FmtBcd.hpp> // Pascal unit
#include <Data.DB.hpp> // Pascal unit
#include <Vcl.Buttons.hpp> // Pascal unit
#include <Vcl.DBLogDlg.hpp> // Pascal unit
#include <Vcl.DBPWDlg.hpp> // Pascal unit
#include <Vcl.DBCtrls.hpp> // Pascal unit
#include <Vcl.Grids.hpp> // Pascal unit
#include <Vcl.DBGrids.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Fsdb16
{
//-- type declarations -------------------------------------------------------
//-- var, const, procedure ---------------------------------------------------
} /* namespace Fsdb16 */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FSDB16)
using namespace Fsdb16;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // Fsdb16HPP
| [
"[email protected]"
] | |
1664f04b49b6e0ca0d9ed34070c1bccd101dd404 | b0c1a37e3cf5cb08541a045e2f9f3120e1af4fce | /GridElements.h | a7904b020582f2e1a663d5fcbc23477a71532af6 | [] | no_license | mmundt/MRMtempestremap | 6678fb228716762a3ee6b8c9f0111c33f9268ddc | a995c919638bd298b5d038a6d1454c43ade7f128 | refs/heads/master | 2021-01-15T23:27:17.046170 | 2015-07-30T15:33:19 | 2015-07-30T15:33:19 | 30,560,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,439 | h | ///////////////////////////////////////////////////////////////////////////////
///
/// \file GridElements.h
/// \author Paul Ullrich
/// \version March 7, 2014
///
/// <remarks>
/// Copyright 2000-2014 Paul Ullrich
///
/// This file is distributed as part of the Tempest source code package.
/// Permission is granted to use, copy, modify and distribute this
/// source code and its documentation under the terms of the GNU General
/// Public License. This software is provided "as is" without express
/// or implied warranty.
/// </remarks>
#ifndef _GRIDELEMENTS_H_
#define _GRIDELEMENTS_H_
///////////////////////////////////////////////////////////////////////////////
#include "Defines.h"
#include <vector>
#include <set>
#include <map>
#include <string>
#include <cmath>
#include "Exception.h"
#include "DataVector.h"
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// A single point in 3D Cartesian geometry.
/// </summary>
class Node {
public:
/// <summary>
/// Cartesian coordinates (x,y,z) of this Node.
/// </summary>
Real x;
Real y;
Real z;
public:
/// <summary>
/// Default constructor.
/// </summary>
Node() :
x(0.0),
y(0.0),
z(0.0)
{ }
/// <summary>
/// Constructor.
/// </summary>
Node(
Real _x,
Real _y,
Real _z
) :
x(_x),
y(_y),
z(_z)
{ }
/// <summary>
/// Copy constructor.
/// </summary>
Node(const Node & node) {
x = node.x;
y = node.y;
z = node.z;
}
/// <summary>
/// Assignment operator.
/// </summary>
const Node & operator=(const Node & node) {
x = node.x;
y = node.y;
z = node.z;
return (*this);
}
/// <summary>
/// Comparator operator using floating point tolerance.
/// </summary>
bool operator< (const Node & node) const {
static const Real Tolerance = 1.0e-8; //ReferenceTolerance;
if (x - node.x <= -Tolerance) {
return true;
} else if (x - node.x >= Tolerance) {
return false;
}
if (y - node.y <= -Tolerance) {
return true;
} else if (y - node.y >= Tolerance) {
return false;
}
if (z - node.z <= -Tolerance) {
return true;
} else if (z - node.z >= Tolerance) {
return false;
}
return false;
}
/// <summary>
/// Difference between two nodes.
/// </summary>
Node operator-(const Node & node) const {
Node nodeDiff;
nodeDiff.x = x - node.x;
nodeDiff.y = y - node.y;
nodeDiff.z = z - node.z;
return nodeDiff;
}
/// <summary>
/// Magnitude of this node.
/// </summary>
Real Magnitude() const {
return sqrt(x * x + y * y + z * z);
}
/// <summary>
/// Output node to stdout.
/// </summary>
void Print(const char * szName) const {
printf("%s: %1.15e %1.15e %1.15e\n", szName, x, y, z);
}
};
/// <summary>
/// A vector for the storage of Nodes.
/// </summary>
typedef std::vector<Node> NodeVector;
/// <summary>
/// A map between Nodes and indices.
/// </summary>
typedef std::map<Node, int> NodeMap;
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// A node index.
/// </summary>
typedef int NodeIndex;
/// <summary>
/// A vector for the storage of Node indices.
/// </summary>
typedef std::vector<NodeIndex> NodeIndexVector;
/// <summary>
/// An index indicating this Node is invalid.
/// </summary>
static const NodeIndex InvalidNode = (-1);
/// <summary>
/// An index indicating this Face is invalid.
/// </summary>
static const NodeIndex InvalidFace = (-1);
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// An edge connects two nodes.
/// </summary>
class Edge {
public:
/// <summary>
/// Type of edge.
/// </summary>
enum Type {
Type_GreatCircleArc = 0,
Type_Default = Type_GreatCircleArc,
Type_ConstantLatitude = 1
};
public:
/// <summary>
/// Node indices representing the endpoints of this edge.
/// </summary>
int node[2];
/// <summary>
/// The type of this edge.
/// </summary>
Type type;
public:
/// <summary>
/// Constructor.
/// </summary>
Edge(
int node0 = InvalidNode,
int node1 = InvalidNode,
Type _type = Type_Default
) {
node[0] = node0;
node[1] = node1;
type = _type;
}
/// <summary>
/// Virtual destructor.
/// </summary>
virtual ~Edge()
{ }
/// <summary>
/// Flip the order of the nodes stored in the segment. Note that this
/// does not affect the comparator properties of the segment, and so
/// this method can be treated as const.
/// </summary>
void Flip() const {
int ixTemp = node[0];
const_cast<int&>(node[0]) = node[1];
const_cast<int&>(node[1]) = ixTemp;
}
/// <summary>
/// Accessor.
/// </summary>
int operator[](int i) const {
return node[i];
}
int & operator[](int i) {
return node[i];
}
/// <summary>
/// Get the nodes as an ordered pair.
/// </summary>
void GetOrderedNodes(
int & ixNodeSmall,
int & ixNodeBig
) const {
if (node[0] < node[1]) {
ixNodeSmall = node[0];
ixNodeBig = node[1];
} else {
ixNodeSmall = node[1];
ixNodeBig = node[0];
}
}
/// <summary>
/// Comparator.
/// </summary>
bool operator<(const Edge & edge) const {
// Order the local nodes
int ixNodeSmall;
int ixNodeBig;
GetOrderedNodes(ixNodeSmall, ixNodeBig);
// Order the nodes in edge
int ixEdgeNodeSmall;
int ixEdgeNodeBig;
edge.GetOrderedNodes(ixEdgeNodeSmall, ixEdgeNodeBig);
// Compare
if (ixNodeSmall < ixEdgeNodeSmall) {
return true;
} else if (ixNodeSmall > ixEdgeNodeSmall) {
return false;
} else if (ixNodeBig < ixEdgeNodeBig) {
return true;
} else {
return false;
}
}
/// <summary>
/// Equality operator.
/// </summary>
bool operator==(const Edge & edge) const {
if (edge.type != type) {
return false;
}
if ((node[0] == edge.node[0]) &&
(node[1] == edge.node[1])
) {
return true;
} else if (
(node[0] == edge.node[1]) &&
(node[1] == edge.node[0])
) {
return true;
}
return false;
}
/// <summary>
/// Inequality operator.
/// </summary>
bool operator!=(const Edge & edge) const {
return !((*this) == edge);
}
/// <summary>
/// Return the node that is shared between segments.
/// </summary>
int CommonNode(
const Edge & edge
) const {
if (edge[0] == node[0]) {
return node[0];
} else if (edge[0] == node[1]) {
return node[1];
} else if (edge[1] == node[0]) {
return node[0];
} else if (edge[1] == node[1]) {
return node[1];
} else {
return InvalidNode;
}
}
};
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// An edge connects two nodes with a sub-array of interior nodes.
/// </summary>
class MultiEdge : public std::vector<int> {
public:
/// <summary>
/// Flip the edge.
/// </summary>
MultiEdge Flip() const {
MultiEdge edgeFlip;
for (int i = size()-1; i >= 0; i--) {
edgeFlip.push_back((*this)[i]);
}
return edgeFlip;
}
};
typedef std::vector<MultiEdge> MultiEdgeVector;
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// A pair of face indices, typically on opposite sides of an Edge.
/// </summary>
class FacePair {
public:
/// <summary>
/// Indices of the Faces in this pair.
/// </summary>
int face[2];
public:
/// <summary>
/// Constructor.
/// </summary>
FacePair() {
face[0] = InvalidFace;
face[1] = InvalidFace;
}
/// <summary>
/// Add a face to this FacePair.
/// </summary>
void AddFace(int ixFace) {
if (face[0] == InvalidFace) {
face[0] = ixFace;
} else if (face[1] == InvalidFace) {
face[1] = ixFace;
} else {
_EXCEPTIONT("FacePair already has a full set of Faces.");
}
}
/// <summary>
/// Does this FacePair have a complete set of Faces?
/// </summary>
bool IsComplete() const {
return ((face[0] != InvalidFace) && (face[1] != InvalidFace));
}
/// <summary>
/// Accessor.
/// </summary>
int operator[](int i) const {
return face[i];
}
};
///////////////////////////////////////////////////////////////////////////////
typedef std::vector<Edge> EdgeVector;
typedef std::map<Edge, FacePair> EdgeMap;
typedef EdgeMap::value_type EdgeMapPair;
typedef EdgeMap::iterator EdgeMapIterator;
typedef EdgeMap::const_iterator EdgeMapConstIterator;
typedef std::vector<EdgeMap::iterator> EdgeMapIteratorVector;
typedef std::set<Edge> EdgeSet;
typedef std::pair<Edge, FacePair> EdgePair;
typedef std::vector<EdgePair> EdgeMapVector;
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// A face.
/// </summary>
class Face {
public:
/// <summary>
/// Vector of node indices bounding this face, stored in
/// counter-clockwise order.
/// </summary>
EdgeVector edges;
public:
/// <summary>
/// Constructor.
/// </summary>
Face(
int edge_count = 0
) {
edges.resize(edge_count);
}
/// <summary>
/// Accessor.
/// </summary>
inline int operator[](int ix) const {
return edges[ix][0];
}
/// <summary>
/// Set a node.
/// </summary>
void SetNode(int ixLocal, int ixNode) {
int nEdges = static_cast<int>(edges.size());
edges[ixLocal][0] = ixNode;
int ixPrev = (ixLocal + nEdges - 1) % nEdges;
edges[ixPrev][1] = ixNode;
}
public:
/// <summary>
/// Possible locations of nodes.
/// </summary>
enum NodeLocation {
NodeLocation_Undefined = (-1),
NodeLocation_Exterior = 0,
NodeLocation_Default = NodeLocation_Exterior,
NodeLocation_Interior = 1,
NodeLocation_Edge = 2,
NodeLocation_Corner = 3
};
/// <summary>
/// Determine the Edge index corresponding to the given Edge. If the
/// Edge is not found an Exception is thrown.
/// </summary>
int GetEdgeIndex(const Edge & edge) const;
/// <summary>
/// Remove zero Edges (Edges with repeated Node indices)
/// </summary>
void RemoveZeroEdges();
};
/// <summary>
/// A vector of Faces.
/// </summary>
typedef std::vector<Face> FaceVector;
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// A reverse node array stores all faces associated with a given node.
/// </summary>
typedef std::vector< std::set<int> > ReverseNodeArray;
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// A mesh.
/// </summary>
class Mesh {
public:
/// <summary>
/// Vector of Nodes for this mesh.
/// </summary>
NodeVector nodes;
/// <summary>
/// Vector of Faces for this mesh.
/// <summary>
FaceVector faces;
/// <summary>
/// Vector of first mesh Face indices.
/// </summary>
std::vector<int> vecFirstFaceIx;
/// <summary>
/// Vector of second mesh Face indices.
/// </summary>
std::vector<int> vecSecondFaceIx;
/// <summary>
/// Vector of Face areas.
/// </summary>
DataVector<double> vecFaceArea;
/// <summary>
/// EdgeMap for this mesh.
/// </summary>
EdgeMap edgemap;
/// <summary>
/// ReverseNodeArray for this mesh.
/// </summary>
ReverseNodeArray revnodearray;
public:
/// <summary>
/// Default constructor.
/// </summary>
Mesh() {
}
/// <summary>
/// Constructor with input mesh parameter.
/// </summary>
Mesh(const std::string & strFile) {
Read(strFile);
}
public:
/// <summary>
/// Clear the contents of the mesh.
/// </summary>
void Clear();
/// <summary>
/// Construct the EdgeMap from the NodeVector and FaceVector.
/// </summary>
void ConstructEdgeMap();
/// <summary>
/// Construct the ReverseNodeArray from the NodeVector and FaceVector.
/// </summary>
void ConstructReverseNodeArray();
/// <summary>
/// Calculate Face areas.
/// </summary>
Real CalculateFaceAreas();
/// <summary>
/// Calculate Face areas from an Overlap mesh.
/// </summary>
Real CalculateFaceAreasFromOverlap(
const Mesh & meshOverlap
);
/// <summary>
/// Sort Faces by the opposite source mesh.
/// </summary>
void ExchangeFirstAndSecondMesh();
/// <summary>
/// Remove coincident nodes from the Mesh and adjust indices in faces.
/// </summary>
void RemoveCoincidentNodes();
/// <summary>
/// Write the mesh to a NetCDF file.
/// </summary>
void Write(const std::string & strFile) const;
/// <summary>
/// Read the mesh to a NetCDF file.
/// </summary>
void Read(const std::string & strFile);
/// <summary>
/// Remove zero edges from all Faces.
/// </summary>
void RemoveZeroEdges();
/// <summary>
/// Validate the Mesh.
/// </summary>
void Validate() const;
};
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Location data returned from FindFaceFromNode()
/// Generate a PathSegmentVector describing the path around the face
/// ixCurrentFirstFace.
/// </summary>
struct FindFaceStruct {
/// <summary>
/// A vector of face indices indicating possible Faces.
/// </summary>
std::vector<int> vecFaceIndices;
/// <summary>
/// A vector of locations on each Face. If loc is NodeLocation_Corner,
/// this corresponds to the associated corner of the Face. If loc
/// is NodeLocation_Edge, this corresponds to the associated Edge of
/// the Face. If loc is NodeLocation_Interior, this value is
/// undefined.
/// </summary>
std::vector<int> vecFaceLocations;
/// <summary>
/// The NodeLocation where this Node lies.
/// </summary>
Face::NodeLocation loc;
};
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Calculate the dot product between two Nodes.
/// </summary>
inline Real DotProduct(
const Node & node1,
const Node & node2
) {
return (node1.x * node2.x + node1.y * node2.y + node1.z * node2.z);
}
/// <summary>
/// Calculate the cross product between two Nodes.
/// </summary>
inline Node CrossProduct(
const Node & node1,
const Node & node2
) {
Node nodeCross;
nodeCross.x = node1.y * node2.z - node1.z * node2.y;
nodeCross.y = node1.z * node2.x - node1.x * node2.z;
nodeCross.z = node1.x * node2.y - node1.y * node2.x;
return nodeCross;
}
/// <summary>
/// Calculate the product of a Node with a scalar.
/// </summary>
inline Node ScalarProduct(
const Real & d,
const Node & node
) {
Node nodeProduct(node);
nodeProduct.x *= d;
nodeProduct.y *= d;
nodeProduct.z *= d;
return nodeProduct;
}
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Determine if an edge is positively oriented
/// (aligned with increasing longitude).
/// </summary>
bool IsPositivelyOrientedEdge(
const Node & nodeBegin,
const Node & nodeEnd
);
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Get the local direction vector along the surface of the sphere
/// for the given edge.
/// </summary>
void GetLocalDirection(
const Node & nodeBegin,
const Node & nodeEnd,
const Node & nodeRef,
const Edge::Type edgetype,
Node & nodeDir
);
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Get the local direction vector along the surface of the sphere
/// for the given edge.
/// </summary>
void GetLocalDirection(
const Node & nodeBegin,
const Node & nodeEnd,
const Edge::Type edgetype,
Node & nodeDir
);
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// For all Nodes on meshSecond that are "nearby" a Node on meshFirst,
/// set the Node equal to the meshFirst Node.
/// </summary>
void EqualizeCoincidentNodes(
const Mesh & meshFirst,
Mesh & meshSecond
);
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Equate coincident nodes on mesh.
/// </summary>
void EqualizeCoincidentNodes(
Mesh & mesh
);
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Build the mapping function for nodes on meshSecond which are
/// coincident with nodes on meshFirst.
/// </summary>
/// <returns>
/// The number of coincident nodes on meshSecond.
/// </returns>
int BuildCoincidentNodeVector(
const Mesh & meshFirst,
const Mesh & meshSecond,
std::vector<int> & vecSecondToFirstCoincident
);
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Calculate the area of a single Face.
/// </summary>
Real CalculateFaceArea(
const Face & face,
const NodeVector & nodes
);
///////////////////////////////////////////////////////////////////////////////
#endif
| [
"[email protected]"
] | |
abea513332e17597c02123e1368dc86f58443d68 | 5ff30d64df43c7438bbbcfda528b09bb8fec9e6b | /kgraphics/math/Sphere.cpp | 258c045cf1520aab7d354232a90be9c892925ff6 | [] | no_license | lvtx/gamekernel | c80cdb4655f6d4930a7d035a5448b469ac9ae924 | a84d9c268590a294a298a4c825d2dfe35e6eca21 | refs/heads/master | 2016-09-06T18:11:42.702216 | 2011-09-27T07:22:08 | 2011-09-27T07:22:08 | 38,255,025 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,894 | cpp | #include <stdafx.h>
#include <kgraphics/math/Sphere.h>
#include <kgraphics/math/Vector3.h>
#include <kgraphics/math/Line3.h>
#include <kgraphics/math/Matrix33.h>
#include <kgraphics/math/Ray3.h>
#include <kgraphics/math/LineSegment3.h>
#include <kgraphics/math/math.h>
#include <kgraphics/math/Plane.h>
#include <kgraphics/math/Quat.h>
namespace gfx {
//-------------------------------------------------------------------------------
// @ BoundingSphere::BoundingSphere()
//-------------------------------------------------------------------------------
// Copy constructor
//-------------------------------------------------------------------------------
BoundingSphere::BoundingSphere(const BoundingSphere& other) :
mCenter( other.mCenter ),
mRadius( other.mRadius )
{
} // End of BoundingSphere::BoundingSphere()
//-------------------------------------------------------------------------------
// @ BoundingSphere::operator=()
//-------------------------------------------------------------------------------
// Assignment operator
//-------------------------------------------------------------------------------
BoundingSphere&
BoundingSphere::operator=(const BoundingSphere& other)
{
// if same object
if ( this == &other )
return *this;
mCenter = other.mCenter;
mRadius = other.mRadius;
return *this;
} // End of BoundingSphere::operator=()
//-------------------------------------------------------------------------------
// @ operator<<()
//-------------------------------------------------------------------------------
// Text output for debugging
//-------------------------------------------------------------------------------
Writer&
operator<<(Writer& out, const BoundingSphere& source)
{
out << source.mCenter;
out << ' ' << source.mRadius;
return out;
} // End of operator<<()
//-------------------------------------------------------------------------------
// @ BoundingSphere::operator==()
//-------------------------------------------------------------------------------
// Comparison operator
//-------------------------------------------------------------------------------
bool
BoundingSphere::operator==( const BoundingSphere& other ) const
{
if ( other.mCenter == mCenter && other.mRadius == mRadius )
return true;
return false;
} // End of BoundingSphere::operator==()
//-------------------------------------------------------------------------------
// @ BoundingSphere::operator!=()
//-------------------------------------------------------------------------------
// Comparison operator
//-------------------------------------------------------------------------------
bool
BoundingSphere::operator!=( const BoundingSphere& other ) const
{
if ( other.mCenter != mCenter || other.mRadius != mRadius )
return true;
return false;
} // End of BoundingSphere::operator!=()
//-------------------------------------------------------------------------------
// @ BoundingSphere::Set()
//-------------------------------------------------------------------------------
// Set bounding sphere based on set of points
//-------------------------------------------------------------------------------
void
BoundingSphere::Set( const Vector3* points, unsigned int numPoints )
{
////ASSERT( points );
// compute minimal and maximal bounds
Vector3 min(points[0]), max(points[0]);
unsigned int i;
for ( i = 1; i < numPoints; ++i )
{
if (points[i].x < min.x)
min.x = points[i].x;
else if (points[i].x > max.x )
max.x = points[i].x;
if (points[i].y < min.y)
min.y = points[i].y;
else if (points[i].y > max.y )
max.y = points[i].y;
if (points[i].z < min.z)
min.z = points[i].z;
else if (points[i].z > max.z )
max.z = points[i].z;
}
// compute center and radius
mCenter = 0.5f*(min + max);
float maxDistance = gfx::DistanceSquared( mCenter, points[0] );
for ( i = 1; i < numPoints; ++i )
{
float dist = gfx::DistanceSquared( mCenter, points[i] );
if (dist > maxDistance)
maxDistance = dist;
}
mRadius = Sqrt( maxDistance );
}
//----------------------------------------------------------------------------
// @ BoundingSphere::Transform()
// ---------------------------------------------------------------------------
// Transforms sphere into new space
//-----------------------------------------------------------------------------
BoundingSphere
BoundingSphere::Transform( float scale, const Quat& rotate,
const Vector3& translate ) const
{
return BoundingSphere( rotate.Rotate(mCenter) + translate, mRadius*scale );
} // End of BoundingSphere::Transform()
//----------------------------------------------------------------------------
// @ BoundingSphere::Transform()
// ---------------------------------------------------------------------------
// Transforms sphere into new space
//-----------------------------------------------------------------------------
BoundingSphere
BoundingSphere::Transform( float scale, const Matrix33& rotate,
const Vector3& translate ) const
{
return BoundingSphere( rotate*mCenter + translate, mRadius*scale );
} // End of BoundingSphere::Transform()
//----------------------------------------------------------------------------
// @ BoundingSphere::Intersect()
// ---------------------------------------------------------------------------
// Determine intersection between sphere and sphere
//-----------------------------------------------------------------------------
bool
BoundingSphere::Intersect( const BoundingSphere& other ) const
{
// do sphere check
float radiusSum = mRadius + other.mRadius;
Vector3 centerDiff = other.mCenter - mCenter;
float distancesq = centerDiff.LengthSquared();
// if distance squared < sum of radii squared, collision!
return ( distancesq <= radiusSum*radiusSum );
}
//----------------------------------------------------------------------------
// @ BoundingSphere::Intersect()
// ---------------------------------------------------------------------------
// Determine intersection between sphere and line
//-----------------------------------------------------------------------------
bool
BoundingSphere::Intersect( const Line3& line ) const
{
// compute intermediate values
Vector3 w = mCenter - line.GetOrigin();
float wsq = w.Dot(w);
float proj = w.Dot(line.GetDirection());
float rsq = mRadius*mRadius;
float vsq = line.GetDirection().Dot(line.GetDirection());
// test length of difference vs. radius
return ( vsq*wsq - proj*proj <= vsq*rsq );
}
//----------------------------------------------------------------------------
// @ BoundingSphere::Intersect()
// ---------------------------------------------------------------------------
// Determine intersection between sphere and ray
//-----------------------------------------------------------------------------
bool
BoundingSphere::Intersect( const Ray3& ray ) const
{
// compute intermediate values
Vector3 w = mCenter - ray.GetOrigin();
float wsq = w.Dot(w);
float proj = w.Dot(ray.GetDirection());
float rsq = mRadius*mRadius;
// if sphere behind ray, no intersection
if ( proj < 0.0f && wsq > rsq )
return false;
float vsq = ray.GetDirection().Dot(ray.GetDirection());
// test length of difference vs. radius
return ( vsq*wsq - proj*proj <= vsq*rsq );
}
//----------------------------------------------------------------------------
// @ BoundingSphere::Intersect()
// ---------------------------------------------------------------------------
// Determine intersection between sphere and line segment
//-----------------------------------------------------------------------------
bool
BoundingSphere::Intersect( const LineSegment3& segment ) const
{
// compute intermediate values
Vector3 w = mCenter - segment.GetOrigin();
float wsq = w.Dot(w);
float proj = w.Dot(segment.GetDirection());
float rsq = mRadius*mRadius;
// if sphere outside segment, no intersection
if ( (proj < 0.0f || proj > 1.0f) && wsq > rsq )
return false;
float vsq = segment.GetDirection().Dot(segment.GetDirection());
// test length of difference vs. radius
return ( vsq*wsq - proj*proj <= vsq*rsq );
}
//----------------------------------------------------------------------------
// @ BoundingSphere::Classify()
// ---------------------------------------------------------------------------
// Compute signed distance between sphere and plane
//-----------------------------------------------------------------------------
float
BoundingSphere::Classify( const Plane& plane ) const
{
float distance = plane.Test( mCenter );
if ( distance > mRadius )
{
return distance-mRadius;
}
else if ( distance < -mRadius )
{
return distance+mRadius;
}
else
{
return 0.0f;
}
} // End of BoundingSphere::Classify()
//----------------------------------------------------------------------------
// @ ::Merge()
// ---------------------------------------------------------------------------
// Merge two spheres together to create a new one
//-----------------------------------------------------------------------------
void
Merge( BoundingSphere& result,
const BoundingSphere& s0, const BoundingSphere& s1 )
{
// get differences between them
Vector3 diff = s1.mCenter - s0.mCenter;
float distsq = diff.Dot(diff);
float radiusdiff = s1.mRadius - s0.mRadius;
// if one sphere inside other
if ( distsq <= radiusdiff*radiusdiff )
{
if ( s0.mRadius > s1.mRadius )
result = s0;
else
result = s1;
return;
}
// build new sphere
float dist = Sqrt( distsq );
float radius = 0.5f*( s0.mRadius + s1.mRadius + dist );
Vector3 center = s0.mCenter;
if (!gfx::IsZero( dist ))
center += ((radius-s0.mRadius)/dist)*diff;
result.SetRadius( radius );
result.SetCenter( center );
} // End of ::Merge()
//----------------------------------------------------------------------------
// @ BoundingSphere::ComputeCollision()
// ---------------------------------------------------------------------------
// Compute parameters for collision between sphere and sphere
//-----------------------------------------------------------------------------
bool
BoundingSphere::ComputeCollision( const BoundingSphere& other, Vector3& collisionNormal,
Vector3& collisionPoint, float& penetration ) const
{
// do sphere check
float radiusSum = mRadius + other.mRadius;
collisionNormal = other.mCenter - mCenter;
float distancesq = collisionNormal.LengthSquared();
// if distance squared < sum of radii squared, collision!
if ( distancesq <= radiusSum*radiusSum )
{
// handle collision
// penetration is distance - radii
float distance = Sqrt(distancesq);
penetration = radiusSum - distance;
collisionNormal.Normalize();
// collision point is average of penetration
collisionPoint = 0.5f*(mCenter + mRadius*collisionNormal)
+ 0.5f*(other.mCenter - other.mRadius*collisionNormal);
return true;
}
return false;
} // End of ::ComputeCollision()
} // namespace gfx
| [
"keedongpark@keedongpark"
] | keedongpark@keedongpark |
f7c679419cde02e2aad39662156044de4bb16440 | be0fd22f6a6f2287efed859769bb45b2c1d3364e | /src/projects/Mathlib/Mat4x4f.h | abc9f61c7442c19b278b9d04a19bd65ae42c07bd | [] | no_license | veldrinlab/thesis-cuda-sparse-voxel-octree | c5a2d1e2b1636621d0201194776d31ce4d5b49a5 | 58357932252927c3bee5670d910614c67771f813 | refs/heads/master | 2021-01-15T12:15:51.510583 | 2013-08-27T09:49:53 | 2013-08-27T09:49:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | h | #ifndef __RESTLESS_MATH_MAT4X4F_H
#define __RESTLESS_MATH_MAT4X4F_H
#include "Mat4x4.h"
#include "Vec4f.h"
namespace restless
{
class Mat4x4f: public restless::Mat4x4<float>
{
public:
Mat4x4f();
Mat4x4f(const float value);
Mat4x4f(const Vec4f & v1, const Vec4f & v2, const Vec4f & v3, const Vec4f & v4);
Mat4x4f(const Mat4x4<float> & matrix) :
Mat4x4(matrix) {}
};
}
#endif | [
"[email protected]"
] | |
7ee60361d5bda826ac74bfcd0b9dc6c6e15b98f1 | 86bb4bc8229a4e54a9128a1690c5e12d73923c50 | /vixo_fishEyePreview.cpp | be88703f3c8da69b884f519a34d539270d236b6e | [] | no_license | zjucsxxd/eyeFishView | fef8f7253d051c31711c49980cf4fbaf3907589d | 6293ba49032393ed6e62876e792ca362ac0b8532 | refs/heads/master | 2021-01-17T22:41:58.686586 | 2013-01-28T05:19:57 | 2013-01-28T05:19:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,555 | cpp | #pragma once
#include <GL/glew.h>
// Include this first to avoid winsock2.h problems on Windows:
#include <maya/MTypes.h>
// Maya API includes
#include <maya/MDagPath.h>
#include <maya/MFnPlugin.h>
#include <maya/MFnMesh.h>
#include <maya/MFloatPointArray.h>
#include <maya/MIntArray.h>
#include <maya/MUintArray.h>
#include <maya/MDoubleArray.h>
#include <maya/MItMeshPolygon.h>
#include <maya/MPxCommand.h>
#include <maya/MSyntax.h>
#include <maya/MArgDatabase.h>
// Viewport 2.0 includes
#include <maya/MDrawRegistry.h>
#include <maya/MPxDrawOverride.h>
#include <maya/MUserData.h>
#include <maya/MDrawContext.h>
#include <maya/MGlobal.h>
#include <maya/MSelectionList.h>
#include <maya/MPxGeometryOverride.h>
//---------------------------------------------------------------------------
#include <maya/MPointArray.h>
#include <maya/MFnCamera.h>
#include <iostream>
#include <vector>
#include <map>
using namespace std;
/*
//
// class vixo_fishEyePreviewGeometryOverride : public MHWRender::MPxGeometryOverride
// {
// public:
// static MPxGeometryOverride* Creator(const MObject& obj)
// {
// return new vixo_fishEyePreviewGeometryOverride(obj);
// }
//
// virtual ~vixo_fishEyePreviewGeometryOverride()
// {
//
// }
//
// virtual MHWRender::DrawAPI supportedDrawAPIs() const
// {
// return MHWRender::kAllDevices;
// }
//
// virtual void updateDG()
// {
// fnShape.syncObject();
// }
// virtual void updateRenderItems(
// const MDagPath& path,
// MHWRender::MRenderItemList& list);
// virtual void populateGeometry(
// const MHWRender::MGeometryRequirements& requirements,
// MHWRender::MRenderItemList& renderItems,
// MHWRender::MGeometry& data);
// virtual void cleanUp()
// {
//
// }
// MFnMesh fnShape;
// protected:
// vixo_fishEyePreviewGeometryOverride(const MObject& obj)
// : MPxGeometryOverride(obj)
// {
// if(!fnShape.hasObj(MFn::kMesh))
// fnShape.setObject(obj);
// fnShape.syncObject();
// }
// };
*/
class vixo_fishEyePreviewData : public MUserData
{
public:
vector<GLfloat> vertexArr,normalArr;
vector<GLint> elementIndexArr;
MColor color;
public:
vixo_fishEyePreviewData() : MUserData(false) {}
vixo_fishEyePreviewData(const MDagPath& objPath,const MDagPath& cameraPath)
: MUserData(false)
{
cout<<objPath.fullPathName().asChar()<<endl;
MFnMesh fnMesh(objPath);
MIntArray triCount,triConn;
fnMesh.getTriangles(triCount,triConn);
elementIndexArr.clear();
elementIndexArr.resize(triConn.length());
for(int i=0;i<triConn.length();i++)
{
elementIndexArr[i]=triConn[i];
}
vertexArr.clear();
vertexArr.resize(fnMesh.numVertices()*3);
normalArr.clear();
normalArr.resize(fnMesh.numVertices()*3);
MStringArray shadingEngines;
MGlobal::executeCommand("listConnections -s false -d true -type \"shadingEngine\" "+objPath.fullPathName(),shadingEngines);
if(shadingEngines.length()<=0)
{
color=MColor(0.5f,0.5f,0.5f);
return;
}
cout<<shadingEngines[0].asChar()<<endl;
MStringArray lamberts;
MGlobal::executeCommand("listConnections -s true -d false -type \"lambert\" "+shadingEngines[0]+".surfaceShader",lamberts);
if(lamberts.length()<=0)
{
color=MColor(0.5f,0.5f,0.5f);
return;
}
cout<<lamberts[0].asChar()<<endl;
MDoubleArray colorValue;
MGlobal::executeCommand("getAttr "+lamberts[0]+".color",colorValue);
color=MColor(colorValue[0],colorValue[1],colorValue[2]);
cout<<colorValue[0]<<" "<<colorValue[1]<<" "<<colorValue[2]<<endl;
}
virtual ~vixo_fishEyePreviewData()
{
}
void update(const MDagPath& objPath,const MDagPath& cameraPath)
{
MFnMesh fnMesh(objPath);
MFnCamera fnCam(cameraPath);
MVector upDir=fnCam.upDirection(MSpace::kWorld);
MVector rightDir=fnCam.rightDirection(MSpace::kWorld);
MVector viewDir=fnCam.viewDirection(MSpace::kWorld);
MPoint eyePoint=fnCam.eyePoint(MSpace::kWorld);
double angleOfView=fnCam.horizontalFieldOfView();
//cout<<(angleOfView*180/M_PI)<<endl;
MPointArray allPoints;
fnMesh.getPoints(allPoints,MSpace::kWorld);
for(int i=0;i<allPoints.length();i++)
{
MVector origRay=allPoints[i]-eyePoint;
MVector origRayShadow=origRay-upDir.normal()*(upDir*origRay/upDir.length());//shadow on Plane
MVector origRayShadowUpdir=upDir.normal()*(upDir*origRay/upDir.length());//shadow on updir
//cout<<origRayShadow.length()<<" "<<origRayShadowUpdir.length()<<endl;
double currentHeight=origRayShadowUpdir.length()/0.3375*(tan(angleOfView/2)/4.8);
if(origRayShadowUpdir*upDir<0)
currentHeight=-currentHeight;
MVector vectorY=upDir.normal()*currentHeight;
//cout<<currentHeight<<" "<<(8*tan(verticalAngleOfView/2))<<" "<<vectorY.y<<endl;
double angle=viewDir.angle(origRayShadow);
//angle=min(100.0,angle);
if(cos(rightDir.angle(origRayShadow))<0)
angle=-angle;
double rotateAngle=asin(angle/M_PI*2*sin(angleOfView/2));
double rotateAngleSin=angle/M_PI*2*sin(angleOfView/2);
double rotateAngleCos=cos(rotateAngle);
double rotateAngleTan=tan(rotateAngle);
MVector currentRayPlane=viewDir.normal()*origRayShadow.length()+rightDir*(viewDir.normal()*origRayShadow.length()).length()*rotateAngleTan;
//MVector currentRayPlane=viewDir.normal()*(origRayShadow.length()*cos(angleOfView/2))+rightDir.normal()*(origRayShadow.length()*sin(angleOfView/2)*rotateAngleSin);
//MVector currentRayPlane=(viewDir.normal()*rotateAngleCos+rightDir.normal()*rotateAngleSin).normal()*origRayShadow.length();
//cout<<currentRay.length()<<" "<<eyePoint.x<<" "<<eyePoint.y<<" "<<eyePoint.z<<" "<<vectorY.y<<endl;
//MVector currentRay=(currentRayPlane+vectorY).normal()*origRayShadow.length();
//cout<<currentRayPlane.y<<" "<<vectorY.y<<endl;
allPoints[i]=eyePoint+currentRayPlane+vectorY;
//cout<<allPoints[i].x<<" "<<allPoints[i].y<<" "<<allPoints[i].z<<endl;
vertexArr[3*i+0]=allPoints[i].x;
vertexArr[3*i+1]=allPoints[i].y;
vertexArr[3*i+2]=allPoints[i].z;
}
MFloatVectorArray normals;
fnMesh.getNormals(normals,MSpace::kWorld);
for(int i=0;i<normals.length();i++)
{
normalArr[3*i+0]=normals[i].x;
normalArr[3*i+1]=normals[i].y;
normalArr[3*i+2]=normals[i].z;
}
//fnMesh.setPoints(allPoints,MSpace::kWorld);
//fnMesh.updateSurface();
}
};
//---------------------------------------------------------------------------
class vixo_fishEyePreviewDrawOverride : public MHWRender::MPxDrawOverride
{
public:
static MHWRender::MPxDrawOverride* Creator(const MObject& obj) {
return new vixo_fishEyePreviewDrawOverride(obj);
}
virtual ~vixo_fishEyePreviewDrawOverride(){}
virtual MBoundingBox boundingBox(
const MDagPath& objPath,
const MDagPath& cameraPath) const
{
MPoint corner1( -10.0, -10.0, -10.0 );
MPoint corner2( 10.0, 10.0, 10.0);
return MBoundingBox(corner1, corner2);
}
virtual MUserData* prepareForDraw(
const MDagPath& objPath,
const MDagPath& cameraPath,
MUserData* oldData)
{
cout<<"prepare"<<endl;
vixo_fishEyePreviewData* data = dynamic_cast<vixo_fishEyePreviewData*>(oldData);
if (!data)
{
// data did not exist or was incorrect type, create new
data = new vixo_fishEyePreviewData(objPath,cameraPath);
}
data->update(objPath,cameraPath);
return data;
}
static void draw(const MHWRender::MDrawContext& context, const MUserData* data)
{
cout<<"draw"<<endl;
vixo_fishEyePreviewData* mesh = const_cast<vixo_fishEyePreviewData*>(dynamic_cast<const vixo_fishEyePreviewData*>(data));
// context.
//static const float colorData[] = {1.0f, 0.0f, 0.0f};
// set world matrix
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
MMatrix transform = context.getMatrix(MHWRender::MDrawContext::kWorldViewMtx);
// set projection matrix
glMatrixMode(GL_PROJECTION);
glPushMatrix();
MMatrix projection = context.getMatrix(MHWRender::MDrawContext::kProjectionMtx);
const int displayStyle = context.getDisplayStyle();
glPushAttrib( GL_CURRENT_BIT );
glPushAttrib( GL_ENABLE_BIT);
bool isColorMaterial=glIsEnabled(GL_COLOR_MATERIAL);
if(displayStyle & MHWRender::MDrawContext::kGouraudShaded) {
if(!isColorMaterial)
{
glColorMaterial(GL_FRONT_AND_BACK,GL_DIFFUSE);
glEnable(GL_COLOR_MATERIAL);
}
glColor3f(mesh->color.r,mesh->color.g,mesh->color.b);
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
}else if(displayStyle & MHWRender::MDrawContext::kWireFrame){
glDisable(GL_LIGHTING);
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
}
//glBindBuffer(GL_ARRAY_BUFFER, &mesh->vertexArr[0]);
glVertexPointer(3, GL_FLOAT, 0, &mesh->vertexArr[0]);
glEnableClientState(GL_VERTEX_ARRAY);
glNormalPointer(GL_FLOAT, 0, &mesh->normalArr[0]);
glEnableClientState(GL_NORMAL_ARRAY);
glDrawElements(GL_TRIANGLES, mesh->elementIndexArr.size(), GL_UNSIGNED_INT, &mesh->elementIndexArr[0]);
glDisableClientState(GL_NORMAL_ARRAY);
glDisableClientState(GL_VERTEX_ARRAY);
//glBindBuffer(GL_ARRAY_BUFFER, 0);
//glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
if(!isColorMaterial)
glDisable(GL_COLOR_MATERIAL);
glPopAttrib();
glPopAttrib();
glPopMatrix();
//glMatrixMode(GL_MODELVIEW);
glPopMatrix();
//glColor3f(1, 1, 1);
}
private:
vixo_fishEyePreviewDrawOverride(const MObject& obj)
: MHWRender::MPxDrawOverride(obj, vixo_fishEyePreviewDrawOverride::draw)
{
}
MString animRealCamera;
double resolutionAspect;
// bool getSelectionStatus(const MDagPath& objPath) const;
public:
/*
// static void setAnimCamera(MString animRealCam)
// {
// animRealCamera=animRealCam;
// }
// static void setResolution(double resolutionAsp)
// {
// resolutionAspect=resolutionAsp;
// }
*/
};
/*
---------------------------------------------------------------------------
Control command
class vixo_fishEyePreviewCommand : public MPxCommand
{
public:
virtual MStatus doIt(const MArgList &args);
static void *Creator();
};
void*
vixo_fishEyePreviewCommand::Creator()
{
return new vixo_fishEyePreviewCommand();
}
MStatus vixo_fishEyePreviewCommand::doIt(const MArgList &args)
{
MSyntax syntax;
syntax.addFlag("c", "camera", MSyntax::kString);
syntax.addFlag("a", "aspect", MSyntax::kDouble);
MArgDatabase argDB(syntax, args);
if(argDB.isFlagSet("c"))
{
MString camera;
argDB.getFlagArgument("c", 0, camera);
vixo_fishEyePreviewDrawOverride::setAnimCamera(camera);
}
if(argDB.isFlagSet("a"))
{
double aspect;
argDB.getFlagArgument("a", 0, aspect);
vixo_fishEyePreviewDrawOverride::setResolution(aspect);
}
return MS::kSuccess;
}*/
MString drawDbClassification("drawdb/geometry/mesh");
MString drawRegistrantId("OpenSubdivDrawOverridePlugin");
MStatus initializePlugin( MObject obj )
{
#if defined(_WIN32) && defined(_DEBUG)
// Disable buffering for stdout and stderr when using debug versions
// of the C run-time library.
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
#endif
MStatus status;
MFnPlugin plugin( obj, PLUGIN_COMPANY, "3.0", "Any");
status = MHWRender::MDrawRegistry::registerDrawOverrideCreator(
drawDbClassification,
drawRegistrantId,
vixo_fishEyePreviewDrawOverride::Creator);
if (!status) {
status.perror("registerDrawOverrideCreator");
return status;
}
glewInit();
return status;
}
MStatus uninitializePlugin( MObject obj)
{
MStatus status;
MFnPlugin plugin( obj );
status = MHWRender::MDrawRegistry::deregisterDrawOverrideCreator(
drawDbClassification,
drawRegistrantId);
if (!status) {
status.perror("deregisterDrawOverrideCreator");
return status;
}
return status;
}
| [
"[email protected]"
] | |
0c9c5ebe570cd2efd32de900e4a7b17d97763323 | 3d97884696ac21cc84a77db7b0150536d3cd3dd3 | /addons/cirkit-addon-reversible/src/reversible/synthesis/lhrs/legacy/stg_map_luts.hpp | 245f7ca6efd0f2091044b9b1f2bc426107593c58 | [
"MIT"
] | permissive | gwdueck/cirkit | db59b0a8a253030a684e635ba9ca004b10a02824 | 9795bac66aaf35873e47228b46db6546963cf4cb | refs/heads/master | 2021-06-19T23:40:59.109732 | 2020-03-18T01:03:45 | 2020-03-18T01:03:45 | 98,331,135 | 0 | 2 | null | 2020-01-15T14:00:53 | 2017-07-25T17:10:48 | C++ | UTF-8 | C++ | false | false | 4,080 | hpp | /* CirKit: A circuit toolkit
* Copyright (C) 2009-2015 University of Bremen
* Copyright (C) 2015-2017 EPFL
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
/**
* @file stg_map_luts.hpp
*
* @brief Map single-target gate using minimum datbase LUT mapping
*
* @author Mathias Soeken
* @since 2.3
*/
#ifndef STG_MAP_LUTS_HPP
#define STG_MAP_LUTS_HPP
#include <vector>
#include <classical/abc/gia/gia.hpp>
#include <reversible/circuit.hpp>
#include <reversible/synthesis/lhrs/legacy/stg_map_esop.hpp>
#include <reversible/synthesis/lhrs/legacy/stg_map_precomp.hpp>
namespace cirkit
{
namespace legacy
{
struct stg_map_luts_params
{
enum class mapping_strategy { mindb, bestfit };
stg_map_luts_params()
: own_sub_params( true ),
map_esop_params( new stg_map_esop_params() ),
map_precomp_params( new stg_map_precomp_params() )
{
}
stg_map_luts_params( const stg_map_esop_params& map_esop_params,
const stg_map_precomp_params& map_precomp_params )
: own_sub_params( false ),
map_esop_params( &map_esop_params ),
map_precomp_params( &map_precomp_params )
{
}
~stg_map_luts_params()
{
if ( own_sub_params )
{
delete map_esop_params;
delete map_precomp_params;
}
}
int max_cut_size = 4;
mapping_strategy strategy = mapping_strategy::bestfit;
bool satlut = false; /* perform SAT-based LUT mapping as post-processing step */
unsigned area_iters = 2u; /* number of exact area recovery iterations */
unsigned flow_iters = 1u; /* number of area flow recovery iterations */
bool own_sub_params = false;
stg_map_esop_params const* map_esop_params = nullptr;
stg_map_precomp_params const* map_precomp_params = nullptr;
};
struct stg_map_luts_stats
{
stg_map_luts_stats()
: own_sub_stats( true ),
map_esop_stats( new stg_map_esop_stats() ),
map_precomp_stats( new stg_map_precomp_stats() )
{
}
stg_map_luts_stats( stg_map_esop_stats& map_esop_stats,
stg_map_precomp_stats& map_precomp_stats )
: own_sub_stats( false ),
map_esop_stats( &map_esop_stats ),
map_precomp_stats( &map_precomp_stats )
{
}
~stg_map_luts_stats()
{
if ( own_sub_stats )
{
delete map_esop_stats;
delete map_precomp_stats;
}
}
double mapping_runtime = 0.0;
bool own_sub_stats = false;
stg_map_esop_stats * map_esop_stats = nullptr;
stg_map_precomp_stats * map_precomp_stats = nullptr;
};
void stg_map_luts( circuit& circ, const gia_graph& function,
const std::vector<unsigned>& line_map,
const std::vector<unsigned>& ancillas,
const stg_map_luts_params& params,
stg_map_luts_stats& stats );
}
}
#endif
// Local Variables:
// c-basic-offset: 2
// eval: (c-set-offset 'substatement-open 0)
// eval: (c-set-offset 'innamespace 0)
// End:
| [
"[email protected]"
] | |
c7d6b60c13a7d9ae19be5ee35590fb2471d206e4 | e54b9ff5eaf41ab13d156430554077f133b1be06 | /leetcode421/leetcode421_2.cpp | 5ecba137b3398c0990952dc267e9f88bcd8582fb | [] | no_license | allpasscool/leetcodes | bb0bd1391d5201baad214e5b4f8089dfe9c782b0 | 4fd81b4cf9382890cadc6bf8def721cc25eb9949 | refs/heads/master | 2022-05-21T11:34:06.958063 | 2022-03-24T08:57:41 | 2022-03-24T08:57:41 | 163,725,766 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,655 | cpp | class TrieNode
{
public:
TrieNode *child[2];
TrieNode()
{
this->child[0] = NULL; //for 0 bit
this->child[1] = NULL; //for 1 bit
}
};
class Solution
{
TrieNode *newNode;
void insert(int x)
{ //to insert each element into the Trie
TrieNode *t = newNode;
bitset<32> bs(x);
for (int j = 31; j >= 0; j--)
{
if (!t->child[bs[j]])
t->child[bs[j]] = new TrieNode(); //start from the MSB =, move to LSB using bitset
t = t->child[bs[j]];
}
}
public:
int findMaximumXOR(vector<int> &nums)
{
newNode = new TrieNode();
for (auto &n : nums)
insert(n); //insert all the elements into the Trie
int ans = 0; //Stores the maximum XOR possible so far
for (auto n : nums)
{
ans = max(ans, maxXOR(n)); //updates the ans as we traverse the array & compute max XORs at each element.
}
return ans;
}
int maxXOR(int n)
{
TrieNode *t = newNode;
bitset<32> bs(n);
int ans = 0;
for (int j = 31; j >= 0; j--)
{
if (t->child[!bs[j]])
ans += (1 << j), t = t->child[!bs[j]]; //Since 1^0 = 1 & 1^1 = 0, 0^0 = 0
else
t = t->child[bs[j]];
}
return ans;
}
};
// Runtime: 410 ms, faster than 62.29% of C++ online submissions for Maximum XOR of Two Numbers in an Array.
// Memory Usage: 65.3 MB, less than 55.20% of C++ online submissions for Maximum XOR of Two Numbers in an Array.
// time complexity: O(n log m)
// space complexity: O(2^m) | [
"[email protected]"
] | |
ea7aca34f47a41b43a0b189c7ea5b7a076c7e716 | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /chrome/browser/password_manager/password_store_mac_internal.h | 52cbd000ea1b5cb18fac108763dd9a5bb8845fc9 | [
"BSD-3-Clause"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | C++ | false | false | 10,930 | h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_
#define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_
#include <Security/Security.h>
#include <string>
#include <vector>
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "components/autofill/core/common/password_form.h"
#include "crypto/apple_keychain.h"
using crypto::AppleKeychain;
// Adapter that wraps a AppleKeychain and provides interaction in terms of
// PasswordForms instead of Keychain items.
class MacKeychainPasswordFormAdapter {
public:
// Creates an adapter for |keychain|. This class does not take ownership of
// |keychain|, so the caller must make sure that the keychain outlives the
// created object.
explicit MacKeychainPasswordFormAdapter(const AppleKeychain* keychain);
// Returns all keychain entries matching |signon_realm| and |scheme|.
ScopedVector<autofill::PasswordForm> PasswordsFillingForm(
const std::string& signon_realm,
autofill::PasswordForm::Scheme scheme);
// Returns true if there is the Keychain entry that matches |query_form| on
// all of the fields that uniquely identify a Keychain item.
bool HasPasswordExactlyMatchingForm(const autofill::PasswordForm& query_form);
// Returns true if the keychain contains any items that are mergeable with
// |query_form|. This is different from actually extracting the passwords
// and checking the return count, since doing that would require reading the
// passwords from the keychain, thus potentially triggering authorizaiton UI,
// whereas this won't.
bool HasPasswordsMergeableWithForm(
const autofill::PasswordForm& query_form);
// Returns all keychain items of types corresponding to password forms.
std::vector<SecKeychainItemRef> GetAllPasswordFormKeychainItems();
// Returns all keychain entries corresponding to password forms.
// TODO(vabr): This is only used in tests, should be moved there.
ScopedVector<autofill::PasswordForm> GetAllPasswordFormPasswords();
// Creates a new keychain entry from |form|, or updates the password of an
// existing keychain entry if there is a collision. Returns true if a keychain
// entry was successfully added/updated.
bool AddPassword(const autofill::PasswordForm& form);
// Removes the keychain password matching |form| if any. Returns true if a
// keychain item was found and successfully removed.
bool RemovePassword(const autofill::PasswordForm& form);
// Controls whether or not Chrome will restrict Keychain searches to items
// that it created. Defaults to false.
void SetFindsOnlyOwnedItems(bool finds_only_owned);
private:
// Returns PasswordForm instances transformed from |items|. Also calls
// AppleKeychain::Free on all of the keychain items and clears |items|.
ScopedVector<autofill::PasswordForm> ConvertKeychainItemsToForms(
std::vector<SecKeychainItemRef>* items);
// Searches |keychain| for the specific keychain entry that corresponds to the
// given form, and returns it (or NULL if no match is found). The caller is
// responsible for calling AppleKeychain::Free on on the returned item.
SecKeychainItemRef KeychainItemForForm(
const autofill::PasswordForm& form);
// Returns the Keychain items matching the given signon_realm, scheme, and
// optionally path and username (either of both can be NULL).
// The caller is responsible for calling AppleKeychain::Free on the
// returned items.
std::vector<SecKeychainItemRef> MatchingKeychainItems(
const std::string& signon_realm,
autofill::PasswordForm::Scheme scheme,
const char* path,
const char* username);
// Returns the Keychain SecAuthenticationType type corresponding to |scheme|.
SecAuthenticationType AuthTypeForScheme(
autofill::PasswordForm::Scheme scheme);
// Changes the password for keychain_item to |password|; returns true if the
// password was successfully changed.
bool SetKeychainItemPassword(const SecKeychainItemRef& keychain_item,
const std::string& password);
// Sets the creator code of keychain_item to creator_code; returns true if the
// creator code was successfully set.
bool SetKeychainItemCreatorCode(const SecKeychainItemRef& keychain_item,
OSType creator_code);
// Returns the creator code to be used for a Keychain search, depending on
// whether this object was instructed to search only for items it created.
// If searches should be restricted in this way, the application-specific
// creator code will be returned. Otherwise, 0 will be returned, indicating
// a search of all items, regardless of creator.
OSType CreatorCodeForSearch();
const AppleKeychain* keychain_;
// If true, Keychain searches are restricted to items created by Chrome.
bool finds_only_owned_;
DISALLOW_COPY_AND_ASSIGN(MacKeychainPasswordFormAdapter);
};
namespace internal_keychain_helpers {
// Pair of pointers to a SecKeychainItemRef and a corresponding PasswordForm.
typedef std::pair<SecKeychainItemRef*, autofill::PasswordForm*> ItemFormPair;
// Sets the fields of |form| based on the keychain data from |keychain_item|.
// Fields that can't be determined from |keychain_item| will be unchanged. If
// |extract_password_data| is true, the password data will be copied from
// |keychain_item| in addition to its attributes, and the |blacklisted_by_user|
// field will be set to true for empty passwords ("" or " ").
// If |extract_password_data| is false, only the password attributes will be
// copied, and the |blacklisted_by_user| field will always be false.
//
// IMPORTANT: If |extract_password_data| is true, this function can cause the OS
// to trigger UI (to allow access to the keychain item if we aren't trusted for
// the item), and block until the UI is dismissed.
//
// If excessive prompting for access to other applications' keychain items
// becomes an issue, the password storage API will need to intially call this
// function with |extract_password_data| set to false, and retrieve the password
// later (accessing other fields doesn't require authorization).
bool FillPasswordFormFromKeychainItem(const AppleKeychain& keychain,
const SecKeychainItemRef& keychain_item,
autofill::PasswordForm* form,
bool extract_password_data);
// Returns true if |keychain_item| has the application-specific creator code in
// its attributes.
bool HasCreatorCode(const AppleKeychain& keychain,
const SecKeychainItemRef& keychain_item);
// Use FormMatchStrictness to configure which forms are considered a match by
// FormsMatchForMerge:
enum FormMatchStrictness {
STRICT_FORM_MATCH, // Match only forms with the same scheme, signon realm and
// username value.
FUZZY_FORM_MATCH, // Also match cases where the first form's
// original_signon_realm is nonempty and matches the
// second form's signon_realm.
};
// Returns true if the two given forms are suitable for merging (see
// MergePasswordForms).
bool FormsMatchForMerge(const autofill::PasswordForm& form_a,
const autofill::PasswordForm& form_b,
FormMatchStrictness strictness);
// Populates merged_forms by combining the password data from keychain_forms and
// the metadata from database_forms, removing used entries from the two source
// lists.
//
// On return, database_forms and keychain_forms will have only unused
// entries; for database_forms that means entries for which no corresponding
// password can be found (and which aren't blacklist entries), and for
// keychain_forms its entries that weren't merged into at least one database
// form.
void MergePasswordForms(ScopedVector<autofill::PasswordForm>* keychain_forms,
ScopedVector<autofill::PasswordForm>* database_forms,
ScopedVector<autofill::PasswordForm>* merged_forms);
// For every form in |database_forms|, if such a form has a corresponding entry
// in |keychain|, this adds the password from the entry and moves that form from
// |database_forms| into |passwords|.
void GetPasswordsForForms(const AppleKeychain& keychain,
ScopedVector<autofill::PasswordForm>* database_forms,
ScopedVector<autofill::PasswordForm>* passwords);
// Loads all items in the system keychain into |keychain_items|, creates for
// each keychain item a corresponding PasswordForm that doesn't contain any
// password data, and returns the two collections as a vector of ItemFormPairs.
// Used by GetPasswordsForForms for optimized matching of keychain items with
// PasswordForms in the database.
// Note: Since no password data is loaded here, the resulting PasswordForms
// will include blacklist entries, which will have to be filtered out later.
// Caller owns the SecKeychainItemRefs and PasswordForms that are returned.
// This operation does not require OS authorization.
std::vector<ItemFormPair> ExtractAllKeychainItemAttributesIntoPasswordForms(
std::vector<SecKeychainItemRef>* keychain_items,
const AppleKeychain& keychain);
// Takes a PasswordForm's signon_realm and parses it into its component parts,
// which are returned though the appropriate out parameters.
// Returns true if it can be successfully parsed, in which case all out params
// that are non-NULL will be set. If there is no port, port will be 0.
// If the return value is false, the state of the out params is undefined.
bool ExtractSignonRealmComponents(const std::string& signon_realm,
std::string* server,
UInt32* port,
bool* is_secure,
std::string* security_domain);
// Returns true if the signon_realm of |query_form| can be successfully parsed
// by ExtractSignonRealmComponents, and if |query_form| matches |other_form|.
bool FormIsValidAndMatchesOtherForm(const autofill::PasswordForm& query_form,
const autofill::PasswordForm& other_form);
// Returns PasswordForm instances populated with password data for each keychain
// entry in |item_form_pairs| that could be merged with |query_form|.
ScopedVector<autofill::PasswordForm> ExtractPasswordsMergeableWithForm(
const AppleKeychain& keychain,
const std::vector<ItemFormPair>& item_form_pairs,
const autofill::PasswordForm& query_form);
} // namespace internal_keychain_helpers
#endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_
| [
"[email protected]"
] | |
b6c478b1e6c052cd9ecba5b6e8742a85fa81d594 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /dts/include/tencentcloud/dts/v20211206/model/DescribeCheckSyncJobResultRequest.h | 00201a18169dd237af1daeef806063a8393b1783 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 2,805 | h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef TENCENTCLOUD_DTS_V20211206_MODEL_DESCRIBECHECKSYNCJOBRESULTREQUEST_H_
#define TENCENTCLOUD_DTS_V20211206_MODEL_DESCRIBECHECKSYNCJOBRESULTREQUEST_H_
#include <string>
#include <vector>
#include <map>
#include <tencentcloud/core/AbstractModel.h>
namespace TencentCloud
{
namespace Dts
{
namespace V20211206
{
namespace Model
{
/**
* DescribeCheckSyncJobResult请求参数结构体
*/
class DescribeCheckSyncJobResultRequest : public AbstractModel
{
public:
DescribeCheckSyncJobResultRequest();
~DescribeCheckSyncJobResultRequest() = default;
std::string ToJsonString() const;
/**
* 获取同步实例id(即标识一个同步作业),形如sync-werwfs23,此值必填
* @return JobId 同步实例id(即标识一个同步作业),形如sync-werwfs23,此值必填
*
*/
std::string GetJobId() const;
/**
* 设置同步实例id(即标识一个同步作业),形如sync-werwfs23,此值必填
* @param _jobId 同步实例id(即标识一个同步作业),形如sync-werwfs23,此值必填
*
*/
void SetJobId(const std::string& _jobId);
/**
* 判断参数 JobId 是否已赋值
* @return JobId 是否已赋值
*
*/
bool JobIdHasBeenSet() const;
private:
/**
* 同步实例id(即标识一个同步作业),形如sync-werwfs23,此值必填
*/
std::string m_jobId;
bool m_jobIdHasBeenSet;
};
}
}
}
}
#endif // !TENCENTCLOUD_DTS_V20211206_MODEL_DESCRIBECHECKSYNCJOBRESULTREQUEST_H_
| [
"[email protected]"
] | |
5c2982ae81ed16110d50bd26a026022398581e49 | 9b7e3b09d0e3d57a75c6d1097d6034072fd540ec | /图论/网络流/网络流24题/loj6008.cpp | 04c906effaac066cd5a8eb2f2208010689bda44f | [] | no_license | zlccccc/ACM-Templates-by-zlc1114 | e6648ae6669dbb6b74fc25476df5b481b9abdaa8 | 75e1a3244e98722befa2e6ef7f01803dc3a6b728 | refs/heads/main | 2023-07-20T09:27:12.875149 | 2023-07-09T04:14:28 | 2023-07-09T04:14:28 | 383,021,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,453 | cpp | #include <sstream>
#include <fstream>
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <string>
#include <cstring>
#include <stack>
#include <queue>
#include <cmath>
#include <ctime>
#include <utility>
#include <cassert>
#include <bitset>
using namespace std;
#define REP(I,N) for (I=0;I<N;I++)
#define rREP(I,N) for (I=N-1;I>=0;I--)
#define rep(I,S,N) for (I=S;I<N;I++)
#define rrep(I,S,N) for (I=N-1;I>=S;I--)
#define FOR(I,S,N) for (I=S;I<=N;I++)
#define rFOR(I,S,N) for (I=N;I>=S;I--)
#define DEBUG
#ifdef DEBUG
#define debug(...) fprintf(stderr, __VA_ARGS__)
#define deputs(str) fprintf(stderr, "%s\n",str)
#else
#define debug(...)
#define deputs(str)
#endif // DEBUG
typedef unsigned long long ULL;
typedef unsigned long long ull;
typedef unsigned int ui;
typedef long long LL;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
const int INF=0x3f3f3f3f;
const LL INFF=0x3f3f3f3f3f3f3f3fll;
const LL M=1e9+7;
const LL maxn=1e5+7;
const double pi=acos(-1.0);
const double eps=0.0000000001;
LL gcd(LL a, LL b) {return b?gcd(b,a%b):a;}
template<typename T>inline void pr2(T x,int k=64) {ll i; REP(i,k) debug("%d",(x>>i)&1); putchar(' ');}
template<typename T>inline void add_(T &A,int B,ll MOD=M) {A+=B; (A>=MOD) &&(A-=MOD);}
template<typename T>inline void mul_(T &A,ll B,ll MOD=M) {A=(A*B)%MOD;}
template<typename T>inline void mod_(T &A,ll MOD=M) {A%=MOD; A+=MOD; A%=MOD;}
template<typename T>inline void max_(T &A,T B) {(A<B) &&(A=B);}
template<typename T>inline void min_(T &A,T B) {(A>B) &&(A=B);}
template<typename T>inline T abs(T a) {return a>0?a:-a;}
template<typename T>inline T powMM(T a, T b) {
T ret=1;
for (; b; b>>=1ll,a=(LL)a*a%M)
if (b&1) ret=(LL)ret*a%M;
return ret;
}
int n,m,q;
char str[maxn];
int startTime;
void startTimer() {startTime=clock();}
void printTimer() {debug("/--- Time: %ld milliseconds ---/\n",clock()-startTime);}
namespace mincostflow {
typedef int type;
const type INF=0x3f3f3f3f;
struct node {
int to; type cap,cost; int next;
node(int t=0,type c=0,type _c=0,int n=0):
to(t),cap(c),cost(_c),next(n) {};
} edge[maxn*2]; int tot;
int head[maxn];
void addedge(int from,int to,type cap,type cost,type rcap=0) {
edge[tot]=node(to,cap,cost,head[from]); head[from]=tot++;
edge[tot]=node(from,rcap,-cost,head[to]); head[to]=tot++;
}
type dis[maxn];
bool mark[maxn];
void spfa(int s,int t,int n) {
memset(dis+1,0x3f,n*sizeof(type));
memset(mark+1,0,n*sizeof(bool));
static int Q[maxn],ST,ED;
dis[s]=0; ST=ED=0; Q[ED++]=s;
while (ST!=ED) {
int v=Q[ST]; mark[v]=0;
if ((++ST)==maxn) ST=0;
for (int i=head[v]; ~i; i=edge[i].next) {
node &e=edge[i];
if (e.cap>0&&dis[e.to]>dis[v]+e.cost) {
dis[e.to]=dis[v]+e.cost;
if (!mark[e.to]) {
if (ST==ED||dis[Q[ST]]<=dis[e.to]) {
Q[ED]=e.to,mark[e.to]=1;
if ((++ED)==maxn) ED=0;
} else {
if ((--ST)<0) ST+=maxn;
Q[ST]=e.to,mark[e.to]=1;
}
}
}
}
}
} int cur[maxn];
type dfs(int x,int t,type flow) {
if (x==t||!flow) return flow;
type ret=0; mark[x]=1;
for (int i=cur[x]; ~i; i=edge[i].next) if (!mark[edge[i].to]) {
if (dis[x]+edge[i].cost==dis[edge[i].to]&&edge[i].cap) {
int f=dfs(edge[i].to,t,min(flow,edge[i].cap));
edge[i].cap-=f; edge[i^1].cap+=f;
ret+=f; flow-=f; cur[x]=i;
if (flow==0) break;
}
}
mark[x]=0;
return ret;
}
pair<type,type> mincostflow(int s,int t,int n,type flow=INF) {
type ret=0,ans=0;
while (flow) {
spfa(s,t,n); if (dis[t]==INF) break;
// 这样加当前弧优化会快, 我也不知道为啥
memcpy(cur+1,head+1,n*sizeof(int));
type len=dis[t],f;
if ((f=dfs(s,t,flow))>0)//while也行
ret+=f,ans+=len*f,flow-=f;
} return make_pair(ret,ans);
}
void init(int n) {
memset(head+1,0xff,n*sizeof(int));
tot=0;
}
}
void addedge(int s,int t,int flow,int cost){
mincostflow::addedge(s,t,flow,cost);
}
int main() {
int n,P,M,F,N,S;
scanf("%d%d%d%d%d%d",&n,&P,&M,&F,&N,&S);
int s=n+n+1,t=n+n+2,i;
mincostflow::init(n+n+2);
addedge(s,n+1,INF,P);
FOR(i,1,n){
int k;
scanf("%d",&k);
if (i!=1) addedge(i+n-1,i+n,INF,0);
if (i+M<=n) addedge(i,i+M+n,k,F);
if (i+N<=n) addedge(i,i+N+n,k,S);
addedge(s,i,k,0);
addedge(i+n,t,k,0);
} auto now=mincostflow::mincostflow(s,t,n+n+2);
// printf("%d %d\n",now.first,now.second);
printf("%d\n",now.second);
}
/*
*/
| [
"[email protected]"
] | |
915618af55259d8ea16d79ba1412ae52320a388d | eab8377af0c2a51a4bb7b50def0bf4265c7ab551 | /test/cctest/wasm/test-run-wasm-simd.cc | 7f4ac0d6cbb5b3a2078600c5052adb871b6239d7 | [
"BSD-3-Clause",
"bzip2-1.0.6",
"SunPro"
] | permissive | sarehuna/v8 | 7c7bc02bd0ddff419a2d494144ef198d9aaabcd9 | 3ef16185e43e54507e385a91a6e53a71becc9a98 | refs/heads/master | 2021-04-27T11:58:47.337118 | 2018-02-23T00:18:45 | 2018-02-23T00:57:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 94,977 | cc | // Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/assembler-inl.h"
#include "test/cctest/cctest.h"
#include "test/cctest/compiler/value-helper.h"
#include "test/cctest/wasm/wasm-run-utils.h"
#include "test/common/wasm/wasm-macro-gen.h"
namespace v8 {
namespace internal {
namespace wasm {
namespace test_run_wasm_simd {
namespace {
typedef float (*FloatUnOp)(float);
typedef float (*FloatBinOp)(float, float);
typedef int (*FloatCompareOp)(float, float);
typedef int32_t (*Int32UnOp)(int32_t);
typedef int32_t (*Int32BinOp)(int32_t, int32_t);
typedef int (*Int32CompareOp)(int32_t, int32_t);
typedef int32_t (*Int32ShiftOp)(int32_t, int);
typedef int16_t (*Int16UnOp)(int16_t);
typedef int16_t (*Int16BinOp)(int16_t, int16_t);
typedef int (*Int16CompareOp)(int16_t, int16_t);
typedef int16_t (*Int16ShiftOp)(int16_t, int);
typedef int8_t (*Int8UnOp)(int8_t);
typedef int8_t (*Int8BinOp)(int8_t, int8_t);
typedef int (*Int8CompareOp)(int8_t, int8_t);
typedef int8_t (*Int8ShiftOp)(int8_t, int);
#define WASM_SIMD_TEST(name) \
void RunWasm_##name##_Impl(LowerSimd lower_simd); \
TEST(RunWasm_##name##_compiled) { \
EXPERIMENTAL_FLAG_SCOPE(simd); \
RunWasm_##name##_Impl(kNoLowerSimd); \
} \
TEST(RunWasm_##name##_simd_lowered) { \
EXPERIMENTAL_FLAG_SCOPE(simd); \
RunWasm_##name##_Impl(kLowerSimd); \
} \
void RunWasm_##name##_Impl(LowerSimd lower_simd)
#define WASM_SIMD_COMPILED_TEST(name) \
void RunWasm_##name##_Impl(LowerSimd lower_simd); \
TEST(RunWasm_##name##_compiled) { \
EXPERIMENTAL_FLAG_SCOPE(simd); \
RunWasm_##name##_Impl(kNoLowerSimd); \
} \
void RunWasm_##name##_Impl(LowerSimd lower_simd)
// Generic expected value functions.
template <typename T>
T Negate(T a) {
return -a;
}
template <typename T>
T Add(T a, T b) {
return a + b;
}
template <typename T>
T Sub(T a, T b) {
return a - b;
}
template <typename T>
T Mul(T a, T b) {
return a * b;
}
template <typename T>
T Div(T a, T b) {
return a / b;
}
template <typename T>
T Minimum(T a, T b) {
return a <= b ? a : b;
}
template <typename T>
T Maximum(T a, T b) {
return a >= b ? a : b;
}
template <typename T>
T UnsignedMinimum(T a, T b) {
using UnsignedT = typename std::make_unsigned<T>::type;
return static_cast<UnsignedT>(a) <= static_cast<UnsignedT>(b) ? a : b;
}
template <typename T>
T UnsignedMaximum(T a, T b) {
using UnsignedT = typename std::make_unsigned<T>::type;
return static_cast<UnsignedT>(a) >= static_cast<UnsignedT>(b) ? a : b;
}
template <typename T>
int Equal(T a, T b) {
return a == b ? -1 : 0;
}
template <typename T>
int NotEqual(T a, T b) {
return a != b ? -1 : 0;
}
template <typename T>
int Less(T a, T b) {
return a < b ? -1 : 0;
}
template <typename T>
int LessEqual(T a, T b) {
return a <= b ? -1 : 0;
}
template <typename T>
int Greater(T a, T b) {
return a > b ? -1 : 0;
}
template <typename T>
int GreaterEqual(T a, T b) {
return a >= b ? -1 : 0;
}
template <typename T>
int UnsignedLess(T a, T b) {
using UnsignedT = typename std::make_unsigned<T>::type;
return static_cast<UnsignedT>(a) < static_cast<UnsignedT>(b) ? -1 : 0;
}
template <typename T>
int UnsignedLessEqual(T a, T b) {
using UnsignedT = typename std::make_unsigned<T>::type;
return static_cast<UnsignedT>(a) <= static_cast<UnsignedT>(b) ? -1 : 0;
}
template <typename T>
int UnsignedGreater(T a, T b) {
using UnsignedT = typename std::make_unsigned<T>::type;
return static_cast<UnsignedT>(a) > static_cast<UnsignedT>(b) ? -1 : 0;
}
template <typename T>
int UnsignedGreaterEqual(T a, T b) {
using UnsignedT = typename std::make_unsigned<T>::type;
return static_cast<UnsignedT>(a) >= static_cast<UnsignedT>(b) ? -1 : 0;
}
template <typename T>
T LogicalShiftLeft(T a, int shift) {
return a << shift;
}
template <typename T>
T LogicalShiftRight(T a, int shift) {
using UnsignedT = typename std::make_unsigned<T>::type;
return static_cast<UnsignedT>(a) >> shift;
}
template <typename T>
T Clamp(int64_t value) {
static_assert(sizeof(int64_t) > sizeof(T), "T must be int32_t or smaller");
int64_t min = static_cast<int64_t>(std::numeric_limits<T>::min());
int64_t max = static_cast<int64_t>(std::numeric_limits<T>::max());
int64_t clamped = std::max(min, std::min(max, value));
return static_cast<T>(clamped);
}
template <typename T>
int64_t Widen(T value) {
static_assert(sizeof(int64_t) > sizeof(T), "T must be int32_t or smaller");
return static_cast<int64_t>(value);
}
template <typename T>
int64_t UnsignedWiden(T value) {
static_assert(sizeof(int64_t) > sizeof(T), "T must be int32_t or smaller");
using UnsignedT = typename std::make_unsigned<T>::type;
return static_cast<int64_t>(static_cast<UnsignedT>(value));
}
template <typename T>
T Narrow(int64_t value) {
return Clamp<T>(value);
}
template <typename T>
T UnsignedNarrow(int64_t value) {
static_assert(sizeof(int64_t) > sizeof(T), "T must be int32_t or smaller");
using UnsignedT = typename std::make_unsigned<T>::type;
return static_cast<T>(Clamp<UnsignedT>(value & 0xFFFFFFFFu));
}
template <typename T>
T AddSaturate(T a, T b) {
return Clamp<T>(Widen(a) + Widen(b));
}
template <typename T>
T SubSaturate(T a, T b) {
return Clamp<T>(Widen(a) - Widen(b));
}
template <typename T>
T UnsignedAddSaturate(T a, T b) {
using UnsignedT = typename std::make_unsigned<T>::type;
return Clamp<UnsignedT>(UnsignedWiden(a) + UnsignedWiden(b));
}
template <typename T>
T UnsignedSubSaturate(T a, T b) {
using UnsignedT = typename std::make_unsigned<T>::type;
return Clamp<UnsignedT>(UnsignedWiden(a) - UnsignedWiden(b));
}
template <typename T>
T And(T a, T b) {
return a & b;
}
template <typename T>
T Or(T a, T b) {
return a | b;
}
template <typename T>
T Xor(T a, T b) {
return a ^ b;
}
template <typename T>
T Not(T a) {
return ~a;
}
template <typename T>
T LogicalNot(T a) {
return a == 0 ? -1 : 0;
}
template <typename T>
T Sqrt(T a) {
return std::sqrt(a);
}
template <typename T>
T Recip(T a) {
return 1.0f / a;
}
template <typename T>
T RecipSqrt(T a) {
return 1.0f / std::sqrt(a);
}
} // namespace
#define WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lane_value, lane_index) \
WASM_IF(WASM_##LANE_TYPE##_NE(WASM_GET_LOCAL(lane_value), \
WASM_SIMD_##TYPE##_EXTRACT_LANE( \
lane_index, WASM_GET_LOCAL(value))), \
WASM_RETURN1(WASM_ZERO))
#define WASM_SIMD_CHECK4(TYPE, value, LANE_TYPE, lv0, lv1, lv2, lv3) \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv0, 0) \
, WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv1, 1), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv2, 2), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv3, 3)
#define WASM_SIMD_CHECK_SPLAT4(TYPE, value, LANE_TYPE, lv) \
WASM_SIMD_CHECK4(TYPE, value, LANE_TYPE, lv, lv, lv, lv)
#define WASM_SIMD_CHECK8(TYPE, value, LANE_TYPE, lv0, lv1, lv2, lv3, lv4, lv5, \
lv6, lv7) \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv0, 0) \
, WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv1, 1), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv2, 2), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv3, 3), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv4, 4), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv5, 5), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv6, 6), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv7, 7)
#define WASM_SIMD_CHECK_SPLAT8(TYPE, value, LANE_TYPE, lv) \
WASM_SIMD_CHECK8(TYPE, value, LANE_TYPE, lv, lv, lv, lv, lv, lv, lv, lv)
#define WASM_SIMD_CHECK16(TYPE, value, LANE_TYPE, lv0, lv1, lv2, lv3, lv4, \
lv5, lv6, lv7, lv8, lv9, lv10, lv11, lv12, lv13, \
lv14, lv15) \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv0, 0) \
, WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv1, 1), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv2, 2), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv3, 3), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv4, 4), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv5, 5), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv6, 6), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv7, 7), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv8, 8), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv9, 9), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv10, 10), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv11, 11), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv12, 12), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv13, 13), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv14, 14), \
WASM_SIMD_CHECK_LANE(TYPE, value, LANE_TYPE, lv15, 15)
#define WASM_SIMD_CHECK_SPLAT16(TYPE, value, LANE_TYPE, lv) \
WASM_SIMD_CHECK16(TYPE, value, LANE_TYPE, lv, lv, lv, lv, lv, lv, lv, lv, \
lv, lv, lv, lv, lv, lv, lv, lv)
#define WASM_SIMD_CHECK_F32_LANE(value, lane_value, lane_index) \
WASM_IF(WASM_F32_NE(WASM_GET_LOCAL(lane_value), \
WASM_SIMD_F32x4_EXTRACT_LANE(lane_index, \
WASM_GET_LOCAL(value))), \
WASM_RETURN1(WASM_ZERO))
#define WASM_SIMD_CHECK_F32x4(value, lv0, lv1, lv2, lv3) \
WASM_SIMD_CHECK_F32_LANE(value, lv0, 0) \
, WASM_SIMD_CHECK_F32_LANE(value, lv1, 1), \
WASM_SIMD_CHECK_F32_LANE(value, lv2, 2), \
WASM_SIMD_CHECK_F32_LANE(value, lv3, 3)
#define WASM_SIMD_CHECK_SPLAT_F32x4(value, lv) \
WASM_SIMD_CHECK_F32x4(value, lv, lv, lv, lv)
#define WASM_SIMD_CHECK_F32_LANE_ESTIMATE(value, low, high, lane_index) \
WASM_IF(WASM_F32_GT(WASM_GET_LOCAL(low), \
WASM_SIMD_F32x4_EXTRACT_LANE(lane_index, \
WASM_GET_LOCAL(value))), \
WASM_RETURN1(WASM_ZERO)) \
, WASM_IF(WASM_F32_LT(WASM_GET_LOCAL(high), \
WASM_SIMD_F32x4_EXTRACT_LANE(lane_index, \
WASM_GET_LOCAL(value))), \
WASM_RETURN1(WASM_ZERO))
#define WASM_SIMD_CHECK_SPLAT_F32x4_ESTIMATE(value, low, high) \
WASM_SIMD_CHECK_F32_LANE_ESTIMATE(value, low, high, 0) \
, WASM_SIMD_CHECK_F32_LANE_ESTIMATE(value, low, high, 1), \
WASM_SIMD_CHECK_F32_LANE_ESTIMATE(value, low, high, 2), \
WASM_SIMD_CHECK_F32_LANE_ESTIMATE(value, low, high, 3)
#define TO_BYTE(val) static_cast<byte>(val)
#define WASM_SIMD_OP(op) kSimdPrefix, TO_BYTE(op)
#define WASM_SIMD_SPLAT(Type, x) x, WASM_SIMD_OP(kExpr##Type##Splat)
#define WASM_SIMD_UNOP(op, x) x, WASM_SIMD_OP(op)
#define WASM_SIMD_BINOP(op, x, y) x, y, WASM_SIMD_OP(op)
#define WASM_SIMD_SHIFT_OP(op, shift, x) x, WASM_SIMD_OP(op), TO_BYTE(shift)
#define WASM_SIMD_CONCAT_OP(op, bytes, x, y) \
x, y, WASM_SIMD_OP(op), TO_BYTE(bytes)
#define WASM_SIMD_SELECT(format, x, y, z) x, y, z, WASM_SIMD_OP(kExprS128Select)
#define WASM_SIMD_F32x4_SPLAT(x) x, WASM_SIMD_OP(kExprF32x4Splat)
#define WASM_SIMD_F32x4_EXTRACT_LANE(lane, x) \
x, WASM_SIMD_OP(kExprF32x4ExtractLane), TO_BYTE(lane)
#define WASM_SIMD_F32x4_REPLACE_LANE(lane, x, y) \
x, y, WASM_SIMD_OP(kExprF32x4ReplaceLane), TO_BYTE(lane)
#define WASM_SIMD_I32x4_SPLAT(x) x, WASM_SIMD_OP(kExprI32x4Splat)
#define WASM_SIMD_I32x4_EXTRACT_LANE(lane, x) \
x, WASM_SIMD_OP(kExprI32x4ExtractLane), TO_BYTE(lane)
#define WASM_SIMD_I32x4_REPLACE_LANE(lane, x, y) \
x, y, WASM_SIMD_OP(kExprI32x4ReplaceLane), TO_BYTE(lane)
#define WASM_SIMD_I16x8_SPLAT(x) x, WASM_SIMD_OP(kExprI16x8Splat)
#define WASM_SIMD_I16x8_EXTRACT_LANE(lane, x) \
x, WASM_SIMD_OP(kExprI16x8ExtractLane), TO_BYTE(lane)
#define WASM_SIMD_I16x8_REPLACE_LANE(lane, x, y) \
x, y, WASM_SIMD_OP(kExprI16x8ReplaceLane), TO_BYTE(lane)
#define WASM_SIMD_I8x16_SPLAT(x) x, WASM_SIMD_OP(kExprI8x16Splat)
#define WASM_SIMD_I8x16_EXTRACT_LANE(lane, x) \
x, WASM_SIMD_OP(kExprI8x16ExtractLane), TO_BYTE(lane)
#define WASM_SIMD_I8x16_REPLACE_LANE(lane, x, y) \
x, y, WASM_SIMD_OP(kExprI8x16ReplaceLane), TO_BYTE(lane)
#define WASM_SIMD_S8x16_SHUFFLE_OP(opcode, m, x, y) \
x, y, WASM_SIMD_OP(opcode), TO_BYTE(m[0]), TO_BYTE(m[1]), TO_BYTE(m[2]), \
TO_BYTE(m[3]), TO_BYTE(m[4]), TO_BYTE(m[5]), TO_BYTE(m[6]), \
TO_BYTE(m[7]), TO_BYTE(m[8]), TO_BYTE(m[9]), TO_BYTE(m[10]), \
TO_BYTE(m[11]), TO_BYTE(m[12]), TO_BYTE(m[13]), TO_BYTE(m[14]), \
TO_BYTE(m[15])
#define WASM_SIMD_LOAD_MEM(index) \
index, WASM_SIMD_OP(kExprS128LoadMem), ZERO_ALIGNMENT, ZERO_OFFSET
#define WASM_SIMD_STORE_MEM(index, val) \
index, val, WASM_SIMD_OP(kExprS128StoreMem), ZERO_ALIGNMENT, ZERO_OFFSET
// Skip FP tests involving extremely large or extremely small values, which
// may fail due to non-IEEE-754 SIMD arithmetic on some platforms.
bool SkipFPValue(float x) {
float abs_x = std::fabs(x);
const float kSmallFloatThreshold = 1.0e-32f;
const float kLargeFloatThreshold = 1.0e32f;
return abs_x != 0.0f && // 0 or -0 are fine.
(abs_x < kSmallFloatThreshold || abs_x > kLargeFloatThreshold);
}
// Skip tests where the expected value is a NaN, since our wasm test code
// doesn't handle NaNs. Also skip extreme values.
bool SkipFPExpectedValue(float x) { return std::isnan(x) || SkipFPValue(x); }
WASM_SIMD_TEST(F32x4Splat) {
WasmRunner<int32_t, float> r(kExecuteTurbofan, lower_simd);
byte lane_val = 0;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r,
WASM_SET_LOCAL(simd, WASM_SIMD_F32x4_SPLAT(WASM_GET_LOCAL(lane_val))),
WASM_SIMD_CHECK_SPLAT_F32x4(simd, lane_val), WASM_RETURN1(WASM_ONE));
FOR_FLOAT32_INPUTS(i) {
if (SkipFPExpectedValue(*i)) continue;
CHECK_EQ(1, r.Call(*i));
}
}
WASM_SIMD_TEST(F32x4ReplaceLane) {
WasmRunner<int32_t, float, float> r(kExecuteTurbofan, lower_simd);
byte old_val = 0;
byte new_val = 1;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_F32x4_SPLAT(WASM_GET_LOCAL(old_val))),
WASM_SET_LOCAL(simd,
WASM_SIMD_F32x4_REPLACE_LANE(0, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK_F32x4(simd, new_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_F32x4_REPLACE_LANE(1, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK_F32x4(simd, new_val, new_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_F32x4_REPLACE_LANE(2, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK_F32x4(simd, new_val, new_val, new_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_F32x4_REPLACE_LANE(3, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK_SPLAT_F32x4(simd, new_val), WASM_RETURN1(WASM_ONE));
CHECK_EQ(1, r.Call(3.14159f, -1.5f));
}
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
V8_TARGET_ARCH_MIPS64
// Tests both signed and unsigned conversion.
WASM_SIMD_TEST(F32x4ConvertI32x4) {
WasmRunner<int32_t, int32_t, float, float> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte expected_signed = 1;
byte expected_unsigned = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
byte simd2 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_UNOP(kExprF32x4SConvertI32x4,
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT_F32x4(simd1, expected_signed),
WASM_SET_LOCAL(simd2, WASM_SIMD_UNOP(kExprF32x4UConvertI32x4,
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT_F32x4(simd2, expected_unsigned),
WASM_RETURN1(WASM_ONE));
FOR_INT32_INPUTS(i) {
CHECK_EQ(1, r.Call(*i, static_cast<float>(*i),
static_cast<float>(static_cast<uint32_t>(*i))));
}
}
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS ||
// V8_TARGET_ARCH_MIPS64
void RunF32x4UnOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
FloatUnOp expected_op, float error = 0.0f) {
WasmRunner<int32_t, float, float, float> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte low = 1;
byte high = 2;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_F32x4_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd, WASM_SIMD_UNOP(simd_op, WASM_GET_LOCAL(simd))),
WASM_SIMD_CHECK_SPLAT_F32x4_ESTIMATE(simd, low, high),
WASM_RETURN1(WASM_ONE));
FOR_FLOAT32_INPUTS(i) {
if (SkipFPValue(*i)) continue;
float expected = expected_op(*i);
if (SkipFPExpectedValue(expected)) continue;
float abs_error = std::abs(expected) * error;
CHECK_EQ(1, r.Call(*i, expected - abs_error, expected + abs_error));
}
}
WASM_SIMD_TEST(F32x4Abs) {
RunF32x4UnOpTest(lower_simd, kExprF32x4Abs, std::abs);
}
WASM_SIMD_TEST(F32x4Neg) {
RunF32x4UnOpTest(lower_simd, kExprF32x4Neg, Negate);
}
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_X64
static const float kApproxError = 0.01f;
WASM_SIMD_COMPILED_TEST(F32x4RecipApprox) {
RunF32x4UnOpTest(lower_simd, kExprF32x4RecipApprox, Recip, kApproxError);
}
WASM_SIMD_COMPILED_TEST(F32x4RecipSqrtApprox) {
RunF32x4UnOpTest(lower_simd, kExprF32x4RecipSqrtApprox, RecipSqrt,
kApproxError);
}
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS ||
// V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_X64
void RunF32x4BinOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
FloatBinOp expected_op) {
WasmRunner<int32_t, float, float, float> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte b = 1;
byte expected = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_F32x4_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_F32x4_SPLAT(WASM_GET_LOCAL(b))),
WASM_SET_LOCAL(simd1, WASM_SIMD_BINOP(simd_op, WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd1))),
WASM_SIMD_CHECK_SPLAT_F32x4(simd1, expected), WASM_RETURN1(WASM_ONE));
FOR_FLOAT32_INPUTS(i) {
if (SkipFPValue(*i)) continue;
FOR_FLOAT32_INPUTS(j) {
if (SkipFPValue(*j)) continue;
float expected = expected_op(*i, *j);
if (SkipFPExpectedValue(expected)) continue;
CHECK_EQ(1, r.Call(*i, *j, expected));
}
}
}
WASM_SIMD_TEST(F32x4Add) { RunF32x4BinOpTest(lower_simd, kExprF32x4Add, Add); }
WASM_SIMD_TEST(F32x4Sub) { RunF32x4BinOpTest(lower_simd, kExprF32x4Sub, Sub); }
WASM_SIMD_TEST(F32x4Mul) { RunF32x4BinOpTest(lower_simd, kExprF32x4Mul, Mul); }
WASM_SIMD_TEST(F32x4_Min) {
RunF32x4BinOpTest(lower_simd, kExprF32x4Min, JSMin);
}
WASM_SIMD_TEST(F32x4_Max) {
RunF32x4BinOpTest(lower_simd, kExprF32x4Max, JSMax);
}
void RunF32x4CompareOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
FloatCompareOp expected_op) {
WasmRunner<int32_t, float, float, int32_t> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte b = 1;
byte expected = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_F32x4_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_F32x4_SPLAT(WASM_GET_LOCAL(b))),
WASM_SET_LOCAL(simd1, WASM_SIMD_BINOP(simd_op, WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd1))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd1, I32, expected), WASM_ONE);
FOR_FLOAT32_INPUTS(i) {
if (SkipFPValue(*i)) continue;
FOR_FLOAT32_INPUTS(j) {
if (SkipFPValue(*j)) continue;
float diff = *i - *j;
if (SkipFPExpectedValue(diff)) continue;
CHECK_EQ(1, r.Call(*i, *j, expected_op(*i, *j)));
}
}
}
WASM_SIMD_TEST(F32x4Eq) {
RunF32x4CompareOpTest(lower_simd, kExprF32x4Eq, Equal);
}
WASM_SIMD_TEST(F32x4Ne) {
RunF32x4CompareOpTest(lower_simd, kExprF32x4Ne, NotEqual);
}
WASM_SIMD_TEST(F32x4Gt) {
RunF32x4CompareOpTest(lower_simd, kExprF32x4Gt, Greater);
}
WASM_SIMD_TEST(F32x4Ge) {
RunF32x4CompareOpTest(lower_simd, kExprF32x4Ge, GreaterEqual);
}
WASM_SIMD_TEST(F32x4Lt) {
RunF32x4CompareOpTest(lower_simd, kExprF32x4Lt, Less);
}
WASM_SIMD_TEST(F32x4Le) {
RunF32x4CompareOpTest(lower_simd, kExprF32x4Le, LessEqual);
}
WASM_SIMD_TEST(I32x4Splat) {
// Store SIMD value in a local variable, use extract lane to check lane values
// This test is not a test for ExtractLane as Splat does not create
// interesting SIMD values.
//
// SetLocal(1, I32x4Splat(Local(0)));
// For each lane index
// if(Local(0) != I32x4ExtractLane(Local(1), index)
// return 0
//
// return 1
WasmRunner<int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte lane_val = 0;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r,
WASM_SET_LOCAL(simd, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(lane_val))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd, I32, lane_val), WASM_ONE);
FOR_INT32_INPUTS(i) { CHECK_EQ(1, r.Call(*i)); }
}
WASM_SIMD_TEST(I32x4ReplaceLane) {
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte old_val = 0;
byte new_val = 1;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(old_val))),
WASM_SET_LOCAL(simd,
WASM_SIMD_I32x4_REPLACE_LANE(0, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK4(I32x4, simd, I32, new_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I32x4_REPLACE_LANE(1, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK4(I32x4, simd, I32, new_val, new_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I32x4_REPLACE_LANE(2, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK4(I32x4, simd, I32, new_val, new_val, new_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I32x4_REPLACE_LANE(3, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd, I32, new_val), WASM_ONE);
CHECK_EQ(1, r.Call(1, 2));
}
WASM_SIMD_TEST(I16x8Splat) {
WasmRunner<int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte lane_val = 0;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r,
WASM_SET_LOCAL(simd, WASM_SIMD_I16x8_SPLAT(WASM_GET_LOCAL(lane_val))),
WASM_SIMD_CHECK_SPLAT8(I16x8, simd, I32, lane_val), WASM_ONE);
FOR_INT16_INPUTS(i) { CHECK_EQ(1, r.Call(*i)); }
}
WASM_SIMD_TEST(I16x8ReplaceLane) {
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte old_val = 0;
byte new_val = 1;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_I16x8_SPLAT(WASM_GET_LOCAL(old_val))),
WASM_SET_LOCAL(simd,
WASM_SIMD_I16x8_REPLACE_LANE(0, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK8(I16x8, simd, I32, new_val, old_val, old_val, old_val,
old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I16x8_REPLACE_LANE(1, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK8(I16x8, simd, I32, new_val, new_val, old_val, old_val,
old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I16x8_REPLACE_LANE(2, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK8(I16x8, simd, I32, new_val, new_val, new_val, old_val,
old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I16x8_REPLACE_LANE(3, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK8(I16x8, simd, I32, new_val, new_val, new_val, new_val,
old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I16x8_REPLACE_LANE(4, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK8(I16x8, simd, I32, new_val, new_val, new_val, new_val,
new_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I16x8_REPLACE_LANE(5, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK8(I16x8, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I16x8_REPLACE_LANE(6, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK8(I16x8, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I16x8_REPLACE_LANE(7, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK_SPLAT8(I16x8, simd, I32, new_val), WASM_ONE);
CHECK_EQ(1, r.Call(1, 2));
}
WASM_SIMD_TEST(I8x16Splat) {
WasmRunner<int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte lane_val = 0;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r,
WASM_SET_LOCAL(simd, WASM_SIMD_I8x16_SPLAT(WASM_GET_LOCAL(lane_val))),
WASM_SIMD_CHECK_SPLAT8(I8x16, simd, I32, lane_val), WASM_ONE);
FOR_INT8_INPUTS(i) { CHECK_EQ(1, r.Call(*i)); }
}
WASM_SIMD_TEST(I8x16ReplaceLane) {
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte old_val = 0;
byte new_val = 1;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_I8x16_SPLAT(WASM_GET_LOCAL(old_val))),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(0, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, old_val, old_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(1, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, old_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(2, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(3, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
old_val, old_val, old_val, old_val, old_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(4, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, old_val, old_val, old_val, old_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(5, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, old_val, old_val, old_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(6, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, old_val, old_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(7, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, new_val, old_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(8, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, new_val, new_val, old_val,
old_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(9, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, new_val, new_val, new_val,
old_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(10, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, new_val, new_val, new_val,
new_val, old_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(11, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, new_val, new_val, new_val,
new_val, new_val, old_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(12, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, old_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(13, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, new_val, old_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(14, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK16(I8x16, simd, I32, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, new_val, new_val, new_val,
new_val, new_val, new_val, new_val, new_val, old_val),
WASM_SET_LOCAL(simd,
WASM_SIMD_I8x16_REPLACE_LANE(15, WASM_GET_LOCAL(simd),
WASM_GET_LOCAL(new_val))),
WASM_SIMD_CHECK_SPLAT16(I8x16, simd, I32, new_val), WASM_ONE);
CHECK_EQ(1, r.Call(1, 2));
}
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
V8_TARGET_ARCH_MIPS64
// Determines if conversion from float to int will be valid.
bool CanRoundToZeroAndConvert(double val, bool unsigned_integer) {
const double max_uint = static_cast<double>(0xFFFFFFFFu);
const double max_int = static_cast<double>(kMaxInt);
const double min_int = static_cast<double>(kMinInt);
// Check for NaN.
if (val != val) {
return false;
}
// Round to zero and check for overflow. This code works because 32 bit
// integers can be exactly represented by ieee-754 64bit floating-point
// values.
return unsigned_integer ? (val < (max_uint + 1.0)) && (val > -1)
: (val < (max_int + 1.0)) && (val > (min_int - 1.0));
}
int ConvertInvalidValue(double val, bool unsigned_integer) {
if (val != val) {
return 0;
} else {
if (unsigned_integer) {
return (val < 0) ? 0 : 0xFFFFFFFFu;
} else {
return (val < 0) ? kMinInt : kMaxInt;
}
}
}
int32_t ConvertToInt(double val, bool unsigned_integer) {
int32_t result =
unsigned_integer ? static_cast<uint32_t>(val) : static_cast<int32_t>(val);
if (!CanRoundToZeroAndConvert(val, unsigned_integer)) {
result = ConvertInvalidValue(val, unsigned_integer);
}
return result;
}
// Tests both signed and unsigned conversion.
WASM_SIMD_TEST(I32x4ConvertF32x4) {
WasmRunner<int32_t, float, int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte expected_signed = 1;
byte expected_unsigned = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
byte simd2 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_F32x4_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_UNOP(kExprI32x4SConvertF32x4,
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd1, I32, expected_signed),
WASM_SET_LOCAL(simd2, WASM_SIMD_UNOP(kExprI32x4UConvertF32x4,
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd2, I32, expected_unsigned), WASM_ONE);
FOR_FLOAT32_INPUTS(i) {
if (SkipFPValue(*i)) continue;
int32_t signed_value = ConvertToInt(*i, false);
int32_t unsigned_value = ConvertToInt(*i, true);
CHECK_EQ(1, r.Call(*i, signed_value, unsigned_value));
}
}
// Tests both signed and unsigned conversion from I16x8 (unpacking).
WASM_SIMD_COMPILED_TEST(I32x4ConvertI16x8) {
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan,
lower_simd);
byte a = 0;
byte unpacked_signed = 1;
byte unpacked_unsigned = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
byte simd2 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I16x8_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_UNOP(kExprI32x4SConvertI16x8Low,
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd1, I32, unpacked_signed),
WASM_SET_LOCAL(simd2, WASM_SIMD_UNOP(kExprI32x4UConvertI16x8High,
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd2, I32, unpacked_unsigned), WASM_ONE);
FOR_INT16_INPUTS(i) {
int32_t unpacked_signed = static_cast<int32_t>(Widen<int16_t>(*i));
int32_t unpacked_unsigned =
static_cast<int32_t>(UnsignedWiden<int16_t>(*i));
CHECK_EQ(1, r.Call(*i, unpacked_signed, unpacked_unsigned));
}
}
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS ||
// V8_TARGET_ARCH_MIPS64
void RunI32x4UnOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int32UnOp expected_op) {
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte expected = 1;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd, WASM_SIMD_UNOP(simd_op, WASM_GET_LOCAL(simd))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd, I32, expected), WASM_ONE);
FOR_INT32_INPUTS(i) { CHECK_EQ(1, r.Call(*i, expected_op(*i))); }
}
WASM_SIMD_TEST(I32x4Neg) {
RunI32x4UnOpTest(lower_simd, kExprI32x4Neg, Negate);
}
WASM_SIMD_TEST(S128Not) { RunI32x4UnOpTest(lower_simd, kExprS128Not, Not); }
void RunI32x4BinOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int32BinOp expected_op) {
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan,
lower_simd);
byte a = 0;
byte b = 1;
byte expected = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(b))),
WASM_SET_LOCAL(simd1, WASM_SIMD_BINOP(simd_op, WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd1))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd1, I32, expected), WASM_ONE);
FOR_INT32_INPUTS(i) {
FOR_INT32_INPUTS(j) { CHECK_EQ(1, r.Call(*i, *j, expected_op(*i, *j))); }
}
}
WASM_SIMD_TEST(I32x4Add) { RunI32x4BinOpTest(lower_simd, kExprI32x4Add, Add); }
WASM_SIMD_TEST(I32x4Sub) { RunI32x4BinOpTest(lower_simd, kExprI32x4Sub, Sub); }
WASM_SIMD_TEST(I32x4Mul) { RunI32x4BinOpTest(lower_simd, kExprI32x4Mul, Mul); }
WASM_SIMD_TEST(I32x4MinS) {
RunI32x4BinOpTest(lower_simd, kExprI32x4MinS, Minimum);
}
WASM_SIMD_TEST(I32x4MaxS) {
RunI32x4BinOpTest(lower_simd, kExprI32x4MaxS, Maximum);
}
WASM_SIMD_TEST(I32x4MinU) {
RunI32x4BinOpTest(lower_simd, kExprI32x4MinU, UnsignedMinimum);
}
WASM_SIMD_TEST(I32x4MaxU) {
RunI32x4BinOpTest(lower_simd, kExprI32x4MaxU, UnsignedMaximum);
}
WASM_SIMD_TEST(S128And) { RunI32x4BinOpTest(lower_simd, kExprS128And, And); }
WASM_SIMD_TEST(S128Or) { RunI32x4BinOpTest(lower_simd, kExprS128Or, Or); }
WASM_SIMD_TEST(S128Xor) { RunI32x4BinOpTest(lower_simd, kExprS128Xor, Xor); }
void RunI32x4CompareOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int32CompareOp expected_op) {
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan,
lower_simd);
byte a = 0;
byte b = 1;
byte expected = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(b))),
WASM_SET_LOCAL(simd1, WASM_SIMD_BINOP(simd_op, WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd1))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd1, I32, expected), WASM_ONE);
FOR_INT32_INPUTS(i) {
FOR_INT32_INPUTS(j) { CHECK_EQ(1, r.Call(*i, *j, expected_op(*i, *j))); }
}
}
WASM_SIMD_TEST(I32x4Eq) {
RunI32x4CompareOpTest(lower_simd, kExprI32x4Eq, Equal);
}
WASM_SIMD_TEST(I32x4Ne) {
RunI32x4CompareOpTest(lower_simd, kExprI32x4Ne, NotEqual);
}
WASM_SIMD_TEST(I32x4LtS) {
RunI32x4CompareOpTest(lower_simd, kExprI32x4LtS, Less);
}
WASM_SIMD_TEST(I32x4LeS) {
RunI32x4CompareOpTest(lower_simd, kExprI32x4LeS, LessEqual);
}
WASM_SIMD_TEST(I32x4GtS) {
RunI32x4CompareOpTest(lower_simd, kExprI32x4GtS, Greater);
}
WASM_SIMD_TEST(I32x4GeS) {
RunI32x4CompareOpTest(lower_simd, kExprI32x4GeS, GreaterEqual);
}
WASM_SIMD_TEST(I32x4LtU) {
RunI32x4CompareOpTest(lower_simd, kExprI32x4LtU, UnsignedLess);
}
WASM_SIMD_TEST(I32x4LeU) {
RunI32x4CompareOpTest(lower_simd, kExprI32x4LeU, UnsignedLessEqual);
}
WASM_SIMD_TEST(I32x4GtU) {
RunI32x4CompareOpTest(lower_simd, kExprI32x4GtU, UnsignedGreater);
}
WASM_SIMD_TEST(I32x4GeU) {
RunI32x4CompareOpTest(lower_simd, kExprI32x4GeU, UnsignedGreaterEqual);
}
void RunI32x4ShiftOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int32ShiftOp expected_op, int shift) {
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte expected = 1;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(
simd, WASM_SIMD_SHIFT_OP(simd_op, shift, WASM_GET_LOCAL(simd))),
WASM_SIMD_CHECK_SPLAT4(I32x4, simd, I32, expected), WASM_ONE);
FOR_INT32_INPUTS(i) { CHECK_EQ(1, r.Call(*i, expected_op(*i, shift))); }
}
WASM_SIMD_TEST(I32x4Shl) {
RunI32x4ShiftOpTest(lower_simd, kExprI32x4Shl, LogicalShiftLeft, 1);
}
WASM_SIMD_TEST(I32x4ShrS) {
RunI32x4ShiftOpTest(lower_simd, kExprI32x4ShrS, ArithmeticShiftRight, 1);
}
WASM_SIMD_TEST(I32x4ShrU) {
RunI32x4ShiftOpTest(lower_simd, kExprI32x4ShrU, LogicalShiftRight, 1);
}
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
V8_TARGET_ARCH_MIPS64
// Tests both signed and unsigned conversion from I8x16 (unpacking).
WASM_SIMD_COMPILED_TEST(I16x8ConvertI8x16) {
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan,
lower_simd);
byte a = 0;
byte unpacked_signed = 1;
byte unpacked_unsigned = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
byte simd2 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I8x16_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_UNOP(kExprI16x8SConvertI8x16Low,
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT8(I16x8, simd1, I32, unpacked_signed),
WASM_SET_LOCAL(simd2, WASM_SIMD_UNOP(kExprI16x8UConvertI8x16High,
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT8(I16x8, simd2, I32, unpacked_unsigned), WASM_ONE);
FOR_INT8_INPUTS(i) {
int32_t unpacked_signed = static_cast<int32_t>(Widen<int8_t>(*i));
int32_t unpacked_unsigned = static_cast<int32_t>(UnsignedWiden<int8_t>(*i));
CHECK_EQ(1, r.Call(*i, unpacked_signed, unpacked_unsigned));
}
}
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS ||
// V8_TARGET_ARCH_MIPS64
void RunI16x8UnOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int16UnOp expected_op) {
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte expected = 1;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_I16x8_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd, WASM_SIMD_UNOP(simd_op, WASM_GET_LOCAL(simd))),
WASM_SIMD_CHECK_SPLAT8(I16x8, simd, I32, expected), WASM_ONE);
FOR_INT16_INPUTS(i) { CHECK_EQ(1, r.Call(*i, expected_op(*i))); }
}
WASM_SIMD_TEST(I16x8Neg) {
RunI16x8UnOpTest(lower_simd, kExprI16x8Neg, Negate);
}
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
V8_TARGET_ARCH_MIPS64
// Tests both signed and unsigned conversion from I32x4 (packing).
WASM_SIMD_COMPILED_TEST(I16x8ConvertI32x4) {
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan,
lower_simd);
byte a = 0;
byte packed_signed = 1;
byte packed_unsigned = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
byte simd2 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_BINOP(kExprI16x8SConvertI32x4,
WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT8(I16x8, simd1, I32, packed_signed),
WASM_SET_LOCAL(simd2, WASM_SIMD_BINOP(kExprI16x8UConvertI32x4,
WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT8(I16x8, simd2, I32, packed_unsigned), WASM_ONE);
FOR_INT32_INPUTS(i) {
int32_t packed_signed = Narrow<int16_t>(*i);
int32_t packed_unsigned = UnsignedNarrow<int16_t>(*i);
// Sign-extend here, since ExtractLane sign extends.
if (packed_unsigned & 0x8000) packed_unsigned |= 0xFFFF0000;
CHECK_EQ(1, r.Call(*i, packed_signed, packed_unsigned));
}
}
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS ||
// V8_TARGET_ARCH_MIPS64
void RunI16x8BinOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int16BinOp expected_op) {
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan,
lower_simd);
byte a = 0;
byte b = 1;
byte expected = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I16x8_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_I16x8_SPLAT(WASM_GET_LOCAL(b))),
WASM_SET_LOCAL(simd1, WASM_SIMD_BINOP(simd_op, WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd1))),
WASM_SIMD_CHECK_SPLAT8(I16x8, simd1, I32, expected), WASM_ONE);
FOR_INT16_INPUTS(i) {
FOR_INT16_INPUTS(j) { CHECK_EQ(1, r.Call(*i, *j, expected_op(*i, *j))); }
}
}
WASM_SIMD_TEST(I16x8Add) { RunI16x8BinOpTest(lower_simd, kExprI16x8Add, Add); }
WASM_SIMD_TEST(I16x8AddSaturateS) {
RunI16x8BinOpTest(lower_simd, kExprI16x8AddSaturateS, AddSaturate);
}
WASM_SIMD_TEST(I16x8Sub) { RunI16x8BinOpTest(lower_simd, kExprI16x8Sub, Sub); }
WASM_SIMD_TEST(I16x8SubSaturateS) {
RunI16x8BinOpTest(lower_simd, kExprI16x8SubSaturateS, SubSaturate);
}
WASM_SIMD_TEST(I16x8Mul) { RunI16x8BinOpTest(lower_simd, kExprI16x8Mul, Mul); }
WASM_SIMD_TEST(I16x8MinS) {
RunI16x8BinOpTest(lower_simd, kExprI16x8MinS, Minimum);
}
WASM_SIMD_TEST(I16x8MaxS) {
RunI16x8BinOpTest(lower_simd, kExprI16x8MaxS, Maximum);
}
WASM_SIMD_TEST(I16x8AddSaturateU) {
RunI16x8BinOpTest(lower_simd, kExprI16x8AddSaturateU, UnsignedAddSaturate);
}
WASM_SIMD_TEST(I16x8SubSaturateU) {
RunI16x8BinOpTest(lower_simd, kExprI16x8SubSaturateU, UnsignedSubSaturate);
}
WASM_SIMD_TEST(I16x8MinU) {
RunI16x8BinOpTest(lower_simd, kExprI16x8MinU, UnsignedMinimum);
}
WASM_SIMD_TEST(I16x8MaxU) {
RunI16x8BinOpTest(lower_simd, kExprI16x8MaxU, UnsignedMaximum);
}
void RunI16x8CompareOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int16CompareOp expected_op) {
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan,
lower_simd);
byte a = 0;
byte b = 1;
byte expected = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I16x8_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_I16x8_SPLAT(WASM_GET_LOCAL(b))),
WASM_SET_LOCAL(simd1, WASM_SIMD_BINOP(simd_op, WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd1))),
WASM_SIMD_CHECK_SPLAT8(I16x8, simd1, I32, expected), WASM_ONE);
FOR_INT16_INPUTS(i) {
FOR_INT16_INPUTS(j) { CHECK_EQ(1, r.Call(*i, *j, expected_op(*i, *j))); }
}
}
WASM_SIMD_TEST(I16x8Eq) {
RunI16x8CompareOpTest(lower_simd, kExprI16x8Eq, Equal);
}
WASM_SIMD_TEST(I16x8Ne) {
RunI16x8CompareOpTest(lower_simd, kExprI16x8Ne, NotEqual);
}
WASM_SIMD_TEST(I16x8LtS) {
RunI16x8CompareOpTest(lower_simd, kExprI16x8LtS, Less);
}
WASM_SIMD_TEST(I16x8LeS) {
RunI16x8CompareOpTest(lower_simd, kExprI16x8LeS, LessEqual);
}
WASM_SIMD_TEST(I16x8GtS) {
RunI16x8CompareOpTest(lower_simd, kExprI16x8GtS, Greater);
}
WASM_SIMD_TEST(I16x8GeS) {
RunI16x8CompareOpTest(lower_simd, kExprI16x8GeS, GreaterEqual);
}
WASM_SIMD_TEST(I16x8GtU) {
RunI16x8CompareOpTest(lower_simd, kExprI16x8GtU, UnsignedGreater);
}
WASM_SIMD_TEST(I16x8GeU) {
RunI16x8CompareOpTest(lower_simd, kExprI16x8GeU, UnsignedGreaterEqual);
}
WASM_SIMD_TEST(I16x8LtU) {
RunI16x8CompareOpTest(lower_simd, kExprI16x8LtU, UnsignedLess);
}
WASM_SIMD_TEST(I16x8LeU) {
RunI16x8CompareOpTest(lower_simd, kExprI16x8LeU, UnsignedLessEqual);
}
void RunI16x8ShiftOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int16ShiftOp expected_op, int shift) {
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte expected = 1;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_I16x8_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(
simd, WASM_SIMD_SHIFT_OP(simd_op, shift, WASM_GET_LOCAL(simd))),
WASM_SIMD_CHECK_SPLAT8(I16x8, simd, I32, expected), WASM_ONE);
FOR_INT16_INPUTS(i) { CHECK_EQ(1, r.Call(*i, expected_op(*i, shift))); }
}
WASM_SIMD_TEST(I16x8Shl) {
RunI16x8ShiftOpTest(lower_simd, kExprI16x8Shl, LogicalShiftLeft, 1);
}
WASM_SIMD_TEST(I16x8ShrS) {
RunI16x8ShiftOpTest(lower_simd, kExprI16x8ShrS, ArithmeticShiftRight, 1);
}
WASM_SIMD_TEST(I16x8ShrU) {
RunI16x8ShiftOpTest(lower_simd, kExprI16x8ShrU, LogicalShiftRight, 1);
}
void RunI8x16UnOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int8UnOp expected_op) {
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte expected = 1;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_I8x16_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd, WASM_SIMD_UNOP(simd_op, WASM_GET_LOCAL(simd))),
WASM_SIMD_CHECK_SPLAT16(I8x16, simd, I32, expected), WASM_ONE);
FOR_INT8_INPUTS(i) { CHECK_EQ(1, r.Call(*i, expected_op(*i))); }
}
WASM_SIMD_TEST(I8x16Neg) {
RunI8x16UnOpTest(lower_simd, kExprI8x16Neg, Negate);
}
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
V8_TARGET_ARCH_MIPS64
// Tests both signed and unsigned conversion from I16x8 (packing).
WASM_SIMD_COMPILED_TEST(I8x16ConvertI16x8) {
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan,
lower_simd);
byte a = 0;
byte packed_signed = 1;
byte packed_unsigned = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
byte simd2 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I16x8_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_BINOP(kExprI8x16SConvertI16x8,
WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT16(I8x16, simd1, I32, packed_signed),
WASM_SET_LOCAL(simd2, WASM_SIMD_BINOP(kExprI8x16UConvertI16x8,
WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd0))),
WASM_SIMD_CHECK_SPLAT16(I8x16, simd2, I32, packed_unsigned), WASM_ONE);
FOR_INT16_INPUTS(i) {
int32_t packed_signed = Narrow<int8_t>(*i);
int32_t packed_unsigned = UnsignedNarrow<int8_t>(*i);
// Sign-extend here, since ExtractLane sign extends.
if (packed_unsigned & 0x80) packed_unsigned |= 0xFFFFFF00;
CHECK_EQ(1, r.Call(*i, packed_signed, packed_unsigned));
}
}
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS ||
// V8_TARGET_ARCH_MIPS64
void RunI8x16BinOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int8BinOp expected_op) {
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan,
lower_simd);
byte a = 0;
byte b = 1;
byte expected = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I8x16_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_I8x16_SPLAT(WASM_GET_LOCAL(b))),
WASM_SET_LOCAL(simd1, WASM_SIMD_BINOP(simd_op, WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd1))),
WASM_SIMD_CHECK_SPLAT16(I8x16, simd1, I32, expected), WASM_ONE);
FOR_INT8_INPUTS(i) {
FOR_INT8_INPUTS(j) { CHECK_EQ(1, r.Call(*i, *j, expected_op(*i, *j))); }
}
}
WASM_SIMD_TEST(I8x16Add) { RunI8x16BinOpTest(lower_simd, kExprI8x16Add, Add); }
WASM_SIMD_TEST(I8x16AddSaturateS) {
RunI8x16BinOpTest(lower_simd, kExprI8x16AddSaturateS, AddSaturate);
}
WASM_SIMD_TEST(I8x16Sub) { RunI8x16BinOpTest(lower_simd, kExprI8x16Sub, Sub); }
WASM_SIMD_TEST(I8x16SubSaturateS) {
RunI8x16BinOpTest(lower_simd, kExprI8x16SubSaturateS, SubSaturate);
}
WASM_SIMD_TEST(I8x16MinS) {
RunI8x16BinOpTest(lower_simd, kExprI8x16MinS, Minimum);
}
WASM_SIMD_TEST(I8x16MaxS) {
RunI8x16BinOpTest(lower_simd, kExprI8x16MaxS, Maximum);
}
WASM_SIMD_TEST(I8x16AddSaturateU) {
RunI8x16BinOpTest(lower_simd, kExprI8x16AddSaturateU, UnsignedAddSaturate);
}
WASM_SIMD_TEST(I8x16SubSaturateU) {
RunI8x16BinOpTest(lower_simd, kExprI8x16SubSaturateU, UnsignedSubSaturate);
}
WASM_SIMD_TEST(I8x16MinU) {
RunI8x16BinOpTest(lower_simd, kExprI8x16MinU, UnsignedMinimum);
}
WASM_SIMD_TEST(I8x16MaxU) {
RunI8x16BinOpTest(lower_simd, kExprI8x16MaxU, UnsignedMaximum);
}
void RunI8x16CompareOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int8CompareOp expected_op) {
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan,
lower_simd);
byte a = 0;
byte b = 1;
byte expected = 2;
byte simd0 = r.AllocateLocal(kWasmS128);
byte simd1 = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd0, WASM_SIMD_I8x16_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(simd1, WASM_SIMD_I8x16_SPLAT(WASM_GET_LOCAL(b))),
WASM_SET_LOCAL(simd1, WASM_SIMD_BINOP(simd_op, WASM_GET_LOCAL(simd0),
WASM_GET_LOCAL(simd1))),
WASM_SIMD_CHECK_SPLAT16(I8x16, simd1, I32, expected), WASM_ONE);
FOR_INT8_INPUTS(i) {
FOR_INT8_INPUTS(j) { CHECK_EQ(1, r.Call(*i, *j, expected_op(*i, *j))); }
}
}
WASM_SIMD_TEST(I8x16Eq) {
RunI8x16CompareOpTest(lower_simd, kExprI8x16Eq, Equal);
}
WASM_SIMD_TEST(I8x16Ne) {
RunI8x16CompareOpTest(lower_simd, kExprI8x16Ne, NotEqual);
}
WASM_SIMD_TEST(I8x16GtS) {
RunI8x16CompareOpTest(lower_simd, kExprI8x16GtS, Greater);
}
WASM_SIMD_TEST(I8x16GeS) {
RunI8x16CompareOpTest(lower_simd, kExprI8x16GeS, GreaterEqual);
}
WASM_SIMD_TEST(I8x16LtS) {
RunI8x16CompareOpTest(lower_simd, kExprI8x16LtS, Less);
}
WASM_SIMD_TEST(I8x16LeS) {
RunI8x16CompareOpTest(lower_simd, kExprI8x16LeS, LessEqual);
}
WASM_SIMD_TEST(I8x16GtU) {
RunI8x16CompareOpTest(lower_simd, kExprI8x16GtU, UnsignedGreater);
}
WASM_SIMD_TEST(I8x16GeU) {
RunI8x16CompareOpTest(lower_simd, kExprI8x16GeU, UnsignedGreaterEqual);
}
WASM_SIMD_TEST(I8x16LtU) {
RunI8x16CompareOpTest(lower_simd, kExprI8x16LtU, UnsignedLess);
}
WASM_SIMD_TEST(I8x16LeU) {
RunI8x16CompareOpTest(lower_simd, kExprI8x16LeU, UnsignedLessEqual);
}
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_IA32
WASM_SIMD_TEST(I8x16Mul) { RunI8x16BinOpTest(lower_simd, kExprI8x16Mul, Mul); }
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS ||
// V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_IA32
void RunI8x16ShiftOpTest(LowerSimd lower_simd, WasmOpcode simd_op,
Int8ShiftOp expected_op, int shift) {
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
byte a = 0;
byte expected = 1;
byte simd = r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(simd, WASM_SIMD_I8x16_SPLAT(WASM_GET_LOCAL(a))),
WASM_SET_LOCAL(
simd, WASM_SIMD_SHIFT_OP(simd_op, shift, WASM_GET_LOCAL(simd))),
WASM_SIMD_CHECK_SPLAT16(I8x16, simd, I32, expected), WASM_ONE);
FOR_INT8_INPUTS(i) { CHECK_EQ(1, r.Call(*i, expected_op(*i, shift))); }
}
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_IA32
WASM_SIMD_TEST(I8x16Shl) {
RunI8x16ShiftOpTest(lower_simd, kExprI8x16Shl, LogicalShiftLeft, 1);
}
WASM_SIMD_TEST(I8x16ShrS) {
RunI8x16ShiftOpTest(lower_simd, kExprI8x16ShrS, ArithmeticShiftRight, 1);
}
WASM_SIMD_TEST(I8x16ShrU) {
RunI8x16ShiftOpTest(lower_simd, kExprI8x16ShrU, LogicalShiftRight, 1);
}
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS ||
// V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_IA32
// Test Select by making a mask where the 0th and 3rd lanes are true and the
// rest false, and comparing for non-equality with zero to convert to a boolean
// vector.
#define WASM_SIMD_SELECT_TEST(format) \
WASM_SIMD_TEST(S##format##Select) { \
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteTurbofan, lower_simd); \
byte val1 = 0; \
byte val2 = 1; \
byte src1 = r.AllocateLocal(kWasmS128); \
byte src2 = r.AllocateLocal(kWasmS128); \
byte zero = r.AllocateLocal(kWasmS128); \
byte mask = r.AllocateLocal(kWasmS128); \
BUILD(r, \
WASM_SET_LOCAL(src1, \
WASM_SIMD_I##format##_SPLAT(WASM_GET_LOCAL(val1))), \
WASM_SET_LOCAL(src2, \
WASM_SIMD_I##format##_SPLAT(WASM_GET_LOCAL(val2))), \
WASM_SET_LOCAL(zero, WASM_SIMD_I##format##_SPLAT(WASM_ZERO)), \
WASM_SET_LOCAL(mask, WASM_SIMD_I##format##_REPLACE_LANE( \
1, WASM_GET_LOCAL(zero), WASM_I32V(-1))), \
WASM_SET_LOCAL(mask, WASM_SIMD_I##format##_REPLACE_LANE( \
2, WASM_GET_LOCAL(mask), WASM_I32V(-1))), \
WASM_SET_LOCAL( \
mask, \
WASM_SIMD_SELECT( \
format, \
WASM_SIMD_BINOP(kExprI##format##Ne, WASM_GET_LOCAL(mask), \
WASM_GET_LOCAL(zero)), \
WASM_GET_LOCAL(src1), WASM_GET_LOCAL(src2))), \
WASM_SIMD_CHECK_LANE(I##format, mask, I32, val2, 0), \
WASM_SIMD_CHECK_LANE(I##format, mask, I32, val1, 1), \
WASM_SIMD_CHECK_LANE(I##format, mask, I32, val1, 2), \
WASM_SIMD_CHECK_LANE(I##format, mask, I32, val2, 3), WASM_ONE); \
\
CHECK_EQ(1, r.Call(0x12, 0x34)); \
}
WASM_SIMD_SELECT_TEST(32x4)
WASM_SIMD_SELECT_TEST(16x8)
WASM_SIMD_SELECT_TEST(8x16)
// Test Select by making a mask where the 0th and 3rd lanes are non-zero and the
// rest 0. The mask is not the result of a comparison op.
#define WASM_SIMD_NON_CANONICAL_SELECT_TEST(format) \
WASM_SIMD_TEST(S##format##NonCanonicalSelect) { \
WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteTurbofan, \
lower_simd); \
byte val1 = 0; \
byte val2 = 1; \
byte combined = 2; \
byte src1 = r.AllocateLocal(kWasmS128); \
byte src2 = r.AllocateLocal(kWasmS128); \
byte zero = r.AllocateLocal(kWasmS128); \
byte mask = r.AllocateLocal(kWasmS128); \
BUILD(r, \
WASM_SET_LOCAL(src1, \
WASM_SIMD_I##format##_SPLAT(WASM_GET_LOCAL(val1))), \
WASM_SET_LOCAL(src2, \
WASM_SIMD_I##format##_SPLAT(WASM_GET_LOCAL(val2))), \
WASM_SET_LOCAL(zero, WASM_SIMD_I##format##_SPLAT(WASM_ZERO)), \
WASM_SET_LOCAL(mask, WASM_SIMD_I##format##_REPLACE_LANE( \
1, WASM_GET_LOCAL(zero), WASM_I32V(0xF))), \
WASM_SET_LOCAL(mask, WASM_SIMD_I##format##_REPLACE_LANE( \
2, WASM_GET_LOCAL(mask), WASM_I32V(0xF))), \
WASM_SET_LOCAL(mask, WASM_SIMD_SELECT(format, WASM_GET_LOCAL(mask), \
WASM_GET_LOCAL(src1), \
WASM_GET_LOCAL(src2))), \
WASM_SIMD_CHECK_LANE(I##format, mask, I32, val2, 0), \
WASM_SIMD_CHECK_LANE(I##format, mask, I32, combined, 1), \
WASM_SIMD_CHECK_LANE(I##format, mask, I32, combined, 2), \
WASM_SIMD_CHECK_LANE(I##format, mask, I32, val2, 3), WASM_ONE); \
\
CHECK_EQ(1, r.Call(0x12, 0x34, 0x32)); \
}
WASM_SIMD_NON_CANONICAL_SELECT_TEST(32x4)
WASM_SIMD_NON_CANONICAL_SELECT_TEST(16x8)
WASM_SIMD_NON_CANONICAL_SELECT_TEST(8x16)
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_X64 || \
V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64
// Test binary ops with two lane test patterns, all lanes distinct.
template <typename T>
void RunBinaryLaneOpTest(
LowerSimd lower_simd, WasmOpcode simd_op,
const std::array<T, kSimd128Size / sizeof(T)>& expected) {
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd);
// Set up two test patterns as globals, e.g. [0, 1, 2, 3] and [4, 5, 6, 7].
T* src0 = r.builder().AddGlobal<T>(kWasmS128);
T* src1 = r.builder().AddGlobal<T>(kWasmS128);
static const int kElems = kSimd128Size / sizeof(T);
for (int i = 0; i < kElems; i++) {
src0[i] = i;
src1[i] = kElems + i;
}
if (simd_op == kExprS8x16Shuffle) {
BUILD(r,
WASM_SET_GLOBAL(0, WASM_SIMD_S8x16_SHUFFLE_OP(simd_op, expected,
WASM_GET_GLOBAL(0),
WASM_GET_GLOBAL(1))),
WASM_ONE);
} else {
BUILD(r,
WASM_SET_GLOBAL(0, WASM_SIMD_BINOP(simd_op, WASM_GET_GLOBAL(0),
WASM_GET_GLOBAL(1))),
WASM_ONE);
}
CHECK_EQ(1, r.Call());
for (size_t i = 0; i < expected.size(); i++) {
CHECK_EQ(src0[i], expected[i]);
}
}
WASM_SIMD_TEST(I32x4AddHoriz) {
RunBinaryLaneOpTest<int32_t>(lower_simd, kExprI32x4AddHoriz, {{1, 5, 9, 13}});
}
WASM_SIMD_COMPILED_TEST(I16x8AddHoriz) {
RunBinaryLaneOpTest<int16_t>(lower_simd, kExprI16x8AddHoriz,
{{1, 5, 9, 13, 17, 21, 25, 29}});
}
WASM_SIMD_COMPILED_TEST(F32x4AddHoriz) {
RunBinaryLaneOpTest<float>(lower_simd, kExprF32x4AddHoriz,
{{1.0f, 5.0f, 9.0f, 13.0f}});
}
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_X64 ||
// V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
V8_TARGET_ARCH_MIPS64
// Test some regular shuffles that may have special handling on some targets.
// Test a normal and unary versions (where second operand isn't used).
WASM_SIMD_COMPILED_TEST(S32x4Dup) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{4, 5, 6, 7, 4, 5, 6, 7, 4, 5, 6, 7, 4, 5, 6, 7}});
}
WASM_SIMD_COMPILED_TEST(S32x4ZipLeft) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 2, 3, 16, 17, 18, 19, 4, 5, 6, 7, 20, 21, 22, 23}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 2, 3, 0, 1, 2, 3, 4, 5, 6, 7, 4, 5, 6, 7}});
}
WASM_SIMD_COMPILED_TEST(S32x4ZipRight) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{8, 9, 10, 11, 24, 25, 26, 27, 12, 13, 14, 15, 28, 29, 30, 31}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{8, 9, 10, 11, 8, 9, 10, 11, 12, 13, 14, 15, 12, 13, 14, 15}});
}
WASM_SIMD_COMPILED_TEST(S32x4UnzipLeft) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 2, 3, 8, 9, 10, 11, 16, 17, 18, 19, 24, 25, 26, 27}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 2, 3, 8, 9, 10, 11, 0, 1, 2, 3, 8, 9, 10, 11}});
}
WASM_SIMD_COMPILED_TEST(S32x4UnzipRight) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{4, 5, 6, 7, 12, 13, 14, 15, 20, 21, 22, 23, 28, 29, 30, 31}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{4, 5, 6, 7, 12, 13, 14, 15, 4, 5, 6, 7, 12, 13, 14, 15}});
}
WASM_SIMD_COMPILED_TEST(S32x4TransposeLeft) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 2, 3, 16, 17, 18, 19, 8, 9, 10, 11, 24, 25, 26, 27}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 2, 3, 0, 1, 2, 3, 8, 9, 10, 11, 8, 9, 10, 11}});
}
WASM_SIMD_COMPILED_TEST(S32x4TransposeRight) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{4, 5, 6, 7, 20, 21, 22, 23, 12, 13, 14, 15, 28, 29, 30, 31}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{4, 5, 6, 7, 4, 5, 6, 7, 12, 13, 14, 15, 12, 13, 14, 15}});
}
// Reverses are only unary.
WASM_SIMD_COMPILED_TEST(S32x2Reverse) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11}});
}
// Test irregular shuffle.
WASM_SIMD_COMPILED_TEST(S32x4Irregular) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 2, 3, 16, 17, 18, 19, 16, 17, 18, 19, 20, 21, 22, 23}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 4, 5, 6, 7}});
}
WASM_SIMD_COMPILED_TEST(S16x8Dup) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{18, 19, 18, 19, 18, 19, 18, 19, 18, 19, 18, 19, 18, 19, 18, 19}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7}});
}
WASM_SIMD_COMPILED_TEST(S16x8ZipLeft) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 16, 17, 2, 3, 18, 19, 4, 5, 20, 21, 6, 7, 22, 23}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7}});
}
WASM_SIMD_COMPILED_TEST(S16x8ZipRight) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{8, 9, 24, 25, 10, 11, 26, 27, 12, 13, 28, 29, 14, 15, 30, 31}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15}});
}
WASM_SIMD_COMPILED_TEST(S16x8UnzipLeft) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 4, 5, 8, 9, 12, 13, 16, 17, 20, 21, 24, 25, 28, 29}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13}});
}
WASM_SIMD_COMPILED_TEST(S16x8UnzipRight) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{2, 3, 6, 7, 10, 11, 14, 15, 18, 19, 22, 23, 26, 27, 30, 31}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15}});
}
WASM_SIMD_COMPILED_TEST(S16x8TransposeLeft) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 16, 17, 4, 5, 20, 21, 8, 9, 24, 25, 12, 13, 28, 29}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 0, 1, 4, 5, 4, 5, 8, 9, 8, 9, 12, 13, 12, 13}});
}
WASM_SIMD_COMPILED_TEST(S16x8TransposeRight) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{2, 3, 18, 19, 6, 7, 22, 23, 10, 11, 26, 27, 14, 15, 30, 31}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{2, 3, 2, 3, 6, 7, 6, 7, 10, 11, 10, 11, 14, 15, 14, 15}});
}
WASM_SIMD_COMPILED_TEST(S16x4Reverse) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{6, 7, 4, 5, 2, 3, 0, 1, 14, 15, 12, 13, 10, 11, 8, 9}});
}
WASM_SIMD_COMPILED_TEST(S16x2Reverse) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13}});
}
WASM_SIMD_COMPILED_TEST(S16x8Irregular) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 16, 17, 16, 17, 0, 1, 4, 5, 20, 21, 6, 7, 22, 23}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 1, 0, 1, 0, 1, 0, 1, 4, 5, 4, 5, 6, 7, 6, 7}});
}
WASM_SIMD_COMPILED_TEST(S8x16Dup) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7}});
}
WASM_SIMD_COMPILED_TEST(S8x16ZipLeft) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 16, 1, 17, 2, 18, 3, 19, 4, 20, 5, 21, 6, 22, 7, 23}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7}});
}
WASM_SIMD_COMPILED_TEST(S8x16ZipRight) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{8, 24, 9, 25, 10, 26, 11, 27, 12, 28, 13, 29, 14, 30, 15, 31}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15}});
}
WASM_SIMD_COMPILED_TEST(S8x16UnzipLeft) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 2, 4, 6, 8, 10, 12, 14, 0, 2, 4, 6, 8, 10, 12, 14}});
}
WASM_SIMD_COMPILED_TEST(S8x16UnzipRight) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{1, 3, 5, 7, 9, 11, 13, 15, 1, 3, 5, 7, 9, 11, 13, 15}});
}
WASM_SIMD_COMPILED_TEST(S8x16TransposeLeft) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 16, 2, 18, 4, 20, 6, 22, 8, 24, 10, 26, 12, 28, 14, 30}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14}});
}
WASM_SIMD_COMPILED_TEST(S8x16TransposeRight) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{1, 17, 3, 19, 5, 21, 7, 23, 9, 25, 11, 27, 13, 29, 15, 31}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{1, 1, 3, 3, 5, 5, 7, 7, 9, 9, 11, 11, 13, 13, 15, 15}});
}
WASM_SIMD_COMPILED_TEST(S8x8Reverse) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{7, 6, 5, 4, 3, 2, 1, 0, 15, 14, 13, 12, 11, 10, 9, 8}});
}
WASM_SIMD_COMPILED_TEST(S8x4Reverse) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12}});
}
WASM_SIMD_COMPILED_TEST(S8x2Reverse) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10, 13, 12, 15, 14}});
}
WASM_SIMD_COMPILED_TEST(S8x16Irregular) {
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 16, 0, 16, 2, 18, 3, 19, 4, 20, 5, 21, 6, 22, 7, 23}});
RunBinaryLaneOpTest<int8_t>(
lower_simd, kExprS8x16Shuffle,
{{0, 0, 0, 0, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7}});
}
// Test shuffles that concatenate the two vectors.
WASM_SIMD_COMPILED_TEST(S8x16Concat) {
static const int kLanes = 16;
std::array<uint8_t, kLanes> expected;
for (int bias = 1; bias < kLanes; bias++) {
int i = 0;
// last kLanes - bias bytes of first vector.
for (int j = bias; j < kLanes; j++) {
expected[i++] = j;
}
// first bias lanes of second vector
for (int j = 0; j < bias; j++) {
expected[i++] = j + kLanes;
}
RunBinaryLaneOpTest(lower_simd, kExprS8x16Shuffle, expected);
}
}
// Boolean unary operations are 'AllTrue' and 'AnyTrue', which return an integer
// result. Use relational ops on numeric vectors to create the boolean vector
// test inputs. Test inputs with all true, all false, one true, and one false.
#define WASM_SIMD_BOOL_REDUCTION_TEST(format, lanes) \
WASM_SIMD_COMPILED_TEST(ReductionTest##lanes) { \
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd); \
byte zero = r.AllocateLocal(kWasmS128); \
byte one_one = r.AllocateLocal(kWasmS128); \
byte reduced = r.AllocateLocal(kWasmI32); \
BUILD(r, WASM_SET_LOCAL(zero, WASM_SIMD_I##format##_SPLAT(WASM_ZERO)), \
WASM_SET_LOCAL( \
reduced, WASM_SIMD_UNOP(kExprS1x##lanes##AnyTrue, \
WASM_SIMD_BINOP(kExprI##format##Eq, \
WASM_GET_LOCAL(zero), \
WASM_GET_LOCAL(zero)))), \
WASM_IF(WASM_I32_EQ(WASM_GET_LOCAL(reduced), WASM_ZERO), \
WASM_RETURN1(WASM_ZERO)), \
WASM_SET_LOCAL( \
reduced, WASM_SIMD_UNOP(kExprS1x##lanes##AnyTrue, \
WASM_SIMD_BINOP(kExprI##format##Ne, \
WASM_GET_LOCAL(zero), \
WASM_GET_LOCAL(zero)))), \
WASM_IF(WASM_I32_NE(WASM_GET_LOCAL(reduced), WASM_ZERO), \
WASM_RETURN1(WASM_ZERO)), \
WASM_SET_LOCAL( \
reduced, WASM_SIMD_UNOP(kExprS1x##lanes##AllTrue, \
WASM_SIMD_BINOP(kExprI##format##Eq, \
WASM_GET_LOCAL(zero), \
WASM_GET_LOCAL(zero)))), \
WASM_IF(WASM_I32_EQ(WASM_GET_LOCAL(reduced), WASM_ZERO), \
WASM_RETURN1(WASM_ZERO)), \
WASM_SET_LOCAL( \
reduced, WASM_SIMD_UNOP(kExprS1x##lanes##AllTrue, \
WASM_SIMD_BINOP(kExprI##format##Ne, \
WASM_GET_LOCAL(zero), \
WASM_GET_LOCAL(zero)))), \
WASM_IF(WASM_I32_NE(WASM_GET_LOCAL(reduced), WASM_ZERO), \
WASM_RETURN1(WASM_ZERO)), \
WASM_SET_LOCAL(one_one, \
WASM_SIMD_I##format##_REPLACE_LANE( \
lanes - 1, WASM_GET_LOCAL(zero), WASM_ONE)), \
WASM_SET_LOCAL( \
reduced, WASM_SIMD_UNOP(kExprS1x##lanes##AnyTrue, \
WASM_SIMD_BINOP(kExprI##format##Eq, \
WASM_GET_LOCAL(one_one), \
WASM_GET_LOCAL(zero)))), \
WASM_IF(WASM_I32_EQ(WASM_GET_LOCAL(reduced), WASM_ZERO), \
WASM_RETURN1(WASM_ZERO)), \
WASM_SET_LOCAL( \
reduced, WASM_SIMD_UNOP(kExprS1x##lanes##AnyTrue, \
WASM_SIMD_BINOP(kExprI##format##Ne, \
WASM_GET_LOCAL(one_one), \
WASM_GET_LOCAL(zero)))), \
WASM_IF(WASM_I32_EQ(WASM_GET_LOCAL(reduced), WASM_ZERO), \
WASM_RETURN1(WASM_ZERO)), \
WASM_SET_LOCAL( \
reduced, WASM_SIMD_UNOP(kExprS1x##lanes##AllTrue, \
WASM_SIMD_BINOP(kExprI##format##Eq, \
WASM_GET_LOCAL(one_one), \
WASM_GET_LOCAL(zero)))), \
WASM_IF(WASM_I32_NE(WASM_GET_LOCAL(reduced), WASM_ZERO), \
WASM_RETURN1(WASM_ZERO)), \
WASM_SET_LOCAL( \
reduced, WASM_SIMD_UNOP(kExprS1x##lanes##AllTrue, \
WASM_SIMD_BINOP(kExprI##format##Ne, \
WASM_GET_LOCAL(one_one), \
WASM_GET_LOCAL(zero)))), \
WASM_IF(WASM_I32_NE(WASM_GET_LOCAL(reduced), WASM_ZERO), \
WASM_RETURN1(WASM_ZERO)), \
WASM_ONE); \
CHECK_EQ(1, r.Call()); \
}
WASM_SIMD_BOOL_REDUCTION_TEST(32x4, 4)
WASM_SIMD_BOOL_REDUCTION_TEST(16x8, 8)
WASM_SIMD_BOOL_REDUCTION_TEST(8x16, 16)
WASM_SIMD_TEST(SimdI32x4ExtractWithF32x4) {
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd);
BUILD(r, WASM_IF_ELSE_I(
WASM_I32_EQ(WASM_SIMD_I32x4_EXTRACT_LANE(
0, WASM_SIMD_F32x4_SPLAT(WASM_F32(30.5))),
WASM_I32_REINTERPRET_F32(WASM_F32(30.5))),
WASM_I32V(1), WASM_I32V(0)));
CHECK_EQ(1, r.Call());
}
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS ||
// V8_TARGET_ARCH_MIPS64
WASM_SIMD_TEST(SimdF32x4ExtractWithI32x4) {
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd);
BUILD(r,
WASM_IF_ELSE_I(WASM_F32_EQ(WASM_SIMD_F32x4_EXTRACT_LANE(
0, WASM_SIMD_I32x4_SPLAT(WASM_I32V(15))),
WASM_F32_REINTERPRET_I32(WASM_I32V(15))),
WASM_I32V(1), WASM_I32V(0)));
CHECK_EQ(1, r.Call());
}
WASM_SIMD_TEST(SimdF32x4AddWithI32x4) {
// Choose two floating point values whose sum is normal and exactly
// representable as a float.
const int kOne = 0x3F800000;
const int kTwo = 0x40000000;
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd);
BUILD(r,
WASM_IF_ELSE_I(
WASM_F32_EQ(
WASM_SIMD_F32x4_EXTRACT_LANE(
0, WASM_SIMD_BINOP(kExprF32x4Add,
WASM_SIMD_I32x4_SPLAT(WASM_I32V(kOne)),
WASM_SIMD_I32x4_SPLAT(WASM_I32V(kTwo)))),
WASM_F32_ADD(WASM_F32_REINTERPRET_I32(WASM_I32V(kOne)),
WASM_F32_REINTERPRET_I32(WASM_I32V(kTwo)))),
WASM_I32V(1), WASM_I32V(0)));
CHECK_EQ(1, r.Call());
}
WASM_SIMD_TEST(SimdI32x4AddWithF32x4) {
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd);
BUILD(r,
WASM_IF_ELSE_I(
WASM_I32_EQ(
WASM_SIMD_I32x4_EXTRACT_LANE(
0, WASM_SIMD_BINOP(kExprI32x4Add,
WASM_SIMD_F32x4_SPLAT(WASM_F32(21.25)),
WASM_SIMD_F32x4_SPLAT(WASM_F32(31.5)))),
WASM_I32_ADD(WASM_I32_REINTERPRET_F32(WASM_F32(21.25)),
WASM_I32_REINTERPRET_F32(WASM_F32(31.5)))),
WASM_I32V(1), WASM_I32V(0)));
CHECK_EQ(1, r.Call());
}
WASM_SIMD_TEST(SimdI32x4Local) {
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd);
r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(0, WASM_SIMD_I32x4_SPLAT(WASM_I32V(31))),
WASM_SIMD_I32x4_EXTRACT_LANE(0, WASM_GET_LOCAL(0)));
CHECK_EQ(31, r.Call());
}
WASM_SIMD_TEST(SimdI32x4SplatFromExtract) {
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd);
r.AllocateLocal(kWasmI32);
r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(0, WASM_SIMD_I32x4_EXTRACT_LANE(
0, WASM_SIMD_I32x4_SPLAT(WASM_I32V(76)))),
WASM_SET_LOCAL(1, WASM_SIMD_I32x4_SPLAT(WASM_GET_LOCAL(0))),
WASM_SIMD_I32x4_EXTRACT_LANE(1, WASM_GET_LOCAL(1)));
CHECK_EQ(76, r.Call());
}
WASM_SIMD_TEST(SimdI32x4For) {
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd);
r.AllocateLocal(kWasmI32);
r.AllocateLocal(kWasmS128);
BUILD(r,
WASM_SET_LOCAL(1, WASM_SIMD_I32x4_SPLAT(WASM_I32V(31))),
WASM_SET_LOCAL(1, WASM_SIMD_I32x4_REPLACE_LANE(1, WASM_GET_LOCAL(1),
WASM_I32V(53))),
WASM_SET_LOCAL(1, WASM_SIMD_I32x4_REPLACE_LANE(2, WASM_GET_LOCAL(1),
WASM_I32V(23))),
WASM_SET_LOCAL(0, WASM_I32V(0)),
WASM_LOOP(
WASM_SET_LOCAL(
1, WASM_SIMD_BINOP(kExprI32x4Add, WASM_GET_LOCAL(1),
WASM_SIMD_I32x4_SPLAT(WASM_I32V(1)))),
WASM_IF(WASM_I32_NE(WASM_INC_LOCAL(0), WASM_I32V(5)), WASM_BR(1))),
WASM_SET_LOCAL(0, WASM_I32V(1)),
WASM_IF(WASM_I32_NE(WASM_SIMD_I32x4_EXTRACT_LANE(0, WASM_GET_LOCAL(1)),
WASM_I32V(36)),
WASM_SET_LOCAL(0, WASM_I32V(0))),
WASM_IF(WASM_I32_NE(WASM_SIMD_I32x4_EXTRACT_LANE(1, WASM_GET_LOCAL(1)),
WASM_I32V(58)),
WASM_SET_LOCAL(0, WASM_I32V(0))),
WASM_IF(WASM_I32_NE(WASM_SIMD_I32x4_EXTRACT_LANE(2, WASM_GET_LOCAL(1)),
WASM_I32V(28)),
WASM_SET_LOCAL(0, WASM_I32V(0))),
WASM_IF(WASM_I32_NE(WASM_SIMD_I32x4_EXTRACT_LANE(3, WASM_GET_LOCAL(1)),
WASM_I32V(36)),
WASM_SET_LOCAL(0, WASM_I32V(0))),
WASM_GET_LOCAL(0));
CHECK_EQ(1, r.Call());
}
WASM_SIMD_TEST(SimdF32x4For) {
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd);
r.AllocateLocal(kWasmI32);
r.AllocateLocal(kWasmS128);
BUILD(r, WASM_SET_LOCAL(1, WASM_SIMD_F32x4_SPLAT(WASM_F32(21.25))),
WASM_SET_LOCAL(1, WASM_SIMD_F32x4_REPLACE_LANE(3, WASM_GET_LOCAL(1),
WASM_F32(19.5))),
WASM_SET_LOCAL(0, WASM_I32V(0)),
WASM_LOOP(
WASM_SET_LOCAL(
1, WASM_SIMD_BINOP(kExprF32x4Add, WASM_GET_LOCAL(1),
WASM_SIMD_F32x4_SPLAT(WASM_F32(2.0)))),
WASM_IF(WASM_I32_NE(WASM_INC_LOCAL(0), WASM_I32V(3)), WASM_BR(1))),
WASM_SET_LOCAL(0, WASM_I32V(1)),
WASM_IF(WASM_F32_NE(WASM_SIMD_F32x4_EXTRACT_LANE(0, WASM_GET_LOCAL(1)),
WASM_F32(27.25)),
WASM_SET_LOCAL(0, WASM_I32V(0))),
WASM_IF(WASM_F32_NE(WASM_SIMD_F32x4_EXTRACT_LANE(3, WASM_GET_LOCAL(1)),
WASM_F32(25.5)),
WASM_SET_LOCAL(0, WASM_I32V(0))),
WASM_GET_LOCAL(0));
CHECK_EQ(1, r.Call());
}
template <typename T, int numLanes = 4>
void SetVectorByLanes(T* v, const std::array<T, numLanes>& arr) {
for (int lane = 0; lane < numLanes; lane++) {
const T& value = arr[lane];
#if defined(V8_TARGET_BIG_ENDIAN)
v[numLanes - 1 - lane] = value;
#else
v[lane] = value;
#endif
}
}
template <typename T>
const T& GetScalar(T* v, int lane) {
constexpr int kElems = kSimd128Size / sizeof(T);
#if defined(V8_TARGET_BIG_ENDIAN)
const int index = kElems - 1 - lane;
#else
const int index = lane;
#endif
USE(kElems);
DCHECK(index >= 0 && index < kElems);
return v[index];
}
WASM_SIMD_TEST(SimdI32x4GetGlobal) {
WasmRunner<int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
// Pad the globals with a few unused slots to get a non-zero offset.
r.builder().AddGlobal<int32_t>(kWasmI32); // purposefully unused
r.builder().AddGlobal<int32_t>(kWasmI32); // purposefully unused
r.builder().AddGlobal<int32_t>(kWasmI32); // purposefully unused
r.builder().AddGlobal<int32_t>(kWasmI32); // purposefully unused
int32_t* global = r.builder().AddGlobal<int32_t>(kWasmS128);
SetVectorByLanes(global, {{0, 1, 2, 3}});
r.AllocateLocal(kWasmI32);
BUILD(
r, WASM_SET_LOCAL(1, WASM_I32V(1)),
WASM_IF(WASM_I32_NE(WASM_I32V(0),
WASM_SIMD_I32x4_EXTRACT_LANE(0, WASM_GET_GLOBAL(4))),
WASM_SET_LOCAL(1, WASM_I32V(0))),
WASM_IF(WASM_I32_NE(WASM_I32V(1),
WASM_SIMD_I32x4_EXTRACT_LANE(1, WASM_GET_GLOBAL(4))),
WASM_SET_LOCAL(1, WASM_I32V(0))),
WASM_IF(WASM_I32_NE(WASM_I32V(2),
WASM_SIMD_I32x4_EXTRACT_LANE(2, WASM_GET_GLOBAL(4))),
WASM_SET_LOCAL(1, WASM_I32V(0))),
WASM_IF(WASM_I32_NE(WASM_I32V(3),
WASM_SIMD_I32x4_EXTRACT_LANE(3, WASM_GET_GLOBAL(4))),
WASM_SET_LOCAL(1, WASM_I32V(0))),
WASM_GET_LOCAL(1));
CHECK_EQ(1, r.Call(0));
}
WASM_SIMD_TEST(SimdI32x4SetGlobal) {
WasmRunner<int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
// Pad the globals with a few unused slots to get a non-zero offset.
r.builder().AddGlobal<int32_t>(kWasmI32); // purposefully unused
r.builder().AddGlobal<int32_t>(kWasmI32); // purposefully unused
r.builder().AddGlobal<int32_t>(kWasmI32); // purposefully unused
r.builder().AddGlobal<int32_t>(kWasmI32); // purposefully unused
int32_t* global = r.builder().AddGlobal<int32_t>(kWasmS128);
BUILD(r, WASM_SET_GLOBAL(4, WASM_SIMD_I32x4_SPLAT(WASM_I32V(23))),
WASM_SET_GLOBAL(4, WASM_SIMD_I32x4_REPLACE_LANE(1, WASM_GET_GLOBAL(4),
WASM_I32V(34))),
WASM_SET_GLOBAL(4, WASM_SIMD_I32x4_REPLACE_LANE(2, WASM_GET_GLOBAL(4),
WASM_I32V(45))),
WASM_SET_GLOBAL(4, WASM_SIMD_I32x4_REPLACE_LANE(3, WASM_GET_GLOBAL(4),
WASM_I32V(56))),
WASM_I32V(1));
CHECK_EQ(1, r.Call(0));
CHECK_EQ(GetScalar(global, 0), 23);
CHECK_EQ(GetScalar(global, 1), 34);
CHECK_EQ(GetScalar(global, 2), 45);
CHECK_EQ(GetScalar(global, 3), 56);
}
WASM_SIMD_TEST(SimdF32x4GetGlobal) {
WasmRunner<int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
float* global = r.builder().AddGlobal<float>(kWasmS128);
SetVectorByLanes<float>(global, {{0.0, 1.5, 2.25, 3.5}});
r.AllocateLocal(kWasmI32);
BUILD(
r, WASM_SET_LOCAL(1, WASM_I32V(1)),
WASM_IF(WASM_F32_NE(WASM_F32(0.0),
WASM_SIMD_F32x4_EXTRACT_LANE(0, WASM_GET_GLOBAL(0))),
WASM_SET_LOCAL(1, WASM_I32V(0))),
WASM_IF(WASM_F32_NE(WASM_F32(1.5),
WASM_SIMD_F32x4_EXTRACT_LANE(1, WASM_GET_GLOBAL(0))),
WASM_SET_LOCAL(1, WASM_I32V(0))),
WASM_IF(WASM_F32_NE(WASM_F32(2.25),
WASM_SIMD_F32x4_EXTRACT_LANE(2, WASM_GET_GLOBAL(0))),
WASM_SET_LOCAL(1, WASM_I32V(0))),
WASM_IF(WASM_F32_NE(WASM_F32(3.5),
WASM_SIMD_F32x4_EXTRACT_LANE(3, WASM_GET_GLOBAL(0))),
WASM_SET_LOCAL(1, WASM_I32V(0))),
WASM_GET_LOCAL(1));
CHECK_EQ(1, r.Call(0));
}
WASM_SIMD_TEST(SimdF32x4SetGlobal) {
WasmRunner<int32_t, int32_t> r(kExecuteTurbofan, lower_simd);
float* global = r.builder().AddGlobal<float>(kWasmS128);
BUILD(r, WASM_SET_GLOBAL(0, WASM_SIMD_F32x4_SPLAT(WASM_F32(13.5))),
WASM_SET_GLOBAL(0, WASM_SIMD_F32x4_REPLACE_LANE(1, WASM_GET_GLOBAL(0),
WASM_F32(45.5))),
WASM_SET_GLOBAL(0, WASM_SIMD_F32x4_REPLACE_LANE(2, WASM_GET_GLOBAL(0),
WASM_F32(32.25))),
WASM_SET_GLOBAL(0, WASM_SIMD_F32x4_REPLACE_LANE(3, WASM_GET_GLOBAL(0),
WASM_F32(65.0))),
WASM_I32V(1));
CHECK_EQ(1, r.Call(0));
CHECK_EQ(GetScalar(global, 0), 13.5f);
CHECK_EQ(GetScalar(global, 1), 45.5f);
CHECK_EQ(GetScalar(global, 2), 32.25f);
CHECK_EQ(GetScalar(global, 3), 65.0f);
}
WASM_SIMD_COMPILED_TEST(SimdLoadStoreLoad) {
WasmRunner<int32_t> r(kExecuteTurbofan, lower_simd);
int32_t* memory = r.builder().AddMemoryElems<int32_t>(8);
// Load memory, store it, then reload it and extract the first lane. Use a
// non-zero offset into the memory of 1 lane (4 bytes) to test indexing.
BUILD(r, WASM_SIMD_STORE_MEM(WASM_I32V(4), WASM_SIMD_LOAD_MEM(WASM_I32V(4))),
WASM_SIMD_I32x4_EXTRACT_LANE(0, WASM_SIMD_LOAD_MEM(WASM_I32V(4))));
FOR_INT32_INPUTS(i) {
int32_t expected = *i;
r.builder().WriteMemory(&memory[1], expected);
CHECK_EQ(expected, r.Call());
}
}
#undef WASM_SIMD_TEST
#undef WASM_SIMD_COMPILED_TEST
#undef WASM_SIMD_CHECK_LANE
#undef WASM_SIMD_CHECK4
#undef WASM_SIMD_CHECK_SPLAT4
#undef WASM_SIMD_CHECK8
#undef WASM_SIMD_CHECK_SPLAT8
#undef WASM_SIMD_CHECK16
#undef WASM_SIMD_CHECK_SPLAT16
#undef WASM_SIMD_CHECK_F32_LANE
#undef WASM_SIMD_CHECK_F32x4
#undef WASM_SIMD_CHECK_SPLAT_F32x4
#undef WASM_SIMD_CHECK_F32_LANE_ESTIMATE
#undef WASM_SIMD_CHECK_SPLAT_F32x4_ESTIMATE
#undef TO_BYTE
#undef WASM_SIMD_OP
#undef WASM_SIMD_SPLAT
#undef WASM_SIMD_UNOP
#undef WASM_SIMD_BINOP
#undef WASM_SIMD_SHIFT_OP
#undef WASM_SIMD_CONCAT_OP
#undef WASM_SIMD_SELECT
#undef WASM_SIMD_F32x4_SPLAT
#undef WASM_SIMD_F32x4_EXTRACT_LANE
#undef WASM_SIMD_F32x4_REPLACE_LANE
#undef WASM_SIMD_I32x4_SPLAT
#undef WASM_SIMD_I32x4_EXTRACT_LANE
#undef WASM_SIMD_I32x4_REPLACE_LANE
#undef WASM_SIMD_I16x8_SPLAT
#undef WASM_SIMD_I16x8_EXTRACT_LANE
#undef WASM_SIMD_I16x8_REPLACE_LANE
#undef WASM_SIMD_I8x16_SPLAT
#undef WASM_SIMD_I8x16_EXTRACT_LANE
#undef WASM_SIMD_I8x16_REPLACE_LANE
#undef WASM_SIMD_S8x16_SHUFFLE_OP
#undef WASM_SIMD_LOAD_MEM
#undef WASM_SIMD_STORE_MEM
#undef WASM_SIMD_SELECT_TEST
#undef WASM_SIMD_NON_CANONICAL_SELECT_TEST
#undef WASM_SIMD_BOOL_REDUCTION_TEST
} // namespace test_run_wasm_simd
} // namespace wasm
} // namespace internal
} // namespace v8
| [
"[email protected]"
] | |
38d1fedba47d8c8207c0e671dcaed1bfa47c1651 | 66237404931c320fd3d89edba8842d804d753d83 | /MeanShift.h | 9f88dd6b622ddfc62dab5f34af16f49b358141b5 | [] | no_license | caomw/RegressionForest | fa6760029781febd2bced962bef0cf78668c017a | 1c50551f39ceedfd9cf2ebd20c54a0690c567384 | refs/heads/master | 2021-01-18T06:35:31.919105 | 2016-05-25T04:43:29 | 2016-05-25T04:43:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,069 | h | #pragma once
/*
MeanShift implementation from https://github.com/mattnedrich/MeanShift_cpp
*/
#ifndef MEANSHIFT_H
#define MEANSHIFT_H
#include <vector>
#include <bitset>
#include <Eigen/Geometry>
using namespace std;
///http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/TUZEL1/MeanShift.pdf
///The mean shift algorithm is a nonparametric clustering technique which does not require prior knowledge of the number of clusters, and does not constrain the shape of the clusters
///Given n data points x_i, i=1, ... ,n on a d-dimensional space R^D,, the multivariate kernel density estimate obtained with kernel K(x) and widnow radius h is
/// f(x)=(1/nh^d)sum[k(x-x_i)/h]
/// For radially symmetric kernels, it suffices to define the profile of the kernel k(x) satisfying
/// K(x)=c_(k,d)k(||x||^2)
/// where c_(k,d) is a noramlization constant which assured K(x) integrates to 1. The modes of the density function are located at the zeros of the gradient function
/// Gradient f(x)=0.
/// The second term of the gradient is the mean shift. The mean shift vector always points toward the direction of the maximum increase in the density.
/// The mean shift procedure, obtained by successive
/// 1. computation of the mean shift vector m_h(x^t)
/// translation of the window x^(t+1)=x^t+m_h(x^t)
/// is guaranteed to converge to a point where the gradient of density function is zero. Mean Shift mode finding process
class MeanShift
{
public:
///MeanShift constructor takes a function pointer to a kernel function to be used in the clustering process. If NULL, it will use a Gaussian Kernel
MeanShift() {set_kernel(NULL); }
MeanShift(double (*_kernel_func)(double, double)) {set_kernel(kernel_func);}
vector<Eigen::Vector3d> cluster(vector<Eigen::Vector3d>, double);
private:
double (*kernel_func)(double, double);
void set_kernel(double (*_kernel_func)(double, double));
Eigen::Vector3d shift_point(const Eigen::Vector3d &, const vector<Eigen::Vector3d> &, double);
};
#endif // MEANSHIFT_H
| [
"[email protected]"
] | |
741d16711098807cf7ad832c6f2f25c109e5288c | e19ee192d6ab1100e3a4ac918b894b1d619b7b18 | /gdal-1.9.2/frmts/rmf/rmfdataset.cpp | 3da4b2efaaf41b1c694b0a79aca494ce8b699733 | [
"LicenseRef-scancode-info-zip-2005-02",
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | Magnarox/GDAL-1.9.2-WindowsBuild | 2fe0c5f702c536ce1c772b9502c3f450d13118de | 6940c104eca37c549571e9123faad39a6ac4995e | refs/heads/master | 2020-06-21T13:04:56.465843 | 2016-11-26T18:32:28 | 2016-11-26T18:32:28 | 74,786,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 68,311 | cpp | /******************************************************************************
* $Id: rmfdataset.cpp 24732 2012-08-03 17:03:09Z rouault $
*
* Project: Raster Matrix Format
* Purpose: Read/write raster files used in GIS "Integratsia"
* (also known as "Panorama" GIS).
* Author: Andrey Kiselev, [email protected]
*
******************************************************************************
* Copyright (c) 2005, Andrey Kiselev <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* DEALINGS IN THE SOFTWARE.
****************************************************************************/
#include "ogr_spatialref.h"
#include "cpl_string.h"
#include "rmfdataset.h"
CPL_CVSID("$Id: rmfdataset.cpp 24732 2012-08-03 17:03:09Z rouault $");
CPL_C_START
void GDALRegister_RMF(void);
CPL_C_END
#define RMF_DEFAULT_BLOCKXSIZE 256
#define RMF_DEFAULT_BLOCKYSIZE 256
static const char RMF_SigRSW[] = { 'R', 'S', 'W', '\0' };
static const char RMF_SigRSW_BE[] = { '\0', 'W', 'S', 'R' };
static const char RMF_SigMTW[] = { 'M', 'T', 'W', '\0' };
static const char RMF_UnitsEmpty[] = "";
static const char RMF_UnitsM[] = "m";
static const char RMF_UnitsCM[] = "cm";
static const char RMF_UnitsDM[] = "dm";
static const char RMF_UnitsMM[] = "mm";
/************************************************************************/
/* ==================================================================== */
/* RMFRasterBand */
/* ==================================================================== */
/************************************************************************/
/************************************************************************/
/* RMFRasterBand() */
/************************************************************************/
RMFRasterBand::RMFRasterBand( RMFDataset *poDS, int nBand,
GDALDataType eType )
{
this->poDS = poDS;
this->nBand = nBand;
eDataType = eType;
nBytesPerPixel = poDS->sHeader.nBitDepth / 8;
nDataSize = GDALGetDataTypeSize( eDataType ) / 8;
nBlockXSize = poDS->sHeader.nTileWidth;
nBlockYSize = poDS->sHeader.nTileHeight;
nBlockSize = nBlockXSize * nBlockYSize;
nBlockBytes = nBlockSize * nDataSize;
nLastTileXBytes =
(poDS->GetRasterXSize() % poDS->sHeader.nTileWidth) * nDataSize;
nLastTileHeight = poDS->GetRasterYSize() % poDS->sHeader.nTileHeight;
#ifdef DEBUG
CPLDebug( "RMF",
"Band %d: tile width is %d, tile height is %d, "
" last tile width %d, last tile height %d, "
"bytes per pixel is %d, data type size is %d",
nBand, nBlockXSize, nBlockYSize,
poDS->sHeader.nLastTileWidth, poDS->sHeader.nLastTileHeight,
nBytesPerPixel, nDataSize );
#endif
}
/************************************************************************/
/* ~RMFRasterBand() */
/************************************************************************/
RMFRasterBand::~RMFRasterBand()
{
}
/************************************************************************/
/* ReadBuffer() */
/* */
/* Helper fucntion to read specified amount of bytes from the input */
/* file stream. */
/************************************************************************/
CPLErr RMFRasterBand::ReadBuffer( GByte *pabyBuf, GUInt32 nBytes ) const
{
RMFDataset *poGDS = (RMFDataset *) poDS;
CPLAssert( pabyBuf != NULL && poGDS->fp != 0 );
vsi_l_offset nOffset = VSIFTellL( poGDS->fp );
if ( VSIFReadL( pabyBuf, 1, nBytes, poGDS->fp ) < nBytes )
{
// XXX
if( poGDS->eAccess == GA_Update )
{
return CE_Failure;
}
else
{
CPLError( CE_Failure, CPLE_FileIO,
"Can't read at offset %ld from input file.\n%s\n",
(long)nOffset, VSIStrerror( errno ) );
return CE_Failure;
}
}
#ifdef CPL_MSB
if ( poGDS->eRMFType == RMFT_MTW )
{
GUInt32 i;
if ( poGDS->sHeader.nBitDepth == 16 )
{
for ( i = 0; i < nBytes; i += 2 )
CPL_SWAP16PTR( pabyBuf + i );
}
else if ( poGDS->sHeader.nBitDepth == 32 )
{
for ( i = 0; i < nBytes; i += 4 )
CPL_SWAP32PTR( pabyBuf + i );
}
else if ( poGDS->sHeader.nBitDepth == 64 )
{
for ( i = 0; i < nBytes; i += 8 )
CPL_SWAPDOUBLE( pabyBuf + i );
}
}
#endif
return CE_None;
}
/************************************************************************/
/* IReadBlock() */
/************************************************************************/
CPLErr RMFRasterBand::IReadBlock( int nBlockXOff, int nBlockYOff,
void * pImage )
{
RMFDataset *poGDS = (RMFDataset *) poDS;
GUInt32 nTile = nBlockYOff * poGDS->nXTiles + nBlockXOff;
GUInt32 nTileBytes;
GUInt32 nCurBlockYSize;
CPLAssert( poGDS != NULL
&& nBlockXOff >= 0
&& nBlockYOff >= 0
&& pImage != NULL );
memset( pImage, 0, nBlockBytes );
if (2 * nTile + 1 >= poGDS->sHeader.nTileTblSize / sizeof(GUInt32))
{
return CE_Failure;
}
nTileBytes = poGDS->paiTiles[2 * nTile + 1];
if ( poGDS->sHeader.nLastTileHeight
&& (GUInt32) nBlockYOff == poGDS->nYTiles - 1 )
nCurBlockYSize = poGDS->sHeader.nLastTileHeight;
else
nCurBlockYSize = nBlockYSize;
if ( VSIFSeekL( poGDS->fp, poGDS->paiTiles[2 * nTile], SEEK_SET ) < 0 )
{
// XXX: We will not report error here, because file just may be
// in update state and data for this block will be available later
if( poGDS->eAccess == GA_Update )
return CE_None;
else
{
CPLError( CE_Failure, CPLE_FileIO,
"Can't seek to offset %ld in input file to read data.\n%s\n",
(long) poGDS->paiTiles[2 * nTile], VSIStrerror( errno ) );
return CE_Failure;
}
}
if ( poGDS->nBands == 1 &&
( poGDS->sHeader.nBitDepth == 8
|| poGDS->sHeader.nBitDepth == 16
|| poGDS->sHeader.nBitDepth == 32
|| poGDS->sHeader.nBitDepth == 64 ) )
{
if ( nTileBytes > nBlockBytes )
nTileBytes = nBlockBytes;
/* -------------------------------------------------------------------- */
/* Decompress buffer, if needed. */
/* -------------------------------------------------------------------- */
if ( poGDS->Decompress )
{
GUInt32 nRawBytes;
if ( nLastTileXBytes && (GUInt32)nBlockXOff == poGDS->nXTiles - 1 )
nRawBytes = nLastTileXBytes;
else
nRawBytes = poGDS->nBands * nBlockXSize * nDataSize;
if ( nLastTileHeight && (GUInt32)nBlockYOff == poGDS->nYTiles - 1 )
nRawBytes *= nLastTileHeight;
else
nRawBytes *= nBlockYSize;
if ( nRawBytes > nTileBytes )
{
GByte *pabyTile = (GByte *) VSIMalloc( nTileBytes );
if ( !pabyTile )
{
CPLError( CE_Failure, CPLE_FileIO,
"Can't allocate tile block of size %lu.\n%s\n",
(unsigned long) nTileBytes, VSIStrerror( errno ) );
return CE_Failure;
}
if ( ReadBuffer( pabyTile, nTileBytes ) == CE_Failure )
{
// XXX: Do not fail here, just return empty block
// and continue reading.
CPLFree( pabyTile );
return CE_None;
}
(*poGDS->Decompress)( pabyTile, nTileBytes,
(GByte*)pImage, nRawBytes );
CPLFree( pabyTile );
nTileBytes = nRawBytes;
}
else
{
if ( ReadBuffer( (GByte *)pImage, nTileBytes ) == CE_Failure )
{
// XXX: Do not fail here, just return empty block
// and continue reading.
return CE_None;
}
}
}
else
{
if ( ReadBuffer( (GByte *)pImage, nTileBytes ) == CE_Failure )
{
// XXX: Do not fail here, just return empty block
// and continue reading.
return CE_None;
}
}
}
else if ( poGDS->eRMFType == RMFT_RSW )
{
GByte *pabyTile = (GByte *) VSIMalloc( nTileBytes );
if ( !pabyTile )
{
CPLError( CE_Failure, CPLE_FileIO,
"Can't allocate tile block of size %lu.\n%s\n",
(unsigned long) nTileBytes, VSIStrerror( errno ) );
return CE_Failure;
}
if ( ReadBuffer( pabyTile, nTileBytes ) == CE_Failure )
{
// XXX: Do not fail here, just return empty block
// and continue reading.
CPLFree( pabyTile );
return CE_None;
}
/* -------------------------------------------------------------------- */
/* If buffer was compressed, decompress it first. */
/* -------------------------------------------------------------------- */
if ( poGDS->Decompress )
{
GUInt32 nRawBytes;
if ( nLastTileXBytes && (GUInt32)nBlockXOff == poGDS->nXTiles - 1 )
nRawBytes = nLastTileXBytes;
else
nRawBytes = poGDS->nBands * nBlockXSize * nDataSize;
if ( nLastTileHeight && (GUInt32)nBlockYOff == poGDS->nYTiles - 1 )
nRawBytes *= nLastTileHeight;
else
nRawBytes *= nBlockYSize;
if ( nRawBytes > nTileBytes )
{
GByte *pszRawBuf = (GByte *)VSIMalloc( nRawBytes );
if (pszRawBuf == NULL)
{
CPLError( CE_Failure, CPLE_FileIO,
"Can't allocate a buffer for raw data of size %lu.\n%s\n",
(unsigned long) nRawBytes, VSIStrerror( errno ) );
VSIFree( pabyTile );
return CE_Failure;
}
(*poGDS->Decompress)( pabyTile, nTileBytes,
pszRawBuf, nRawBytes );
CPLFree( pabyTile );
pabyTile = pszRawBuf;
nTileBytes = nRawBytes;
}
}
/* -------------------------------------------------------------------- */
/* Deinterleave pixels from input buffer. */
/* -------------------------------------------------------------------- */
GUInt32 i;
if ( poGDS->sHeader.nBitDepth == 24 || poGDS->sHeader.nBitDepth == 32 )
{
GUInt32 nTileSize = nTileBytes / nBytesPerPixel;
if ( nTileSize > nBlockSize )
nTileSize = nBlockSize;
for ( i = 0; i < nTileSize; i++ )
{
// Colour triplets in RMF file organized in reverse order:
// blue, green, red. When we have 32-bit RMF the forth byte
// in quadriplet should be discarded as it has no meaning.
// That is why we always use 3 byte count in the following
// pabyTemp index.
((GByte *) pImage)[i] =
pabyTile[i * nBytesPerPixel + 3 - nBand];
}
}
else if ( poGDS->sHeader.nBitDepth == 16 )
{
GUInt32 nTileSize = nTileBytes / nBytesPerPixel;
if ( nTileSize > nBlockSize )
nTileSize = nBlockSize;
for ( i = 0; i < nTileSize; i++ )
{
switch ( nBand )
{
case 1:
((GByte *) pImage)[i] =
(GByte)((((GUInt16*)pabyTile)[i] & 0x7c00) >> 7);
break;
case 2:
((GByte *) pImage)[i] =
(GByte)((((GUInt16*)pabyTile)[i] & 0x03e0) >> 2);
break;
case 3:
((GByte *) pImage)[i] =
(GByte)(((GUInt16*)pabyTile)[i] & 0x1F) << 3;
break;
default:
break;
}
}
}
else if ( poGDS->sHeader.nBitDepth == 4 )
{
GByte *pabyTemp = pabyTile;
for ( i = 0; i < nBlockSize; i++ )
{
// Most significant part of the byte represents leftmost pixel
if ( i & 0x01 )
((GByte *) pImage)[i] = *pabyTemp++ & 0x0F;
else
((GByte *) pImage)[i] = (*pabyTemp & 0xF0) >> 4;
}
}
else if ( poGDS->sHeader.nBitDepth == 1 )
{
GByte *pabyTemp = pabyTile;
for ( i = 0; i < nBlockSize; i++ )
{
switch ( i & 0x7 )
{
case 0:
((GByte *) pImage)[i] = (*pabyTemp & 0x80) >> 7;
break;
case 1:
((GByte *) pImage)[i] = (*pabyTemp & 0x40) >> 6;
break;
case 2:
((GByte *) pImage)[i] = (*pabyTemp & 0x20) >> 5;
break;
case 3:
((GByte *) pImage)[i] = (*pabyTemp & 0x10) >> 4;
break;
case 4:
((GByte *) pImage)[i] = (*pabyTemp & 0x08) >> 3;
break;
case 5:
((GByte *) pImage)[i] = (*pabyTemp & 0x04) >> 2;
break;
case 6:
((GByte *) pImage)[i] = (*pabyTemp & 0x02) >> 1;
break;
case 7:
((GByte *) pImage)[i] = *pabyTemp++ & 0x01;
break;
default:
break;
}
}
}
CPLFree( pabyTile );
}
if ( nLastTileXBytes
&& (GUInt32) nBlockXOff == poGDS->nXTiles - 1 )
{
GUInt32 iRow;
for ( iRow = nCurBlockYSize - 1; iRow > 0; iRow-- )
{
memmove( (GByte *)pImage + nBlockXSize * iRow * nDataSize,
(GByte *)pImage + iRow * nLastTileXBytes,
nLastTileXBytes );
}
}
return CE_None;
}
/************************************************************************/
/* IWriteBlock() */
/************************************************************************/
CPLErr RMFRasterBand::IWriteBlock( int nBlockXOff, int nBlockYOff,
void * pImage )
{
RMFDataset *poGDS = (RMFDataset *)poDS;
GUInt32 nTile = nBlockYOff * poGDS->nXTiles + nBlockXOff;
GUInt32 nTileBytes = nDataSize * poGDS->nBands;
GUInt32 iInPixel, iOutPixel, nCurBlockYSize;
GByte *pabyTile;
CPLAssert( poGDS != NULL
&& nBlockXOff >= 0
&& nBlockYOff >= 0
&& pImage != NULL );
if ( poGDS->paiTiles[2 * nTile] )
{
if ( VSIFSeekL( poGDS->fp, poGDS->paiTiles[2 * nTile], SEEK_SET ) < 0 )
{
CPLError( CE_Failure, CPLE_FileIO,
"Can't seek to offset %ld in output file to write data.\n%s",
(long) poGDS->paiTiles[2 * nTile],
VSIStrerror( errno ) );
return CE_Failure;
}
}
else
{
if ( VSIFSeekL( poGDS->fp, 0, SEEK_END ) < 0 )
{
CPLError( CE_Failure, CPLE_FileIO,
"Can't seek to offset %ld in output file to write data.\n%s",
(long) poGDS->paiTiles[2 * nTile],
VSIStrerror( errno ) );
return CE_Failure;
}
poGDS->paiTiles[2 * nTile] = (GUInt32) VSIFTellL( poGDS->fp );
poGDS->bHeaderDirty = TRUE;
}
if ( nLastTileXBytes
&& (GUInt32) nBlockXOff == poGDS->nXTiles - 1 )
nTileBytes *= poGDS->sHeader.nLastTileWidth;
else
nTileBytes *= nBlockXSize;
if ( poGDS->sHeader.nLastTileHeight
&& (GUInt32) nBlockYOff == poGDS->nYTiles - 1 )
nCurBlockYSize = poGDS->sHeader.nLastTileHeight;
else
nCurBlockYSize = nBlockYSize;
nTileBytes *= nCurBlockYSize;
pabyTile = (GByte *) VSICalloc( nTileBytes, 1 );
if ( !pabyTile )
{
CPLError( CE_Failure, CPLE_FileIO,
"Can't allocate space for the tile blocak of size %lu.\n%s",
(unsigned long) nTileBytes, VSIStrerror( errno ) );
return CE_Failure;
}
if ( nLastTileXBytes
&& (GUInt32) nBlockXOff == poGDS->nXTiles - 1 )
{
GUInt32 iRow;
if ( poGDS->nBands == 1 )
{
for ( iRow = 0; iRow < nCurBlockYSize; iRow++ )
{
memcpy( pabyTile + iRow * nLastTileXBytes,
(GByte*)pImage + nBlockXSize * iRow * nDataSize,
nLastTileXBytes );
}
}
else
{
if ( poGDS->paiTiles[2 * nTile + 1] )
{
VSIFReadL( pabyTile, 1, nTileBytes, poGDS->fp );
VSIFSeekL( poGDS->fp, poGDS->paiTiles[2 * nTile], SEEK_SET );
}
for ( iRow = 0; iRow < nCurBlockYSize; iRow++ )
{
for ( iInPixel = 0, iOutPixel = nBytesPerPixel - nBand;
iOutPixel < nLastTileXBytes * poGDS->nBands;
iInPixel++, iOutPixel += poGDS->nBands )
(pabyTile + iRow * nLastTileXBytes * poGDS->nBands)[iOutPixel] =
((GByte *) pImage + nBlockXSize * iRow * nDataSize)[iInPixel];
}
}
}
else
{
if ( poGDS->nBands == 1 )
memcpy( pabyTile, pImage, nTileBytes );
else
{
if ( poGDS->paiTiles[2 * nTile + 1] )
{
VSIFReadL( pabyTile, 1, nTileBytes, poGDS->fp );
VSIFSeekL( poGDS->fp, poGDS->paiTiles[2 * nTile], SEEK_SET );
}
for ( iInPixel = 0, iOutPixel = nBytesPerPixel - nBand;
iOutPixel < nTileBytes;
iInPixel++, iOutPixel += poGDS->nBands )
pabyTile[iOutPixel] = ((GByte *) pImage)[iInPixel];
}
}
#ifdef CPL_MSB
if ( poGDS->eRMFType == RMFT_MTW )
{
GUInt32 i;
if ( poGDS->sHeader.nBitDepth == 16 )
{
for ( i = 0; i < nTileBytes; i += 2 )
CPL_SWAP16PTR( pabyTile + i );
}
else if ( poGDS->sHeader.nBitDepth == 32 )
{
for ( i = 0; i < nTileBytes; i += 4 )
CPL_SWAP32PTR( pabyTile + i );
}
else if ( poGDS->sHeader.nBitDepth == 64 )
{
for ( i = 0; i < nTileBytes; i += 8 )
CPL_SWAPDOUBLE( pabyTile + i );
}
}
#endif
if ( VSIFWriteL( pabyTile, 1, nTileBytes, poGDS->fp ) < nTileBytes )
{
CPLError( CE_Failure, CPLE_FileIO,
"Can't write block with X offset %d and Y offset %d.\n%s",
nBlockXOff, nBlockYOff, VSIStrerror( errno ) );
VSIFree( pabyTile );
return CE_Failure;
}
poGDS->paiTiles[2 * nTile + 1] = nTileBytes;
VSIFree( pabyTile );
poGDS->bHeaderDirty = TRUE;
return CE_None;
}
/************************************************************************/
/* GetUnitType() */
/************************************************************************/
const char *RMFRasterBand::GetUnitType()
{
RMFDataset *poGDS = (RMFDataset *) poDS;
return (const char *)poGDS->pszUnitType;
}
/************************************************************************/
/* SetUnitType() */
/************************************************************************/
CPLErr RMFRasterBand::SetUnitType( const char *pszNewValue )
{
RMFDataset *poGDS = (RMFDataset *) poDS;
CPLFree(poGDS->pszUnitType);
poGDS->pszUnitType = CPLStrdup( pszNewValue );
return CE_None;
}
/************************************************************************/
/* GetColorTable() */
/************************************************************************/
GDALColorTable *RMFRasterBand::GetColorTable()
{
RMFDataset *poGDS = (RMFDataset *) poDS;
return poGDS->poColorTable;
}
/************************************************************************/
/* SetColorTable() */
/************************************************************************/
CPLErr RMFRasterBand::SetColorTable( GDALColorTable *poColorTable )
{
RMFDataset *poGDS = (RMFDataset *) poDS;
if ( poColorTable )
{
if ( poGDS->eRMFType == RMFT_RSW && poGDS->nBands == 1 )
{
GDALColorEntry oEntry;
GUInt32 i;
if ( !poGDS->pabyColorTable )
return CE_Failure;
for( i = 0; i < poGDS->nColorTableSize; i++ )
{
poColorTable->GetColorEntryAsRGB( i, &oEntry );
poGDS->pabyColorTable[i * 4] = (GByte) oEntry.c1; // Red
poGDS->pabyColorTable[i * 4 + 1] = (GByte) oEntry.c2; // Green
poGDS->pabyColorTable[i * 4 + 2] = (GByte) oEntry.c3; // Blue
poGDS->pabyColorTable[i * 4 + 3] = 0;
}
poGDS->bHeaderDirty = TRUE;
}
}
else
return CE_Failure;
return CE_None;
}
/************************************************************************/
/* GetColorInterpretation() */
/************************************************************************/
GDALColorInterp RMFRasterBand::GetColorInterpretation()
{
RMFDataset *poGDS = (RMFDataset *) poDS;
if( poGDS->nBands == 3 )
{
if( nBand == 1 )
return GCI_RedBand;
else if( nBand == 2 )
return GCI_GreenBand;
else if( nBand == 3 )
return GCI_BlueBand;
else
return GCI_Undefined;
}
else
{
if ( poGDS->eRMFType == RMFT_RSW )
return GCI_PaletteIndex;
else
return GCI_Undefined;
}
}
/************************************************************************/
/* ==================================================================== */
/* RMFDataset */
/* ==================================================================== */
/************************************************************************/
/************************************************************************/
/* RMFDataset() */
/************************************************************************/
RMFDataset::RMFDataset()
{
pszFilename = NULL;
fp = NULL;
nBands = 0;
nXTiles = 0;
nYTiles = 0;
paiTiles = NULL;
pszProjection = CPLStrdup( "" );
pszUnitType = CPLStrdup( RMF_UnitsEmpty );
adfGeoTransform[0] = 0.0;
adfGeoTransform[1] = 1.0;
adfGeoTransform[2] = 0.0;
adfGeoTransform[3] = 0.0;
adfGeoTransform[4] = 0.0;
adfGeoTransform[5] = 1.0;
pabyColorTable = NULL;
poColorTable = NULL;
eRMFType = RMFT_RSW;
memset( &sHeader, 0, sizeof(sHeader) );
memset( &sExtHeader, 0, sizeof(sExtHeader) );
Decompress = NULL;
bBigEndian = FALSE;
bHeaderDirty = FALSE;
}
/************************************************************************/
/* ~RMFDataset() */
/************************************************************************/
RMFDataset::~RMFDataset()
{
FlushCache();
if ( paiTiles )
CPLFree( paiTiles );
if ( pszProjection )
CPLFree( pszProjection );
if ( pszUnitType )
CPLFree( pszUnitType );
if ( pabyColorTable )
CPLFree( pabyColorTable );
if ( poColorTable != NULL )
delete poColorTable;
if( fp != NULL )
VSIFCloseL( fp );
}
/************************************************************************/
/* GetGeoTransform() */
/************************************************************************/
CPLErr RMFDataset::GetGeoTransform( double * padfTransform )
{
memcpy( padfTransform, adfGeoTransform, sizeof(adfGeoTransform[0]) * 6 );
if( sHeader.iGeorefFlag )
return CE_None;
else
return CE_Failure;
}
/************************************************************************/
/* SetGeoTransform() */
/************************************************************************/
CPLErr RMFDataset::SetGeoTransform( double * padfTransform )
{
memcpy( adfGeoTransform, padfTransform, sizeof(double) * 6 );
sHeader.dfPixelSize = adfGeoTransform[1];
if ( sHeader.dfPixelSize != 0.0 )
sHeader.dfResolution = sHeader.dfScale / sHeader.dfPixelSize;
sHeader.dfLLX = adfGeoTransform[0];
sHeader.dfLLY = adfGeoTransform[3] - nRasterYSize * sHeader.dfPixelSize;
sHeader.iGeorefFlag = 1;
bHeaderDirty = TRUE;
return CE_None;
}
/************************************************************************/
/* GetProjectionRef() */
/************************************************************************/
const char *RMFDataset::GetProjectionRef()
{
if( pszProjection )
return pszProjection;
else
return "";
}
/************************************************************************/
/* SetProjection() */
/************************************************************************/
CPLErr RMFDataset::SetProjection( const char * pszNewProjection )
{
if ( pszProjection )
CPLFree( pszProjection );
pszProjection = CPLStrdup( (pszNewProjection) ? pszNewProjection : "" );
bHeaderDirty = TRUE;
return CE_None;
}
/************************************************************************/
/* WriteHeader() */
/************************************************************************/
CPLErr RMFDataset::WriteHeader()
{
/* -------------------------------------------------------------------- */
/* Setup projection. */
/* -------------------------------------------------------------------- */
if( pszProjection && !EQUAL( pszProjection, "" ) )
{
OGRSpatialReference oSRS;
long iProjection, iDatum, iEllips, iZone;
char *pszProj = pszProjection;
if ( oSRS.importFromWkt( &pszProj ) == OGRERR_NONE )
{
double adfPrjParams[7];
oSRS.exportToPanorama( &iProjection, &iDatum, &iEllips, &iZone,
adfPrjParams );
sHeader.iProjection = iProjection;
sHeader.dfStdP1 = adfPrjParams[0];
sHeader.dfStdP2 = adfPrjParams[1];
sHeader.dfCenterLat = adfPrjParams[2];
sHeader.dfCenterLong = adfPrjParams[3];
sExtHeader.nEllipsoid = iEllips;
sExtHeader.nDatum = iDatum;
sExtHeader.nZone = iZone;
}
}
#define RMF_WRITE_LONG( ptr, value, offset ) \
do { \
GInt32 iLong = CPL_LSBWORD32( value ); \
memcpy( (ptr) + (offset), &iLong, 4 ); \
} while(0);
#define RMF_WRITE_ULONG( ptr,value, offset ) \
do { \
GUInt32 iULong = CPL_LSBWORD32( value ); \
memcpy( (ptr) + (offset), &iULong, 4 ); \
} while(0);
#define RMF_WRITE_DOUBLE( ptr,value, offset ) \
do { \
double dfDouble = (value); \
CPL_LSBPTR64( &dfDouble ); \
memcpy( (ptr) + (offset), &dfDouble, 8 ); \
} while(0);
/* -------------------------------------------------------------------- */
/* Write out the main header. */
/* -------------------------------------------------------------------- */
{
GByte abyHeader[RMF_HEADER_SIZE];
memset( abyHeader, 0, sizeof(abyHeader) );
memcpy( abyHeader, sHeader.bySignature, RMF_SIGNATURE_SIZE );
RMF_WRITE_ULONG( abyHeader, sHeader.iVersion, 4 );
//
RMF_WRITE_ULONG( abyHeader, sHeader.nOvrOffset, 12 );
RMF_WRITE_ULONG( abyHeader, sHeader.iUserID, 16 );
memcpy( abyHeader + 20, sHeader.byName, RMF_NAME_SIZE );
RMF_WRITE_ULONG( abyHeader, sHeader.nBitDepth, 52 );
RMF_WRITE_ULONG( abyHeader, sHeader.nHeight, 56 );
RMF_WRITE_ULONG( abyHeader, sHeader.nWidth, 60 );
RMF_WRITE_ULONG( abyHeader, sHeader.nXTiles, 64 );
RMF_WRITE_ULONG( abyHeader, sHeader.nYTiles, 68 );
RMF_WRITE_ULONG( abyHeader, sHeader.nTileHeight, 72 );
RMF_WRITE_ULONG( abyHeader, sHeader.nTileWidth, 76 );
RMF_WRITE_ULONG( abyHeader, sHeader.nLastTileHeight, 80 );
RMF_WRITE_ULONG( abyHeader, sHeader.nLastTileWidth, 84 );
RMF_WRITE_ULONG( abyHeader, sHeader.nROIOffset, 88 );
RMF_WRITE_ULONG( abyHeader, sHeader.nROISize, 92 );
RMF_WRITE_ULONG( abyHeader, sHeader.nClrTblOffset, 96 );
RMF_WRITE_ULONG( abyHeader, sHeader.nClrTblSize, 100 );
RMF_WRITE_ULONG( abyHeader, sHeader.nTileTblOffset, 104 );
RMF_WRITE_ULONG( abyHeader, sHeader.nTileTblSize, 108 );
RMF_WRITE_LONG( abyHeader, sHeader.iMapType, 124 );
RMF_WRITE_LONG( abyHeader, sHeader.iProjection, 128 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.dfScale, 136 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.dfResolution, 144 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.dfPixelSize, 152 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.dfLLY, 160 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.dfLLX, 168 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.dfStdP1, 176 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.dfStdP2, 184 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.dfCenterLong, 192 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.dfCenterLat, 200 );
*(abyHeader + 208) = sHeader.iCompression;
*(abyHeader + 209) = sHeader.iMaskType;
*(abyHeader + 210) = sHeader.iMaskStep;
*(abyHeader + 211) = sHeader.iFrameFlag;
RMF_WRITE_ULONG( abyHeader, sHeader.nFlagsTblOffset, 212 );
RMF_WRITE_ULONG( abyHeader, sHeader.nFlagsTblSize, 216 );
RMF_WRITE_ULONG( abyHeader, sHeader.nFileSize0, 220 );
RMF_WRITE_ULONG( abyHeader, sHeader.nFileSize1, 224 );
*(abyHeader + 228) = sHeader.iUnknown;
*(abyHeader + 244) = sHeader.iGeorefFlag;
*(abyHeader + 245) = sHeader.iInverse;
memcpy( abyHeader + 248, sHeader.abyInvisibleColors,
sizeof(sHeader.abyInvisibleColors) );
RMF_WRITE_DOUBLE( abyHeader, sHeader.adfElevMinMax[0], 280 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.adfElevMinMax[1], 288 );
RMF_WRITE_DOUBLE( abyHeader, sHeader.dfNoData, 296 );
RMF_WRITE_ULONG( abyHeader, sHeader.iElevationUnit, 304 );
*(abyHeader + 308) = sHeader.iElevationType;
RMF_WRITE_ULONG( abyHeader, sHeader.nExtHdrOffset, 312 );
RMF_WRITE_ULONG( abyHeader, sHeader.nExtHdrSize, 316 );
VSIFSeekL( fp, 0, SEEK_SET );
VSIFWriteL( abyHeader, 1, sizeof(abyHeader), fp );
}
/* -------------------------------------------------------------------- */
/* Write out the extended header. */
/* -------------------------------------------------------------------- */
if ( sHeader.nExtHdrOffset && sHeader.nExtHdrSize )
{
GByte *pabyExtHeader = (GByte *)CPLCalloc( sHeader.nExtHdrSize, 1 );
RMF_WRITE_LONG( pabyExtHeader, sExtHeader.nEllipsoid, 24 );
RMF_WRITE_LONG( pabyExtHeader, sExtHeader.nDatum, 32 );
RMF_WRITE_LONG( pabyExtHeader, sExtHeader.nZone, 36 );
VSIFSeekL( fp, sHeader.nExtHdrOffset, SEEK_SET );
VSIFWriteL( pabyExtHeader, 1, sHeader.nExtHdrSize, fp );
CPLFree( pabyExtHeader );
}
#undef RMF_WRITE_DOUBLE
#undef RMF_WRITE_ULONG
#undef RMF_WRITE_LONG
/* -------------------------------------------------------------------- */
/* Write out the color table. */
/* -------------------------------------------------------------------- */
if ( sHeader.nClrTblOffset && sHeader.nClrTblSize )
{
VSIFSeekL( fp, sHeader.nClrTblOffset, SEEK_SET );
VSIFWriteL( pabyColorTable, 1, sHeader.nClrTblSize, fp );
}
/* -------------------------------------------------------------------- */
/* Write out the block table, swap if needed. */
/* -------------------------------------------------------------------- */
VSIFSeekL( fp, sHeader.nTileTblOffset, SEEK_SET );
#ifdef CPL_MSB
GUInt32 i;
GUInt32 *paiTilesSwapped = (GUInt32 *)CPLMalloc( sHeader.nTileTblSize );
if ( !paiTilesSwapped )
return CE_Failure;
memcpy( paiTilesSwapped, paiTiles, sHeader.nTileTblSize );
for ( i = 0; i < sHeader.nTileTblSize / sizeof(GUInt32); i++ )
CPL_SWAP32PTR( paiTilesSwapped + i );
VSIFWriteL( paiTilesSwapped, 1, sHeader.nTileTblSize, fp );
CPLFree( paiTilesSwapped );
#else
VSIFWriteL( paiTiles, 1, sHeader.nTileTblSize, fp );
#endif
bHeaderDirty = FALSE;
return CE_None;
}
/************************************************************************/
/* FlushCache() */
/************************************************************************/
void RMFDataset::FlushCache()
{
GDALDataset::FlushCache();
if ( !bHeaderDirty )
return;
if ( eRMFType == RMFT_MTW )
{
GDALRasterBand *poBand = GetRasterBand(1);
if ( poBand )
{
poBand->ComputeRasterMinMax( FALSE, sHeader.adfElevMinMax );
bHeaderDirty = TRUE;
}
}
WriteHeader();
}
/************************************************************************/
/* Identify() */
/************************************************************************/
int RMFDataset::Identify( GDALOpenInfo *poOpenInfo )
{
if( poOpenInfo->pabyHeader == NULL)
return FALSE;
if( memcmp(poOpenInfo->pabyHeader, RMF_SigRSW, sizeof(RMF_SigRSW)) != 0
&& memcmp(poOpenInfo->pabyHeader, RMF_SigRSW_BE, sizeof(RMF_SigRSW_BE)) != 0
&& memcmp(poOpenInfo->pabyHeader, RMF_SigMTW, sizeof(RMF_SigMTW)) != 0 )
return FALSE;
return TRUE;
}
/************************************************************************/
/* Open() */
/************************************************************************/
GDALDataset *RMFDataset::Open( GDALOpenInfo * poOpenInfo )
{
if ( !Identify(poOpenInfo) )
return NULL;
/* -------------------------------------------------------------------- */
/* Create a corresponding GDALDataset. */
/* -------------------------------------------------------------------- */
RMFDataset *poDS;
poDS = new RMFDataset();
if( poOpenInfo->eAccess == GA_ReadOnly )
poDS->fp = VSIFOpenL( poOpenInfo->pszFilename, "rb" );
else
poDS->fp = VSIFOpenL( poOpenInfo->pszFilename, "r+b" );
if ( !poDS->fp )
{
delete poDS;
return NULL;
}
#define RMF_READ_ULONG(ptr, value, offset) \
do { \
if ( poDS->bBigEndian ) \
{ \
(value) = CPL_MSBWORD32(*(GUInt32*)((ptr) + (offset))); \
} \
else \
{ \
(value) = CPL_LSBWORD32(*(GUInt32*)((ptr) + (offset))); \
} \
} while(0);
#define RMF_READ_LONG(ptr, value, offset) \
do { \
if ( poDS->bBigEndian ) \
{ \
(value) = CPL_MSBWORD32(*(GInt32*)((ptr) + (offset))); \
} \
else \
{ \
(value) = CPL_LSBWORD32(*(GInt32*)((ptr) + (offset))); \
} \
} while(0);
#define RMF_READ_DOUBLE(ptr, value, offset) \
do { \
(value) = *(double*)((ptr) + (offset)); \
if ( poDS->bBigEndian ) \
{ \
CPL_MSBPTR64(&(value)); \
} \
else \
{ \
CPL_LSBPTR64(&(value)); \
} \
} while(0);
/* -------------------------------------------------------------------- */
/* Read the main header. */
/* -------------------------------------------------------------------- */
{
GByte abyHeader[RMF_HEADER_SIZE];
VSIFSeekL( poDS->fp, 0, SEEK_SET );
VSIFReadL( abyHeader, 1, sizeof(abyHeader), poDS->fp );
if ( memcmp(abyHeader, RMF_SigMTW, sizeof(RMF_SigMTW)) == 0 )
poDS->eRMFType = RMFT_MTW;
else if ( memcmp(abyHeader, RMF_SigRSW_BE, sizeof(RMF_SigRSW_BE)) == 0 )
{
poDS->eRMFType = RMFT_RSW;
poDS->bBigEndian = TRUE;
}
else
poDS->eRMFType = RMFT_RSW;
memcpy( poDS->sHeader.bySignature, abyHeader, RMF_SIGNATURE_SIZE );
RMF_READ_ULONG( abyHeader, poDS->sHeader.iVersion, 4 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nSize, 8 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nOvrOffset, 12 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.iUserID, 16 );
memcpy( poDS->sHeader.byName, abyHeader + 20,
sizeof(poDS->sHeader.byName) );
poDS->sHeader.byName[sizeof(poDS->sHeader.byName) - 1] = '\0';
RMF_READ_ULONG( abyHeader, poDS->sHeader.nBitDepth, 52 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nHeight, 56 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nWidth, 60 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nXTiles, 64 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nYTiles, 68 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nTileHeight, 72 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nTileWidth, 76 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nLastTileHeight, 80 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nLastTileWidth, 84 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nROIOffset, 88 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nROISize, 92 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nClrTblOffset, 96 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nClrTblSize, 100 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nTileTblOffset, 104 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nTileTblSize, 108 );
RMF_READ_LONG( abyHeader, poDS->sHeader.iMapType, 124 );
RMF_READ_LONG( abyHeader, poDS->sHeader.iProjection, 128 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.dfScale, 136 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.dfResolution, 144 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.dfPixelSize, 152 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.dfLLY, 160 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.dfLLX, 168 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.dfStdP1, 176 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.dfStdP2, 184 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.dfCenterLong, 192 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.dfCenterLat, 200 );
poDS->sHeader.iCompression = *(abyHeader + 208);
poDS->sHeader.iMaskType = *(abyHeader + 209);
poDS->sHeader.iMaskStep = *(abyHeader + 210);
poDS->sHeader.iFrameFlag = *(abyHeader + 211);
RMF_READ_ULONG( abyHeader, poDS->sHeader.nFlagsTblOffset, 212 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nFlagsTblSize, 216 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nFileSize0, 220 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nFileSize1, 224 );
poDS->sHeader.iUnknown = *(abyHeader + 228);
poDS->sHeader.iGeorefFlag = *(abyHeader + 244);
poDS->sHeader.iInverse = *(abyHeader + 245);
memcpy( poDS->sHeader.abyInvisibleColors,
abyHeader + 248, sizeof(poDS->sHeader.abyInvisibleColors) );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.adfElevMinMax[0], 280 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.adfElevMinMax[1], 288 );
RMF_READ_DOUBLE( abyHeader, poDS->sHeader.dfNoData, 296 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.iElevationUnit, 304 );
poDS->sHeader.iElevationType = *(abyHeader + 308);
RMF_READ_ULONG( abyHeader, poDS->sHeader.nExtHdrOffset, 312 );
RMF_READ_ULONG( abyHeader, poDS->sHeader.nExtHdrSize, 316 );
}
/* -------------------------------------------------------------------- */
/* Read the extended header. */
/* -------------------------------------------------------------------- */
if ( poDS->sHeader.nExtHdrOffset && poDS->sHeader.nExtHdrSize )
{
GByte *pabyExtHeader =
(GByte *)VSICalloc( poDS->sHeader.nExtHdrSize, 1 );
if (pabyExtHeader == NULL)
{
delete poDS;
return NULL;
}
VSIFSeekL( poDS->fp, poDS->sHeader.nExtHdrOffset, SEEK_SET );
VSIFReadL( pabyExtHeader, 1, poDS->sHeader.nExtHdrSize, poDS->fp );
RMF_READ_LONG( pabyExtHeader, poDS->sExtHeader.nEllipsoid, 24 );
RMF_READ_LONG( pabyExtHeader, poDS->sExtHeader.nDatum, 32 );
RMF_READ_LONG( pabyExtHeader, poDS->sExtHeader.nZone, 36 );
CPLFree( pabyExtHeader );
}
#undef RMF_READ_DOUBLE
#undef RMF_READ_LONG
#undef RMF_READ_ULONG
#ifdef DEBUG
CPLDebug( "RMF", "%s image has width %d, height %d, bit depth %d, "
"compression scheme %d, %s, nodata %f",
(poDS->eRMFType == RMFT_MTW) ? "MTW" : "RSW",
poDS->sHeader.nWidth, poDS->sHeader.nHeight,
poDS->sHeader.nBitDepth, poDS->sHeader.iCompression,
poDS->bBigEndian ? "big endian" : "little endian",
poDS->sHeader.dfNoData );
CPLDebug( "RMF", "Size %d, offset to overview %#lx, user ID %d, "
"ROI offset %#lx, ROI size %d",
poDS->sHeader.nSize, (unsigned long)poDS->sHeader.nOvrOffset,
poDS->sHeader.iUserID, (unsigned long)poDS->sHeader.nROIOffset,
poDS->sHeader.nROISize );
CPLDebug( "RMF", "Map type %d, projection %d, scale %f, resolution %f, ",
poDS->sHeader.iMapType, poDS->sHeader.iProjection,
poDS->sHeader.dfScale, poDS->sHeader.dfResolution );
CPLDebug( "RMF", "Georeferencing: pixel size %f, LLX %f, LLY %f",
poDS->sHeader.dfPixelSize,
poDS->sHeader.dfLLX, poDS->sHeader.dfLLY );
if ( poDS->sHeader.nROIOffset && poDS->sHeader.nROISize )
{
GUInt32 i;
GInt32 nValue;
CPLDebug( "RMF", "ROI coordinates:" );
for ( i = 0; i < poDS->sHeader.nROISize; i += sizeof(nValue) )
{
GUInt32 nValue;
VSIFSeekL( poDS->fp, poDS->sHeader.nROIOffset + i, SEEK_SET );
VSIFReadL( &nValue, 1, sizeof(nValue), poDS->fp );
CPLDebug( "RMF", "%d", nValue );
}
}
#endif
/* -------------------------------------------------------------------- */
/* Read array of blocks offsets/sizes. */
/* -------------------------------------------------------------------- */
GUInt32 i;
if ( VSIFSeekL( poDS->fp, poDS->sHeader.nTileTblOffset, SEEK_SET ) < 0)
{
delete poDS;
return NULL;
}
poDS->paiTiles = (GUInt32 *)VSIMalloc( poDS->sHeader.nTileTblSize );
if ( !poDS->paiTiles )
{
delete poDS;
return NULL;
}
if ( VSIFReadL( poDS->paiTiles, 1, poDS->sHeader.nTileTblSize,
poDS->fp ) < poDS->sHeader.nTileTblSize )
{
CPLDebug( "RMF", "Can't read tiles offsets/sizes table." );
delete poDS;
return NULL;
}
#ifdef CPL_MSB
if ( !poDS->bBigEndian )
{
for ( i = 0; i < poDS->sHeader.nTileTblSize / sizeof(GUInt32); i++ )
CPL_SWAP32PTR( poDS->paiTiles + i );
}
#else
if ( poDS->bBigEndian )
{
for ( i = 0; i < poDS->sHeader.nTileTblSize / sizeof(GUInt32); i++ )
CPL_SWAP32PTR( poDS->paiTiles + i );
}
#endif
#ifdef DEBUG
CPLDebug( "RMF", "List of block offsets/sizes:" );
for ( i = 0; i < poDS->sHeader.nTileTblSize / sizeof(GUInt32); i += 2 )
{
CPLDebug( "RMF", " %d / %d",
poDS->paiTiles[i], poDS->paiTiles[i + 1] );
}
#endif
/* -------------------------------------------------------------------- */
/* Set up essential image parameters. */
/* -------------------------------------------------------------------- */
GDALDataType eType = GDT_Byte;
poDS->nRasterXSize = poDS->sHeader.nWidth;
poDS->nRasterYSize = poDS->sHeader.nHeight;
if (!GDALCheckDatasetDimensions(poDS->nRasterXSize, poDS->nRasterYSize))
{
delete poDS;
return NULL;
}
if ( poDS->eRMFType == RMFT_RSW )
{
switch ( poDS->sHeader.nBitDepth )
{
case 32:
case 24:
case 16:
poDS->nBands = 3;
break;
case 1:
case 4:
case 8:
{
// Allocate memory for colour table and read it
poDS->nColorTableSize = 1 << poDS->sHeader.nBitDepth;
if ( poDS->nColorTableSize * 4 > poDS->sHeader.nClrTblSize )
{
CPLDebug( "RMF",
"Wrong color table size. Expected %d, got %d.",
poDS->nColorTableSize * 4,
poDS->sHeader.nClrTblSize );
delete poDS;
return NULL;
}
poDS->pabyColorTable =
(GByte *)VSIMalloc( poDS->sHeader.nClrTblSize );
if (poDS->pabyColorTable == NULL)
{
CPLDebug( "RMF", "Can't allocate color table." );
delete poDS;
return NULL;
}
if ( VSIFSeekL( poDS->fp, poDS->sHeader.nClrTblOffset,
SEEK_SET ) < 0 )
{
CPLDebug( "RMF", "Can't seek to color table location." );
delete poDS;
return NULL;
}
if ( VSIFReadL( poDS->pabyColorTable, 1,
poDS->sHeader.nClrTblSize, poDS->fp )
< poDS->sHeader.nClrTblSize )
{
CPLDebug( "RMF", "Can't read color table." );
delete poDS;
return NULL;
}
GDALColorEntry oEntry;
poDS->poColorTable = new GDALColorTable();
for( i = 0; i < poDS->nColorTableSize; i++ )
{
oEntry.c1 = poDS->pabyColorTable[i * 4]; // Red
oEntry.c2 = poDS->pabyColorTable[i * 4 + 1]; // Green
oEntry.c3 = poDS->pabyColorTable[i * 4 + 2]; // Blue
oEntry.c4 = 255; // Alpha
poDS->poColorTable->SetColorEntry( i, &oEntry );
}
}
poDS->nBands = 1;
break;
default:
break;
}
eType = GDT_Byte;
}
else
{
poDS->nBands = 1;
if ( poDS->sHeader.nBitDepth == 8 )
eType = GDT_Byte;
else if ( poDS->sHeader.nBitDepth == 16 )
eType = GDT_Int16;
else if ( poDS->sHeader.nBitDepth == 32 )
eType = GDT_Int32;
else if ( poDS->sHeader.nBitDepth == 64 )
eType = GDT_Float64;
}
if (poDS->sHeader.nTileWidth == 0 ||
poDS->sHeader.nTileHeight == 0)
{
CPLDebug ("RMF", "Invalid tile dimension : %d x %d",
poDS->sHeader.nTileWidth, poDS->sHeader.nTileHeight);
delete poDS;
return NULL;
}
poDS->nXTiles = ( poDS->nRasterXSize + poDS->sHeader.nTileWidth - 1 ) /
poDS->sHeader.nTileWidth;
poDS->nYTiles = ( poDS->nRasterYSize + poDS->sHeader.nTileHeight - 1 ) /
poDS->sHeader.nTileHeight;
#ifdef DEBUG
CPLDebug( "RMF", "Image is %d tiles wide, %d tiles long",
poDS->nXTiles, poDS->nYTiles );
#endif
/* -------------------------------------------------------------------- */
/* Choose compression scheme. */
/* XXX: The DEM compression method seems to be only applicable */
/* to Int32 data. */
/* -------------------------------------------------------------------- */
if ( poDS->sHeader.iCompression == RMF_COMPRESSION_LZW )
poDS->Decompress = &LZWDecompress;
else if ( poDS->sHeader.iCompression == RMF_COMPRESSION_DEM
&& eType == GDT_Int32 )
poDS->Decompress = &DEMDecompress;
else // No compression
poDS->Decompress = NULL;
/* -------------------------------------------------------------------- */
/* Create band information objects. */
/* -------------------------------------------------------------------- */
int iBand;
for( iBand = 1; iBand <= poDS->nBands; iBand++ )
poDS->SetBand( iBand, new RMFRasterBand( poDS, iBand, eType ) );
/* -------------------------------------------------------------------- */
/* Set up projection. */
/* */
/* XXX: If projection value is not specified, but image still have */
/* georeferencing information, assume Gauss-Kruger projection. */
/* -------------------------------------------------------------------- */
if( poDS->sHeader.iProjection > 0 ||
(poDS->sHeader.dfPixelSize != 0.0 &&
poDS->sHeader.dfLLX != 0.0 &&
poDS->sHeader.dfLLY != 0.0) )
{
OGRSpatialReference oSRS;
GInt32 nProj =
(poDS->sHeader.iProjection) ? poDS->sHeader.iProjection : 1L;
double padfPrjParams[8];
padfPrjParams[0] = poDS->sHeader.dfStdP1;
padfPrjParams[1] = poDS->sHeader.dfStdP2;
padfPrjParams[2] = poDS->sHeader.dfCenterLat;
padfPrjParams[3] = poDS->sHeader.dfCenterLong;
padfPrjParams[4] = 1.0;
padfPrjParams[5] = 0.0;
padfPrjParams[6] = 0.0;
// XXX: Compute zone number for Gauss-Kruger (Transverse Mercator)
// projection if it is not specified.
if ( nProj == 1L && poDS->sHeader.dfCenterLong == 0.0 )
{
if ( poDS->sExtHeader.nZone == 0 )
{
double centerXCoord = poDS->sHeader.dfLLX +
(poDS->nRasterXSize * poDS->sHeader.dfPixelSize / 2.0);
padfPrjParams[7] =
floor((centerXCoord - 500000.0 ) / 1000000.0);
}
else
padfPrjParams[7] = poDS->sExtHeader.nZone;
}
else
padfPrjParams[7] = 0.0;
oSRS.importFromPanorama( nProj, poDS->sExtHeader.nDatum,
poDS->sExtHeader.nEllipsoid, padfPrjParams );
if ( poDS->pszProjection )
CPLFree( poDS->pszProjection );
oSRS.exportToWkt( &poDS->pszProjection );
}
/* -------------------------------------------------------------------- */
/* Set up georeferencing. */
/* -------------------------------------------------------------------- */
if ( (poDS->eRMFType == RMFT_RSW && poDS->sHeader.iGeorefFlag) ||
(poDS->eRMFType == RMFT_MTW && poDS->sHeader.dfPixelSize != 0.0) )
{
poDS->adfGeoTransform[0] = poDS->sHeader.dfLLX;
poDS->adfGeoTransform[3] = poDS->sHeader.dfLLY
+ poDS->nRasterYSize * poDS->sHeader.dfPixelSize;
poDS->adfGeoTransform[1] = poDS->sHeader.dfPixelSize;
poDS->adfGeoTransform[5] = - poDS->sHeader.dfPixelSize;
poDS->adfGeoTransform[2] = 0.0;
poDS->adfGeoTransform[4] = 0.0;
}
/* -------------------------------------------------------------------- */
/* Set units. */
/* -------------------------------------------------------------------- */
if ( poDS->eRMFType == RMFT_MTW )
{
CPLFree(poDS->pszUnitType);
switch ( poDS->sHeader.iElevationUnit )
{
case 0:
poDS->pszUnitType = CPLStrdup( RMF_UnitsM );
break;
case 1:
poDS->pszUnitType = CPLStrdup( RMF_UnitsCM );
break;
case 2:
poDS->pszUnitType = CPLStrdup( RMF_UnitsDM );
break;
case 3:
poDS->pszUnitType = CPLStrdup( RMF_UnitsMM );
break;
default:
poDS->pszUnitType = CPLStrdup( RMF_UnitsEmpty );
break;
}
}
/* -------------------------------------------------------------------- */
/* Report some other dataset related information. */
/* -------------------------------------------------------------------- */
if ( poDS->eRMFType == RMFT_MTW )
{
char szTemp[256];
snprintf( szTemp, sizeof(szTemp), "%g", poDS->sHeader.adfElevMinMax[0] );
poDS->SetMetadataItem( "ELEVATION_MINIMUM", szTemp );
snprintf( szTemp, sizeof(szTemp), "%g", poDS->sHeader.adfElevMinMax[1] );
poDS->SetMetadataItem( "ELEVATION_MAXIMUM", szTemp );
poDS->SetMetadataItem( "ELEVATION_UNITS", poDS->pszUnitType );
snprintf( szTemp, sizeof(szTemp), "%d", poDS->sHeader.iElevationType );
poDS->SetMetadataItem( "ELEVATION_TYPE", szTemp );
}
/* -------------------------------------------------------------------- */
/* Check for overviews. */
/* -------------------------------------------------------------------- */
poDS->oOvManager.Initialize( poDS, poOpenInfo->pszFilename );
return( poDS );
}
/************************************************************************/
/* Create() */
/************************************************************************/
GDALDataset *RMFDataset::Create( const char * pszFilename,
int nXSize, int nYSize, int nBands,
GDALDataType eType, char **papszParmList )
{
if ( nBands != 1 && nBands != 3 )
{
CPLError( CE_Failure, CPLE_NotSupported,
"RMF driver doesn't support %d bands. Must be 1 or 3.\n",
nBands );
return NULL;
}
if ( nBands == 1
&& eType != GDT_Byte
&& eType != GDT_Int16
&& eType != GDT_Int32
&& eType != GDT_Float64 )
{
CPLError( CE_Failure, CPLE_AppDefined,
"Attempt to create RMF dataset with an illegal data type (%s),\n"
"only Byte, Int16, Int32 and Float64 types supported "
"by the format for single-band images.\n",
GDALGetDataTypeName(eType) );
return NULL;
}
if ( nBands == 3 && eType != GDT_Byte )
{
CPLError( CE_Failure, CPLE_AppDefined,
"Attempt to create RMF dataset with an illegal data type (%s),\n"
"only Byte type supported by the format for three-band images.\n",
GDALGetDataTypeName(eType) );
return NULL;
}
/* -------------------------------------------------------------------- */
/* Create the dataset. */
/* -------------------------------------------------------------------- */
RMFDataset *poDS;
poDS = new RMFDataset();
poDS->fp = VSIFOpenL( pszFilename, "w+b" );
if( poDS->fp == NULL )
{
CPLError( CE_Failure, CPLE_OpenFailed, "Unable to create file %s.\n",
pszFilename );
delete poDS;
return NULL;
}
poDS->pszFilename = pszFilename;
/* -------------------------------------------------------------------- */
/* Fill the RMFHeader */
/* -------------------------------------------------------------------- */
GUInt32 nTileSize, nCurPtr = 0;
GUInt32 nBlockXSize =
( nXSize < RMF_DEFAULT_BLOCKXSIZE ) ? nXSize : RMF_DEFAULT_BLOCKXSIZE;
GUInt32 nBlockYSize =
( nYSize < RMF_DEFAULT_BLOCKYSIZE ) ? nYSize : RMF_DEFAULT_BLOCKYSIZE;
const char *pszValue;
if ( CSLFetchBoolean( papszParmList, "MTW", FALSE) )
poDS->eRMFType = RMFT_MTW;
else
poDS->eRMFType = RMFT_RSW;
if ( poDS->eRMFType == RMFT_MTW )
memcpy( poDS->sHeader.bySignature, RMF_SigMTW, RMF_SIGNATURE_SIZE );
else
memcpy( poDS->sHeader.bySignature, RMF_SigRSW, RMF_SIGNATURE_SIZE );
poDS->sHeader.iVersion = 0x0200;
poDS->sHeader.nOvrOffset = 0x00;
poDS->sHeader.iUserID = 0x00;
memset( poDS->sHeader.byName, 0, sizeof(poDS->sHeader.byName) );
poDS->sHeader.nBitDepth = GDALGetDataTypeSize( eType ) * nBands;
poDS->sHeader.nHeight = nYSize;
poDS->sHeader.nWidth = nXSize;
pszValue = CSLFetchNameValue(papszParmList,"BLOCKXSIZE");
if( pszValue != NULL )
nBlockXSize = atoi( pszValue );
pszValue = CSLFetchNameValue(papszParmList,"BLOCKYSIZE");
if( pszValue != NULL )
nBlockYSize = atoi( pszValue );
poDS->sHeader.nTileWidth = nBlockXSize;
poDS->sHeader.nTileHeight = nBlockYSize;
poDS->nXTiles = poDS->sHeader.nXTiles =
( nXSize + poDS->sHeader.nTileWidth - 1 ) / poDS->sHeader.nTileWidth;
poDS->nYTiles = poDS->sHeader.nYTiles =
( nYSize + poDS->sHeader.nTileHeight - 1 ) / poDS->sHeader.nTileHeight;
poDS->sHeader.nLastTileHeight = nYSize % poDS->sHeader.nTileHeight;
if ( !poDS->sHeader.nLastTileHeight )
poDS->sHeader.nLastTileHeight = poDS->sHeader.nTileHeight;
poDS->sHeader.nLastTileWidth = nXSize % poDS->sHeader.nTileWidth;
if ( !poDS->sHeader.nLastTileWidth )
poDS->sHeader.nLastTileWidth = poDS->sHeader.nTileWidth;
poDS->sHeader.nROIOffset = 0x00;
poDS->sHeader.nROISize = 0x00;
nCurPtr += RMF_HEADER_SIZE;
// Extended header
poDS->sHeader.nExtHdrOffset = nCurPtr;
poDS->sHeader.nExtHdrSize = RMF_EXT_HEADER_SIZE;
nCurPtr += poDS->sHeader.nExtHdrSize;
// Color table
if ( poDS->eRMFType == RMFT_RSW && nBands == 1 )
{
GUInt32 i;
if ( poDS->sHeader.nBitDepth > 8 )
{
CPLError( CE_Failure, CPLE_AppDefined,
"Cannot create color table of RSW with nBitDepth = %d. Retry with MTW ?",
poDS->sHeader.nBitDepth );
delete poDS;
return NULL;
}
poDS->sHeader.nClrTblOffset = nCurPtr;
poDS->nColorTableSize = 1 << poDS->sHeader.nBitDepth;
poDS->sHeader.nClrTblSize = poDS->nColorTableSize * 4;
poDS->pabyColorTable = (GByte *) VSIMalloc( poDS->sHeader.nClrTblSize );
if (poDS->pabyColorTable == NULL)
{
CPLError( CE_Failure, CPLE_OutOfMemory, "Out of memory");
delete poDS;
return NULL;
}
for ( i = 0; i < poDS->nColorTableSize; i++ )
{
poDS->pabyColorTable[i * 4] =
poDS->pabyColorTable[i * 4 + 1] =
poDS->pabyColorTable[i * 4 + 2] = (GByte) i;
poDS->pabyColorTable[i * 4 + 3] = 0;
}
nCurPtr += poDS->sHeader.nClrTblSize;
}
else
{
poDS->sHeader.nClrTblOffset = 0x00;
poDS->sHeader.nClrTblSize = 0x00;
}
// Blocks table
poDS->sHeader.nTileTblOffset = nCurPtr;
poDS->sHeader.nTileTblSize =
poDS->sHeader.nXTiles * poDS->sHeader.nYTiles * 4 * 2;
poDS->paiTiles = (GUInt32 *)CPLCalloc( poDS->sHeader.nTileTblSize, 1 );
nCurPtr += poDS->sHeader.nTileTblSize;
nTileSize = poDS->sHeader.nTileWidth * poDS->sHeader.nTileHeight
* GDALGetDataTypeSize( eType ) / 8;
poDS->sHeader.nSize =
poDS->paiTiles[poDS->sHeader.nTileTblSize / 4 - 2] + nTileSize;
// Elevation units
if ( EQUAL(poDS->pszUnitType, RMF_UnitsM) )
poDS->sHeader.iElevationUnit = 0;
else if ( EQUAL(poDS->pszUnitType, RMF_UnitsCM) )
poDS->sHeader.iElevationUnit = 1;
else if ( EQUAL(poDS->pszUnitType, RMF_UnitsDM) )
poDS->sHeader.iElevationUnit = 2;
else if ( EQUAL(poDS->pszUnitType, RMF_UnitsMM) )
poDS->sHeader.iElevationUnit = 3;
else
poDS->sHeader.iElevationUnit = 0;
poDS->sHeader.iMapType = -1;
poDS->sHeader.iProjection = -1;
poDS->sHeader.dfScale = 10000.0;
poDS->sHeader.dfResolution = 100.0;
poDS->sHeader.iCompression = 0;
poDS->sHeader.iMaskType = 0;
poDS->sHeader.iMaskStep = 0;
poDS->sHeader.iFrameFlag = 0;
poDS->sHeader.nFlagsTblOffset = 0x00;
poDS->sHeader.nFlagsTblSize = 0x00;
poDS->sHeader.nFileSize0 = 0x00;
poDS->sHeader.nFileSize1 = 0x00;
poDS->sHeader.iUnknown = 0;
poDS->sHeader.iGeorefFlag = 0;
poDS->sHeader.iInverse = 0;
memset( poDS->sHeader.abyInvisibleColors, 0,
sizeof(poDS->sHeader.abyInvisibleColors) );
poDS->sHeader.adfElevMinMax[0] = 0.0;
poDS->sHeader.adfElevMinMax[1] = 0.0;
poDS->sHeader.dfNoData = 0.0;
poDS->sHeader.iElevationType = 0;
poDS->nRasterXSize = nXSize;
poDS->nRasterYSize = nYSize;
poDS->eAccess = GA_Update;
poDS->nBands = nBands;
poDS->WriteHeader();
/* -------------------------------------------------------------------- */
/* Create band information objects. */
/* -------------------------------------------------------------------- */
int iBand;
for( iBand = 1; iBand <= poDS->nBands; iBand++ )
poDS->SetBand( iBand, new RMFRasterBand( poDS, iBand, eType ) );
return (GDALDataset *) poDS;
}
/************************************************************************/
/* GDALRegister_RMF() */
/************************************************************************/
void GDALRegister_RMF()
{
GDALDriver *poDriver;
if( GDALGetDriverByName( "RMF" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "RMF" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"Raster Matrix Format" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"frmt_rmf.html" );
poDriver->SetMetadataItem( GDAL_DMD_EXTENSION, "rsw" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES,
"Byte Int16 Int32 Float64" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONOPTIONLIST,
"<CreationOptionList>"
" <Option name='MTW' type='boolean' description='Create MTW DEM matrix'/>"
" <Option name='BLOCKXSIZE' type='int' description='Tile Width'/>"
" <Option name='BLOCKYSIZE' type='int' description='Tile Height'/>"
"</CreationOptionList>" );
poDriver->SetMetadataItem( GDAL_DCAP_VIRTUALIO, "YES" );
poDriver->pfnIdentify = RMFDataset::Identify;
poDriver->pfnOpen = RMFDataset::Open;
poDriver->pfnCreate = RMFDataset::Create;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
| [
"[email protected]"
] | |
6459b1a802112ed6b1d0c1fe520a88fc297596db | 0d0c3515eac7c7c0a27f3b9af835a6a5f7f912d2 | /Cap-Man/TemporaryExistenceComponent.h | 310b2e770f7e2ed105cfdfefff49956575d3005a | [] | no_license | nihk/Cap-Man | 00e9bec38b5a279179511a2a5089d99d7b14e8f6 | 0e644df3c36e23f0d03d723294beb92079c9e9ee | refs/heads/master | 2021-11-24T18:03:21.033877 | 2021-11-06T20:00:30 | 2021-11-06T20:00:30 | 100,821,276 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 545 | h | #pragma once
#include "Component.h"
class TemporaryExistenceComponent
: public Component<TemporaryExistenceComponent> {
public:
TemporaryExistenceComponent(float howLong);
~TemporaryExistenceComponent();
void update(float delta);
bool exists() const { return mExists; }
bool wasRemoved() const { return mWasRemoved; }
void setWasRemoved(bool wasRemoved) { mWasRemoved = wasRemoved; }
void reset();
private:
bool mWasRemoved;
bool mExists;
float mExistenceDuration;
float mAccumulatedTime;
};
| [
"[email protected]"
] | |
1754c27d2511f8e5fd5d7f69999003dd5d84bbd3 | 5a076617e29016fe75d6421d235f22cc79f8f157 | /catcake-0.9.5-android/sample/sample06_sound/sound_monitor.cpp | 33235525b5107722707629dd34305bee70c5a08a | [] | no_license | dddddttttt/androidsourcecodes | 516b8c79cae7f4fa71b97a2a470eab52844e1334 | 3d13ab72163bbeed2ef226a476e29ca79766ea0b | refs/heads/master | 2020-08-17T01:38:54.095515 | 2018-04-08T15:17:24 | 2018-04-08T15:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,470 | cpp | /*
Copyright (c) 2007-2010 Takashi Kitao
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include "catcake.h"
class SoundMonitor : public ckTask
{
public:
SoundMonitor();
virtual ~SoundMonitor();
private:
virtual void onUpdate();
virtual void onMessage(ckID msg_id, ckMsg<4>& msg);
};
void newSoundMonitor()
{
ckNewTask(SoundMonitor);
}
SoundMonitor::SoundMonitor() : ckTask(ORDER_ZERO)
{
ckSndMgr::openSoundDevice(ckSndMgr::CHANNEL_NUM_MONO, ckSndMgr::SAMPLE_RATE_11KHZ, 50);
}
SoundMonitor::~SoundMonitor()
{
ckSndMgr::closeSoundDevice();
}
void SoundMonitor::onUpdate()
{
if (ckKeyMgr::isPressed(ckKeyMgr::KEY_F))
{
ckSysMgr::toggleFullScreen(640, 480);
}
if (ckKeyMgr::isPressed(ckKeyMgr::KEY_Q))
{
ckEndCatcake();
}
if (ckKeyMgr::isPressed(ckKeyMgr::KEY_1))
{
ckSndMgr::openSoundDevice(ckSndMgr::CHANNEL_NUM_MONO, ckSndMgr::SAMPLE_RATE_11KHZ, 50);
}
else if (ckKeyMgr::isPressed(ckKeyMgr::KEY_2))
{
ckSndMgr::openSoundDevice(ckSndMgr::CHANNEL_NUM_MONO, ckSndMgr::SAMPLE_RATE_22KHZ, 50);
}
else if (ckKeyMgr::isPressed(ckKeyMgr::KEY_3))
{
ckSndMgr::openSoundDevice(ckSndMgr::CHANNEL_NUM_MONO, ckSndMgr::SAMPLE_RATE_44KHZ, 50);
}
else if (ckKeyMgr::isPressed(ckKeyMgr::KEY_4))
{
ckSndMgr::openSoundDevice(ckSndMgr::CHANNEL_NUM_STEREO, ckSndMgr::SAMPLE_RATE_11KHZ, 50);
}
else if (ckKeyMgr::isPressed(ckKeyMgr::KEY_5))
{
ckSndMgr::openSoundDevice(ckSndMgr::CHANNEL_NUM_STEREO, ckSndMgr::SAMPLE_RATE_22KHZ, 50);
}
else if (ckKeyMgr::isPressed(ckKeyMgr::KEY_6))
{
ckSndMgr::openSoundDevice(ckSndMgr::CHANNEL_NUM_STEREO, ckSndMgr::SAMPLE_RATE_44KHZ, 50);
}
if (!ckSndMgr::isSoundDeviceOpen())
{
ckDbgMgr::drawString(-138, 0, ckCol::FULL, 2, "Can't Open Sound Device");
}
ckDbgMgr::drawString(-280.0f, -166.0f, ckCol(255, 128, 128, 255), 1, //
"When the sound device's sample rate is higher than sound data's sample rate, noise may occur.");
ckDbgMgr::drawString(-280.0f, -200.0f, ckCol::FULL, 1, "SOUND DEVICE CHANNEL NUM: %d", ckSndMgr::getSoundDeviceChannelNum());
ckDbgMgr::drawString(-280.0f, -210.0f, ckCol::FULL, 1, "SOUND DEVICE SAMPLE RATE: %dHz", ckSndMgr::getSoundDeviceSampleRate());
for (u32 i = 0; i < ckSndMgr::TRACK_NUM; i++)
{
if (ckSndMgr::isPlaying(i))
{
ckDbgMgr::drawString(-242.0f + 150.0f * i, -144.0f, ckCol(255, 255, 255, 96), 1, "%06d", ckSndMgr::getPlayingPosition(i));
}
}
}
void SoundMonitor::onMessage(ckID msg_id, ckMsg<4>& msg)
{
const u32 SOUND_NUM = 6;
static const ckID s_snd_id[SOUND_NUM] =
{
ckID_("mono_11khz.wav"), ckID_("stereo_11khz.wav"), //
ckID_("mono_22khz.wav"), ckID_("stereo_22khz.wav"), //
ckID_("mono_44khz.wav"), ckID_("stereo_44khz.wav")
};
static const bool s_is_play_loop[SOUND_NUM] =
{
false, true, true, false, false, false
};
if (msg_id == ckID_("PLAY"))
{
u8 snd_no = msg.getParam<u8>(1);
if (snd_no < SOUND_NUM)
{
ckSndMgr::play(msg.getParam<u8>(0), s_snd_id[snd_no], 128, s_is_play_loop[snd_no]);
}
}
else if (msg_id == ckID_("FADE"))
{
ckSndMgr::fadeTrackVolume(msg.getParam<u8>(0), msg.getParam<u8>(1), msg.getParam<r32>(2));
}
}
| [
"[email protected]"
] | |
fdef955f3b76ad185bcc5ba59af8b9a4a9be9032 | 20aa912f602fbe5bfeaeb225815eecbed0837861 | /Gklee/include/cuda/thrust/detail/backend/cuda/block/set_difference.inl | 90cacc7ebee288de2adafb9b959214b32de9c9b5 | [
"NCSA"
] | permissive | lipeng28/Gklee | 9e51bacb046cd4eb67d215e24981dfc189227378 | 4cce6387f4c3283fc4db8c48e8820c6718ce109f | refs/heads/master | 2021-05-28T03:35:07.655773 | 2014-12-12T03:15:30 | 2014-12-12T03:15:30 | 13,846,791 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,654 | inl | /*
* Copyright 2008-2012 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <thrust/iterator/iterator_traits.h>
#include <thrust/detail/backend/generic/scalar/binary_search.h>
#include <thrust/detail/backend/cuda/block/inclusive_scan.h>
#include <thrust/detail/backend/dereference.h>
#include <thrust/tuple.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/iterator/counting_iterator.h>
namespace thrust
{
namespace detail
{
namespace backend
{
namespace cuda
{
namespace block
{
template<typename RandomAccessIterator1,
typename RandomAccessIterator2,
typename RandomAccessIterator3,
typename RandomAccessIterator4,
typename StrictWeakOrdering>
__device__ __forceinline__
RandomAccessIterator4 set_difference(RandomAccessIterator1 first1,
RandomAccessIterator1 last1,
RandomAccessIterator2 first2,
RandomAccessIterator2 last2,
RandomAccessIterator3 temporary,
RandomAccessIterator4 result,
StrictWeakOrdering comp)
{
typedef typename thrust::iterator_difference<RandomAccessIterator1>::type difference1;
typedef typename thrust::iterator_difference<RandomAccessIterator2>::type difference2;
difference1 n1 = last1 - first1;
if(n1 == 0) return result;
// search for all non-matches in the second range for each element in the first
bool needs_output = false;
if(threadIdx.x < n1)
{
RandomAccessIterator1 x = first1;
x += threadIdx.x;
// count the number of previous occurrances of x the first range
difference1 rank = x - thrust::detail::backend::generic::scalar::lower_bound(first1,x,dereference(x),comp);
// count the number of equivalent elements of x in the second range
thrust::pair<RandomAccessIterator2,RandomAccessIterator2> matches =
thrust::detail::backend::generic::scalar::equal_range(first2,last2,dereference(x),comp);
difference2 num_matches = matches.second - matches.first;
// the element needs output if its rank is gequal than the number of matches
needs_output = rank >= num_matches;
} // end if
// mark whether my element needs output in the scratch array
RandomAccessIterator3 temp = temporary;
temp += threadIdx.x;
dereference(temp) = needs_output;
block::inplace_inclusive_scan_n(temporary, n1, thrust::plus<int>());
// copy_if
if(needs_output)
{
// find the index to write our element
unsigned int output_index = 0;
if(threadIdx.x > 0)
{
RandomAccessIterator3 src = temporary;
src += threadIdx.x - 1;
output_index = dereference(src);
} // end if
RandomAccessIterator1 x = first1;
x += threadIdx.x;
RandomAccessIterator4 dst = result;
dst += output_index;
dereference(dst) = dereference(x);
} // end if
return result + temporary[n1-1];
} // end set_difference
} // end block
} // end cuda
} // end backend
} // end detail
} // end thrust
| [
"[email protected]"
] | |
e2cf29748fafb3f423f10acaec22fc65ea038c37 | 1b31372ee4d28669a2e883bca5da0a4bac461221 | /src/c++/event/impl/eventbody.cpp | 8cd6c51995e4f39e1d6739ddd5e8136046ff2244 | [
"Apache-2.0"
] | permissive | movins/movin-events | 3ea7cff344ca03c9696e843ca985f5425847aca0 | e2241cfa9577ab4e13ce18bbff93c6be54032638 | refs/heads/master | 2020-03-15T15:08:34.598714 | 2018-06-02T09:28:04 | 2018-06-02T09:28:04 | 132,205,212 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,491 | cpp | #include "stable.h"
#include "eventbody.h"
#include <map>
namespace event{
static std::map<quint32, QSharedPointer<BodyInfo>> _handers;
static quint32 _baseKey = 0;
EventBody::EventBody(QObject* lis, HandlerPtr han, quint32 pri)
: QObject(NULL)
, _bodyKey(++_baseKey)
, _priority(pri)
{
_handers[_bodyKey] = QSharedPointer<BodyInfo>(new BodyInfo(lis, han));
}
EventBody::~EventBody()
{
std::map<quint32, QSharedPointer<BodyInfo>>::iterator itr = _handers.find(_bodyKey);
if(itr != _handers.end()) _handers.erase(itr);
}
QWeakPointer<BodyInfo> EventBody::getBody()
{
std::map<quint32, QSharedPointer<BodyInfo>>::iterator itr = _handers.find(_bodyKey);
return (itr != _handers.end()) ? itr->second : QWeakPointer<BodyInfo>();
}
bool EventBody::same( QObject* lis, HandlerPtr han, quint32 pri )
{
QSharedPointer<BodyInfo> info = getBody();
return !info.isNull() && info->handler->same(han) && (info->listener == lis) && (_priority == pri);
}
bool EventBody::same( QObject* lis )
{
QSharedPointer<BodyInfo> info = getBody();
return !info.isNull() &&(info->listener == lis);
}
void EventBody::exec( BaseEventPtr evt )
{
QSharedPointer<BodyInfo> info = getBody();
if(!info.isNull())
{
HandlerPtr handler = info->handler;
// QObject* listener = info.listener;
if(!handler.isNull()) handler->apply(evt);
}
}
void EventBody::clear()
{
_handers.clear();
}
quint32 EventBody::priority() const
{
return _priority;
}
}
| [
"[email protected]"
] | |
7ecc7b6812dd2acba3e343a357105d82c5b8aba5 | 2bc222c4afd9db25917d5469db0ff5da0a076797 | /src/bp/TextProcessor.hxx | 4732d847c5db91f8eb9691005295ceeea9f18013 | [] | permissive | CM4all/beng-proxy | 27fd1a1908810cb10584d8ead388fbdf21f15ba9 | 4b870c9f81d5719fd5b0007c2094c1d5dd94a9c4 | refs/heads/master | 2023-08-31T18:43:31.463121 | 2023-08-30T14:03:31 | 2023-08-30T14:03:31 | 96,917,990 | 43 | 12 | BSD-2-Clause | 2023-09-11T10:00:43 | 2017-07-11T17:13:52 | C++ | UTF-8 | C++ | false | false | 682 | hxx | // SPDX-License-Identifier: BSD-2-Clause
// Copyright CM4all GmbH
// author: Max Kellermann <[email protected]>
#pragma once
struct pool;
struct WidgetContext;
class UnusedIstreamPtr;
class StringMap;
class Widget;
/**
* Check if the resource described by the specified headers can be
* processed by the text processor.
*/
[[gnu::pure]]
bool
text_processor_allowed(const StringMap &headers) noexcept;
/**
* Process the specified istream, and return the processed stream.
*
* @param widget the widget that represents the template
*/
UnusedIstreamPtr
text_processor(struct pool &pool, UnusedIstreamPtr istream,
const Widget &widget, const WidgetContext &ctx) noexcept;
| [
"[email protected]"
] | |
640333af0a883b316092ad75b18534d5161e62a6 | 4453710dd3d968b485bac1b53b33d22d9569f948 | /Assignment/MyCanvas.cpp | 7c314a457e21c7738ab8f4c83385f6ab38a72df6 | [] | no_license | 47nm/Assignment | 72b1c8c367bc440c43b24d586e329aaa42de6375 | 2309e8c131ed197bf6a0303c3db0fdd86e0a834a | refs/heads/master | 2021-10-29T21:08:02.557573 | 2017-09-12T10:44:07 | 2017-09-12T10:44:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,175 | cpp |
#include "MyCanvas.h"
#include <iostream>
MyCanvas::MyCanvas()
{
squareGrid = SquareGrid::getInstance();
colorOfline = Color(0,127,0);
colorOfactualCircle = Color(44, 15, 15);
colorOfOuterAndInnerCircle = Color(127,0,0);
}
MyCanvas::~MyCanvas()
{
}
void MyCanvas::display()
{
// Clear the canvas
clear();
if (mode == problem::problem1) {
drawLine(line, colorOfline.red, colorOfline.green, colorOfline.blue);
drawCircle(actualCircle.center.x, actualCircle.center.y, static_cast<GLuint>(actualCircle.radius), colorOfactualCircle.red, colorOfactualCircle.green, colorOfactualCircle.blue);
drawCircle(innerCircle.center.x, innerCircle.center.y, static_cast<GLuint>(innerCircle.radius), colorOfOuterAndInnerCircle.red, colorOfOuterAndInnerCircle.green, colorOfOuterAndInnerCircle.blue);
drawCircle(outerCircle.center.x, outerCircle.center.y, static_cast<GLuint>(outerCircle.radius), colorOfOuterAndInnerCircle.red, colorOfOuterAndInnerCircle.green, colorOfOuterAndInnerCircle.blue);
}
else if (mode == problem::problem2) {
//draw best fit circle
drawCircle(actualCircle.center.x, actualCircle.center.y, static_cast<GLuint>(actualCircle.radius), colorOfactualCircle.red, colorOfactualCircle.green, colorOfactualCircle.blue);
}
drawGrid();
// -------------------------------------------------------------------------------------------
// Make changes appear on screen
swapBuffers();
}
void MyCanvas::onMouseButton(int button, int state, int x, int y)
{
// Process mouse button events.
switch (button) {
case GLUT_LEFT_BUTTON:
std::cout << "Canvas::onMouseButton: " << state << ", " << x << ", " << y << std::endl;
switch (mode) {
case problem::problem1:
switch (mouseClickLastState)
{
case GLUT_UP:
switch (state)
{
case GLUT_DOWN:
line.start.x = x;
line.start.y = y;
line.end.x = x;
line.end.y = y;
squareGrid->clearGrid();
actualCircle.radius = innerCircle.radius = outerCircle.radius = 0;
mouseClickLastState = GLUT_DOWN;
break;
case GLUT_UP: // not possible
break;
}
case GLUT_DOWN:
switch (state)
{
case GLUT_UP:
line.end.x = x;
line.end.y = y;
mouseClickLastState = GLUT_UP;
drawNearestCircles(state);
break;
case GLUT_DOWN: // not possible
break;
}
}
break;
case problem::problem2:
if (state == GLUT_DOWN) {
squareGrid->toggleGridPoint(Point(x, y));
}
break;
}
}
refresh();
}
void MyCanvas::onKeyboard(unsigned char key, int x, int y)
{
// Process keyboard events.
std::cout << "Canvas::onKeyboard: '" << key << "', " << x << ", " << y << std::endl;
switch (key) {
case 27: // ESC
exit(0);
break;
case 'G':
case 'g':
//equate the best fit circle
if (mode == problem::problem2) {
actualCircle = equateBestFitCircle(squareGrid);
}
break;
case 'C':
case 'c':
//clear the screen
line.end.x = line.start.x;
line.end.y = line.start.y;
innerCircle.radius = outerCircle.radius = actualCircle.radius = 0;
squareGrid->clearGrid();
default:
break;
}
refresh();
}
| [
"[email protected]"
] | |
b6eca3acdf6b1c399b31a3bdf99bb1f99a44a74a | d9a63fbbd0ed1a75a3872198167efccf840db1e2 | /analyzers/ttH_bb/plugins/CU_ttH_EDA_Handles.h | 40e9f0a3a8386ad38e05436cdbd7139b2c91d4a6 | [] | no_license | abhisek92datta/ttH | 948164a0d7e6bb1377b35b0f2b1adc4c6bb246b7 | 56b82c4886e93cc678d315f3aed82536d6a2ac92 | refs/heads/master | 2020-04-06T20:29:03.927851 | 2018-11-15T21:17:03 | 2018-11-15T21:17:03 | 157,773,759 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,945 | h | #ifndef CU_ttH_EDA_Handles_h
#define CU_ttH_EDA_Handles_h
// user include files
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/BeamSpot/interface/BeamSpot.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include "DataFormats/JetReco/interface/GenJetCollection.h"
#include "DataFormats/PatCandidates/interface/Electron.h"
#include "DataFormats/PatCandidates/interface/GenericParticle.h"
#include "DataFormats/PatCandidates/interface/Isolation.h"
#include "DataFormats/PatCandidates/interface/Jet.h"
#include "DataFormats/PatCandidates/interface/Lepton.h"
#include "DataFormats/PatCandidates/interface/MET.h"
#include "DataFormats/PatCandidates/interface/Muon.h"
#include "DataFormats/PatCandidates/interface/PackedCandidate.h"
#include "DataFormats/PatCandidates/interface/Photon.h"
#include "DataFormats/PatCandidates/interface/Tau.h"
#include "PhysicsTools/SelectorUtils/interface/JetIDSelectionFunctor.h"
#include "PhysicsTools/SelectorUtils/interface/strbitset.h"
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
#include "DataFormats/Common/interface/TriggerResults.h"
#include "DataFormats/HLTReco/interface/TriggerEvent.h"
#include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
#include "DataFormats/HLTReco/interface/TriggerObject.h"
#include "DataFormats/HLTReco/interface/TriggerTypeDefs.h"
#include "DataFormats/L1Trigger/interface/L1EmParticle.h"
#include "DataFormats/L1Trigger/interface/L1EtMissParticle.h"
#include "DataFormats/L1Trigger/interface/L1HFRings.h"
#include "DataFormats/L1Trigger/interface/L1HFRingsFwd.h"
#include "DataFormats/L1Trigger/interface/L1JetParticle.h"
#include "DataFormats/L1Trigger/interface/L1MuonParticle.h"
#include "DataFormats/L1Trigger/interface/L1ParticleMap.h"
#include "DataFormats/L1Trigger/interface/L1ParticleMapFwd.h"
#include "DataFormats/Candidate/interface/VertexCompositePtrCandidate.h"
#include "DataFormats/Candidate/interface/VertexCompositePtrCandidateFwd.h"
#include "TrackingTools/Records/interface/TransientTrackRecord.h"
#include "TrackingTools/TransientTrack/interface/TransientTrack.h"
#include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h"
#include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h"
#include "SimDataFormats/PileupSummaryInfo/interface/PileupSummaryInfo.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
#include "DataFormats/PatCandidates/interface/PackedGenParticle.h"
#include "SimDataFormats/GeneratorProducts/interface/LHEEventProduct.h"
#include "analyzers/ttH_bb/interface/CU_ttH_EDA_event_vars.h"
/*
*
* edm::Handle and edm::EDGetTokenT container structs.
*
*/
using namespace edm;
struct edm_Handles {
Handle<GenEventInfoProduct> event_gen_info;
Handle<edm::TriggerResults> triggerResults;
Handle<edm::TriggerResults> filterResults;
Handle<pat::TriggerObjectStandAloneCollection> triggerObjects;
Handle<reco::VertexCollection> vertices;
Handle<reco::VertexCompositePtrCandidateCollection> sec_vertices;
Handle<std::vector<PileupSummaryInfo>> PU_info;
Handle<double> srcRho;
Handle<pat::ElectronCollection> electrons;
Handle<pat::MuonCollection> muons;
Handle<pat::JetCollection> jets;
Handle<pat::METCollection> METs;
Handle<reco::GenJetCollection> genjets;
Handle<reco::GenParticleCollection> genparticles;
Handle<pat::PackedCandidateCollection> PF_candidates;
Handle<reco::BeamSpot> BS;
Handle<edm::ValueMap<bool>> tight_id_decisions;
// Handle<edm::ValueMap<float>> mvaValues;
// Handle<edm::ValueMap<int>> mvaCategories;
Handle<edm::View<pat::Electron>> electrons_for_mva;
Handle<edm::View<pat::Muon>> muon_h;
Handle<int> genTtbarId;
//Handle<bool> ttHFGenFilter;
Handle<std::vector<PileupSummaryInfo>> PupInfo;
Handle<LHEEventProduct> EvtHandle;
//ESHandle<TransientTrackBuilder> ttrkbuilder;
};
struct edm_Tokens {
EDGetTokenT<GenEventInfoProduct> event_gen_info;
EDGetTokenT<edm::TriggerResults> triggerResults;
EDGetTokenT<edm::TriggerResults> filterResults;
EDGetTokenT<pat::TriggerObjectStandAloneCollection> triggerObjects;
EDGetTokenT<reco::VertexCollection> vertices;
EDGetTokenT<reco::VertexCompositePtrCandidateCollection> sec_vertices;
EDGetTokenT<std::vector<PileupSummaryInfo>> PU_info;
EDGetTokenT<double> srcRho;
EDGetTokenT<pat::ElectronCollection> electrons;
EDGetTokenT<pat::MuonCollection> muons;
EDGetTokenT<pat::JetCollection> jets;
EDGetTokenT<pat::METCollection> METs;
EDGetTokenT<reco::GenJetCollection> genjets;
EDGetTokenT<reco::GenParticleCollection> genparticles;
EDGetTokenT<pat::PackedCandidateCollection> PF_candidates;
EDGetTokenT<reco::BeamSpot> BS;
EDGetTokenT<edm::ValueMap<bool>> eleTightIdMapToken_;
// EDGetTokenT<edm::ValueMap<float>> mvaValuesMapToken_;
// EDGetTokenT<edm::ValueMap<int>> mvaCategoriesMapToken_;
EDGetTokenT<edm::View<pat::Electron>> electrons_for_mva_token;
EDGetTokenT<edm::View<pat::Muon>> muon_h_token;
EDGetTokenT<int> genTtbarIdToken_;
//EDGetTokenT<bool> ttHFGenFilterToken_;
EDGetTokenT<std::vector<PileupSummaryInfo>> puInfoToken;
EDGetTokenT<LHEEventProduct> lheptoken;
};
/// Set up handles with getByToken from edm::Event
void Set_up_handles(const Event &, const edm::EventSetup &,
const CU_ttH_EDA_event_vars &, edm_Handles &, edm_Tokens &);
#endif
| [
"[email protected]"
] | |
52bafacc99b1a85533165f76c9467a3bad1f3233 | 3f59117eef31d1b01c9d49493adc611cdfc6d3d4 | /core/float3x3.cpp | 03e126e17f703a5bf12603b1a8775a029aa04b44 | [
"MIT"
] | permissive | 00steve/engine.core | 2a389607f9fd730e01549a00daa90e292e649c6d | f9edd7ff1e69b272967e19e37340843d15c5cb27 | refs/heads/master | 2021-05-02T04:40:35.493041 | 2017-02-03T19:15:36 | 2017-02-03T19:15:36 | 76,804,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,103 | cpp | #include "float3x3.h"
float* float3x3::toDMatrix3(){
float *n;
n=new float[12]();
n[0]=m[0]; n[1]=m[1]; n[2]=m[2]; n[3]=0;
n[4]=m[3]; n[5]=m[4]; n[6]=m[5]; n[7]=0;
n[8]=m[6]; n[9]=m[7]; n[10]=m[8]; n[11]=0;
return n;
}
float3x3 float3x3::identity(){
float3x3 n;
n.m[0] = 1; n.m[1] = 0; n.m[2] = 0;
n.m[3] = 0; n.m[4] = 1; n.m[5] = 0;
n.m[6] = 0; n.m[7] = 0; n.m[8] = 1;
return n;
}
float3x3 float3x3::xRotation(float r){
float3x3 n;
n.m[0] = 1; n.m[1] = 0; n.m[2] = 0;
n.m[3] = 0; n.m[4] = cosf(r); n.m[5] = sinf(r);
n.m[6] = 0; n.m[7] = -sinf(r); n.m[8] = cosf(r);
return n;
}
float3x3 float3x3::yRotation(float r){
float3x3 n;
n.m[0] = cosf(r); n.m[1] = 0; n.m[2] = -sinf(r);
n.m[3] = 0; n.m[4] = 1; n.m[5] = 0;
n.m[6] = sinf(r); n.m[7] = -sinf(r); n.m[8] = cosf(r);
return n;
}
float3x3 float3x3::zRotation(float r){
float3x3 n;
n.m[0] = cosf(r); n.m[1] = sinf(r); n.m[2] = 0;
n.m[3] = -sinf(0); n.m[4] = cosf(r); n.m[5] = 0;
n.m[6] = 0; n.m[7] = 0; n.m[8] = 1;
return n;
}
| [
"[email protected]"
] | |
e3d5ba05f7ef08c9fb2dfa204b005dd1bb82da3e | a435e0393b5cf09fe2afe03ab010c5034d9d41fb | /src/cmdprocessor/CGstWavenc.hpp | fb411ce9da86c7d52eafd6bb4efb5cb47a3da868 | [
"Unlicense"
] | permissive | Glebka/Speech-To-Diagram | 2a15fcb497cfceb7327d3a1f8b7a2415711e2eca | b6b2c0a23d0103103f6d1d1e2996d6ec2feaca4d | refs/heads/master | 2021-01-13T02:36:16.605346 | 2015-05-29T14:48:26 | 2015-05-29T14:48:26 | 25,088,314 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 189 | hpp | #ifndef CGSTWAVENC_HPP
#define CGSTWAVENC_HPP
#include "CGstElement.hpp"
class CGstWavenc : public CGstElement
{
public:
CGstWavenc();
~CGstWavenc();
};
#endif // CGSTWAVENC_HPP
| [
"[email protected]"
] | |
7aff798b225dfbf8ab36d0aab6d3bfca3ccd6628 | 326175d1e0636a754052f0ea2c54bec47af60e42 | /benchmarks/spec-cpu2006-redist/original/483.xalanc/xml-xalan/c/src/xalanc/XercesParserLiaison/XercesWrapperNavigator.cpp | 07cc07cd4fad566aca1179c93007e20e8ae151f6 | [
"Apache-2.0"
] | permissive | jasemabeed114/ECEN676 | d32911c73e7eb5f1d7bf1ee758d6a7b652d62695 | a225f3cd18f99e4b6384e4bb323ac4c84b7ba0e5 | refs/heads/master | 2022-01-09T00:19:09.996068 | 2018-11-25T20:35:47 | 2018-11-25T20:35:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,993 | cpp | /*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "XercesWrapperNavigator.hpp"
#include <xalanc/XalanDOM/XalanNode.hpp>
#include <xalanc/XalanDOM/XalanElement.hpp>
#include "XercesAttrWrapper.hpp"
#include "XercesDocumentWrapper.hpp"
#include "XercesTextWrapper.hpp"
#include "XercesDOMWrapperException.hpp"
XALAN_CPP_NAMESPACE_BEGIN
const XalanDOMString XercesWrapperNavigator::s_emptyString;
XercesWrapperNavigator::XercesWrapperNavigator(
XercesDocumentWrapper* theOwnerDocument) :
m_ownerDocument(theOwnerDocument),
m_parentNode(0),
m_previousSibling(0),
m_nextSibling(0),
m_firstChild(0),
m_lastChild(0),
m_index(0)
{
assert(theOwnerDocument != 0);
}
XercesWrapperNavigator::XercesWrapperNavigator(const XercesWrapperNavigator& theSource) :
m_ownerDocument(theSource.m_ownerDocument),
m_parentNode(theSource.m_parentNode),
m_previousSibling(theSource.m_previousSibling),
m_nextSibling(theSource.m_nextSibling),
m_firstChild(theSource.m_firstChild),
m_lastChild(theSource.m_lastChild),
m_index(theSource.m_index)
{
}
XercesWrapperNavigator::~XercesWrapperNavigator()
{
}
XalanNode*
XercesWrapperNavigator::mapNode(const DOMNodeType* theXercesNode) const
{
return m_ownerDocument->mapNode(theXercesNode);
}
XalanAttr*
XercesWrapperNavigator::mapNode(const DOMAttrType* theXercesNode) const
{
return m_ownerDocument->mapNode(theXercesNode);
}
const DOMNodeType*
XercesWrapperNavigator::mapNode(XalanNode* theXalanNode) const
{
return m_ownerDocument->mapNode(theXalanNode);
}
XalanNode*
XercesWrapperNavigator::getParentNode(const DOMNodeType* theXercesNode) const
{
if (m_parentNode == 0)
{
return m_ownerDocument->mapNode(theXercesNode->getParentNode());
}
else
{
return m_parentNode;
}
}
XalanNode*
XercesWrapperNavigator::getPreviousSibling(const DOMNodeType* theXercesNode) const
{
if (m_previousSibling == 0)
{
return m_ownerDocument->mapNode(theXercesNode->getPreviousSibling());
}
else
{
return m_previousSibling;
}
}
XalanNode*
XercesWrapperNavigator::getNextSibling(const DOMNodeType* theXercesNode) const
{
if (m_nextSibling == 0)
{
return m_ownerDocument->mapNode(theXercesNode->getNextSibling());
}
else
{
return m_nextSibling;
}
}
XalanNode*
XercesWrapperNavigator::getFirstChild(const DOMNodeType* theXercesNode) const
{
if (m_firstChild == 0)
{
return m_ownerDocument->mapNode(theXercesNode->getFirstChild());
}
else
{
return m_firstChild;
}
}
XalanNode*
XercesWrapperNavigator::getLastChild(const DOMNodeType* theXercesNode) const
{
if (m_lastChild == 0)
{
return m_ownerDocument->mapNode(theXercesNode->getLastChild());
}
else
{
return m_lastChild;
}
}
XalanElement*
XercesWrapperNavigator::getOwnerElement(const DOMAttrType* theXercesAttr) const
{
assert(theXercesAttr != 0);
if (m_parentNode != 0)
{
assert(m_parentNode->getNodeType() == XalanNode::ELEMENT_NODE);
#if defined(XALAN_OLD_STYLE_CASTS)
return (XalanElement*)m_parentNode;
#else
return static_cast<XalanElement*>(m_parentNode);
#endif
}
else
{
return m_ownerDocument->mapNode(theXercesAttr->getOwnerElement());
}
}
const XalanDOMString&
XercesWrapperNavigator::getPooledString(const XMLCh* theString) const
{
if (theString == 0)
{
return s_emptyString;
}
else
{
return m_ownerDocument->getPooledString(theString, XalanDOMString::length(theString));
}
}
XALAN_CPP_NAMESPACE_END
| [
"[email protected]"
] | |
9cc51288fd013c708d848070cb76893be7eb4359 | 37556171208ca9e605f5205e606cefaf5ac19e2d | /C++Place/zuobaseclass/tree_completeTreeNodeNumber.cpp | 5b6de4efaa29129f55df7f6da239f47c6597f627 | [] | no_license | Jerryzouzou/XinBiResource | e3d4c7bfd15330c00745cc0e866c2592e1a5c92a | 5e2fcd67505124aefc8ee51b0b87c8df75fb5731 | refs/heads/master | 2020-03-28T15:42:18.835395 | 2019-03-15T07:49:58 | 2019-03-15T07:49:58 | 148,618,161 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,865 | cpp | #include "allh.h"
using namespace std;
/*
* 完全二叉树节点个数:二叉树高度N,如果头节点的右子树的最左到达了最深,说明左子树
* 是满二叉树,左子树的节点个数是2^(N-1)-1; 如果头节点的右子树的最左少一层说明右子树是
* 满二叉树,右子树的节点个数是2^(N-1-1)-1;两种情况的另一半继续递归
*/
struct Node{
int value;
Node* left;
Node* right;
Node(int a=0):value(a), left(NULL), right(NULL){};
};
static int mostLeftLevel(Node* node, int level);
static int bs(Node* node, int l, int h);
static int nodeNum(Node* head){
if(head == NULL){
return 0;
}
return bs(head, 1, mostLeftLevel(head, 1));
}
/*
* 递归计算以node为头节点的二叉树的节点个数
* l:当前第l层;
* h:整二叉树的深度
*/
static int bs(Node* node, int l, int h){
if(l == h){
return 1;
}
if(mostLeftLevel(node->right, l+1) == h){ //右子树的最左到达最深
//此时左子树节点个数是确定的为2^(h-l)-1,加上当前头结点,所以
//为(1<<(h-l)),然后再加上右子树的继续递归求解
return ((1<<(h-l)) + bs(node->right, l+1, h));
}else{
//此时右子树是少一层的满二叉树,节点个数是确定的为2^(h-l-1)-1,加上当前头结点,所以
//为(1<<(h-l-1)),然后再加上左子树的继续递归求解
return ((1<<(h-l-1)) + bs(node->left, l+1, h));
}
}
/*
* 返回一直左孩子的高度
*/
static int mostLeftLevel(Node* node, int level){
while(node != NULL){
level++;
node = node->left;
}
return level - 1;
}
void tree_completeTreeNodeNumber_main(){
Node* head = new Node(1);
head->left = new Node(2);
head->right = new Node(3);
head->left->left = new Node(4);
head->left->right = new Node(5);
head->right->left = new Node(6);
cout<<"node number is == "<<nodeNum(head)<<endl;
}
| [
"[email protected]"
] | |
ee52577398b0e024efd2fd614dd693376cf37e64 | 50d5b16f1e507c015912bc95b8c751db3e68f1d7 | /Triangle.h | 05a7c588757410c26484236b9e90b374cc5e97f8 | [] | no_license | WFCSC112AlqahtaniFall2019/inheritance-in-class-exercise-parrsm18 | 3a0387fb0e418535c800327868da9b81d90c02fb | ff27d2c3175a87e39fb4863c849804f7729cb70d | refs/heads/master | 2020-09-06T04:11:42.836508 | 2019-11-07T20:20:41 | 2019-11-07T20:20:41 | 220,317,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | h | //
// Created by Steven on 11/7/2019.
//
#ifndef INHERTANCE_EXERCISE_TRIANGLE_H
#define INHERTANCE_EXERCISE_TRIANGLE_H
#include "Polygon.h"
class Triangle : public Polygon {
public:
int area();
};
#endif //INHERTANCE_EXERCISE_TRIANGLE_H
| [
"[email protected]"
] | |
35dea87e744f4c94e6461657ac2e471d09313a03 | 7801cc1335cb60500b76bbb247b69ddf5e9b82a4 | /osrm/inc/extractor/turn_instructions.hpp | 2d9bb376e6e65ce38c42ccab4add6d70976a04ba | [] | no_license | bblu/osrm-core | 412f733dcc415f6e94280ddf1df73ac3dd09a477 | a696cd9d6770c30240c87830613fce5c7e54d008 | refs/heads/master | 2020-12-31T04:55:51.660185 | 2016-04-15T03:48:41 | 2016-04-15T03:48:41 | 56,051,863 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,189 | hpp | #ifndef TURN_INSTRUCTIONS_HPP
#define TURN_INSTRUCTIONS_HPP
#include <algorithm>
#include <cmath>
#include <boost/assert.hpp>
#include "util/typedefs.hpp"
namespace osrm
{
namespace extractor
{
enum class TurnInstruction : unsigned char
{
NoTurn = 0,
GoStraight,
TurnSlightRight,
TurnRight,
TurnSharpRight,
UTurn,
TurnSharpLeft,
TurnLeft,
TurnSlightLeft,
ReachViaLocation,
HeadOn,
EnterRoundAbout,
LeaveRoundAbout,
StayOnRoundAbout,
StartAtEndOfStreet,
ReachedYourDestination,
NameChanges,
EnterAgainstAllowedDirection,
LeaveAgainstAllowedDirection,
InverseAccessRestrictionFlag = 127,
AccessRestrictionFlag = 128,
AccessRestrictionPenalty = 129
};
// shiftable turns to left and right
const constexpr bool shiftable_left[] = {false, false, true, true, true, false, false, true, true};
const constexpr bool shiftable_right[] = {false, false, true, true, false, false, true, true, true};
inline TurnInstruction shiftTurnToLeft(TurnInstruction turn)
{
BOOST_ASSERT_MSG(static_cast<int>(turn) < 9,
"Shift turn only supports basic turn instructions");
if (turn > TurnInstruction::TurnSlightLeft)
return turn;
else
return shiftable_left[static_cast<int>(turn)]
? (static_cast<TurnInstruction>(static_cast<int>(turn) - 1))
: turn;
}
inline TurnInstruction shiftTurnToRight(TurnInstruction turn)
{
BOOST_ASSERT_MSG(static_cast<int>(turn) < 9,
"Shift turn only supports basic turn instructions");
if (turn > TurnInstruction::TurnSlightLeft)
return turn;
else
return shiftable_right[static_cast<int>(turn)]
? (static_cast<TurnInstruction>(static_cast<int>(turn) + 1))
: turn;
}
inline double angularDeviation(const double angle, const double from)
{
const double deviation = std::abs(angle - from);
return std::min(360 - deviation, deviation);
}
inline double getAngularPenalty(const double angle, TurnInstruction instruction)
{
BOOST_ASSERT_MSG(static_cast<int>(instruction) < 9,
"Angular penalty only supports basic turn instructions");
const double center[] = {180, 180, 135, 90, 45,
0, 315, 270, 225}; // centers of turns from getTurnDirection
return angularDeviation(center[static_cast<int>(instruction)], angle);
}
inline double getTurnConfidence(const double angle, TurnInstruction instruction)
{
// special handling of U-Turns and Roundabout
if (instruction >= TurnInstruction::HeadOn || instruction == TurnInstruction::UTurn ||
instruction == TurnInstruction::NoTurn || instruction == TurnInstruction::EnterRoundAbout ||
instruction == TurnInstruction::StayOnRoundAbout || instruction == TurnInstruction::LeaveRoundAbout )
return 1.0;
BOOST_ASSERT_MSG(static_cast<int>(instruction) < 9,
"Turn confidence only supports basic turn instructions");
const double deviations[] = {10, 10, 35, 50, 45, 0, 45, 50, 35};
const double difference = getAngularPenalty(angle, instruction);
const double max_deviation = deviations[static_cast<int>(instruction)];
return 1.0 - (difference / max_deviation) * (difference / max_deviation);
}
// Translates between angles and their human-friendly directional representation
inline TurnInstruction getTurnDirection(const double angle)
{
// An angle of zero is a u-turn
// 180 goes perfectly straight
// 0-180 are right turns
// 180-360 are left turns
if (angle > 0 && angle < 60)
return TurnInstruction::TurnSharpRight;
if (angle >= 60 && angle < 140)
return TurnInstruction::TurnRight;
if (angle >= 140 && angle < 170)
return TurnInstruction::TurnSlightRight;
if (angle >= 170 && angle <= 190)
return TurnInstruction::GoStraight;
if (angle > 190 && angle <= 220)
return TurnInstruction::TurnSlightLeft;
if (angle > 220 && angle <= 300)
return TurnInstruction::TurnLeft;
if (angle > 300 && angle < 360)
return TurnInstruction::TurnSharpLeft;
return TurnInstruction::UTurn;
}
// Decides if a turn is needed to be done for the current instruction
inline bool isTurnNecessary(const TurnInstruction turn_instruction)
{
if (TurnInstruction::NoTurn == turn_instruction ||
TurnInstruction::StayOnRoundAbout == turn_instruction)
{
return false;
}
return true;
}
inline bool resolve(TurnInstruction &to_resolve, const TurnInstruction neighbor, bool resolve_right)
{
const auto shifted_turn =
resolve_right ? shiftTurnToRight(to_resolve) : shiftTurnToLeft(to_resolve);
if (shifted_turn == neighbor || shifted_turn == to_resolve)
return false;
to_resolve = shifted_turn;
return true;
}
inline bool resolveTransitive(TurnInstruction &first,
TurnInstruction &second,
const TurnInstruction third,
bool resolve_right)
{
if (resolve(second, third, resolve_right))
{
first = resolve_right ? shiftTurnToRight(first) : shiftTurnToLeft(first);
return true;
}
return false;
}
inline bool isSlightTurn(const TurnInstruction turn)
{
return turn == TurnInstruction::GoStraight || turn == TurnInstruction::TurnSlightRight ||
turn == TurnInstruction::TurnSlightLeft || turn == TurnInstruction::NoTurn;
}
inline bool isSharpTurn(const TurnInstruction turn)
{
return turn == TurnInstruction::TurnSharpLeft || turn == TurnInstruction::TurnSharpRight;
}
inline bool isStraight(const TurnInstruction turn)
{
return turn == TurnInstruction::GoStraight || turn == TurnInstruction::NoTurn;
}
inline bool isConflict(const TurnInstruction first, const TurnInstruction second)
{
return first == second || (isStraight(first) && isStraight(second));
}
}
}
#endif /* TURN_INSTRUCTIONS_HPP */
| [
"[email protected]"
] | |
a807d45c67c7841f8bd277a99a537be763452c49 | 0d56dac03007f1d607a86e611b837695e3d1fddb | /GemometryMath/GameFrameWork/dllmain.cpp | 6c40f418e468189c493dfd5257046e692537f4e2 | [] | no_license | xiaokunwei/Kunsen3dEngine | 6f4fa9f9ef37f03dee4c128dc2c435dc0c0d258d | a81f8fd7c2a389206a0ce1b384ee655941f8bccb | refs/heads/master | 2020-03-29T15:00:37.327370 | 2018-09-24T13:36:35 | 2018-09-24T13:36:35 | 150,040,803 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 912 | cpp | // dllmain.cpp : 定义 DLL 应用程序的入口点。
#include"Prequesities.h"
#include"GameFrameWork.h"
#include"PlatformImpl.h"
GameFrameWork* g_GameFrameWork;
typedef ISystem* (*GET_SYSTEM)();
typedef void(*DESTROY_END)();
GET_SYSTEM pFunStart;
DESTROY_END pFuncEnd;
HINSTANCE hHandle;
extern "C" DLL_EXPORT IGameFrameWork* ModuleInitialize()
{
hHandle = 0;
KsOpenModule(hHandle, _T("EngineSystem"));
pFunStart = (GET_SYSTEM)DLL_GETSYM(hHandle, "ModuleInitialize");
pFuncEnd = (DESTROY_END)DLL_GETSYM(hHandle, "ModelUnload");
ISystem* system = pFunStart();
SystemGlobalEnvironment* m_Env = system->GetEnvironment();
if (m_Env)
{
m_EngineEnvironment = m_Env;
g_GameFrameWork = new GameFrameWork();
m_EngineEnvironment->p_Game = g_GameFrameWork;
}
return g_GameFrameWork;
}
extern "C" void DLL_EXPORT ModelUnload()
{
delete g_GameFrameWork;
pFuncEnd();
DLL_FREE(hHandle);
}
| [
"[email protected]"
] | |
ed4bdbed595035f3317d3daccce772e406b8340b | 837295fec3fcf5710cf7151708b81aa3117e45af | /Codeforces/CF_2A.cpp | c881a20dedf9468f019a2023569d851d179e2cf5 | [] | no_license | WinDaLex/Programming | 45e56a61959352a7c666560df400966b7539939a | 55e71008133bb09d99252d6281abc30641c6e7e8 | refs/heads/master | 2020-05-31T00:45:24.916502 | 2015-04-13T18:19:36 | 2015-04-13T18:19:36 | 9,115,402 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 934 | cpp | // CF 2A
// Winner
// by A Code Rabbit
#include <iostream>
#include <vector>
#include <string>
#include <map>
using namespace std;
const int MAXN = 1002;
struct result {
string name;
int total_score;
};
int N;
vector<result> results;
map<string, int> players;
int main() {
cin >> N;
players.clear();
results.clear();
for (int i = 0; i < N; i++) {
string name; int score;
cin >> name >> score;
players[name] += score;
results.push_back((result){name, players[name]});
}
int max_score = 0;
for (map<string, int>::iterator it = players.begin(); it != players.end(); ++it)
max_score = max(max_score, it->second);
for (int i = 0; i < N; i++) {
string name = results[i].name;
if (players[name] == max_score && results[i].total_score >= max_score) {
cout << name << endl;
break;
}
}
return 0;
}
| [
"[email protected]"
] | |
82a7e3554578c9a84599c25c9d6b82018cc937b9 | c5805c830d202e61c0330c1ddbda9b6169fa791f | /FastLAS2/implementation/nodes/NArithmeticExpr.h | 918bbc1881a48867f26826c677a02aaff3ad43ad | [
"MIT"
] | permissive | spike-imperial/FastLAS | 4fa4abdbf9c924897f3c56c8f98b0db7e94c6161 | dd92b5ef03c3b409b12199c3950d846d14aaa1b0 | refs/heads/master | 2023-05-11T13:12:24.350236 | 2023-05-01T21:41:01 | 2023-05-01T21:41:01 | 221,014,103 | 19 | 7 | MIT | 2022-06-04T21:12:53 | 2019-11-11T15:43:44 | Lasso | UTF-8 | C++ | false | false | 2,110 | h | /*
* MIT License
*
* Copyright (c) 2021 Imperial College London
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef NARITHMETIC_EXPRESSION_H
#define NARITHMETIC_EXPRESSION_H
#include <string>
#include <set>
#include "../Node.h"
class NArithmeticExpr : public NTerm {
public:
NArithmeticExpr() {};
virtual std::string generalise(const std::string&, int&) const { return to_string(); };
virtual bool is_functional_term() const {
return false;
}
};
class NExprInt : public NArithmeticExpr {
public:
NExprInt(std::string str_integer)
: expr_int(std::stoi(str_integer)) {};
std::string to_string() const {
return std::to_string(expr_int);
}
void populate_constants(std::set<std::string>& consts) const {
consts.insert(std::to_string(expr_int));
}
int expr_int;
};
class NVar : public NArithmeticExpr {
public:
NVar(std::string var_name)
: var_name(var_name) {};
std::string to_string() const {
return var_name;
}
private:
std::string var_name;
};
#endif
| [
"[email protected]"
] | |
7b0a79eb1d14d678f8eb1d9c46e6c4e87e95b637 | cfeea15c5f9229c9b7f5e1c26311d2bdf727cb8c | /mapping/src/general/file_process.h | 0f6bcef9779261c48b07d38078f42d9cab621b06 | [] | no_license | turnervo23/MapSplice | c943072c0c0017051bb80b995cf070198817e061 | df36f285cca26b3a77cc2762b2320c9b576bb4cc | refs/heads/master | 2020-05-27T03:24:01.394991 | 2019-06-12T18:10:16 | 2019-06-12T18:10:16 | 188,464,331 | 0 | 0 | null | 2019-05-24T17:43:39 | 2019-05-24T17:43:39 | null | UTF-8 | C++ | false | false | 15,222 | h | // This file is a part of MapSplice3. Please refer to LICENSE.TXT for the LICENSE
#ifndef FILE_PROCESS_H
#define FILE_PROCESS_H
#include <string>
#include <string.h>
#include "readSeqPreProcessing.h"
//#include "splice_info.h"
using namespace std;
class FileProcessInfo
{
public:
FileProcessInfo()
{}
void output_fixHeadTail(int realRecordNum,
vector<string>& peAlignSamVec_complete_pair,
vector<string>& peAlignSamVec_incomplete_pair,
vector<string>& peAlignSamVec_complete_unpair,
vector<string>& peAlignSamVec_incomplete_unpair,
vector<string>& peAlignSamVec_complete_pair_alignInfo,
vector<string>& peAlignSamVec_incomplete_pair_alignInfo,
ofstream& OutputSamFile_fixHeadTail_complete_pair_ofs,
ofstream& OutputSamFile_fixHeadTail_incomplete_pair_ofs,
ofstream& OutputSamFile_fixHeadTail_complete_unpair_ofs,
ofstream& OutputSamFile_fixHeadTail_incomplete_unpair_ofs,
ofstream& OutputSamFile_fixHeadTail_complete_pair_alignInfo_ofs,
ofstream& OutputSamFile_fixHeadTail_incomplete_pair_alignInfo_ofs,
bool outputAlignInfoAndSamForAllPairedAlignmentBool)
{
for(int tmp = 0; tmp < realRecordNum; tmp++)
{
if(peAlignSamVec_complete_pair[tmp] != "")
{
OutputSamFile_fixHeadTail_complete_pair_ofs << peAlignSamVec_complete_pair[tmp] << endl;
}
if(peAlignSamVec_incomplete_pair[tmp] != "")
{
OutputSamFile_fixHeadTail_incomplete_pair_ofs << peAlignSamVec_incomplete_pair[tmp] << endl;
}
if(peAlignSamVec_complete_unpair[tmp] != "")
{
OutputSamFile_fixHeadTail_complete_unpair_ofs << peAlignSamVec_complete_unpair[tmp] << endl;
}
if(peAlignSamVec_incomplete_unpair[tmp] != "")
{
OutputSamFile_fixHeadTail_incomplete_unpair_ofs << peAlignSamVec_incomplete_unpair[tmp] << endl;
}
if(outputAlignInfoAndSamForAllPairedAlignmentBool)
{
if(peAlignSamVec_complete_pair_alignInfo[tmp] != "")
OutputSamFile_fixHeadTail_complete_pair_alignInfo_ofs << peAlignSamVec_complete_pair_alignInfo[tmp] << endl;
if(peAlignSamVec_incomplete_pair_alignInfo[tmp] != "")
OutputSamFile_fixHeadTail_incomplete_pair_alignInfo_ofs << peAlignSamVec_incomplete_pair_alignInfo[tmp] << endl;
}
}
}
void output_phase1(int realRecordNum,
vector<string>& PeAlignSamStrVec_complete,
vector<string>& PeAlignInfoStrVec_inCompletePair,
vector<string>& PeAlignInfoStrVec_oneEndUnmapped,
vector<string>& PeAlignSamStrVec_bothEndsUnmapped,
vector<string>& PeAlignSamStrVec_bothEndsUnmapped_mappedToRepeatRegion,
vector<string>& PeAlignSamStrVec_inCompletePair,
vector<string>& PeAlignInfoStrVec_completePaired,
ofstream& tmpAlignCompleteRead_ofs,
ofstream& tmpAlignIncompletePair_ofs,
ofstream& tmpAlignOneEndUnmapped_ofs,
ofstream& tmpAlignBothEndsUnmapped_ofs,
ofstream& tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile_ofs,
ofstream& tmpAlignIncompletePair_SAM_ofs,
ofstream& tmpAlignCompleteRead_alignInfo_ofs,
bool outputAlignInfoAndSamForAllPairedAlignmentBool)
{
for(int tmp = 0; tmp < realRecordNum; tmp++)
{
if(PeAlignSamStrVec_complete[tmp] != "")
{
tmpAlignCompleteRead_ofs << PeAlignSamStrVec_complete[tmp] << endl;
}
if(PeAlignInfoStrVec_inCompletePair[tmp] != "")
{
tmpAlignIncompletePair_ofs << PeAlignInfoStrVec_inCompletePair[tmp] << endl;
}
if(PeAlignInfoStrVec_oneEndUnmapped[tmp] != "")
{
tmpAlignOneEndUnmapped_ofs << PeAlignInfoStrVec_oneEndUnmapped[tmp] << endl;
}
if(PeAlignSamStrVec_bothEndsUnmapped[tmp] != "")
{
tmpAlignBothEndsUnmapped_ofs << PeAlignSamStrVec_bothEndsUnmapped[tmp] << endl;
}
if(PeAlignSamStrVec_bothEndsUnmapped_mappedToRepeatRegion[tmp] != "")
{
tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile_ofs << PeAlignSamStrVec_bothEndsUnmapped_mappedToRepeatRegion[tmp] << endl;
}
if(PeAlignSamStrVec_inCompletePair[tmp] != "")
{
tmpAlignIncompletePair_SAM_ofs << PeAlignSamStrVec_inCompletePair[tmp] << endl;
}
if(outputAlignInfoAndSamForAllPairedAlignmentBool)
{
if(PeAlignInfoStrVec_completePaired[tmp] != "")
{
tmpAlignCompleteRead_alignInfo_ofs << PeAlignInfoStrVec_completePaired[tmp] << endl;
}
}
}
}
void generateMultiThreadOutputFile(const string& tmpAlignCompleteRead,
const string& tmpAlignCompleteRead_alignInfo,
const string& tmpAlignOneEndUnmapped,
const string& tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile,
const string& tmpAlignBothEndsUnmapped,
const string& tmpAlignIncompletePair,
const string& tmpAlignIncompletePair_SAM,
//const string& tmpAlignCompleteRead_multi,
//const string& tmpAlignCompleteRead_unique,
vector< ofstream* >& tmpAlignCompleteRead_ofs_vec,
vector< ofstream* >& tmpAlignOneEndUnmapped_ofs_vec,
vector< ofstream* >& tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile_ofs_vec,
vector< ofstream* >& tmpAlignBothEndsUnmapped_ofs_vec,
vector< ofstream* >& tmpAlignIncompletePair_ofs_vec,
vector< ofstream* >& tmpAlignIncompletePair_SAM_ofs_vec,
vector< ofstream* >& tmpAlignCompleteRead_alignInfo_ofs_vec,
//#ifdef CHECK_MULTI
//vector< ofstream* >& tmpAlignCompleteRead_ofs_vec_multi,
//vector< ofstream* >& tmpAlignCompleteRead_ofs_vec_unique,
int threads_num)
{
for(int tmp = 1; tmp <= threads_num; tmp++)
{
string tmp_tmpAlignCompleteRead = tmpAlignCompleteRead + "." + int_to_str(tmp);
ofstream* tmp_tmpAlignCompleteRead_ofs = new ofstream(tmp_tmpAlignCompleteRead.c_str());
tmpAlignCompleteRead_ofs_vec.push_back(tmp_tmpAlignCompleteRead_ofs);
string tmp_tmpAlignOneEndUnmapped = tmpAlignOneEndUnmapped + "." + int_to_str(tmp);
ofstream* tmp_tmpAlignOneEndUnmapped_ofs = new ofstream(tmp_tmpAlignOneEndUnmapped.c_str());
tmpAlignOneEndUnmapped_ofs_vec.push_back(tmp_tmpAlignOneEndUnmapped_ofs);
string tmp_tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile = tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile + "." + int_to_str(tmp);
ofstream* tmp_tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile_ofs = new ofstream(tmp_tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile.c_str());
tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile_ofs_vec.push_back(tmp_tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile_ofs);
string tmp_tmpAlignBothEndsUnmapped = tmpAlignBothEndsUnmapped + "." + int_to_str(tmp);
ofstream* tmp_tmpAlignBothEndsUnmapped_ofs = new ofstream(tmp_tmpAlignBothEndsUnmapped.c_str());
tmpAlignBothEndsUnmapped_ofs_vec.push_back(tmp_tmpAlignBothEndsUnmapped_ofs);
string tmp_tmpAlignIncompletePair = tmpAlignIncompletePair + "." + int_to_str(tmp);
ofstream* tmp_tmpAlignIncompletePair_ofs = new ofstream(tmp_tmpAlignIncompletePair.c_str());
tmpAlignIncompletePair_ofs_vec.push_back(tmp_tmpAlignIncompletePair_ofs);
string tmp_tmpAlignIncompletePair_SAM = tmpAlignIncompletePair_SAM + "." + int_to_str(tmp);
ofstream* tmp_tmpAlignIncompletePair_SAM_ofs = new ofstream(tmp_tmpAlignIncompletePair_SAM.c_str());
tmpAlignIncompletePair_SAM_ofs_vec.push_back(tmp_tmpAlignIncompletePair_SAM_ofs);
string tmp_tmpAlignCompleteRead_alignInfo = tmpAlignCompleteRead_alignInfo + "." + int_to_str(tmp);
ofstream* tmp_tmpAlignCompleteRead_alignInfo_ofs = new ofstream(tmp_tmpAlignCompleteRead_alignInfo.c_str());
tmpAlignCompleteRead_alignInfo_ofs_vec.push_back(tmp_tmpAlignCompleteRead_alignInfo_ofs);
}
}
bool inputRead_phase1(
ifstream& inputRead_ifs, ifstream& inputRead_PE_ifs,
int& realRecordNum,
//int recordNumTmp,
int recordNum,
vector<string>& readName1Vec,
vector<string>& readSeq1Vec,
vector<string>& readQualSeq1Vec,
vector<string>& readName2Vec,
vector<string>& readSeq2Vec,
vector<string>& readQualSeq2Vec,
int& readLengthMax_tmp,
bool InputAsFastq,
InputReadPreProcess* readPreProcessInfo)
{
for(int recordNumTmp = 0; recordNumTmp < recordNum; recordNumTmp++)
{
if((inputRead_ifs.eof())||(inputRead_PE_ifs.eof()))
{
realRecordNum = recordNumTmp;
//EndOfRecord = true;
//break;
return true;
}
string line1;
getline(inputRead_ifs, line1); // readName_1
if((inputRead_ifs.eof())||(inputRead_PE_ifs.eof()))
{
realRecordNum = recordNumTmp;
//EndOfRecord = true;
//break;
return true;
}
readName1Vec[recordNumTmp] = line1.substr(1);
string line2;
getline(inputRead_ifs, line2); // readSeq_1
string line2_afterProcess = readPreProcessInfo->upperCaseReadSeq(line2);
readSeq1Vec[recordNumTmp] = line2_afterProcess;
int readLength_1 = line2.length();
if(readLength_1 > readLengthMax_tmp)
readLengthMax_tmp = readLength_1;
string line3, line4;
if(InputAsFastq)
{
getline(inputRead_ifs, line3);
getline(inputRead_ifs, line4);
readQualSeq1Vec[recordNumTmp] = line4;
}
string line1_PE, line2_PE;
getline(inputRead_PE_ifs, line1_PE); // readName_2
readName2Vec[recordNumTmp] = line1_PE.substr(1);
getline(inputRead_PE_ifs, line2_PE);
string line2_PE_afterProcess = readPreProcessInfo->upperCaseReadSeq(line2_PE);
readSeq2Vec[recordNumTmp] = line2_PE_afterProcess;
int readLength_2 = line2_PE.length();
if(readLength_2 > readLengthMax_tmp)
readLengthMax_tmp = readLength_2;
string line3_PE, line4_PE;
if(InputAsFastq)
{
getline(inputRead_PE_ifs, line3_PE);
getline(inputRead_PE_ifs, line4_PE);
readQualSeq2Vec[recordNumTmp] = line4_PE;
}
}
return false;
}
void mergePhase1OutputFiles(int threads_num, const string& tmpAlignCompleteRead,
const string& tmpAlignOneEndUnmapped, const string& tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile,
const string& tmpAlignBothEndsUnmapped, const string& tmpAlignIncompletePair_SAM,
const string& tmpAlignCompleteRead_alignInfo, //const string& tmpAlignCompleteRead_multi,
//const string& tmpAlignCompleteRead_unique,
ofstream& log_ofs)
{
time_t nowtime_start;
nowtime_start = time(NULL);
struct tm *local_start;
local_start = localtime(&nowtime_start);
log_ofs << endl << "[" << asctime(local_start) << "start to merge phase1 output files ..." << endl;
string cat_cmd_completeRead = "cat";
for(int tmp = 1; tmp <= threads_num; tmp++)
{
cat_cmd_completeRead = cat_cmd_completeRead + " " + tmpAlignCompleteRead + "." + int_to_str(tmp);
}
cat_cmd_completeRead = cat_cmd_completeRead + " > " + tmpAlignCompleteRead;
system(cat_cmd_completeRead.c_str());
string cat_cmd_oneEndUnmapped = "cat";
for(int tmp = 1; tmp <= threads_num; tmp++)
{
cat_cmd_oneEndUnmapped = cat_cmd_oneEndUnmapped + " " + tmpAlignOneEndUnmapped + "." + int_to_str(tmp);
}
cat_cmd_oneEndUnmapped = cat_cmd_oneEndUnmapped + " > " + tmpAlignOneEndUnmapped;
system(cat_cmd_oneEndUnmapped.c_str());
string cat_cmd_mappedToRepeatRegion = "cat";
for(int tmp = 1; tmp <= threads_num; tmp++)
{
cat_cmd_mappedToRepeatRegion = cat_cmd_mappedToRepeatRegion + " " + tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile + "." + int_to_str(tmp);
}
cat_cmd_mappedToRepeatRegion = cat_cmd_mappedToRepeatRegion + " > " + tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile;
system(cat_cmd_mappedToRepeatRegion.c_str());
string cat_cmd_bothEndsUnmapped = "cat";
for(int tmp = 1; tmp <= threads_num; tmp++)
{
cat_cmd_bothEndsUnmapped = cat_cmd_bothEndsUnmapped + " " + tmpAlignBothEndsUnmapped + "." + int_to_str(tmp);
}
cat_cmd_bothEndsUnmapped = cat_cmd_bothEndsUnmapped + " > " + tmpAlignBothEndsUnmapped;
system(cat_cmd_bothEndsUnmapped.c_str());
/*
string cat_cmd_tmpAlignIncompletePair = "cat";
for(int tmp = 1; tmp <= threads_num; tmp++)
{
cat_cmd_tmpAlignIncompletePair = cat_cmd_tmpAlignIncompletePair + " " + tmpAlignIncompletePair + "." + int_to_str(tmp);
}
cat_cmd_tmpAlignIncompletePair = cat_cmd_tmpAlignIncompletePair + " > " + tmpAlignIncompletePair;
system(cat_cmd_tmpAlignIncompletePair.c_str());
*/
string cat_cmd_tmpAlignIncompletePair_SAM = "cat";
for(int tmp = 1; tmp <= threads_num; tmp++)
{
cat_cmd_tmpAlignIncompletePair_SAM = cat_cmd_tmpAlignIncompletePair_SAM + " " + tmpAlignIncompletePair_SAM + "." + int_to_str(tmp);
}
cat_cmd_tmpAlignIncompletePair_SAM = cat_cmd_tmpAlignIncompletePair_SAM + " > " + tmpAlignIncompletePair_SAM;
system(cat_cmd_tmpAlignIncompletePair_SAM.c_str());
string cat_cmd_tmpAlignCompleteRead_alignInfo = "cat";
for(int tmp = 1; tmp <= threads_num; tmp++)
{
cat_cmd_tmpAlignCompleteRead_alignInfo = cat_cmd_tmpAlignCompleteRead_alignInfo + " " + tmpAlignCompleteRead_alignInfo + "." + int_to_str(tmp);
}
cat_cmd_tmpAlignCompleteRead_alignInfo = cat_cmd_tmpAlignCompleteRead_alignInfo + " > " + tmpAlignCompleteRead_alignInfo;
system(cat_cmd_tmpAlignCompleteRead_alignInfo.c_str());
time_t nowtime;
nowtime = time(NULL);
struct tm *local;
local = localtime(&nowtime);
log_ofs << endl << "[" << asctime(local) << "finish merging files ...." << endl;
}
void mergeAllFinalFiles(bool Do_Phase1_Only, const string& tmpHeadSectionInfo,
const string& tmpAlignCompleteRead, const string& tmpAlignIncompletePair_SAM,
const string& tmpAlignOneEndUnmapped, const string& tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile,
const string& tmpAlignBothEndsUnmapped, const string& OutputSamFile_oneEndMapped,
const string& OutputSamFile_fixHeadTail_complete_pair, const string& OutputSamFile_fixHeadTail_incomplete_pair,
const string& OutputSamFile_fixHeadTail_complete_unpair, const string& OutputSamFile_fixHeadTail_incomplete_unpair,
const string& OutputSamFile_oneEndMapped_unpairComplete,
const string& outputDirStr
)
{
string finalOutputSam = outputDirStr + "/output.sam";
if(Do_Phase1_Only)
{
string cat_cmd = "cat "
+ tmpHeadSectionInfo
+ " " + tmpAlignCompleteRead
//+ " " + tmpAlignOneEndUnmapped
+ " " + tmpAlignIncompletePair_SAM
+ " " + tmpAlignOneEndUnmapped
+ " " + tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile
+ " " + tmpAlignBothEndsUnmapped
+ " > " + finalOutputSam;
system(cat_cmd.c_str());
}
else
{
string cat_cmd = "cat "
+ tmpHeadSectionInfo
+ " " + tmpAlignCompleteRead
+ " " + OutputSamFile_oneEndMapped
+ " " + OutputSamFile_fixHeadTail_complete_pair
+ " " + OutputSamFile_fixHeadTail_incomplete_pair
+ " " + OutputSamFile_fixHeadTail_complete_unpair
+ " " + OutputSamFile_fixHeadTail_incomplete_unpair
+ " " + OutputSamFile_oneEndMapped_unpairComplete
+ " " + tmpAlignBothEndsUnmapped_mappedToRepeatRegionFile
+ " " + tmpAlignBothEndsUnmapped
+ " > " + finalOutputSam;
system(cat_cmd.c_str());
}
}
void removeAllTemporaryFiles(const string& outputDirStr)
{
string phase1_dir_path = outputDirStr + "/phase1_output";
string phase2_dir_path = outputDirStr + "/phase2_output";
string remove_phase1_output_cmd = "rm -r " + phase1_dir_path;
string remove_phase2_output_cmd = "rm -r " + phase2_dir_path;
system(remove_phase1_output_cmd.c_str());
system(remove_phase2_output_cmd.c_str());
}
};
#endif | [
"[email protected]"
] | |
2590097d9e01d885532b4bb3e949f9ee289e8329 | 2dbb6208f065a6e6bc4c3d3996f3dd4253821cfb | /engine/core/render/base/pipeline/RenderStage.cpp | d83133c9d9d3fe7fd0c744feda11023d158477d2 | [
"MIT"
] | permissive | ShalokShalom/echo | 2ef7475f6f3bd65fe106a1bb730de2ade0b64bab | 02e3d9d8f0066f47cbc25288666977cef3e26a2f | refs/heads/master | 2022-12-13T07:14:49.064952 | 2020-09-17T02:08:41 | 2020-09-17T02:08:41 | 296,278,603 | 0 | 0 | MIT | 2020-09-17T09:21:31 | 2020-09-17T09:21:30 | null | UTF-8 | C++ | false | false | 1,957 | cpp | #include "RenderStage.h"
#include "RenderPipeline.h"
#include "RenderQueue.h"
#include "ImageFilter.h"
#include "engine/core/main/Engine.h"
#include <thirdparty/pugixml/pugixml.hpp>
namespace Echo
{
RenderStage::RenderStage(RenderPipeline* pipeline)
: m_pipeline(pipeline)
{
}
RenderStage::~RenderStage()
{
EchoSafeDeleteContainer(m_renderQueues, IRenderQueue);
}
void RenderStage::parseXml(void* pugiNode)
{
pugi::xml_node* stageNode = (pugi::xml_node*)pugiNode;
if (stageNode)
{
// queues
for (pugi::xml_node queueNode = stageNode->child("queue"); queueNode; queueNode = queueNode.next_sibling("queue"))
{
String type = queueNode.attribute("type").as_string();
if (type == "queue")
{
RenderQueue* queue = EchoNew(RenderQueue(m_pipeline, this));
queue->setName(queueNode.attribute("name").as_string("Opaque"));
queue->setSort(queueNode.attribute("sort").as_bool(false));
m_renderQueues.emplace_back(queue);
}
else if (type == "filter")
{
ImageFilter* queue = EchoNew(ImageFilter(m_pipeline, this));
queue->setName(queueNode.attribute("name").as_string());
m_renderQueues.emplace_back(queue);
}
}
// frame buffer
pugi::xml_node framebufferNode = stageNode->child("framebuffer");
if (framebufferNode)
{
m_frameBufferId = framebufferNode.attribute("id").as_uint();
}
}
}
void RenderStage::addRenderable(const String& name, RenderableID id)
{
for (IRenderQueue* iqueue : m_renderQueues)
{
RenderQueue* queue = dynamic_cast<RenderQueue*>(iqueue);
if (queue)
{
if (queue->getName() == name)
queue->addRenderable(id);
}
}
}
void RenderStage::render()
{
if (m_frameBufferId != -1)
{
RenderPipeline::current()->beginFramebuffer(m_frameBufferId);
for (IRenderQueue* iqueue : m_renderQueues)
{
iqueue->render();
}
RenderPipeline::current()->endFramebuffer(m_frameBufferId);
}
}
}
| [
"[email protected]"
] | |
3194f33beb3567d318e849d18fda3826a9b9cd9d | 5bd953e087b8c8c5854eb45d52a28d9b98f3dd5f | /ftpserver/ftpserver/ConnectThread.h | fb1a24872f25a23e36aab920c611efcaaa0dad5b | [] | no_license | andreyscherbin/CourseProject | f3bb4549c3f70fa7931dc9b8b0c561e7ca114aa5 | 0406f0153ad7bae96787fc57dcf5e8ec61d7a0f5 | refs/heads/master | 2020-05-19T11:15:58.398605 | 2019-06-04T06:51:56 | 2019-06-04T06:51:56 | 184,986,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | #pragma once
#include "library.h"
#include "ftpserver.h"
#include "ConnectSocket.h"
class ftpserver;
class ConnectThread
{
public:
ftpserver* Server;
ConnectSocket a_ConnectSocket;
DWORD threadID;
HANDLE thread;
int numberThread;
ConnectThread(int number);
~ConnectThread(void);
int ReceivedBytes;
int SentBytes;
void IncReceivedBytes(int nBytes);
void IncSentBytes(int nBytes);
void UpdateStatistic(int nType);
static DWORD WINAPI StartThread(LPVOID pParam);
bool ExitThread();
};
| [
"[email protected]"
] | |
f4437fc18188a6e1b2260c5ff9206df98df5a1c5 | 68a997fa00c4d4ce661902ca40f0dcbc69b81862 | /src/versionbits.cpp | eb56c25b057142075bcb5f5266eb716b38e07cd6 | [
"MIT"
] | permissive | fengyun88/geekcash | f4de32e6a67bc2d4bc613bfe7fb9d7efd08fd954 | 0f819856f5a292a30f66d17acf90e15055f46509 | refs/heads/master | 2020-08-11T17:37:44.393780 | 2019-02-25T08:20:46 | 2019-02-25T08:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,808 | cpp | // Copyright (c) 2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "versionbits.h"
#include "consensus/params.h"
const struct BIP9DeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS] = {
{
/*.name =*/ "testdummy",
/*.gbt_force =*/ true,
/*.check_mn_protocol =*/ false,
},
{
/*.name =*/ "csv",
/*.gbt_force =*/ true,
/*.check_mn_protocol =*/ false,
},
{
/*.name =*/ "dip0001",
/*.gbt_force =*/ true,
/*.check_mn_protocol =*/ true,
},
{
/*.name =*/ "bip147",
/*.gbt_force =*/ true,
/*.check_mn_protocol =*/ false,
}
};
ThresholdState AbstractThresholdConditionChecker::GetStateFor(const CBlockIndex* pindexPrev, const Consensus::Params& params, ThresholdConditionCache& cache) const
{
int nPeriod = Period(params);
int nThreshold = Threshold(params);
int64_t nTimeStart = BeginTime(params);
int64_t nTimeTimeout = EndTime(params);
// A block's state is always the same as that of the first of its period, so it is computed based on a pindexPrev whose height equals a multiple of nPeriod - 1.
if (pindexPrev != NULL) {
pindexPrev = pindexPrev->GetAncestor(pindexPrev->nHeight - ((pindexPrev->nHeight + 1) % nPeriod));
}
// Walk backwards in steps of nPeriod to find a pindexPrev whose information is known
std::vector<const CBlockIndex*> vToCompute;
while (cache.count(pindexPrev) == 0) {
if (pindexPrev == NULL) {
// The genesis block is by definition defined.
cache[pindexPrev] = THRESHOLD_DEFINED;
break;
}
if (pindexPrev->GetMedianTimePast() < nTimeStart) {
// Optimizaton: don't recompute down further, as we know every earlier block will be before the start time
cache[pindexPrev] = THRESHOLD_DEFINED;
break;
}
vToCompute.push_back(pindexPrev);
pindexPrev = pindexPrev->GetAncestor(pindexPrev->nHeight - nPeriod);
}
// At this point, cache[pindexPrev] is known
assert(cache.count(pindexPrev));
ThresholdState state = cache[pindexPrev];
// Now walk forward and compute the state of descendants of pindexPrev
while (!vToCompute.empty()) {
ThresholdState stateNext = state;
pindexPrev = vToCompute.back();
vToCompute.pop_back();
switch (state) {
case THRESHOLD_DEFINED: {
if (pindexPrev->GetMedianTimePast() >= nTimeTimeout) {
stateNext = THRESHOLD_FAILED;
} else if (pindexPrev->GetMedianTimePast() >= nTimeStart) {
stateNext = THRESHOLD_STARTED;
}
break;
}
case THRESHOLD_STARTED: {
if (pindexPrev->GetMedianTimePast() >= nTimeTimeout) {
stateNext = THRESHOLD_FAILED;
break;
}
// We need to count
const CBlockIndex* pindexCount = pindexPrev;
int count = 0;
for (int i = 0; i < nPeriod; i++) {
if (Condition(pindexCount, params)) {
count++;
}
pindexCount = pindexCount->pprev;
}
if (count >= nThreshold) {
stateNext = THRESHOLD_LOCKED_IN;
}
break;
}
case THRESHOLD_LOCKED_IN: {
// Always progresses into ACTIVE.
stateNext = THRESHOLD_ACTIVE;
break;
}
case THRESHOLD_FAILED:
case THRESHOLD_ACTIVE: {
// Nothing happens, these are terminal states.
break;
}
}
cache[pindexPrev] = state = stateNext;
}
return state;
}
namespace
{
/**
* Class to implement versionbits logic.
*/
class VersionBitsConditionChecker : public AbstractThresholdConditionChecker {
private:
const Consensus::DeploymentPos id;
protected:
int64_t BeginTime(const Consensus::Params& params) const { return params.vDeployments[id].nStartTime; }
int64_t EndTime(const Consensus::Params& params) const { return params.vDeployments[id].nTimeout; }
int Period(const Consensus::Params& params) const { return params.vDeployments[id].nWindowSize ? params.vDeployments[id].nWindowSize : params.nMinerConfirmationWindow; }
int Threshold(const Consensus::Params& params) const { return params.vDeployments[id].nThreshold ? params.vDeployments[id].nThreshold : params.nRuleChangeActivationThreshold; }
bool Condition(const CBlockIndex* pindex, const Consensus::Params& params) const
{
return (((pindex->nVersion & VERSIONBITS_TOP_MASK) == VERSIONBITS_TOP_BITS) && (pindex->nVersion & Mask(params)) != 0);
}
public:
VersionBitsConditionChecker(Consensus::DeploymentPos id_) : id(id_) {}
uint32_t Mask(const Consensus::Params& params) const { return ((uint32_t)1) << params.vDeployments[id].bit; }
};
}
ThresholdState VersionBitsState(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::DeploymentPos pos, VersionBitsCache& cache)
{
return VersionBitsConditionChecker(pos).GetStateFor(pindexPrev, params, cache.caches[pos]);
}
uint32_t VersionBitsMask(const Consensus::Params& params, Consensus::DeploymentPos pos)
{
return VersionBitsConditionChecker(pos).Mask(params);
}
void VersionBitsCache::Clear()
{
for (unsigned int d = 0; d < Consensus::MAX_VERSION_BITS_DEPLOYMENTS; d++) {
caches[d].clear();
}
}
| [
"[email protected]"
] | |
018274be9379921ce9bd602069938210ed5dd729 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_ORGS/NPM/node/deps/v8/src/codegen/ppc/assembler-ppc.cc | 437f5f96c610d26efb89e6c03a0a9828097202a1 | [
"BSD-3-Clause",
"SunPro",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | C++ | false | false | 68,998 | cc | // Copyright (c) 1994-2006 Sun Microsystems Inc.
// All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// - Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// - Redistribution in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// - Neither the name of Sun Microsystems or the names of contributors may
// be used to endorse or promote products derived from this software without
// specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
// OF THE POSSIBILITY OF SUCH DAMAGE.
// The original source code covered by the above license above has been
// modified significantly by Google Inc.
// Copyright 2014 the V8 project authors. All rights reserved.
#include "src/codegen/ppc/assembler-ppc.h"
#if V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64
#include "src/base/bits.h"
#include "src/base/cpu.h"
#include "src/codegen/macro-assembler.h"
#include "src/codegen/ppc/assembler-ppc-inl.h"
#include "src/codegen/string-constants.h"
#include "src/deoptimizer/deoptimizer.h"
namespace v8 {
namespace internal {
// Get the CPU features enabled by the build.
static unsigned CpuFeaturesImpliedByCompiler() {
unsigned answer = 0;
return answer;
}
bool CpuFeatures::SupportsWasmSimd128() {
#if V8_ENABLE_WEBASSEMBLY
return CpuFeatures::IsSupported(SIMD);
#else
return false;
#endif // V8_ENABLE_WEBASSEMBLY
}
void CpuFeatures::ProbeImpl(bool cross_compile) {
supported_ |= CpuFeaturesImpliedByCompiler();
icache_line_size_ = 128;
// Only use statically determined features for cross compile (snapshot).
if (cross_compile) return;
// Detect whether frim instruction is supported (POWER5+)
// For now we will just check for processors we know do not
// support it
#ifndef USE_SIMULATOR
// Probe for additional features at runtime.
base::CPU cpu;
if (cpu.part() == base::CPU::kPPCPower9 ||
cpu.part() == base::CPU::kPPCPower10) {
supported_ |= (1u << MODULO);
}
#if V8_TARGET_ARCH_PPC64
if (cpu.part() == base::CPU::kPPCPower8 ||
cpu.part() == base::CPU::kPPCPower9 ||
cpu.part() == base::CPU::kPPCPower10) {
supported_ |= (1u << FPR_GPR_MOV);
}
// V8 PPC Simd implementations need P9 at a minimum.
if (cpu.part() == base::CPU::kPPCPower9 ||
cpu.part() == base::CPU::kPPCPower10) {
supported_ |= (1u << SIMD);
}
#endif
if (cpu.part() == base::CPU::kPPCPower6 ||
cpu.part() == base::CPU::kPPCPower7 ||
cpu.part() == base::CPU::kPPCPower8 ||
cpu.part() == base::CPU::kPPCPower9 ||
cpu.part() == base::CPU::kPPCPower10) {
supported_ |= (1u << LWSYNC);
}
if (cpu.part() == base::CPU::kPPCPower7 ||
cpu.part() == base::CPU::kPPCPower8 ||
cpu.part() == base::CPU::kPPCPower9 ||
cpu.part() == base::CPU::kPPCPower10) {
supported_ |= (1u << ISELECT);
supported_ |= (1u << VSX);
}
#if V8_OS_LINUX
if (!(cpu.part() == base::CPU::kPPCG5 || cpu.part() == base::CPU::kPPCG4)) {
// Assume support
supported_ |= (1u << FPU);
}
if (cpu.icache_line_size() != base::CPU::kUnknownCacheLineSize) {
icache_line_size_ = cpu.icache_line_size();
}
#elif V8_OS_AIX
// Assume support FP support and default cache line size
supported_ |= (1u << FPU);
#endif
#else // Simulator
supported_ |= (1u << FPU);
supported_ |= (1u << LWSYNC);
supported_ |= (1u << ISELECT);
supported_ |= (1u << VSX);
supported_ |= (1u << MODULO);
supported_ |= (1u << SIMD);
#if V8_TARGET_ARCH_PPC64
supported_ |= (1u << FPR_GPR_MOV);
#endif
#endif
// Set a static value on whether Simd is supported.
// This variable is only used for certain archs to query SupportWasmSimd128()
// at runtime in builtins using an extern ref. Other callers should use
// CpuFeatures::SupportWasmSimd128().
CpuFeatures::supports_wasm_simd_128_ = CpuFeatures::SupportsWasmSimd128();
}
void CpuFeatures::PrintTarget() {
const char* ppc_arch = nullptr;
#if V8_TARGET_ARCH_PPC64
ppc_arch = "ppc64";
#else
ppc_arch = "ppc";
#endif
printf("target %s\n", ppc_arch);
}
void CpuFeatures::PrintFeatures() {
printf("FPU=%d\n", CpuFeatures::IsSupported(FPU));
printf("FPR_GPR_MOV=%d\n", CpuFeatures::IsSupported(FPR_GPR_MOV));
printf("LWSYNC=%d\n", CpuFeatures::IsSupported(LWSYNC));
printf("ISELECT=%d\n", CpuFeatures::IsSupported(ISELECT));
printf("VSX=%d\n", CpuFeatures::IsSupported(VSX));
printf("MODULO=%d\n", CpuFeatures::IsSupported(MODULO));
}
Register ToRegister(int num) {
DCHECK(num >= 0 && num < kNumRegisters);
const Register kRegisters[] = {r0, sp, r2, r3, r4, r5, r6, r7,
r8, r9, r10, r11, ip, r13, r14, r15,
r16, r17, r18, r19, r20, r21, r22, r23,
r24, r25, r26, r27, r28, r29, r30, fp};
return kRegisters[num];
}
// -----------------------------------------------------------------------------
// Implementation of RelocInfo
const int RelocInfo::kApplyMask =
RelocInfo::ModeMask(RelocInfo::INTERNAL_REFERENCE) |
RelocInfo::ModeMask(RelocInfo::INTERNAL_REFERENCE_ENCODED);
bool RelocInfo::IsCodedSpecially() {
// The deserializer needs to know whether a pointer is specially
// coded. Being specially coded on PPC means that it is a lis/ori
// instruction sequence or is a constant pool entry, and these are
// always the case inside code objects.
return true;
}
bool RelocInfo::IsInConstantPool() {
if (FLAG_enable_embedded_constant_pool && constant_pool_ != kNullAddress) {
return Assembler::IsConstantPoolLoadStart(pc_);
}
return false;
}
uint32_t RelocInfo::wasm_call_tag() const {
DCHECK(rmode_ == WASM_CALL || rmode_ == WASM_STUB_CALL);
return static_cast<uint32_t>(
Assembler::target_address_at(pc_, constant_pool_));
}
// -----------------------------------------------------------------------------
// Implementation of Operand and MemOperand
// See assembler-ppc-inl.h for inlined constructors
Operand::Operand(Handle<HeapObject> handle) {
rm_ = no_reg;
value_.immediate = static_cast<intptr_t>(handle.address());
rmode_ = RelocInfo::FULL_EMBEDDED_OBJECT;
}
Operand Operand::EmbeddedNumber(double value) {
int32_t smi;
if (DoubleToSmiInteger(value, &smi)) return Operand(Smi::FromInt(smi));
Operand result(0, RelocInfo::FULL_EMBEDDED_OBJECT);
result.is_heap_object_request_ = true;
result.value_.heap_object_request = HeapObjectRequest(value);
return result;
}
Operand Operand::EmbeddedStringConstant(const StringConstantBase* str) {
Operand result(0, RelocInfo::FULL_EMBEDDED_OBJECT);
result.is_heap_object_request_ = true;
result.value_.heap_object_request = HeapObjectRequest(str);
return result;
}
MemOperand::MemOperand(Register rn, int32_t offset)
: ra_(rn), offset_(offset), rb_(no_reg) {}
MemOperand::MemOperand(Register ra, Register rb)
: ra_(ra), offset_(0), rb_(rb) {}
void Assembler::AllocateAndInstallRequestedHeapObjects(Isolate* isolate) {
DCHECK_IMPLIES(isolate == nullptr, heap_object_requests_.empty());
for (auto& request : heap_object_requests_) {
Handle<HeapObject> object;
switch (request.kind()) {
case HeapObjectRequest::kHeapNumber: {
object = isolate->factory()->NewHeapNumber<AllocationType::kOld>(
request.heap_number());
break;
}
case HeapObjectRequest::kStringConstant: {
const StringConstantBase* str = request.string();
CHECK_NOT_NULL(str);
object = str->AllocateStringConstant(isolate);
break;
}
}
Address pc = reinterpret_cast<Address>(buffer_start_) + request.offset();
Address constant_pool = kNullAddress;
set_target_address_at(pc, constant_pool, object.address(),
SKIP_ICACHE_FLUSH);
}
}
// -----------------------------------------------------------------------------
// Specific instructions, constants, and masks.
Assembler::Assembler(const AssemblerOptions& options,
std::unique_ptr<AssemblerBuffer> buffer)
: AssemblerBase(options, std::move(buffer)),
scratch_register_list_(ip.bit()),
constant_pool_builder_(kLoadPtrMaxReachBits, kLoadDoubleMaxReachBits) {
reloc_info_writer.Reposition(buffer_start_ + buffer_->size(), pc_);
no_trampoline_pool_before_ = 0;
trampoline_pool_blocked_nesting_ = 0;
constant_pool_entry_sharing_blocked_nesting_ = 0;
next_trampoline_check_ = kMaxInt;
internal_trampoline_exception_ = false;
last_bound_pos_ = 0;
optimizable_cmpi_pos_ = -1;
trampoline_emitted_ = FLAG_force_long_branches;
tracked_branch_count_ = 0;
relocations_.reserve(128);
}
void Assembler::GetCode(Isolate* isolate, CodeDesc* desc,
SafepointTableBuilder* safepoint_table_builder,
int handler_table_offset) {
// As a crutch to avoid having to add manual Align calls wherever we use a
// raw workflow to create Code objects (mostly in tests), add another Align
// call here. It does no harm - the end of the Code object is aligned to the
// (larger) kCodeAlignment anyways.
// TODO(jgruber): Consider moving responsibility for proper alignment to
// metadata table builders (safepoint, handler, constant pool, code
// comments).
DataAlign(Code::kMetadataAlignment);
// Emit constant pool if necessary.
int constant_pool_size = EmitConstantPool();
EmitRelocations();
int code_comments_size = WriteCodeComments();
AllocateAndInstallRequestedHeapObjects(isolate);
// Set up code descriptor.
// TODO(jgruber): Reconsider how these offsets and sizes are maintained up to
// this point to make CodeDesc initialization less fiddly.
const int instruction_size = pc_offset();
const int code_comments_offset = instruction_size - code_comments_size;
const int constant_pool_offset = code_comments_offset - constant_pool_size;
const int handler_table_offset2 = (handler_table_offset == kNoHandlerTable)
? constant_pool_offset
: handler_table_offset;
const int safepoint_table_offset =
(safepoint_table_builder == kNoSafepointTable)
? handler_table_offset2
: safepoint_table_builder->GetCodeOffset();
const int reloc_info_offset =
static_cast<int>(reloc_info_writer.pos() - buffer_->start());
CodeDesc::Initialize(desc, this, safepoint_table_offset,
handler_table_offset2, constant_pool_offset,
code_comments_offset, reloc_info_offset);
}
void Assembler::Align(int m) {
DCHECK(m >= 4 && base::bits::IsPowerOfTwo(m));
DCHECK_EQ(pc_offset() & (kInstrSize - 1), 0);
while ((pc_offset() & (m - 1)) != 0) {
nop();
}
}
void Assembler::CodeTargetAlign() { Align(8); }
Condition Assembler::GetCondition(Instr instr) {
switch (instr & kCondMask) {
case BT:
return eq;
case BF:
return ne;
default:
UNIMPLEMENTED();
}
return al;
}
bool Assembler::IsLis(Instr instr) {
return ((instr & kOpcodeMask) == ADDIS) && GetRA(instr) == r0;
}
bool Assembler::IsLi(Instr instr) {
return ((instr & kOpcodeMask) == ADDI) && GetRA(instr) == r0;
}
bool Assembler::IsAddic(Instr instr) { return (instr & kOpcodeMask) == ADDIC; }
bool Assembler::IsOri(Instr instr) { return (instr & kOpcodeMask) == ORI; }
bool Assembler::IsBranch(Instr instr) { return ((instr & kOpcodeMask) == BCX); }
Register Assembler::GetRA(Instr instr) {
return Register::from_code(Instruction::RAValue(instr));
}
Register Assembler::GetRB(Instr instr) {
return Register::from_code(Instruction::RBValue(instr));
}
#if V8_TARGET_ARCH_PPC64
// This code assumes a FIXED_SEQUENCE for 64bit loads (lis/ori)
bool Assembler::Is64BitLoadIntoR12(Instr instr1, Instr instr2, Instr instr3,
Instr instr4, Instr instr5) {
// Check the instructions are indeed a five part load (into r12)
// 3d800000 lis r12, 0
// 618c0000 ori r12, r12, 0
// 798c07c6 rldicr r12, r12, 32, 31
// 658c00c3 oris r12, r12, 195
// 618ccd40 ori r12, r12, 52544
return (((instr1 >> 16) == 0x3D80) && ((instr2 >> 16) == 0x618C) &&
(instr3 == 0x798C07C6) && ((instr4 >> 16) == 0x658C) &&
((instr5 >> 16) == 0x618C));
}
#else
// This code assumes a FIXED_SEQUENCE for 32bit loads (lis/ori)
bool Assembler::Is32BitLoadIntoR12(Instr instr1, Instr instr2) {
// Check the instruction is indeed a two part load (into r12)
// 3d802553 lis r12, 9555
// 618c5000 ori r12, r12, 20480
return (((instr1 >> 16) == 0x3D80) && ((instr2 >> 16) == 0x618C));
}
#endif
bool Assembler::IsCmpRegister(Instr instr) {
return (((instr & kOpcodeMask) == EXT2) &&
((EXT2 | (instr & kExt2OpcodeMask)) == CMP));
}
bool Assembler::IsRlwinm(Instr instr) {
return ((instr & kOpcodeMask) == RLWINMX);
}
bool Assembler::IsAndi(Instr instr) { return ((instr & kOpcodeMask) == ANDIx); }
#if V8_TARGET_ARCH_PPC64
bool Assembler::IsRldicl(Instr instr) {
return (((instr & kOpcodeMask) == EXT5) &&
((EXT5 | (instr & kExt5OpcodeMask)) == RLDICL));
}
#endif
bool Assembler::IsCmpImmediate(Instr instr) {
return ((instr & kOpcodeMask) == CMPI);
}
bool Assembler::IsCrSet(Instr instr) {
return (((instr & kOpcodeMask) == EXT1) &&
((EXT1 | (instr & kExt1OpcodeMask)) == CREQV));
}
Register Assembler::GetCmpImmediateRegister(Instr instr) {
DCHECK(IsCmpImmediate(instr));
return GetRA(instr);
}
int Assembler::GetCmpImmediateRawImmediate(Instr instr) {
DCHECK(IsCmpImmediate(instr));
return instr & kOff16Mask;
}
// Labels refer to positions in the (to be) generated code.
// There are bound, linked, and unused labels.
//
// Bound labels refer to known positions in the already
// generated code. pos() is the position the label refers to.
//
// Linked labels refer to unknown positions in the code
// to be generated; pos() is the position of the last
// instruction using the label.
// The link chain is terminated by a negative code position (must be aligned)
const int kEndOfChain = -4;
// Dummy opcodes for unbound label mov instructions or jump table entries.
enum {
kUnboundMovLabelOffsetOpcode = 0 << 26,
kUnboundAddLabelOffsetOpcode = 1 << 26,
kUnboundAddLabelLongOffsetOpcode = 2 << 26,
kUnboundMovLabelAddrOpcode = 3 << 26,
kUnboundJumpTableEntryOpcode = 4 << 26
};
int Assembler::target_at(int pos) {
Instr instr = instr_at(pos);
// check which type of branch this is 16 or 26 bit offset
uint32_t opcode = instr & kOpcodeMask;
int link;
switch (opcode) {
case BX:
link = SIGN_EXT_IMM26(instr & kImm26Mask);
link &= ~(kAAMask | kLKMask); // discard AA|LK bits if present
break;
case BCX:
link = SIGN_EXT_IMM16((instr & kImm16Mask));
link &= ~(kAAMask | kLKMask); // discard AA|LK bits if present
break;
case kUnboundMovLabelOffsetOpcode:
case kUnboundAddLabelOffsetOpcode:
case kUnboundAddLabelLongOffsetOpcode:
case kUnboundMovLabelAddrOpcode:
case kUnboundJumpTableEntryOpcode:
link = SIGN_EXT_IMM26(instr & kImm26Mask);
link <<= 2;
break;
default:
DCHECK(false);
return -1;
}
if (link == 0) return kEndOfChain;
return pos + link;
}
void Assembler::target_at_put(int pos, int target_pos, bool* is_branch) {
Instr instr = instr_at(pos);
uint32_t opcode = instr & kOpcodeMask;
if (is_branch != nullptr) {
*is_branch = (opcode == BX || opcode == BCX);
}
switch (opcode) {
case BX: {
int imm26 = target_pos - pos;
CHECK(is_int26(imm26) && (imm26 & (kAAMask | kLKMask)) == 0);
if (imm26 == kInstrSize && !(instr & kLKMask)) {
// Branch to next instr without link.
instr = ORI; // nop: ori, 0,0,0
} else {
instr &= ((~kImm26Mask) | kAAMask | kLKMask);
instr |= (imm26 & kImm26Mask);
}
instr_at_put(pos, instr);
break;
}
case BCX: {
int imm16 = target_pos - pos;
CHECK(is_int16(imm16) && (imm16 & (kAAMask | kLKMask)) == 0);
if (imm16 == kInstrSize && !(instr & kLKMask)) {
// Branch to next instr without link.
instr = ORI; // nop: ori, 0,0,0
} else {
instr &= ((~kImm16Mask) | kAAMask | kLKMask);
instr |= (imm16 & kImm16Mask);
}
instr_at_put(pos, instr);
break;
}
case kUnboundMovLabelOffsetOpcode: {
// Load the position of the label relative to the generated code object
// pointer in a register.
Register dst = Register::from_code(instr_at(pos + kInstrSize));
int32_t offset = target_pos + (Code::kHeaderSize - kHeapObjectTag);
PatchingAssembler patcher(
options(), reinterpret_cast<byte*>(buffer_start_ + pos), 2);
patcher.bitwise_mov32(dst, offset);
break;
}
case kUnboundAddLabelLongOffsetOpcode:
case kUnboundAddLabelOffsetOpcode: {
// dst = base + position + immediate
Instr operands = instr_at(pos + kInstrSize);
Register dst = Register::from_code((operands >> 27) & 0x1F);
Register base = Register::from_code((operands >> 22) & 0x1F);
int32_t delta = (opcode == kUnboundAddLabelLongOffsetOpcode)
? static_cast<int32_t>(instr_at(pos + 2 * kInstrSize))
: (SIGN_EXT_IMM22(operands & kImm22Mask));
int32_t offset = target_pos + delta;
PatchingAssembler patcher(
options(), reinterpret_cast<byte*>(buffer_start_ + pos),
2 + static_cast<int32_t>(opcode == kUnboundAddLabelLongOffsetOpcode));
patcher.bitwise_add32(dst, base, offset);
if (opcode == kUnboundAddLabelLongOffsetOpcode) patcher.nop();
break;
}
case kUnboundMovLabelAddrOpcode: {
// Load the address of the label in a register.
Register dst = Register::from_code(instr_at(pos + kInstrSize));
PatchingAssembler patcher(options(),
reinterpret_cast<byte*>(buffer_start_ + pos),
kMovInstructionsNoConstantPool);
// Keep internal references relative until EmitRelocations.
patcher.bitwise_mov(dst, target_pos);
break;
}
case kUnboundJumpTableEntryOpcode: {
PatchingAssembler patcher(options(),
reinterpret_cast<byte*>(buffer_start_ + pos),
kSystemPointerSize / kInstrSize);
// Keep internal references relative until EmitRelocations.
patcher.dp(target_pos);
break;
}
default:
DCHECK(false);
break;
}
}
int Assembler::max_reach_from(int pos) {
Instr instr = instr_at(pos);
uint32_t opcode = instr & kOpcodeMask;
// check which type of branch this is 16 or 26 bit offset
switch (opcode) {
case BX:
return 26;
case BCX:
return 16;
case kUnboundMovLabelOffsetOpcode:
case kUnboundAddLabelOffsetOpcode:
case kUnboundMovLabelAddrOpcode:
case kUnboundJumpTableEntryOpcode:
return 0; // no limit on reach
}
DCHECK(false);
return 0;
}
void Assembler::bind_to(Label* L, int pos) {
DCHECK(0 <= pos && pos <= pc_offset()); // must have a valid binding position
int32_t trampoline_pos = kInvalidSlotPos;
bool is_branch = false;
while (L->is_linked()) {
int fixup_pos = L->pos();
int32_t offset = pos - fixup_pos;
int maxReach = max_reach_from(fixup_pos);
next(L); // call next before overwriting link with target at fixup_pos
if (maxReach && is_intn(offset, maxReach) == false) {
if (trampoline_pos == kInvalidSlotPos) {
trampoline_pos = get_trampoline_entry();
CHECK_NE(trampoline_pos, kInvalidSlotPos);
target_at_put(trampoline_pos, pos);
}
target_at_put(fixup_pos, trampoline_pos);
} else {
target_at_put(fixup_pos, pos, &is_branch);
}
}
L->bind_to(pos);
if (!trampoline_emitted_ && is_branch) {
UntrackBranch();
}
// Keep track of the last bound label so we don't eliminate any instructions
// before a bound label.
if (pos > last_bound_pos_) last_bound_pos_ = pos;
}
void Assembler::bind(Label* L) {
DCHECK(!L->is_bound()); // label can only be bound once
bind_to(L, pc_offset());
}
void Assembler::next(Label* L) {
DCHECK(L->is_linked());
int link = target_at(L->pos());
if (link == kEndOfChain) {
L->Unuse();
} else {
DCHECK_GE(link, 0);
L->link_to(link);
}
}
bool Assembler::is_near(Label* L, Condition cond) {
DCHECK(L->is_bound());
if (L->is_bound() == false) return false;
int maxReach = ((cond == al) ? 26 : 16);
int offset = L->pos() - pc_offset();
return is_intn(offset, maxReach);
}
void Assembler::a_form(Instr instr, DoubleRegister frt, DoubleRegister fra,
DoubleRegister frb, RCBit r) {
emit(instr | frt.code() * B21 | fra.code() * B16 | frb.code() * B11 | r);
}
void Assembler::d_form(Instr instr, Register rt, Register ra,
const intptr_t val, bool signed_disp) {
if (signed_disp) {
if (!is_int16(val)) {
PrintF("val = %" V8PRIdPTR ", 0x%" V8PRIxPTR "\n", val, val);
}
CHECK(is_int16(val));
} else {
if (!is_uint16(val)) {
PrintF("val = %" V8PRIdPTR ", 0x%" V8PRIxPTR
", is_unsigned_imm16(val)=%d, kImm16Mask=0x%x\n",
val, val, is_uint16(val), kImm16Mask);
}
CHECK(is_uint16(val));
}
emit(instr | rt.code() * B21 | ra.code() * B16 | (kImm16Mask & val));
}
void Assembler::xo_form(Instr instr, Register rt, Register ra, Register rb,
OEBit o, RCBit r) {
emit(instr | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | o | r);
}
void Assembler::md_form(Instr instr, Register ra, Register rs, int shift,
int maskbit, RCBit r) {
int sh0_4 = shift & 0x1F;
int sh5 = (shift >> 5) & 0x1;
int m0_4 = maskbit & 0x1F;
int m5 = (maskbit >> 5) & 0x1;
emit(instr | rs.code() * B21 | ra.code() * B16 | sh0_4 * B11 | m0_4 * B6 |
m5 * B5 | sh5 * B1 | r);
}
void Assembler::mds_form(Instr instr, Register ra, Register rs, Register rb,
int maskbit, RCBit r) {
int m0_4 = maskbit & 0x1F;
int m5 = (maskbit >> 5) & 0x1;
emit(instr | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | m0_4 * B6 |
m5 * B5 | r);
}
// Returns the next free trampoline entry.
int32_t Assembler::get_trampoline_entry() {
int32_t trampoline_entry = kInvalidSlotPos;
if (!internal_trampoline_exception_) {
trampoline_entry = trampoline_.take_slot();
if (kInvalidSlotPos == trampoline_entry) {
internal_trampoline_exception_ = true;
}
}
return trampoline_entry;
}
int Assembler::link(Label* L) {
int position;
if (L->is_bound()) {
position = L->pos();
} else {
if (L->is_linked()) {
position = L->pos(); // L's link
} else {
// was: target_pos = kEndOfChain;
// However, using self to mark the first reference
// should avoid most instances of branch offset overflow. See
// target_at() for where this is converted back to kEndOfChain.
position = pc_offset();
}
L->link_to(pc_offset());
}
return position;
}
// Branch instructions.
void Assembler::bclr(BOfield bo, int condition_bit, LKBit lk) {
emit(EXT1 | bo | condition_bit * B16 | BCLRX | lk);
}
void Assembler::bcctr(BOfield bo, int condition_bit, LKBit lk) {
emit(EXT1 | bo | condition_bit * B16 | BCCTRX | lk);
}
// Pseudo op - branch to link register
void Assembler::blr() { bclr(BA, 0, LeaveLK); }
// Pseudo op - branch to count register -- used for "jump"
void Assembler::bctr() { bcctr(BA, 0, LeaveLK); }
void Assembler::bctrl() { bcctr(BA, 0, SetLK); }
void Assembler::bc(int branch_offset, BOfield bo, int condition_bit, LKBit lk) {
int imm16 = branch_offset;
CHECK(is_int16(imm16) && (imm16 & (kAAMask | kLKMask)) == 0);
emit(BCX | bo | condition_bit * B16 | (imm16 & kImm16Mask) | lk);
}
void Assembler::b(int branch_offset, LKBit lk) {
int imm26 = branch_offset;
CHECK(is_int26(imm26) && (imm26 & (kAAMask | kLKMask)) == 0);
emit(BX | (imm26 & kImm26Mask) | lk);
}
void Assembler::xori(Register dst, Register src, const Operand& imm) {
d_form(XORI, src, dst, imm.immediate(), false);
}
void Assembler::xoris(Register ra, Register rs, const Operand& imm) {
d_form(XORIS, rs, ra, imm.immediate(), false);
}
void Assembler::rlwinm(Register ra, Register rs, int sh, int mb, int me,
RCBit rc) {
sh &= 0x1F;
mb &= 0x1F;
me &= 0x1F;
emit(RLWINMX | rs.code() * B21 | ra.code() * B16 | sh * B11 | mb * B6 |
me << 1 | rc);
}
void Assembler::rlwnm(Register ra, Register rs, Register rb, int mb, int me,
RCBit rc) {
mb &= 0x1F;
me &= 0x1F;
emit(RLWNMX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | mb * B6 |
me << 1 | rc);
}
void Assembler::rlwimi(Register ra, Register rs, int sh, int mb, int me,
RCBit rc) {
sh &= 0x1F;
mb &= 0x1F;
me &= 0x1F;
emit(RLWIMIX | rs.code() * B21 | ra.code() * B16 | sh * B11 | mb * B6 |
me << 1 | rc);
}
void Assembler::slwi(Register dst, Register src, const Operand& val, RCBit rc) {
DCHECK((32 > val.immediate()) && (val.immediate() >= 0));
rlwinm(dst, src, val.immediate(), 0, 31 - val.immediate(), rc);
}
void Assembler::srwi(Register dst, Register src, const Operand& val, RCBit rc) {
DCHECK((32 > val.immediate()) && (val.immediate() >= 0));
rlwinm(dst, src, 32 - val.immediate(), val.immediate(), 31, rc);
}
void Assembler::clrrwi(Register dst, Register src, const Operand& val,
RCBit rc) {
DCHECK((32 > val.immediate()) && (val.immediate() >= 0));
rlwinm(dst, src, 0, 0, 31 - val.immediate(), rc);
}
void Assembler::clrlwi(Register dst, Register src, const Operand& val,
RCBit rc) {
DCHECK((32 > val.immediate()) && (val.immediate() >= 0));
rlwinm(dst, src, 0, val.immediate(), 31, rc);
}
void Assembler::rotlw(Register ra, Register rs, Register rb, RCBit r) {
rlwnm(ra, rs, rb, 0, 31, r);
}
void Assembler::rotlwi(Register ra, Register rs, int sh, RCBit r) {
rlwinm(ra, rs, sh, 0, 31, r);
}
void Assembler::rotrwi(Register ra, Register rs, int sh, RCBit r) {
rlwinm(ra, rs, 32 - sh, 0, 31, r);
}
void Assembler::subi(Register dst, Register src, const Operand& imm) {
addi(dst, src, Operand(-(imm.immediate())));
}
void Assembler::addc(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | ADDCX, dst, src1, src2, o, r);
}
void Assembler::adde(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | ADDEX, dst, src1, src2, o, r);
}
void Assembler::addze(Register dst, Register src1, OEBit o, RCBit r) {
// a special xo_form
emit(EXT2 | ADDZEX | dst.code() * B21 | src1.code() * B16 | o | r);
}
void Assembler::sub(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | SUBFX, dst, src2, src1, o, r);
}
void Assembler::subc(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | SUBFCX, dst, src2, src1, o, r);
}
void Assembler::sube(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | SUBFEX, dst, src2, src1, o, r);
}
void Assembler::subfic(Register dst, Register src, const Operand& imm) {
d_form(SUBFIC, dst, src, imm.immediate(), true);
}
void Assembler::add(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | ADDX, dst, src1, src2, o, r);
}
// Multiply low word
void Assembler::mullw(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | MULLW, dst, src1, src2, o, r);
}
// Multiply hi word
void Assembler::mulhw(Register dst, Register src1, Register src2, RCBit r) {
xo_form(EXT2 | MULHWX, dst, src1, src2, LeaveOE, r);
}
// Multiply hi word unsigned
void Assembler::mulhwu(Register dst, Register src1, Register src2, RCBit r) {
xo_form(EXT2 | MULHWUX, dst, src1, src2, LeaveOE, r);
}
// Divide word
void Assembler::divw(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | DIVW, dst, src1, src2, o, r);
}
// Divide word unsigned
void Assembler::divwu(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | DIVWU, dst, src1, src2, o, r);
}
void Assembler::addi(Register dst, Register src, const Operand& imm) {
DCHECK(src != r0); // use li instead to show intent
d_form(ADDI, dst, src, imm.immediate(), true);
}
void Assembler::addis(Register dst, Register src, const Operand& imm) {
DCHECK(src != r0); // use lis instead to show intent
d_form(ADDIS, dst, src, imm.immediate(), true);
}
void Assembler::addic(Register dst, Register src, const Operand& imm) {
d_form(ADDIC, dst, src, imm.immediate(), true);
}
void Assembler::andi(Register ra, Register rs, const Operand& imm) {
d_form(ANDIx, rs, ra, imm.immediate(), false);
}
void Assembler::andis(Register ra, Register rs, const Operand& imm) {
d_form(ANDISx, rs, ra, imm.immediate(), false);
}
void Assembler::ori(Register ra, Register rs, const Operand& imm) {
d_form(ORI, rs, ra, imm.immediate(), false);
}
void Assembler::oris(Register dst, Register src, const Operand& imm) {
d_form(ORIS, src, dst, imm.immediate(), false);
}
void Assembler::cmpi(Register src1, const Operand& src2, CRegister cr) {
intptr_t imm16 = src2.immediate();
#if V8_TARGET_ARCH_PPC64
int L = 1;
#else
int L = 0;
#endif
DCHECK(is_int16(imm16));
DCHECK(cr.code() >= 0 && cr.code() <= 7);
imm16 &= kImm16Mask;
emit(CMPI | cr.code() * B23 | L * B21 | src1.code() * B16 | imm16);
}
void Assembler::cmpli(Register src1, const Operand& src2, CRegister cr) {
uintptr_t uimm16 = src2.immediate();
#if V8_TARGET_ARCH_PPC64
int L = 1;
#else
int L = 0;
#endif
DCHECK(is_uint16(uimm16));
DCHECK(cr.code() >= 0 && cr.code() <= 7);
uimm16 &= kImm16Mask;
emit(CMPLI | cr.code() * B23 | L * B21 | src1.code() * B16 | uimm16);
}
void Assembler::cmpwi(Register src1, const Operand& src2, CRegister cr) {
intptr_t imm16 = src2.immediate();
int L = 0;
int pos = pc_offset();
DCHECK(is_int16(imm16));
DCHECK(cr.code() >= 0 && cr.code() <= 7);
imm16 &= kImm16Mask;
// For cmpwi against 0, save postition and cr for later examination
// of potential optimization.
if (imm16 == 0 && pos > 0 && last_bound_pos_ != pos) {
optimizable_cmpi_pos_ = pos;
cmpi_cr_ = cr;
}
emit(CMPI | cr.code() * B23 | L * B21 | src1.code() * B16 | imm16);
}
void Assembler::cmplwi(Register src1, const Operand& src2, CRegister cr) {
uintptr_t uimm16 = src2.immediate();
int L = 0;
DCHECK(is_uint16(uimm16));
DCHECK(cr.code() >= 0 && cr.code() <= 7);
uimm16 &= kImm16Mask;
emit(CMPLI | cr.code() * B23 | L * B21 | src1.code() * B16 | uimm16);
}
void Assembler::isel(Register rt, Register ra, Register rb, int cb) {
emit(EXT2 | ISEL | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 |
cb * B6);
}
// Pseudo op - load immediate
void Assembler::li(Register dst, const Operand& imm) {
d_form(ADDI, dst, r0, imm.immediate(), true);
}
void Assembler::lis(Register dst, const Operand& imm) {
d_form(ADDIS, dst, r0, imm.immediate(), true);
}
// Pseudo op - move register
void Assembler::mr(Register dst, Register src) {
// actually or(dst, src, src)
orx(dst, src, src);
}
void Assembler::lbz(Register dst, const MemOperand& src) {
DCHECK(src.ra_ != r0);
d_form(LBZ, dst, src.ra(), src.offset(), true);
}
void Assembler::lhz(Register dst, const MemOperand& src) {
DCHECK(src.ra_ != r0);
d_form(LHZ, dst, src.ra(), src.offset(), true);
}
void Assembler::lwz(Register dst, const MemOperand& src) {
DCHECK(src.ra_ != r0);
d_form(LWZ, dst, src.ra(), src.offset(), true);
}
void Assembler::lwzu(Register dst, const MemOperand& src) {
DCHECK(src.ra_ != r0);
d_form(LWZU, dst, src.ra(), src.offset(), true);
}
void Assembler::lha(Register dst, const MemOperand& src) {
DCHECK(src.ra_ != r0);
d_form(LHA, dst, src.ra(), src.offset(), true);
}
void Assembler::lwa(Register dst, const MemOperand& src) {
#if V8_TARGET_ARCH_PPC64
int offset = src.offset();
DCHECK(src.ra_ != r0);
CHECK(!(offset & 3) && is_int16(offset));
offset = kImm16Mask & offset;
emit(LD | dst.code() * B21 | src.ra().code() * B16 | offset | 2);
#else
lwz(dst, src);
#endif
}
void Assembler::stb(Register dst, const MemOperand& src) {
DCHECK(src.ra_ != r0);
d_form(STB, dst, src.ra(), src.offset(), true);
}
void Assembler::sth(Register dst, const MemOperand& src) {
DCHECK(src.ra_ != r0);
d_form(STH, dst, src.ra(), src.offset(), true);
}
void Assembler::stw(Register dst, const MemOperand& src) {
DCHECK(src.ra_ != r0);
d_form(STW, dst, src.ra(), src.offset(), true);
}
void Assembler::stwu(Register dst, const MemOperand& src) {
DCHECK(src.ra_ != r0);
d_form(STWU, dst, src.ra(), src.offset(), true);
}
void Assembler::neg(Register rt, Register ra, OEBit o, RCBit r) {
emit(EXT2 | NEGX | rt.code() * B21 | ra.code() * B16 | o | r);
}
#if V8_TARGET_ARCH_PPC64
// 64bit specific instructions
void Assembler::ld(Register rd, const MemOperand& src) {
int offset = src.offset();
DCHECK(src.ra_ != r0);
CHECK(!(offset & 3) && is_int16(offset));
offset = kImm16Mask & offset;
emit(LD | rd.code() * B21 | src.ra().code() * B16 | offset);
}
void Assembler::ldu(Register rd, const MemOperand& src) {
int offset = src.offset();
DCHECK(src.ra_ != r0);
CHECK(!(offset & 3) && is_int16(offset));
offset = kImm16Mask & offset;
emit(LD | rd.code() * B21 | src.ra().code() * B16 | offset | 1);
}
void Assembler::std(Register rs, const MemOperand& src) {
int offset = src.offset();
DCHECK(src.ra_ != r0);
CHECK(!(offset & 3) && is_int16(offset));
offset = kImm16Mask & offset;
emit(STD | rs.code() * B21 | src.ra().code() * B16 | offset);
}
void Assembler::stdu(Register rs, const MemOperand& src) {
int offset = src.offset();
DCHECK(src.ra_ != r0);
CHECK(!(offset & 3) && is_int16(offset));
offset = kImm16Mask & offset;
emit(STD | rs.code() * B21 | src.ra().code() * B16 | offset | 1);
}
void Assembler::rldic(Register ra, Register rs, int sh, int mb, RCBit r) {
md_form(EXT5 | RLDIC, ra, rs, sh, mb, r);
}
void Assembler::rldicl(Register ra, Register rs, int sh, int mb, RCBit r) {
md_form(EXT5 | RLDICL, ra, rs, sh, mb, r);
}
void Assembler::rldcl(Register ra, Register rs, Register rb, int mb, RCBit r) {
mds_form(EXT5 | RLDCL, ra, rs, rb, mb, r);
}
void Assembler::rldicr(Register ra, Register rs, int sh, int me, RCBit r) {
md_form(EXT5 | RLDICR, ra, rs, sh, me, r);
}
void Assembler::sldi(Register dst, Register src, const Operand& val, RCBit rc) {
DCHECK((64 > val.immediate()) && (val.immediate() >= 0));
rldicr(dst, src, val.immediate(), 63 - val.immediate(), rc);
}
void Assembler::srdi(Register dst, Register src, const Operand& val, RCBit rc) {
DCHECK((64 > val.immediate()) && (val.immediate() >= 0));
rldicl(dst, src, 64 - val.immediate(), val.immediate(), rc);
}
void Assembler::clrrdi(Register dst, Register src, const Operand& val,
RCBit rc) {
DCHECK((64 > val.immediate()) && (val.immediate() >= 0));
rldicr(dst, src, 0, 63 - val.immediate(), rc);
}
void Assembler::clrldi(Register dst, Register src, const Operand& val,
RCBit rc) {
DCHECK((64 > val.immediate()) && (val.immediate() >= 0));
rldicl(dst, src, 0, val.immediate(), rc);
}
void Assembler::rldimi(Register ra, Register rs, int sh, int mb, RCBit r) {
md_form(EXT5 | RLDIMI, ra, rs, sh, mb, r);
}
void Assembler::sradi(Register ra, Register rs, int sh, RCBit r) {
int sh0_4 = sh & 0x1F;
int sh5 = (sh >> 5) & 0x1;
emit(EXT2 | SRADIX | rs.code() * B21 | ra.code() * B16 | sh0_4 * B11 |
sh5 * B1 | r);
}
void Assembler::rotld(Register ra, Register rs, Register rb, RCBit r) {
rldcl(ra, rs, rb, 0, r);
}
void Assembler::rotldi(Register ra, Register rs, int sh, RCBit r) {
rldicl(ra, rs, sh, 0, r);
}
void Assembler::rotrdi(Register ra, Register rs, int sh, RCBit r) {
rldicl(ra, rs, 64 - sh, 0, r);
}
void Assembler::mulld(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | MULLD, dst, src1, src2, o, r);
}
void Assembler::divd(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | DIVD, dst, src1, src2, o, r);
}
void Assembler::divdu(Register dst, Register src1, Register src2, OEBit o,
RCBit r) {
xo_form(EXT2 | DIVDU, dst, src1, src2, o, r);
}
#endif
int Assembler::instructions_required_for_mov(Register dst,
const Operand& src) const {
bool canOptimize =
!(src.must_output_reloc_info(this) || is_trampoline_pool_blocked());
if (use_constant_pool_for_mov(dst, src, canOptimize)) {
if (ConstantPoolAccessIsInOverflow()) {
return kMovInstructionsConstantPool + 1;
}
return kMovInstructionsConstantPool;
}
DCHECK(!canOptimize);
return kMovInstructionsNoConstantPool;
}
bool Assembler::use_constant_pool_for_mov(Register dst, const Operand& src,
bool canOptimize) const {
if (!FLAG_enable_embedded_constant_pool || !is_constant_pool_available()) {
// If there is no constant pool available, we must use a mov
// immediate sequence.
return false;
}
intptr_t value = src.immediate();
#if V8_TARGET_ARCH_PPC64
bool allowOverflow = !((canOptimize && is_int32(value)) || dst == r0);
#else
bool allowOverflow = !(canOptimize || dst == r0);
#endif
if (canOptimize && is_int16(value)) {
// Prefer a single-instruction load-immediate.
return false;
}
if (!allowOverflow && ConstantPoolAccessIsInOverflow()) {
// Prefer non-relocatable two-instruction bitwise-mov32 over
// overflow sequence.
return false;
}
return true;
}
void Assembler::EnsureSpaceFor(int space_needed) {
if (buffer_space() <= (kGap + space_needed)) {
GrowBuffer(space_needed);
}
}
bool Operand::must_output_reloc_info(const Assembler* assembler) const {
if (rmode_ == RelocInfo::EXTERNAL_REFERENCE) {
if (assembler != nullptr && assembler->predictable_code_size()) return true;
return assembler->options().record_reloc_info_for_serialization;
} else if (RelocInfo::IsNone(rmode_)) {
return false;
}
return true;
}
// Primarily used for loading constants
// This should really move to be in macro-assembler as it
// is really a pseudo instruction
// Some usages of this intend for a FIXED_SEQUENCE to be used
// Todo - break this dependency so we can optimize mov() in general
// and only use the generic version when we require a fixed sequence
void Assembler::mov(Register dst, const Operand& src) {
intptr_t value;
if (src.IsHeapObjectRequest()) {
RequestHeapObject(src.heap_object_request());
value = 0;
} else {
value = src.immediate();
}
bool relocatable = src.must_output_reloc_info(this);
bool canOptimize;
canOptimize =
!(relocatable || (is_trampoline_pool_blocked() && !is_int16(value)));
if (!src.IsHeapObjectRequest() &&
use_constant_pool_for_mov(dst, src, canOptimize)) {
DCHECK(is_constant_pool_available());
if (relocatable) {
RecordRelocInfo(src.rmode_);
}
ConstantPoolEntry::Access access = ConstantPoolAddEntry(src.rmode_, value);
#if V8_TARGET_ARCH_PPC64
if (access == ConstantPoolEntry::OVERFLOWED) {
addis(dst, kConstantPoolRegister, Operand::Zero());
ld(dst, MemOperand(dst, 0));
} else {
ld(dst, MemOperand(kConstantPoolRegister, 0));
}
#else
if (access == ConstantPoolEntry::OVERFLOWED) {
addis(dst, kConstantPoolRegister, Operand::Zero());
lwz(dst, MemOperand(dst, 0));
} else {
lwz(dst, MemOperand(kConstantPoolRegister, 0));
}
#endif
return;
}
if (canOptimize) {
if (is_int16(value)) {
li(dst, Operand(value));
} else {
uint16_t u16;
#if V8_TARGET_ARCH_PPC64
if (is_int32(value)) {
#endif
lis(dst, Operand(value >> 16));
#if V8_TARGET_ARCH_PPC64
} else {
if (is_int48(value)) {
li(dst, Operand(value >> 32));
} else {
lis(dst, Operand(value >> 48));
u16 = ((value >> 32) & 0xFFFF);
if (u16) {
ori(dst, dst, Operand(u16));
}
}
sldi(dst, dst, Operand(32));
u16 = ((value >> 16) & 0xFFFF);
if (u16) {
oris(dst, dst, Operand(u16));
}
}
#endif
u16 = (value & 0xFFFF);
if (u16) {
ori(dst, dst, Operand(u16));
}
}
return;
}
DCHECK(!canOptimize);
if (relocatable) {
RecordRelocInfo(src.rmode_);
}
bitwise_mov(dst, value);
}
void Assembler::bitwise_mov(Register dst, intptr_t value) {
BlockTrampolinePoolScope block_trampoline_pool(this);
#if V8_TARGET_ARCH_PPC64
int32_t hi_32 = static_cast<int32_t>(value >> 32);
int32_t lo_32 = static_cast<int32_t>(value);
int hi_word = static_cast<int>(hi_32 >> 16);
int lo_word = static_cast<int>(hi_32 & 0xFFFF);
lis(dst, Operand(SIGN_EXT_IMM16(hi_word)));
ori(dst, dst, Operand(lo_word));
sldi(dst, dst, Operand(32));
hi_word = static_cast<int>(((lo_32 >> 16) & 0xFFFF));
lo_word = static_cast<int>(lo_32 & 0xFFFF);
oris(dst, dst, Operand(hi_word));
ori(dst, dst, Operand(lo_word));
#else
int hi_word = static_cast<int>(value >> 16);
int lo_word = static_cast<int>(value & 0xFFFF);
lis(dst, Operand(SIGN_EXT_IMM16(hi_word)));
ori(dst, dst, Operand(lo_word));
#endif
}
void Assembler::bitwise_mov32(Register dst, int32_t value) {
BlockTrampolinePoolScope block_trampoline_pool(this);
int hi_word = static_cast<int>(value >> 16);
int lo_word = static_cast<int>(value & 0xFFFF);
lis(dst, Operand(SIGN_EXT_IMM16(hi_word)));
ori(dst, dst, Operand(lo_word));
}
void Assembler::bitwise_add32(Register dst, Register src, int32_t value) {
BlockTrampolinePoolScope block_trampoline_pool(this);
if (is_int16(value)) {
addi(dst, src, Operand(value));
nop();
} else {
int hi_word = static_cast<int>(value >> 16);
int lo_word = static_cast<int>(value & 0xFFFF);
if (lo_word & 0x8000) hi_word++;
addis(dst, src, Operand(SIGN_EXT_IMM16(hi_word)));
addic(dst, dst, Operand(SIGN_EXT_IMM16(lo_word)));
}
}
void Assembler::mov_label_offset(Register dst, Label* label) {
int position = link(label);
if (label->is_bound()) {
// Load the position of the label relative to the generated code object.
mov(dst, Operand(position + Code::kHeaderSize - kHeapObjectTag));
} else {
// Encode internal reference to unbound label. We use a dummy opcode
// such that it won't collide with any opcode that might appear in the
// label's chain. Encode the destination register in the 2nd instruction.
int link = position - pc_offset();
DCHECK_EQ(0, link & 3);
link >>= 2;
DCHECK(is_int26(link));
// When the label is bound, these instructions will be patched
// with a 2 instruction mov sequence that will load the
// destination register with the position of the label from the
// beginning of the code.
//
// target_at extracts the link and target_at_put patches the instructions.
BlockTrampolinePoolScope block_trampoline_pool(this);
emit(kUnboundMovLabelOffsetOpcode | (link & kImm26Mask));
emit(dst.code());
}
}
void Assembler::add_label_offset(Register dst, Register base, Label* label,
int delta) {
int position = link(label);
if (label->is_bound()) {
// dst = base + position + delta
position += delta;
bitwise_add32(dst, base, position);
} else {
// Encode internal reference to unbound label. We use a dummy opcode
// such that it won't collide with any opcode that might appear in the
// label's chain. Encode the operands in the 2nd instruction.
int link = position - pc_offset();
DCHECK_EQ(0, link & 3);
link >>= 2;
DCHECK(is_int26(link));
BlockTrampolinePoolScope block_trampoline_pool(this);
emit((is_int22(delta) ? kUnboundAddLabelOffsetOpcode
: kUnboundAddLabelLongOffsetOpcode) |
(link & kImm26Mask));
emit(dst.code() * B27 | base.code() * B22 | (delta & kImm22Mask));
if (!is_int22(delta)) {
emit(delta);
}
}
}
void Assembler::mov_label_addr(Register dst, Label* label) {
CheckBuffer();
RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE_ENCODED);
int position = link(label);
if (label->is_bound()) {
// Keep internal references relative until EmitRelocations.
bitwise_mov(dst, position);
} else {
// Encode internal reference to unbound label. We use a dummy opcode
// such that it won't collide with any opcode that might appear in the
// label's chain. Encode the destination register in the 2nd instruction.
int link = position - pc_offset();
DCHECK_EQ(0, link & 3);
link >>= 2;
DCHECK(is_int26(link));
// When the label is bound, these instructions will be patched
// with a multi-instruction mov sequence that will load the
// destination register with the address of the label.
//
// target_at extracts the link and target_at_put patches the instructions.
BlockTrampolinePoolScope block_trampoline_pool(this);
emit(kUnboundMovLabelAddrOpcode | (link & kImm26Mask));
emit(dst.code());
DCHECK_GE(kMovInstructionsNoConstantPool, 2);
for (int i = 0; i < kMovInstructionsNoConstantPool - 2; i++) nop();
}
}
void Assembler::emit_label_addr(Label* label) {
CheckBuffer();
RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE);
int position = link(label);
if (label->is_bound()) {
// Keep internal references relative until EmitRelocations.
dp(position);
} else {
// Encode internal reference to unbound label. We use a dummy opcode
// such that it won't collide with any opcode that might appear in the
// label's chain.
int link = position - pc_offset();
DCHECK_EQ(0, link & 3);
link >>= 2;
DCHECK(is_int26(link));
// When the label is bound, the instruction(s) will be patched
// as a jump table entry containing the label address. target_at extracts
// the link and target_at_put patches the instruction(s).
BlockTrampolinePoolScope block_trampoline_pool(this);
emit(kUnboundJumpTableEntryOpcode | (link & kImm26Mask));
#if V8_TARGET_ARCH_PPC64
nop();
#endif
}
}
// Special register instructions
void Assembler::crxor(int bt, int ba, int bb) {
emit(EXT1 | CRXOR | bt * B21 | ba * B16 | bb * B11);
}
void Assembler::creqv(int bt, int ba, int bb) {
emit(EXT1 | CREQV | bt * B21 | ba * B16 | bb * B11);
}
void Assembler::mflr(Register dst) {
emit(EXT2 | MFSPR | dst.code() * B21 | 256 << 11); // Ignore RC bit
}
void Assembler::mtlr(Register src) {
emit(EXT2 | MTSPR | src.code() * B21 | 256 << 11); // Ignore RC bit
}
void Assembler::mtctr(Register src) {
emit(EXT2 | MTSPR | src.code() * B21 | 288 << 11); // Ignore RC bit
}
void Assembler::mtxer(Register src) {
emit(EXT2 | MTSPR | src.code() * B21 | 32 << 11);
}
void Assembler::mcrfs(CRegister cr, FPSCRBit bit) {
DCHECK_LT(static_cast<int>(bit), 32);
int bf = cr.code();
int bfa = bit / CRWIDTH;
emit(EXT4 | MCRFS | bf * B23 | bfa * B18);
}
void Assembler::mfcr(Register dst) { emit(EXT2 | MFCR | dst.code() * B21); }
void Assembler::mtcrf(Register src, uint8_t FXM) {
emit(MTCRF | src.code() * B21 | FXM * B12);
}
#if V8_TARGET_ARCH_PPC64
void Assembler::mffprd(Register dst, DoubleRegister src) {
emit(EXT2 | MFVSRD | src.code() * B21 | dst.code() * B16);
}
void Assembler::mffprwz(Register dst, DoubleRegister src) {
emit(EXT2 | MFVSRWZ | src.code() * B21 | dst.code() * B16);
}
void Assembler::mtfprd(DoubleRegister dst, Register src) {
emit(EXT2 | MTVSRD | dst.code() * B21 | src.code() * B16);
}
void Assembler::mtfprwz(DoubleRegister dst, Register src) {
emit(EXT2 | MTVSRWZ | dst.code() * B21 | src.code() * B16);
}
void Assembler::mtfprwa(DoubleRegister dst, Register src) {
emit(EXT2 | MTVSRWA | dst.code() * B21 | src.code() * B16);
}
#endif
// Exception-generating instructions and debugging support.
// Stops with a non-negative code less than kNumOfWatchedStops support
// enabling/disabling and a counter feature. See simulator-ppc.h .
void Assembler::stop(Condition cond, int32_t code, CRegister cr) {
if (cond != al) {
Label skip;
b(NegateCondition(cond), &skip, cr);
bkpt(0);
bind(&skip);
} else {
bkpt(0);
}
}
void Assembler::bkpt(uint32_t imm16) { emit(0x7D821008); }
void Assembler::dcbf(Register ra, Register rb) {
emit(EXT2 | DCBF | ra.code() * B16 | rb.code() * B11);
}
void Assembler::sync() { emit(EXT2 | SYNC); }
void Assembler::lwsync() { emit(EXT2 | SYNC | 1 * B21); }
void Assembler::icbi(Register ra, Register rb) {
emit(EXT2 | ICBI | ra.code() * B16 | rb.code() * B11);
}
void Assembler::isync() { emit(EXT1 | ISYNC); }
// Floating point support
void Assembler::lfd(const DoubleRegister frt, const MemOperand& src) {
int offset = src.offset();
Register ra = src.ra();
DCHECK(ra != r0);
CHECK(is_int16(offset));
int imm16 = offset & kImm16Mask;
// could be x_form instruction with some casting magic
emit(LFD | frt.code() * B21 | ra.code() * B16 | imm16);
}
void Assembler::lfdu(const DoubleRegister frt, const MemOperand& src) {
int offset = src.offset();
Register ra = src.ra();
DCHECK(ra != r0);
CHECK(is_int16(offset));
int imm16 = offset & kImm16Mask;
// could be x_form instruction with some casting magic
emit(LFDU | frt.code() * B21 | ra.code() * B16 | imm16);
}
void Assembler::lfs(const DoubleRegister frt, const MemOperand& src) {
int offset = src.offset();
Register ra = src.ra();
CHECK(is_int16(offset));
DCHECK(ra != r0);
int imm16 = offset & kImm16Mask;
// could be x_form instruction with some casting magic
emit(LFS | frt.code() * B21 | ra.code() * B16 | imm16);
}
void Assembler::lfsu(const DoubleRegister frt, const MemOperand& src) {
int offset = src.offset();
Register ra = src.ra();
CHECK(is_int16(offset));
DCHECK(ra != r0);
int imm16 = offset & kImm16Mask;
// could be x_form instruction with some casting magic
emit(LFSU | frt.code() * B21 | ra.code() * B16 | imm16);
}
void Assembler::stfd(const DoubleRegister frs, const MemOperand& src) {
int offset = src.offset();
Register ra = src.ra();
CHECK(is_int16(offset));
DCHECK(ra != r0);
int imm16 = offset & kImm16Mask;
// could be x_form instruction with some casting magic
emit(STFD | frs.code() * B21 | ra.code() * B16 | imm16);
}
void Assembler::stfdu(const DoubleRegister frs, const MemOperand& src) {
int offset = src.offset();
Register ra = src.ra();
CHECK(is_int16(offset));
DCHECK(ra != r0);
int imm16 = offset & kImm16Mask;
// could be x_form instruction with some casting magic
emit(STFDU | frs.code() * B21 | ra.code() * B16 | imm16);
}
void Assembler::stfs(const DoubleRegister frs, const MemOperand& src) {
int offset = src.offset();
Register ra = src.ra();
CHECK(is_int16(offset));
DCHECK(ra != r0);
int imm16 = offset & kImm16Mask;
// could be x_form instruction with some casting magic
emit(STFS | frs.code() * B21 | ra.code() * B16 | imm16);
}
void Assembler::stfsu(const DoubleRegister frs, const MemOperand& src) {
int offset = src.offset();
Register ra = src.ra();
CHECK(is_int16(offset));
DCHECK(ra != r0);
int imm16 = offset & kImm16Mask;
// could be x_form instruction with some casting magic
emit(STFSU | frs.code() * B21 | ra.code() * B16 | imm16);
}
void Assembler::fsub(const DoubleRegister frt, const DoubleRegister fra,
const DoubleRegister frb, RCBit rc) {
a_form(EXT4 | FSUB, frt, fra, frb, rc);
}
void Assembler::fadd(const DoubleRegister frt, const DoubleRegister fra,
const DoubleRegister frb, RCBit rc) {
a_form(EXT4 | FADD, frt, fra, frb, rc);
}
void Assembler::fmul(const DoubleRegister frt, const DoubleRegister fra,
const DoubleRegister frc, RCBit rc) {
emit(EXT4 | FMUL | frt.code() * B21 | fra.code() * B16 | frc.code() * B6 |
rc);
}
void Assembler::fdiv(const DoubleRegister frt, const DoubleRegister fra,
const DoubleRegister frb, RCBit rc) {
a_form(EXT4 | FDIV, frt, fra, frb, rc);
}
void Assembler::fcmpu(const DoubleRegister fra, const DoubleRegister frb,
CRegister cr) {
DCHECK(cr.code() >= 0 && cr.code() <= 7);
emit(EXT4 | FCMPU | cr.code() * B23 | fra.code() * B16 | frb.code() * B11);
}
void Assembler::fmr(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FMR | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fctiwz(const DoubleRegister frt, const DoubleRegister frb) {
emit(EXT4 | FCTIWZ | frt.code() * B21 | frb.code() * B11);
}
void Assembler::fctiw(const DoubleRegister frt, const DoubleRegister frb) {
emit(EXT4 | FCTIW | frt.code() * B21 | frb.code() * B11);
}
void Assembler::fctiwuz(const DoubleRegister frt, const DoubleRegister frb) {
emit(EXT4 | FCTIWUZ | frt.code() * B21 | frb.code() * B11);
}
void Assembler::frin(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FRIN | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::friz(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FRIZ | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::frip(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FRIP | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::frim(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FRIM | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::frsp(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FRSP | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fcfid(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FCFID | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fcfidu(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FCFIDU | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fcfidus(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT3 | FCFIDUS | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fcfids(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT3 | FCFIDS | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fctid(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FCTID | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fctidz(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FCTIDZ | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fctidu(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FCTIDU | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fctiduz(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FCTIDUZ | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fsel(const DoubleRegister frt, const DoubleRegister fra,
const DoubleRegister frc, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FSEL | frt.code() * B21 | fra.code() * B16 | frb.code() * B11 |
frc.code() * B6 | rc);
}
void Assembler::fneg(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FNEG | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::mtfsb0(FPSCRBit bit, RCBit rc) {
DCHECK_LT(static_cast<int>(bit), 32);
int bt = bit;
emit(EXT4 | MTFSB0 | bt * B21 | rc);
}
void Assembler::mtfsb1(FPSCRBit bit, RCBit rc) {
DCHECK_LT(static_cast<int>(bit), 32);
int bt = bit;
emit(EXT4 | MTFSB1 | bt * B21 | rc);
}
void Assembler::mtfsfi(int bf, int immediate, RCBit rc) {
emit(EXT4 | MTFSFI | bf * B23 | immediate * B12 | rc);
}
void Assembler::mffs(const DoubleRegister frt, RCBit rc) {
emit(EXT4 | MFFS | frt.code() * B21 | rc);
}
void Assembler::mtfsf(const DoubleRegister frb, bool L, int FLM, bool W,
RCBit rc) {
emit(EXT4 | MTFSF | frb.code() * B11 | W * B16 | FLM * B17 | L * B25 | rc);
}
void Assembler::fsqrt(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FSQRT | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fabs(const DoubleRegister frt, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FABS | frt.code() * B21 | frb.code() * B11 | rc);
}
void Assembler::fmadd(const DoubleRegister frt, const DoubleRegister fra,
const DoubleRegister frc, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FMADD | frt.code() * B21 | fra.code() * B16 | frb.code() * B11 |
frc.code() * B6 | rc);
}
void Assembler::fmsub(const DoubleRegister frt, const DoubleRegister fra,
const DoubleRegister frc, const DoubleRegister frb,
RCBit rc) {
emit(EXT4 | FMSUB | frt.code() * B21 | fra.code() * B16 | frb.code() * B11 |
frc.code() * B6 | rc);
}
// Vector instructions
void Assembler::mfvsrd(const Register ra, const Simd128Register rs) {
int SX = 1;
emit(MFVSRD | rs.code() * B21 | ra.code() * B16 | SX);
}
void Assembler::mfvsrwz(const Register ra, const Simd128Register rs) {
int SX = 1;
emit(MFVSRWZ | rs.code() * B21 | ra.code() * B16 | SX);
}
void Assembler::mtvsrd(const Simd128Register rt, const Register ra) {
int TX = 1;
emit(MTVSRD | rt.code() * B21 | ra.code() * B16 | TX);
}
void Assembler::mtvsrdd(const Simd128Register rt, const Register ra,
const Register rb) {
int TX = 1;
emit(MTVSRDD | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | TX);
}
void Assembler::lxvd(const Simd128Register rt, const MemOperand& src) {
int TX = 1;
emit(LXVD | rt.code() * B21 | src.ra().code() * B16 | src.rb().code() * B11 |
TX);
}
void Assembler::lxvx(const Simd128Register rt, const MemOperand& src) {
int TX = 1;
emit(LXVX | rt.code() * B21 | src.ra().code() * B16 | src.rb().code() * B11 |
TX);
}
void Assembler::lxsdx(const Simd128Register rt, const MemOperand& src) {
int TX = 1;
emit(LXSDX | rt.code() * B21 | src.ra().code() * B16 | src.rb().code() * B11 |
TX);
}
void Assembler::lxsibzx(const Simd128Register rt, const MemOperand& src) {
int TX = 1;
emit(LXSIBZX | rt.code() * B21 | src.ra().code() * B16 |
src.rb().code() * B11 | TX);
}
void Assembler::lxsihzx(const Simd128Register rt, const MemOperand& src) {
int TX = 1;
emit(LXSIHZX | rt.code() * B21 | src.ra().code() * B16 |
src.rb().code() * B11 | TX);
}
void Assembler::lxsiwzx(const Simd128Register rt, const MemOperand& src) {
int TX = 1;
emit(LXSIWZX | rt.code() * B21 | src.ra().code() * B16 |
src.rb().code() * B11 | TX);
}
void Assembler::stxsdx(const Simd128Register rs, const MemOperand& src) {
int SX = 1;
emit(STXSDX | rs.code() * B21 | src.ra().code() * B16 |
src.rb().code() * B11 | SX);
}
void Assembler::stxsibx(const Simd128Register rs, const MemOperand& src) {
int SX = 1;
emit(STXSIBX | rs.code() * B21 | src.ra().code() * B16 |
src.rb().code() * B11 | SX);
}
void Assembler::stxsihx(const Simd128Register rs, const MemOperand& src) {
int SX = 1;
emit(STXSIHX | rs.code() * B21 | src.ra().code() * B16 |
src.rb().code() * B11 | SX);
}
void Assembler::stxsiwx(const Simd128Register rs, const MemOperand& src) {
int SX = 1;
emit(STXSIWX | rs.code() * B21 | src.ra().code() * B16 |
src.rb().code() * B11 | SX);
}
void Assembler::stxvd(const Simd128Register rt, const MemOperand& dst) {
int SX = 1;
emit(STXVD | rt.code() * B21 | dst.ra().code() * B16 | dst.rb().code() * B11 |
SX);
}
void Assembler::stxvx(const Simd128Register rt, const MemOperand& dst) {
int SX = 1;
emit(STXVX | rt.code() * B21 | dst.ra().code() * B16 | dst.rb().code() * B11 |
SX);
}
void Assembler::xxspltib(const Simd128Register rt, const Operand& imm) {
int TX = 1;
CHECK(is_uint8(imm.immediate()));
emit(XXSPLTIB | rt.code() * B21 | imm.immediate() * B11 | TX);
}
// Pseudo instructions.
void Assembler::nop(int type) {
Register reg = r0;
switch (type) {
case NON_MARKING_NOP:
reg = r0;
break;
case GROUP_ENDING_NOP:
reg = r2;
break;
case DEBUG_BREAK_NOP:
reg = r3;
break;
default:
UNIMPLEMENTED();
}
ori(reg, reg, Operand::Zero());
}
bool Assembler::IsNop(Instr instr, int type) {
int reg = 0;
switch (type) {
case NON_MARKING_NOP:
reg = 0;
break;
case GROUP_ENDING_NOP:
reg = 2;
break;
case DEBUG_BREAK_NOP:
reg = 3;
break;
default:
UNIMPLEMENTED();
}
return instr == (ORI | reg * B21 | reg * B16);
}
void Assembler::GrowBuffer(int needed) {
DCHECK_EQ(buffer_start_, buffer_->start());
// Compute new buffer size.
int old_size = buffer_->size();
int new_size = std::min(2 * old_size, old_size + 1 * MB);
int space = buffer_space() + (new_size - old_size);
new_size += (space < needed) ? needed - space : 0;
// Some internal data structures overflow for very large buffers,
// they must ensure that kMaximalBufferSize is not too large.
if (new_size > kMaximalBufferSize) {
V8::FatalProcessOutOfMemory(nullptr, "Assembler::GrowBuffer");
}
// Set up new buffer.
std::unique_ptr<AssemblerBuffer> new_buffer = buffer_->Grow(new_size);
DCHECK_EQ(new_size, new_buffer->size());
byte* new_start = new_buffer->start();
// Copy the data.
intptr_t pc_delta = new_start - buffer_start_;
intptr_t rc_delta = (new_start + new_size) - (buffer_start_ + old_size);
size_t reloc_size = (buffer_start_ + old_size) - reloc_info_writer.pos();
MemMove(new_start, buffer_start_, pc_offset());
MemMove(reloc_info_writer.pos() + rc_delta, reloc_info_writer.pos(),
reloc_size);
// Switch buffers.
buffer_ = std::move(new_buffer);
buffer_start_ = new_start;
pc_ += pc_delta;
reloc_info_writer.Reposition(reloc_info_writer.pos() + rc_delta,
reloc_info_writer.last_pc() + pc_delta);
// None of our relocation types are pc relative pointing outside the code
// buffer nor pc absolute pointing inside the code buffer, so there is no need
// to relocate any emitted relocation entries.
}
void Assembler::db(uint8_t data) {
CheckBuffer();
*reinterpret_cast<uint8_t*>(pc_) = data;
pc_ += sizeof(uint8_t);
}
void Assembler::dd(uint32_t data, RelocInfo::Mode rmode) {
CheckBuffer();
if (!RelocInfo::IsNone(rmode)) {
DCHECK(RelocInfo::IsDataEmbeddedObject(rmode));
RecordRelocInfo(rmode);
}
*reinterpret_cast<uint32_t*>(pc_) = data;
pc_ += sizeof(uint32_t);
}
void Assembler::dq(uint64_t value, RelocInfo::Mode rmode) {
CheckBuffer();
if (!RelocInfo::IsNone(rmode)) {
DCHECK(RelocInfo::IsDataEmbeddedObject(rmode));
RecordRelocInfo(rmode);
}
*reinterpret_cast<uint64_t*>(pc_) = value;
pc_ += sizeof(uint64_t);
}
void Assembler::dp(uintptr_t data, RelocInfo::Mode rmode) {
CheckBuffer();
if (!RelocInfo::IsNone(rmode)) {
DCHECK(RelocInfo::IsDataEmbeddedObject(rmode));
RecordRelocInfo(rmode);
}
*reinterpret_cast<uintptr_t*>(pc_) = data;
pc_ += sizeof(uintptr_t);
}
void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) {
if (!ShouldRecordRelocInfo(rmode)) return;
DeferredRelocInfo rinfo(pc_offset(), rmode, data);
relocations_.push_back(rinfo);
}
void Assembler::EmitRelocations() {
EnsureSpaceFor(relocations_.size() * kMaxRelocSize);
for (std::vector<DeferredRelocInfo>::iterator it = relocations_.begin();
it != relocations_.end(); it++) {
RelocInfo::Mode rmode = it->rmode();
Address pc = reinterpret_cast<Address>(buffer_start_) + it->position();
RelocInfo rinfo(pc, rmode, it->data(), Code());
// Fix up internal references now that they are guaranteed to be bound.
if (RelocInfo::IsInternalReference(rmode)) {
// Jump table entry
intptr_t pos = static_cast<intptr_t>(Memory<Address>(pc));
Memory<Address>(pc) = reinterpret_cast<Address>(buffer_start_) + pos;
} else if (RelocInfo::IsInternalReferenceEncoded(rmode)) {
// mov sequence
intptr_t pos = static_cast<intptr_t>(target_address_at(pc, kNullAddress));
set_target_address_at(pc, 0,
reinterpret_cast<Address>(buffer_start_) + pos,
SKIP_ICACHE_FLUSH);
}
reloc_info_writer.Write(&rinfo);
}
}
void Assembler::BlockTrampolinePoolFor(int instructions) {
BlockTrampolinePoolBefore(pc_offset() + instructions * kInstrSize);
}
void Assembler::CheckTrampolinePool() {
// Some small sequences of instructions must not be broken up by the
// insertion of a trampoline pool; such sequences are protected by setting
// either trampoline_pool_blocked_nesting_ or no_trampoline_pool_before_,
// which are both checked here. Also, recursive calls to CheckTrampolinePool
// are blocked by trampoline_pool_blocked_nesting_.
if (trampoline_pool_blocked_nesting_ > 0) return;
if (pc_offset() < no_trampoline_pool_before_) {
next_trampoline_check_ = no_trampoline_pool_before_;
return;
}
DCHECK(!trampoline_emitted_);
if (tracked_branch_count_ > 0) {
int size = tracked_branch_count_ * kInstrSize;
// As we are only going to emit trampoline once, we need to prevent any
// further emission.
trampoline_emitted_ = true;
next_trampoline_check_ = kMaxInt;
// First we emit jump, then we emit trampoline pool.
b(size + kInstrSize, LeaveLK);
for (int i = size; i > 0; i -= kInstrSize) {
b(i, LeaveLK);
}
trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_);
}
}
PatchingAssembler::PatchingAssembler(const AssemblerOptions& options,
byte* address, int instructions)
: Assembler(options, ExternalAssemblerBuffer(
address, instructions * kInstrSize + kGap)) {
DCHECK_EQ(reloc_info_writer.pos(), buffer_start_ + buffer_->size());
}
PatchingAssembler::~PatchingAssembler() {
// Check that the code was patched as expected.
DCHECK_EQ(pc_, buffer_start_ + buffer_->size() - kGap);
DCHECK_EQ(reloc_info_writer.pos(), buffer_start_ + buffer_->size());
}
UseScratchRegisterScope::UseScratchRegisterScope(Assembler* assembler)
: assembler_(assembler),
old_available_(*assembler->GetScratchRegisterList()) {}
UseScratchRegisterScope::~UseScratchRegisterScope() {
*assembler_->GetScratchRegisterList() = old_available_;
}
Register UseScratchRegisterScope::Acquire() {
RegList* available = assembler_->GetScratchRegisterList();
DCHECK_NOT_NULL(available);
DCHECK_NE(*available, 0);
int index = static_cast<int>(base::bits::CountTrailingZeros32(*available));
Register reg = Register::from_code(index);
*available &= ~reg.bit();
return reg;
}
} // namespace internal
} // namespace v8
#endif // V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64
| [
"[email protected]"
] | |
a5e615327dcf3b35b1b3e610dac1565db2a38b88 | 2c6c535e2fab425e67cbaf0b869f47b0154126d8 | /Leetcode/9-Palindrome-Number.cpp | 260824e52cba5e667dad2bf4cc8eb35c0f82cac8 | [] | no_license | girish004/Leetcode | 8bf8ce952943b5ee77a3c0fe2febd1c5647ff0eb | 95e836c741977104eff8093d57f061154c5a48a6 | refs/heads/main | 2023-03-11T21:56:36.110629 | 2021-02-25T10:34:20 | 2021-02-25T10:34:20 | 300,388,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | cpp | class Solution {
public:
bool isPalindrome(int x) {
if(x<0)
{
return false;
}
else
{
long long int y=0,rem=0,num=x;
while(x)
{
y=y*10;
rem=x%10;
y=y+rem;
x=x/10;
}
if(num==y) return true;
else return false;
}
}
}; | [
"[email protected]"
] | |
e4e4ea0a86bb5ed65f29b6036b010c1821a6a98f | 4b0a0793238d31413b95b71b3af8fc37ac883427 | /libcef_dll/cpptoc/print_handler_cpptoc.h | 068178739dbfc72fe893de1c2cd34bdeecb673f9 | [
"BSD-3-Clause"
] | permissive | sarthak-saxena/cef_node_webkit | a408c8b4b620923e5546dab5d05c7431de7e81f4 | cca786066cdc635d2bcfb67315a70a1c40c5d77a | refs/heads/master | 2023-05-04T22:09:59.270934 | 2021-05-16T14:19:43 | 2021-05-16T14:19:43 | 367,562,455 | 1 | 0 | NOASSERTION | 2021-05-15T07:04:05 | 2021-05-15T06:58:07 | C++ | UTF-8 | C++ | false | false | 1,404 | h | // Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=525179c2c2bf4727855e0fa8610fba5ec050b19d$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_
#pragma once
#if !defined(WRAPPING_CEF_SHARED)
#error This file can be included wrapper-side only
#endif
#include "include/capi/cef_print_handler_capi.h"
#include "include/cef_print_handler.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed wrapper-side only.
class CefPrintHandlerCppToC : public CefCppToCRefCounted<CefPrintHandlerCppToC,
CefPrintHandler,
cef_print_handler_t> {
public:
CefPrintHandlerCppToC();
virtual ~CefPrintHandlerCppToC();
};
#endif // CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_
| [
"[email protected]"
] | |
f35515a2dd2b2216eaccf62238fe430f9c5e3a21 | b4f42eed62aa7ef0e28f04c1f455f030115ec58e | /messagingfw/msgtestfw/TestActions/Email/Common/src/CMtfTestActionLaunchAutoSend.cpp | 873bb1a32dbb0761ae71cd8ad4e904d56d06592d | [] | no_license | SymbianSource/oss.FCL.sf.mw.messagingmw | 6addffd79d854f7a670cbb5d89341b0aa6e8c849 | 7af85768c2d2bc370cbb3b95e01103f7b7577455 | refs/heads/master | 2021-01-17T16:45:41.697969 | 2010-11-03T17:11:46 | 2010-11-03T17:11:46 | 71,851,820 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,274 | cpp | // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// __ACTION_INFO_BEGIN__
// [Action Name]
// LaunchAutoSend
// [Action Parameters]
// TMsvId smtpServiceId <input>: Value of the Smtp Service Id.
// [Action Description]
// Launches LaunchAutoSend.exe passing SMTP Service Id as parameter.
// The LaunchAutoSend.exe is developed for performing the Capability checking implemented
// in the AutoSend.exe. LaunchAutoSend.exe in turn launches the AutoSend.exe and
// returns the result of the AutoSend.exe execution to this Test Action.
// The LaunchAutoSend.exe is expected to be present under C:\System\Programs\ directory
// The Test Action checks the AutoSend exe's completion result and verifies it with
// the expected value that is provided as an input to the Test Action
// [APIs Used]
// RProcess::Create
// RProcess::Resume
// RProcess::Close
// __ACTION_INFO_END__
//
//
// System includes
#include <msvstd.h>
#include <e32std.h>
#include <imcmutil.h>
#include <e32cmn.h>
// User includes
#include "CMtfTestActionLaunchAutoSend.h"
#include "CMtfTestCase.h"
#include "CMtfTestActionParameters.h"
class TDummyMsvSessionObserver: public MMsvSessionObserver
{
public:
void HandleSessionEventL(TMsvSessionEvent,TAny*,TAny*,TAny*) {};
};
// Path of the LaunchAutoSend.exe
_LIT(KMsvLaunchAutoSend, "LaunchAutoSend.exe");
// UID of LaunchAutoSend.exe
const TUid KMsvLaunchAutoSendExeUid = {0x10204283};
/**
Function : NewL
Description :
@internalTechnology
@param : aTestCase :Reference to the Test case
@param : aActionParams :Test Action parameters
@return : CMtfTestAction* :a base class pointer to the newly created object
@pre none
@post none
*/
CMtfTestAction* CMtfTestActionLaunchAutoSend::NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters)
{
CMtfTestActionLaunchAutoSend* self = new (ELeave) CMtfTestActionLaunchAutoSend(aTestCase);
CleanupStack::PushL(self);
self->ConstructL(aActionParameters);
CleanupStack::Pop(self);
return self;
}
/**
Function : CMtfTestActionLaunchAutoSend
Description : Constructor
@internalTechnology
@param : aTestCase - CMtfTestCase for the CMtfTestAction base class
@pre none
@post none
*/
CMtfTestActionLaunchAutoSend::CMtfTestActionLaunchAutoSend(CMtfTestCase& aTestCase)
: CMtfSynchronousTestAction(aTestCase)
{
}
/**
Function : ~CMtfTestActionLaunchAutoSend
Description : Destructor
@internalTechnology
*/
CMtfTestActionLaunchAutoSend::~CMtfTestActionLaunchAutoSend()
{
}
/**
Function : ExecuteActionL
Description : Starts the LaunchAutoSend.exe, and waits for the completion of the
process. The process's exit reason is then compared with the expected value, fails
the test if the process's exit reason does not match with the expected value.
@internalTechnology
@param : none
@return : void
@pre : LauchAutoSend.exe is available in c:\system\programs\ directory
@post none
*/
void CMtfTestActionLaunchAutoSend::ExecuteActionL()
{
TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionLaunchAutoSend);
// Get Test Action input parameters
// SMTP Service Id
TMsvId paramSmtpServiceId = ObtainValueParameterL<TMsvId>(TestCase(), ActionParameters().Parameter(0));
// Expected result
TInt paramExpectedResult = ObtainValueParameterL<TInt>(TestCase(), ActionParameters().Parameter(1));
//LaunchAutoSend Exe name if new one is created with different capabilites
HBufC* paramLaunchAutoSendExeName = ObtainParameterReferenceL<HBufC>(TestCase(),ActionParameters().Parameter(2), NULL);
// Check to see if enforcement is on - only if not expecting KErrNone...
if( paramExpectedResult != KErrNone )
{
if( PlatSec::ConfigSetting(PlatSec::EPlatSecEnforcement) )
{
// Enforment on - check that the SMTP required capabilities are actually
// being enforced.
TDummyMsvSessionObserver dummyObserver;
CMsvSession* sess = CMsvSession::OpenSyncL(dummyObserver);
CleanupStack::PushL(sess);
// inf.iCaps should be the TCapabilitySet of the creator process.
TCapabilitySet caps;
sess->GetMtmRequiredCapabilitiesL(KUidMsgTypeSMTP, caps);
CleanupStack::PopAndDestroy(sess);
// Now this is a bit of a HACK, but can't think of a better way...
// The current possibilities for SMPT capabilities are Network Services
// and Local Services. Check each is in the SMTP capabilities and if so
// see if it is enforced.
if( caps.HasCapability(ECapabilityNetworkServices) &&
!PlatSec::IsCapabilityEnforced(ECapabilityNetworkServices) )
{
// SMTP requires Network Services but this is not enforced - change
// expected value to be KErrNone.
TestCase().INFO_PRINTF4(_L("Test Action %S : Network Services not enforced - expected return value changed to %d from %d"), &KTestActionLaunchAutoSend, KErrNone, paramExpectedResult);
paramExpectedResult = KErrNone;
}
else if( caps.HasCapability(ECapabilityLocalServices) &&
!PlatSec::IsCapabilityEnforced(ECapabilityLocalServices) )
{
// SMTP requires Local Services but this is not enforced - change
// expected value to be KErrNone.
TestCase().INFO_PRINTF4(_L("Test Action %S : Local Services not enforced - expected return value changed to %d from %d"), &KTestActionLaunchAutoSend, KErrNone, paramExpectedResult);
paramExpectedResult = KErrNone;
}
}
else
{
// Enforcement off - change expected value to be KErrNone.
TestCase().INFO_PRINTF4(_L("Test Action %S : PlatSec Enforcement OFF - expected return value changed to %d from %d"), &KTestActionLaunchAutoSend, KErrNone, paramExpectedResult);
paramExpectedResult = KErrNone;
}
}
TBuf<20> cmdString;
cmdString.Num(paramSmtpServiceId, EDecimal);
// Return KErrNotSupported in case of Wins
TInt returnValue = KErrNotSupported;
TRequestStatus status = KRequestPending;
RProcess process;
if (paramLaunchAutoSendExeName)
{
User::LeaveIfError(process.Create(*paramLaunchAutoSendExeName, cmdString, TUidType(KNullUid, KNullUid, KMsvLaunchAutoSendExeUid)));
}
else
{
User::LeaveIfError(process.Create(KMsvLaunchAutoSend, cmdString, TUidType(KNullUid, KNullUid, KMsvLaunchAutoSendExeUid)));
}
TestCase().INFO_PRINTF2(_L("RProcess::Create() is successful %S "), &KTestActionLaunchAutoSend);
// Make the process eligible for execution
process.Logon(status);
process.Resume();
// Wait for the process completion
User::WaitForRequest(status);
// Check the exit reason of the process
returnValue = (process.ExitType() == EExitPanic)? KErrGeneral: status.Int();
process.Close();
TestCase().INFO_PRINTF4(_L("Test Action %S completed with %d, while expected %d "), &KTestActionLaunchAutoSend,returnValue, paramExpectedResult);
if(returnValue != paramExpectedResult)
{
TestCase().SetTestStepResult(EFail);
}
TestCase().ActionCompletedL(*this);
}
| [
"none@none"
] | none@none |
7d9b2def59a68e9c6f7fb27c4019c6fadd916464 | 901571e54db419ccd0aa4d7a3dbfcd8dd5b37207 | /BOJ/1000/1517.cpp | a565717b83fcf5ec55ba31950b2255cfd6ee1ae7 | [] | no_license | fbdp1202/AlgorithmParty | 3b7ae486b4a27f49d2d40efd48ed9a45a98c77e8 | 9fe654aa49392cb261e1b53c995dbb33216c6a20 | refs/heads/master | 2021-08-03T22:52:30.182103 | 2021-07-22T06:15:45 | 2021-07-22T06:15:45 | 156,948,821 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | cpp | // baekjoon 1517 yechan
#include <cstdio>
#include <algorithm>
#include <utility>
using namespace std;
const int MAX_N=500001;
const int SIZE=1<<19;
typedef pair<int,int> P;
int arr[SIZE*2];
P data[MAX_N];
int sum(int L, int R, int nodeNum, int nodeL, int nodeR) {
if (R < nodeL || nodeR < L) return 0;
if (L <= nodeL && nodeR <= R) return arr[nodeNum];
int mid = (nodeL + nodeR) / 2;
return sum(L, R, nodeNum*2, nodeL, mid) + sum(L, R, nodeNum*2+1, mid+1, nodeR);
}
int sum(int L, int R) {
return sum(L, R, 1, 0, SIZE-1);
}
void update(int i, int val) {
i += SIZE;
arr[i] = val;
while (i > 1) {
i /= 2;
arr[i] = arr[i*2] + arr[i*2+1];
}
}
int main() {
int N;
scanf("%d", &N);
for (int i=0; i<N; i++) {
scanf("%d", &data[i].first);
data[i].second = i+1;
}
sort(data, data+N);
long long ret = 0;
for (int i=N-1; i>=0; i--) {
ret += sum(0, data[i].second-1);
update(data[i].second, 1);
}
printf("%lld\n", ret);
return 0;
} | [
"[email protected]"
] | |
c0aa29a8a4b57eeb602c2e0705ccb0a29ff182c0 | d84070d969abe058060128ac0b43608f57046258 | /src/lighting/lighting.cpp | da3a1feaca67ab5af04d7962db4da094cee8b686 | [] | no_license | TheCodeLab/IntenseLogicDemos | 0341f7c497f5e117f92ff95d28f8c50f98e97b7b | 0f56ba735aa3a9b326409a987623643b813e4953 | refs/heads/master | 2021-01-10T15:13:07.426441 | 2015-12-25T00:19:05 | 2015-12-25T00:19:05 | 43,382,508 | 0 | 1 | null | 2015-12-25T00:19:05 | 2015-09-29T17:20:19 | C++ | UTF-8 | C++ | false | false | 2,442 | cpp | #include <SDL.h>
#include <time.h>
#include <math.h>
#include <chrono>
#include "Graphics.h"
#include "comp.h"
extern "C" {
#include "graphics/transform.h"
#include "util/log.h"
}
#ifndef M_PI
#define M_PI 3.1415926535
#endif
class ComputerRenderer : public Drawable {
public:
ComputerRenderer(unsigned object, Computer &comp)
: object(object), comp(comp) {}
void draw(Graphics &graphics) override {
auto mvp = graphics.objmats(&object, ILG_MVP, 1);
auto imt = graphics.objmats(&object, ILG_IMT, 1);
comp.draw(mvp.front(), imt.front());
}
private:
unsigned object;
Computer ∁
};
int main(int argc, char **argv)
{
demoLoad(argc, argv);
auto window = createWindow("Lighting");
Graphics graphics(window);
Graphics::Flags flags;
if (!graphics.init(flags)) {
return 1;
}
Computer comp;
char *error;
if (!comp.build(graphics.rm, &error)) {
il_error("Computer: %s", error);
free(error);
return 1;
}
il_pos compp = il_pos_new(&graphics.space);
ComputerRenderer compr(compp.id, comp);
graphics.drawables.push_back(&compr);
il_pos_setPosition(&graphics.space.camera, il_vec3_new(0, 0, 20));
il_pos lightp = il_pos_new(&graphics.space);
il_pos_setPosition(&lightp, il_vec3_new(20, 3, 20));
ilG_light lightl;
lightl.color = il_vec3_new(.8f*2, .7f*2, .2f*2);
lightl.radius = 50;
State state;
unsigned lightp_id = lightp.id;
state.sunlight_lights = &lightl;
state.sunlight_locs = &lightp_id;
state.sunlight_count = 1;
typedef std::chrono::steady_clock clock;
typedef std::chrono::duration<double> duration;
clock::time_point start = clock::now();
while (1) {
SDL_Event ev;
while (SDL_PollEvent(&ev)) {
switch (ev.type) {
case SDL_QUIT:
return 0;
}
}
duration delta = clock::now() - start;
int secs = 10;
const float dist = 10.0;
il_vec3 v;
v.x = float(sin(delta.count() * M_PI * 2 / secs) * dist);
v.y = 0.f;
v.z = float(cos(delta.count() * M_PI * 2 / secs) * dist);
il_quat q = il_quat_fromAxisAngle(0, 1, 0, float(delta.count() * M_PI * 2 / secs));
il_pos_setPosition(&graphics.space.camera, v);
il_pos_setRotation(&graphics.space.camera, q);
graphics.draw(state);
}
}
| [
"[email protected]"
] | |
dfe0e0eee178670f366ac4455afb4a3f9baee61a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_repos_function_1280_git-2.12.3.cpp | 64a21fe079d28552086da1d76be74d7ea26a143e | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 255 | cpp | static int apply_option_parse_directory(const struct option *opt,
const char *arg, int unset)
{
struct apply_state *state = opt->value;
strbuf_reset(&state->root);
strbuf_addstr(&state->root, arg);
strbuf_complete(&state->root, '/');
return 0;
} | [
"[email protected]"
] | |
5bd2ba2eaa8eb7970df3cb2649bf2ca2247ebcbd | 360117710a5f4361398f6127c68ad7babe6e6f3a | /zaj6/include/Probka.hpp | 69072d7ea9467d640b81a945107410cedb4e5705 | [] | no_license | PiotrTolczyk/zaj6 | 1805faa983b561e8af03a631f63272ada0a16367 | 86ebb3d5b5520b8e352da1cb4f55fba1b3b78131 | refs/heads/master | 2021-08-17T00:58:37.335125 | 2017-11-20T15:55:51 | 2017-11-20T15:55:51 | 111,434,496 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | hpp | #ifndef Probka_HPP
#define Probka_HPP
#include <iostream>
#include <string>
class Probka
{
public:
double t,x;
Probka();
Probka(double t1, double x1);
friend std::ostream& operator<<(std::ostream& stream,const Probka& probka );
};
#endif
| [
"[email protected]"
] | |
d55afca9d291a8c8ea1f56a7c0de1e0cb51ef62e | f20e965e19b749e84281cb35baea6787f815f777 | /Phys/Phys/FlavourTagging/src/MCElectronOSWrapper.h | a8b6814dd3c3fe123d61f07140a3c6be75190aab | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | h | #ifndef MCELECTRONOSWRAPPER_H
#define MCELECTRONOSWRAPPER_H 1
#include "TMVAWrapper.h"
namespace MyMCElectronOSSpace { class Read_eleMLPBNN_MC; }
class MCElectronOSWrapper : public TMVAWrapper {
public:
MCElectronOSWrapper(std::vector<std::string> &);
virtual ~MCElectronOSWrapper();
double GetMvaValue(std::vector<double> const &);
private:
MyMCElectronOSSpace::Read_eleMLPBNN_MC * reader;
};
#endif
| [
"[email protected]"
] | |
7b1656239eefe53beef2c15c0c0da3709efcd7e3 | 27c5982dd971bc6c80a2a1555438474c05307a1c | /test/receive_test.cpp | a39fa1cd6e95e9d5438b5c5b55aa833db241a51c | [] | no_license | yuhui-xie/agvWin | 7836401c0d70f25e9445000eeea020b369afc62c | 26a449349c2e44ba642d1674a419e9916e74a5f8 | refs/heads/master | 2023-04-20T19:07:04.608863 | 2021-04-08T02:49:47 | 2021-04-08T02:49:47 | 355,743,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,671 | cpp | #include <node.hpp>
#include <stdmsg.hh>
#include <thread.hpp>
class receive_test
{
protected:
middleware::Node *nh;
middleware::RPC rpc;
stdmsg::Position p,pp;
private:
struct _Node_Thread:public BThread
{
receive_test* handle;
_Node_Thread(receive_test* p)
{
handle = p;
}
~_Node_Thread()
{
kill();
}
void run()
{
try{
while(true)
{
//std::cout<<"running"<<std::endl;
//handle->nh->run();
}
}
catch(const std::exception& e)
{
std::cerr<<"recv nh communication error: "<< e.what() <<std::endl;
}
}
} nh_thread;
struct _Rpc_Thread:public BThread
{
receive_test* handle;
_Rpc_Thread(receive_test* p)
{
handle = p;
}
~_Rpc_Thread()
{
kill();
}
void run()
{
try{
while(true)
{
//handle->rpc.run();
}
}
catch(const std::exception& e)
{
std::cerr<<"recv rpc communication error: "<< e.what() <<std::endl;
}
}
} rpc_thread;
public:
receive_test(): nh_thread(this),rpc_thread(this)
{
pp.set_x(10);
pp.set_y(20);
pp.set_z(30);
nh = new middleware::Node("tcp://127.0.0.1:8551");
nh->connect("tcp://127.0.0.1:8550");
nh->subscrible("test_node",&receive_test::node_handler,this);
CrThread<receive_test> nht;
nht.start(&receive_test::nhrun);
rpc.connect("tcp://127.0.0.1:8552");
}
int nhrun(){
try{
while(true)
{
nh->run();
}
}
catch(const std::exception& e)
{
std::cerr<<"recv nh communication error: "<< e.what() <<std::endl;
}
return 0;
};
~receive_test()
{
if(nh)
delete nh;
this->nh_thread.kill();
this->rpc_thread.kill();
}
void node_handler(const stdmsg::Position &p)
{
std::cout<<"node: x="<<p.x()<<" y="<<p.y()<<" z="<<p.z()<<std::endl;
}
void rpc_call()
{
std::cout<<"rpc_call"<<std::endl;
stdmsg::Position tmp_p;
tmp_p = rpc.call<stdmsg::Position,stdmsg::Position>("test_rpc",pp);
std::cout<<"rpc: x="<<tmp_p.x()<<" y="<<tmp_p.y()<<" z="<<tmp_p.z()<<std::endl;
}
void run_node_rpc()
{
this->nh_thread.start();
this->rpc_thread.start();
}
};
int main()
{
receive_test rt;
//rt.run_node_rpc();
while(true)
{
system("pause");
rt.rpc_call();
}
} | [
"[email protected]"
] | |
1de25925b4a33c745a1778a0b2bc2db4d82aba89 | aa5881562b8fd6d9bb59ba7e186cc9e385686bf8 | /python_engine/python_exceptions.cpp | 191af739e608b47f402076b86c38551708f0396b | [] | no_license | engineerkatie/infra-ml2 | 0f6fb643f92743cf2f1763fb543f48717ebca50b | d5fcf191025dfa6ee36b5dec654fcd5e97eed3db | refs/heads/master | 2021-01-06T13:48:43.092534 | 2020-02-18T15:57:06 | 2020-02-18T15:57:06 | 241,347,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 929 | cpp | #include "python_exceptions.hpp"
#include <iostream>
PythonEngineException::PythonEngineException(const std::string &message, const PyStatus &s)
: std::runtime_error(
std::string("Python Error: ")
+ message
+ " -- "
+ s.err_msg
)
{
}
PythonEngineException::~PythonEngineException()
{
}
PythonEngineFatalException::PythonEngineFatalException(const std::string &message, const PyStatus &s)
: std::runtime_error(
std::string("Python Fatal: ")
+ message
+ " -- "
+ s.err_msg
)
{
}
PythonEngineFatalException::~PythonEngineFatalException()
{
}
void interpretPyStatus(const std::string &message, const PyStatus &s)
{
if (PyStatus_IsError(s))
{
throw PythonEngineException(message, s);
}
if (PyStatus_IsExit(s))
{
throw PythonEngineFatalException(message, s);
}
std::cerr
<< "Python:"
<< message
<< " - "
<< "OK"
<< std::endl;
}
| [
"[email protected]"
] | |
568c483535b298c8b0e4218836ddc1b2b8bb0922 | 9b86bf97a610eba3a30825139a4bd999c5c018de | /agent/include/CUnicodeString.h | 539b36269ac94c630f8da233893b7ed5abf79e03 | [] | no_license | wumn290/orange | 5db8f90688ebbb6dd9d203b20e158cf652646ddb | a3d03f82e566470db86a51f8119fecdd5d66634c | refs/heads/master | 2023-08-30T18:05:48.280238 | 2021-11-13T07:52:36 | 2021-11-13T07:52:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,101 | h | #pragma once
#define CUNICODE_MAX_STRING_SIZE 1024
#define CBUFFER_MAX_SIZE 1024
class CBuffer
{
const ULONG memory_tag = 'CWSB';
public:
CBuffer(IN size_t cbSize = CBUFFER_MAX_SIZE)
:
m_pBuffer((char *)CMemory::Allocate(NonPagedPoolNx, cbSize, memory_tag)),
m_cbSize(cbSize)
{
if (m_pBuffer) RtlZeroMemory(m_pBuffer, m_cbSize);
else m_cbSize = 0;
}
~CBuffer()
{
Clear();
}
void Clear()
{
if (m_pBuffer) CMemory::Free(m_pBuffer);
m_pBuffer = NULL, m_cbSize = 0;
}
operator char *()
{
return m_pBuffer;
}
operator const char*()
{
return m_pBuffer;
}
operator PVOID()
{
return m_pBuffer;
}
operator size_t()
{
return m_cbSize;
}
size_t CbSize()
{
return m_cbSize;
}
private:
char * m_pBuffer;
size_t m_cbSize;
};
class CWSTRBuffer
{
const ULONG memory_tag = 'CWSB';
public:
CWSTRBuffer(IN size_t cbSize = CUNICODE_MAX_STRING_SIZE)
:
m_pStr(CMemory::AllocateString(NonPagedPoolNx, cbSize,memory_tag)),
m_cbSize(cbSize)
{
if (m_pStr) RtlZeroMemory(m_pStr, m_cbSize);
else m_cbSize = 0;
}
~CWSTRBuffer()
{
Clear();
}
void Clear()
{
if( m_pStr ) CMemory::FreeString(m_pStr);
m_pStr = NULL, m_cbSize = 0;
}
operator PWSTR()
{
return m_pStr;
}
operator PCWSTR()
{
return m_pStr;
}
size_t CbSize()
{
return m_cbSize;
}
size_t CchSize()
{
return (m_cbSize / sizeof(WCHAR));
}
private:
LPWSTR m_pStr;
size_t m_cbSize;
};
class CWSTR
{
public:
CWSTR(IN PUNICODE_STRING p, IN POOL_TYPE type = NonPagedPoolNx)
:
CWSTR()
{
//__log("%-20s %wZ", __FUNCTION__, p);
if( p )
{
m_cbSize = p->Length + sizeof(WCHAR);
m_pStr = CMemory::AllocateString(type, m_cbSize, 'cucs');
if (m_pStr)
{
if (NT_SUCCESS(RtlStringCbCopyUnicodeString(m_pStr, m_cbSize, p)))
{
}
else
{
__log("%s RtlStringCbCopyUnicodeString() failed.", __FUNCTION__);
Clear();
}
}
else
{
__log("%s allocation(1) failed.", __FUNCTION__);
Clear();
}
}
else
{
m_cbSize = 0;
m_pStr = NULL;
__log("%s PUNICODE_STRING is null.", __FUNCTION__);
}
}
CWSTR(IN PCWSTR p, IN POOL_TYPE type = NonPagedPoolNx)
:
CWSTR()
{
//__log("%-20s %ws", __FUNCTION__, p);
if (p)
{
size_t nSize = 0;
if (NT_SUCCESS(RtlStringCbLengthW(p, CUNICODE_MAX_STRING_SIZE, &nSize)))
{
m_cbSize = nSize + sizeof(WCHAR);
m_pStr = CMemory::AllocateString(type, m_cbSize, 'cucs');
if (m_pStr)
{
if (NT_SUCCESS(RtlStringCbCopyW(m_pStr, m_cbSize, p)))
{
}
else
{
__log("%s RtlStringCbCopyW() failed.", __FUNCTION__);
Clear();
}
}
else
{
__log("%s allocation(2) failed.", __FUNCTION__);
Clear();
}
}
else
{
__log("%s RtlCbLengthW() failed.", __FUNCTION__);
}
}
else
{
__log("%s PCWSTR is null.", __FUNCTION__);
}
}
~CWSTR()
{
if( NULL == m_pStr ) __log("%-20s %ws", __FUNCTION__, m_pStr);
Clear();
}
void Clear()
{
if (m_pStr) CMemory::FreeString(m_pStr), m_pStr = NULL;
m_cbSize = 0;
}
operator LPCWSTR()
{
return Get();
}
PCWSTR Get()
{
return (m_pStr && m_cbSize)? m_pStr : m_szNull;
}
size_t CbSize()
{
return m_cbSize;
}
private:
CWSTR()
: m_pStr(NULL), m_cbSize(0)
{
m_szNull[0] = NULL;
}
PWSTR m_pStr;
WCHAR m_szNull[1];
size_t m_cbSize;
};
#define __cwstr(p) CWSTR(p).Get()
class CUnicodeString
{
public:
CUnicodeString(IN PCUNICODE_STRING p, IN POOL_TYPE type)
: CUnicodeString()
{
SetString(p, NULL, type);
}
CUnicodeString(IN LPCWSTR p, IN POOL_TYPE type, IN size_t cbMaxSize = CUNICODE_MAX_STRING_SIZE)
: CUnicodeString()
{
UNREFERENCED_PARAMETER(cbMaxSize);
SetString(p, type);
}
CUnicodeString()
: m_pString(NULL), m_cbSize(0), m_szNull(L"")
{
UnsetString();
}
~CUnicodeString()
{
UnsetString();
}
UNICODE_STRING & operator = (const UNICODE_STRING & rhs)
{
UNREFERENCED_PARAMETER(rhs);
return m_unicodestring;
}
CUnicodeString & operator = (LPWSTR rhs)
{
SetString(rhs, PagedPool);
return *this;
}
operator PUNICODE_STRING()
{
return &m_unicodestring;
}
operator PCWSTR()
{
return m_pString? m_pString : m_szNull;
}
void UnsetString()
{
if (m_pString)
{
CMemory::FreeString(m_pString);
}
m_pString = NULL, m_cbSize = 0;
RtlInitUnicodeString(&m_unicodestring, NullString());
}
bool SetString(IN PCUNICODE_STRING p, IN PCWSTR p2, IN POOL_TYPE type)
{
// p2 이 값이 존재할 경우 p + p2의 형태로 문자열을 만든다.
NTSTATUS status = STATUS_UNSUCCESSFUL;
UnsetString();
if( NULL == p || 0 == p->Length || 0 == p->MaximumLength ) return false;
size_t cbSize2 = p2? wcslen(p2) : 0;
size_t cbSize = p->Length + sizeof(wchar_t) + cbSize2;
LPWSTR pString = NULL;
__try
{
pString = CMemory::AllocateString(type, cbSize, 'cucs');
if( NULL == pString ) __leave;
if (NT_FAILED(status = RtlStringCbCopyUnicodeString(pString, cbSize, p))) {
__log("%s cbSize=%d, cbSize2=%d", __FUNCTION__, (int)cbSize, (int)cbSize2);
__log(" RtlStringCbCopyUnicodeString() failed.");
__log(" p=%wZ (%d)", p, (int)p->Length);
__leave;
}
if (p2 && NT_FAILED(status = RtlStringCbCatW(pString, cbSize, p2)) ) {
__log("%s RtlStringCbCatW() failed.", __FUNCTION__);
__leave;
}
RtlInitUnicodeString(&m_unicodestring, pString);
m_pString = pString, m_cbSize = cbSize;
}
__finally
{
if (NT_FAILED(status))
{
if( pString ) CMemory::FreeString(pString);
UnsetString();
}
}
return NT_SUCCESS(status);
}
bool SetString(IN LPCWSTR p, IN POOL_TYPE type)
{
UnsetString();
if( NULL == p ) return false;
size_t cbSize = 0;
m_pString = CMemory::AllocateString(type, p, &cbSize, 'SEST');
if (m_pString)
{
m_cbSize = cbSize;
RtlInitUnicodeString(&m_unicodestring, m_pString);
return true;
}
else
UnsetString();
return false;
}
private:
UNICODE_STRING m_unicodestring;
LPWSTR m_pString;
size_t m_cbSize;
wchar_t m_szNull[1];
LPCWSTR NullString()
{
return m_szNull;
}
};
| [
"[email protected]"
] | |
d41520f8fe65bf0abf2bbedc2a4d7b357c904759 | 739b1cfb2042ae337f84a1fc70e95a21f2682a02 | /LabelerSoftWare/LImageWidget.cpp | 3dacfbc601a845a7abeac6765b975e0a8de1b4f8 | [] | no_license | Abandei/VideoSemanticLabeler | 23c805dfaa37e6242cd16fe3cdc5f0099953ae11 | a485cad943c41faccbd7bee1e70203e90180b97e | refs/heads/master | 2022-09-19T11:41:14.936713 | 2020-05-31T12:39:50 | 2020-05-31T12:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | cpp | #include "LImageWidget.h"
LImageWidget::LImageWidget(QWidget *parent):QWidget(parent)
{
}
LImageWidget::~LImageWidget()
{
}
| [
"[email protected]"
] | |
d3246bb7012f6f7cf04319faa8107ab7747d677b | e61d475381f40036983ba70528d4f62bd8a4a7e7 | /atcoder/Atcoder067-ARC-E.cpp | 33c1b89e5b9416ae2ef6e8f63d2ccc12108feb65 | [] | no_license | peon-pasado/CompetitiveProgramming | 08e3e70d98316ada49326c3033131e09a5ef9036 | 4f052035897a0ecd698f59b5cca3d9e000731b58 | refs/heads/master | 2021-08-02T17:15:48.766661 | 2021-07-15T23:45:02 | 2021-07-15T23:45:02 | 164,233,138 | 0 | 0 | null | 2019-01-05T16:42:58 | 2019-01-05T16:42:57 | null | UTF-8 | C++ | false | false | 3,664 | cpp | /**
* @author Miguel Mini
* @tag fft, combinatorics
* @idea:
*
* - we need sum of:
*
* multi-binomial(n, {A (x_A), ..., B (x_B)})
*
* divide by (x_A! x ... x_B!)
*
* with C <= x_A <= D.
*
* - we can use P_i(x) = 1 + (X^A / A!)^i / i! (for i in [C, D])
*
* - we need n-th coefficient of prod_{i\in [A, B]} P_i(x)
*
* @complexity O(n \log n)
*/
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef complex<double> C;
typedef vector<double> vd;
void fft(vector<C>& a) {
int n = sz(a), L = 31 - __builtin_clz(n);
static vector<complex<long double>> R(2, 1);
static vector<C> rt(2, 1); // (^ 10% faster if double)
for (static int k = 2; k < n; k *= 2) {
R.resize(n); rt.resize(n);
auto x = polar(1.0L, M_PIl / k); // M_PI, lower-case L
rep(i,k,2*k) rt[i] = R[i] = i&1 ? R[i/2] * x : R[i/2];
}
vi rev(n);
rep(i,0,n) rev[i] = (rev[i / 2] | (i & 1) << L) / 2;
rep(i,0,n) if (i < rev[i]) swap(a[i], a[rev[i]]);
for (int k = 1; k < n; k *= 2)
for (int i = 0; i < n; i += 2 * k) rep(j,0,k) {
// C z = rt[j+k] * a[i+j+k]; // (25% faster if hand-rolled) /// include-line
auto x = (double *)&rt[j+k], y = (double *)&a[i+j+k]; /// exclude-line
C z(x[0]*y[0] - x[1]*y[1], x[0]*y[1] + x[1]*y[0]); /// exclude-line
a[i + j + k] = a[i + j] - z;
a[i + j] += z;
}
}
typedef vector<ll> vl;
template<int M> vl convMod(const vl &a, const vl &b) {
if (a.empty() || b.empty()) return {};
vl res(sz(a) + sz(b) - 1);
int B=32-__builtin_clz(sz(res)), n=1<<B, cut=int(sqrt(M));
vector<C> L(n), R(n), outs(n), outl(n);
rep(i,0,sz(a)) L[i] = C((int)a[i] / cut, (int)a[i] % cut);
rep(i,0,sz(b)) R[i] = C((int)b[i] / cut, (int)b[i] % cut);
fft(L), fft(R);
rep(i,0,n) {
int j = -i & (n - 1);
outl[j] = (L[i] + conj(L[j])) * R[i] / (2.0 * n);
outs[j] = (L[i] - conj(L[j])) * R[i] / (2.0 * n) / 1i;
}
fft(outl), fft(outs);
rep(i,0,sz(res)) {
ll av = ll(real(outl[i])+.5), cv = ll(imag(outs[i])+.5);
ll bv = ll(imag(outl[i])+.5) + ll(real(outs[i])+.5);
res[i] = ((av % M *1ll* cut + bv) % M *1ll* cut + cv) % M;
}
return res;
}
const int mod = 1e9 + 7;
const int maxn = 1e3 + 10;
int f[maxn], r[maxn], rf[maxn];
int mul(ll a, ll b) {
return a*b%mod;
}
int add(int a, int b) {
return (a+b)%mod;
}
int ex(int a, int b) {
int r = 1;
while (b > 0) {
if (b&1) r = mul(r, a);
a = mul(a, a);
b >>= 1;
}
return r;
}
vector<ll> x[maxn];
int main() {
f[0] = rf[0] = r[1] = 1;
for (int i = 1; i < maxn; ++i) {
if (i > 1) r[i] = mul(r[mod%i], mod - mod/i);
f[i] = mul(f[i-1], i);
rf[i] = mul(rf[i-1], r[i]);
}
int n, a, b, c, d;
cin >> n >> a >> b >> c >> d;
for (int i = a; i <= b; ++i) {
x[i].resize(n + 1);
x[i][0] = 1;
int e = ex(rf[i], c);
for (int j = c; j <= d && i * j <= n; ++j) {
x[i][i * j] = mul(e, rf[j]);
e = mul(e, rf[i]);
}
}
for (int i = b-1; i >= a; --i) {
x[i] = convMod<mod>(x[i], x[i+1]);
if (x[i].size() > n+1) {
x[i].resize(n+1);
}
}
x[a].resize(n+1);
cout << mul(f[n], x[a][n]) << endl;
return 0;
} | [
"[email protected]"
] | |
90049936ee299869e145fbba943e62cd5bfb0ad5 | 9f6b3b25bfeb340f5887e910b1e6e8df6d1e2f3d | /code/CRandum.h | 69e71aceb257b562763e2679999d143acb92dec5 | [] | no_license | ogilabnet/ABM-Macroeconomics | 99d669e6ecc150654efe91458909b4da5a50329d | 1097a103cfbae3e846e4eee3ce252627e6eda699 | refs/heads/master | 2021-01-22T19:26:01.885478 | 2016-12-05T06:03:50 | 2016-12-05T06:03:50 | 59,272,959 | 1 | 1 | null | 2016-12-05T06:03:51 | 2016-05-20T07:07:50 | C++ | SHIFT_JIS | C++ | false | false | 3,083 | h | //CRandum.h
#ifndef INC_CRandum
#define INC_CRandum
#define N 310
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
class CRandum
{
public:
CRandum();
CRandum(int p);
double strand();
int strand(int n1,int n2);
long long strand_l(long long n1,long long n2);
double sdrand(double min,double max);
double seiki(double a,double b);
double shisu(double ave);
double kaijyou(int n);
void erlan(double x,int k,double ramda,double *f,double *fint);
double erland(int k,double ramda);
void kentei(int n1,int n2,int n);
};
double CRandum::sdrand(double min,double max)
{
double y;
y=min+rand()/float(RAND_MAX)*(max-min);
return y;
}
double CRandum::strand()
{
double y;
y=rand()/float(RAND_MAX);
return y;
}
void CRandum::kentei(int n1,int n2,int n)
{
int i,j;int *sum=new int[n2+2];
for(j=n1;j<=n2+1;j++) sum[j]=0;
for(i=0;i<n;i++){
for(j=n1;j<=n2;j++) if(strand(n1,n2)==j) sum[j]++;
}
for(j=n1;j<=n2+1;j++) printf(" %4d %4d \n",j,sum[j]);
}
int CRandum::strand(int n1,int n2)
{
//n1からn2の整数乱数を発生させる
int y;
y=n1+int(rand()/float(RAND_MAX)*(n2-n1+1));
if(y>n2) y=n2;
return y;
}
long long CRandum::strand_l(long long n1,long long n2)
{
//n1からn2の整数乱数を発生させる
long long y;
y=n1+long(rand()/float(RAND_MAX)*(n2-n1+1));
if(y>n2) y=n2;
return y;
}
double CRandum::shisu(double ave)
{
double y,Na,ramda;
ramda=1/ave;
//y=strand();
y=rand()/float(RAND_MAX);
Na=-log(1-y)/ramda;
return Na;
}
CRandum::CRandum()
{
//一様乱数の初期化
srand((unsigned)time(NULL)); //時刻で初期化
//printf("時刻で初期化します\n");
}
CRandum::CRandum(int p)
{
//一様乱数の初期化
//if(p<10) srand(p);
//else srand(5);
printf("srand(%d)で初期化します\n",p);
}
double CRandum::seiki(double a,double b)
{
double sum1,y,Nab;
int i;
sum1=0.0;
for(i=1;i<=12;i++){
y=strand();
sum1+=y;
}
Nab=sqrt(b)*(sum1-6)+a;//正規分布乱数の値
return Nab;
}
double CRandum::erland(int k,double ramda)
{
double yr,x,xnew[N],Na,ips,f,fint;
int j,Ns=31;
ips=0.001;
yr=strand();//0-1 一様乱数の発生
xnew[0]=1/ramda;//Newton法の初期値
for(j=0;j<Ns;j++)
{
//Newton法で解(yrに対応するxの値)を求める
x=xnew[j];
erlan(x,k,ramda,&f,&fint);//fint:分布関数(確率密度関数の積分値)
if(f==0) f=0.0001;
xnew[j+1]=xnew[j]-(fint-yr)/f;
Na=xnew[j+1];
if(fabs(xnew[j+1]-xnew[j])<ips) goto out;
}
out:
return Na;
}
void CRandum::erlan(double x,int k,double ramda,double *f,double *fint)
{
double a,c,sum,y,dy,f1,f2;
int p;
c=ramda*k;
p=k-1;
a=kaijyou(p);
*f=pow(c,k)*pow(x,p)*exp(-c*x)/a; //erlan分布関数f(x)の値
/*x数値積分*/
*fint=0.;
dy=0.001;
y=0.;
sum=0.;
while(y<=(x-dy))
{
f1=pow(c,k)*pow(y,p)*exp(-c*y)/a;
f2=pow(c,k)*pow((y+dy),p)*exp(-c*(y+dy))/a;
sum=sum+(f1+f2)/2.*dy;
y=y+dy;
}
*fint=sum;
}
double CRandum::kaijyou(int n)
{
int k,ns;double pai;
ns=n;
pai=1;
for(k=1;k<=ns;k++) pai=(pai)*(ns-k+1);
return pai;
}
#endif
| [
"[email protected]"
] | |
0bf3d69385cd2005152febabd6cb554bfb3f0761 | ab64ef79f1e89fd8e7879902645f3f8461f353a9 | /contrib/SeqLib/SeqLib/ReadFilter.h | 69c231d4cf148680d2dcb1bbb7d34a9c5412adcd | [
"MIT",
"Apache-2.0"
] | permissive | freebayes/freebayes | af6e148cc765f50e639ef81fa11cec9541630d09 | b44a91932715c4e1893ccdf9b7e6f17eb2ecf733 | refs/heads/master | 2023-08-16T04:23:14.778600 | 2023-02-13T14:04:57 | 2023-02-13T14:04:57 | 985,260 | 211 | 56 | MIT | 2023-02-13T14:04:59 | 2010-10-13T21:34:33 | C++ | UTF-8 | C++ | false | false | 17,538 | h | #ifndef SEQLIB_READ_FILTER_H
#define SEQLIB_READ_FILTER_H
#define AHO_CORASICK 1
#include <string>
#include <vector>
#include <climits>
#include "json/json.h"
#include "SeqLib/GenomicRegionCollection.h"
#include "SeqLib/BamRecord.h"
#ifdef HAVE_C11
#include "SeqLib/aho_corasick.hpp"
#endif
#define MINIRULES_MATE_LINKED 1
#define MINIRULES_MATE_LINKED_EXCLUDE 2
#define MINIRULES_REGION 3
#define MINIRULES_REGION_EXCLUDE 4
namespace SeqLib {
typedef SeqHashSet<std::string> StringSet;
namespace Filter {
#ifdef HAVE_C11
/** Tool for using the Aho-Corasick method for substring queries of
* using large dictionaries
* @note Trie construction / searching implemented by https://github.com/blockchaindev/aho_corasick
*/
struct AhoCorasick {
/** Allocate a new empty trie */
AhoCorasick() {
aho_trie = SeqPointer<aho_corasick::trie>(new aho_corasick::trie());
inv = false;
count = 0;
}
/** Deallocate the trie */
~AhoCorasick() { }
/** Add a motif to the trie
* @note Trie construction is lazy. Won't build trie until
* first query. Therefore first query is slow, the rest are
* O(n) where (n) is length of query string.
*/
void AddMotif(const std::string& m) {
aho_trie->insert(m);
}
/** Add a set of motifs to the trie from a file
* @param f File storing the motifs (new line separated)
* @exception Throws a runtime_error if file cannot be opened
*/
void TrieFromFile(const std::string& f);
/** Query if a string is in the trie
* @param t Text to query
* @return Returns number of substrings in tree that are in t
*/
int QueryText(const std::string& t) const;
SeqPointer<aho_corasick::trie> aho_trie; ///< The trie for the Aho-Corasick search
std::string file; ///< Name of the file holding the motifs
bool inv; ///< Is this an inverted dictinary (ie exclude hits)
int count; ///< Number of motifs in dictionary
};
#endif
/** Stores a rule for a single alignment flag.
*
* Rules for alignment flags can be one of three states:
* - NA - All flag values are valid
* - Off - Flag is valid if OFF
* - On - Flag is valid if ON
*/
class Flag {
public:
/** Construct a new Flag with NA rule
*/
Flag() : on(false), off(false), na(true) {}
/** Set the flag to NA (pass alignment regardless of flag value) */
void setNA() { on = false; off = false; na = true; }
/** Set the flag to ON (require flag ON to pass) */
void setOn() { on = true; off = false; na = false; }
/** Set the flag to OFF (require flag OFF to pass) */
void setOff() { on = false; off = true; na = false; }
/** Return if the Flag filter is NA */
bool isNA() const { return na; }
/** Return if the Flag filter is ON */
bool isOn() const { return on; }
/** Return if the Flag filter is OFF */
bool isOff() const { return off; }
/** Parse the Flag rule from a JSON entry */
bool parseJson(const Json::Value& value, const std::string& name);
private:
bool on;
bool off;
bool na;
};
/** Filter numeric values on whether they fall in/out of a range of values (eg mapping quality).
*
* Can optionally invert the range to make rule the complement of the range
* (eg insert-size NOT in [300,600]
*/
class Range {
public:
/** Construct a default range with everything accepted
*/
Range() : m_min(0), m_max(0), m_inverted(false), m_every(true) {}
/** Construct a Range from min to max, inclusive
* @param min Minimum for range
* @param max Maximum for range
* @param inverted Declare if this should be an inverted range (do NOT accept vals in range)
*/
Range(int min, int max, bool inverted) : m_min(min), m_max(max), m_inverted(inverted), m_every(false) {}
/** Given a query value, determine if the value passes this Range
* @param val Query value (e.g. mapping quality)
* @return true if the value passes this Range rule
*/
bool isValid(int val) {
if (m_every)
return true;
if (!m_inverted)
return (val >= m_min && val <= m_max);
else
return (val < m_min || val > m_max);
}
/** Parse a JSON value
* @param value
* @param name
*/
void parseJson(const Json::Value& value, const std::string& name);
/** Print the contents of this Range */
friend std::ostream& operator<<(std::ostream &out, const Range &r);
/** Return if this range accepts all values */
bool isEvery() const { return m_every; }
/** Return the lower bound of the range */
int lowerBound() const { return m_min; }
/** Return the upper bound of the range */
int upperBound() const { return m_max; }
/** Return true if the range is inverted (e.g. do NOT accept i in [min,max] */
bool isInverted() const { return m_inverted; }
private:
int m_min;
int m_max;
bool m_inverted;
bool m_every;
};
/** Stores a set of Flag objects for filtering alignment flags
*
* An alignment can be queried against a FlagRule to check if it
* satisfies the requirements for its alignment flag.
*/
class FlagRule {
public:
FlagRule() {
dup = Flag();
supp = Flag();
qcfail = Flag();
hardclip = Flag();
fwd_strand = Flag();
rev_strand = Flag();
mate_fwd_strand = Flag();
mate_rev_strand = Flag();
mapped = Flag();
mate_mapped = Flag();
ff = Flag();
fr = Flag();
rf = Flag();
rr = Flag();
ic = Flag();
paired = Flag();
m_all_on_flag = 0;
m_all_off_flag = 0;
m_any_on_flag = 0;
m_any_off_flag = 0;
every = false;
}
Flag dup; ///< Filter for duplicated flag
Flag supp; ///< Flag for supplementary flag
Flag qcfail; ///< Flag for qcfail flag
Flag hardclip; ///< Flag for presence of hardclip in cigar string
Flag fwd_strand; ///< Flag for forward strand alignment
Flag rev_strand; ///< Flag for reverse strand alignment
Flag mate_fwd_strand; ///< Flag for forward strand alignment for mate
Flag mate_rev_strand; ///< Flag for reverse strand alignment for mate
Flag mapped; ///< Flag for mapped alignment
Flag mate_mapped; ///< Flag for mate-mapped alignment
Flag ff; ///< Flag for both reads on forward strand
Flag fr; ///< Flag for lower (by position) read on forward strand, higher on reverse
Flag rf; ///< Flag for lower (by position) read on reverse strand, higher on forward
Flag rr; ///< Flag for both reads on reverse strand
Flag ic; ///< Flag for read and mate aligned to different chromosomes
Flag paired; ///< Flag for read is part of pair
/** Parse a FlagRule from a JSON object
*/
void parseJson(const Json::Value& value);
/** Set rule to pass all alignment flags that have any bit in f on
* @param f Alignment flags to be on for alignment record to pass
*/
void setAnyOnFlag(uint32_t f) { m_any_on_flag = f; every = (every && f == 0); }
// NOTE: every = (every && f == 0) means to set every to true only if
// input flag is zero and every was already true
/** Set rule to pass all alignment flags that have any bit in f off
* @param f Alignment flags to be off for alignment record to pass
*/
void setAnyOffFlag(uint32_t f) { m_any_off_flag = f; every = (every && f == 0); }
/** Set rule to reject all alignment flags that have any bit in f off
* @param f Alignment flags to be on for alignment record to pass
*/
void setAllOnFlag(uint32_t f) { m_all_on_flag = f; every = (every && f == 0); }
/** Set rule to reject all alignment flags that have any bit in f on
* @param f Alignment flags to be off for alignment record to pass
*/
void setAllOffFlag(uint32_t f) { m_all_off_flag = f; every = (every && f == 0); }
/** Return whether a read passes the alignment flag rules in this object
* @param r Alignment record to query
* @return true if record passes rules
*/
bool isValid(const BamRecord &r);
/** Print the flag rule */
friend std::ostream& operator<<(std::ostream &out, const FlagRule &fr);
/** Return if every this object will pass all records provided to it */
bool isEvery() const { return every; }
private:
bool every; // does this pass all flags?
uint32_t m_all_on_flag; // if read has all of these, keep
uint32_t m_all_off_flag; // if read has all of these, fail
uint32_t m_any_on_flag; // if read has any of these, keep
uint32_t m_any_off_flag;// if read has any of these, fail
int parse_json_int(const Json::Value& v);
};
/** Stores a full rule (Flag + Range + motif etc)
*
* An alignment can be queried with an AbstractRule object
* to check if it passes that rule.
*/
class AbstractRule {
friend class ReadFilter;
friend class ReadFilterCollection;
public:
/** Create empty rule with default to accept all */
AbstractRule() : m_count(0), subsam_frac(1), subsam_seed(999) { }
/** Destroy the filter */
~AbstractRule() {}
/** Add a list of motifs that will be search as sub-strings
* of the read sequence
* @param f Path to new-line separted file of motifs
* @param inverted If true, the reads that have a matching motif will fail isValid
*/
void addMotifRule(const std::string& f, bool inverted);
/** Query a read against this rule. If the
* read passes this rule, return true.
* @param r An aligned sequencing read to query against filter
*/
bool isValid(const BamRecord &r);
/** Supply the rule parameters with a JSON
* @param value JSON object created by parsing a string
*/
void parseJson(const Json::Value& value);
/** Print some basic information about this filter
*/
friend std::ostream& operator<<(std::ostream &out, const AbstractRule &fr);
/** Return if this rule accepts all reads
*/
bool isEvery() const;
/** Set the rate to subsample (default 1 = no subsampling)
* @param s A rate between 0 and 1
*/
void SetSubsampleRate(double s) { subsam_frac = s; };
/** Supply a name for this rule
* @param s ID to be associated with this rule
*/
void SetRuleID(const std::string& s) { id = s; };
/** Specify a read-group for this filter.
* Reads that do not belong to this read group
* will not pass isValid
* @param rg Read group to be matched against RG:Z:readgroup
*/
void SetReadGroup(const std::string& rg) { read_group = rg; }
FlagRule fr; ///< FlagRule specifying the alignment flag filter
Range isize; ///< Range object for insert-size filter
Range mapq; ///< Range object for mapping quality filter
Range len; ///< Range object for length filter
Range phred; ///< Range object for base-quality filter
Range clip; ///< Range object for number of clipped bases filter
Range nm; ///< Range object for NM (num mismatch) filter
Range nbases; ///< Range object for number of "N" bases filer
Range ins; ///< Range object for max CIGAR insertion size filter
Range del; ///< Range object for max CIGAR deletion size filter
Range xp; ///< Range object for number of secondary alignments
private:
void parseSeqLine(const Json::Value& value);
// read group
std::string read_group;
// how many reads pass this rule?
size_t m_count;
// the aho-corasick trie
#ifdef HAVE_C11
AhoCorasick aho;
#endif
// id for this rule
std::string id;
// fraction reads to subsample
double subsam_frac;
// data
uint32_t subsam_seed; // random seed for subsampling
void parseSubLine(const Json::Value& value);
};
class ReadFilterCollection;
/**
* A set of AbstractRules on a region united by logi rules.
*
* ReadFilter stores an arbitrarily complex collection of AbstractRules
* (e.g. (Mapped && Clipped) || (Unmapped)).
*/
class ReadFilter {
friend class ReadFilterCollection;
public:
/** Construct an empty filter that passes all reads */
ReadFilter() : excluder(false), m_applies_to_mate(false), m_count(0) {}
/** Destroy the filter */
~ReadFilter();
// ReadFilter(const ReadFilter& rf);
// Make a ReadFilter with an all exclude or include rule
// @param Samtools style string, BED file or VCF
// @param reg_type The type of rule this will be
// @param h BAM header that defines available chromosomes
///
//ReadFilter(const CommandLineRegion& c, const BamHeader& hdr);
/** Return whether a read passes this filter
* @param r A read to query
* @note If this is an excluder rule, then this
* returns false if the read passes the filter
*/
bool isValid(const BamRecord &r);
/** Add a rule to this filter. A read must pass all
* of the rules contained in this filter to pass
* @param ar A rule (eg MAPQ > 30) that the read must satisfy to pass this filter.
*/
void AddRule(const AbstractRule& ar);
/** Provide the region covered by this read filter
* @param g Region that this filter applies to
*/
void setRegions(const GRC& g);
/** Add additional regions to the filtered region
* @param g Additional regions to be included in filter
*/
void addRegions(const GRC& g);
/** Check if a read is overlapping the region defined by this filter
* @param r Read to query whether it overlaps (even partially) the region.
* @note If this is a mate-linked region, then the read will overlap
* if its mate overlaps as well.
*/
bool isReadOverlappingRegion(const BamRecord &r) const;
/** Print basic information about this filter */
friend std::ostream& operator<<(std::ostream& out, const ReadFilter &mr);
/** Return the number of rules in this filter */
size_t size() const {
return m_abstract_rules.size();
}
/** Set as an excluder region
* An excluder region is such that if a read satisfies
* this rule, then it will fail isValid, rather than pass
*/
void SetExcluder(bool e) { excluder = e; }
/** Set as a mate linked region */
void SetMateLinked(bool e) { m_applies_to_mate = e; }
private:
GRC m_grv; // the interval tree with the regions this rule applies to. Empty is whole-genome
std::string id; // set a unique id for this filter
bool excluder; // this filter is such that if read passes, it gets excluded
std::string m_region_file;
std::vector<AbstractRule> m_abstract_rules; // hold all of the rules
// rule applies to mate too
bool m_applies_to_mate;
// how many reads pass this MiniRule
size_t m_count;
};
/** A full set of rules across any number of regions
*
* Stores the entire set of ReadFilter, each defined on a unique interval.
* A single ReadFilterCollection object is sufficient to store any combination of rules,
* and is the highest in the rule hierarchy. (ReadFilterCollection stores ReadFilter
* stores AbstractRules stores FlagRule/Ranges).
*/
class ReadFilterCollection {
public:
/** Construct an empty ReadFilterCollection
* that will pass all reads.
*/
ReadFilterCollection() : m_count(0), m_count_seen(0) {}
/** Create a new filter collection directly from a JSON
* @param script A JSON file or directly as JSON formatted string
* @param h BamHeader to convert chr sequence to id
* @exception invalid_argument if cannot parse JSON
*/
ReadFilterCollection(const std::string& script, const SeqLib::BamHeader& h);
/** Add a new rule to the collection.
* If a read passes this rule, it will be included,
* even if it fails the other filters. Or, if this filter
* has the excluder tag, then if a read passes this filter
* then it will be excluded, regardless of the other filters
*/
void AddReadFilter(const ReadFilter& rf);
/** Provide a global rule set (applies to each filter)
* @param rule A filter specified in JSON format
*/
void addGlobalRule(const std::string& rule);
/** Query a read to see if it passes any one of the
* filters contained in this collection */
bool isValid(const BamRecord &r);
/** Print some basic information about this object */
friend std::ostream& operator<<(std::ostream& out, const ReadFilterCollection &mr);
/** Return a GenomicRegionCollection of all
* of the regions specified by the filters.
* @note This returns the raw regions. It may be useful
* to run mergeOverlappingIntervals on the output to see
* the minimal covered regions.
*/
GRC getAllRegions() const;
/** Return the number of filters in this collection */
size_t size() const { return m_regions.size(); }
/** Return the total number of rules in this collection.
* Filters are composed of collections of rules, and this
* returns the total number of rules (e.g. MAPQ > 30) across
* all of the filters
*/
size_t numRules() const {
size_t num = 0;
for (std::vector<ReadFilter>::const_iterator it = m_regions.begin(); it != m_regions.end(); ++it)
num += it->size();
return num;
}
/** Check that the filter collection includes something.
* If not, then give it a universal includer
*/
void CheckHasIncluder();
// Return the a tab-delimited tally of which filters were satisfied.
// Includes the header:
// total_seen_count total_passed_count region region_passed_count rule rule_passed_count
//
//std::string EmitCounts() const;
private:
// the global rule that all other rules are inherited from
AbstractRule rule_all;
size_t m_count; // passed
size_t m_count_seen; // tested
// store all of the individual filters
std::vector<ReadFilter> m_regions;
bool ParseFilterObject(const std::string& filterName, const Json::Value& filterObject);
};
}
}
#endif
| [
"[email protected]"
] | |
ed167db864921420d689725eccd2f38736168c5c | c4ebee270305c46a714ab6bd4cf14038f8ca57f9 | /Engine/source/mt/windows/WM_NonClientPaint.hpp | 5ff60cb2b6b6da75b4983c215c382e5ebac336aa | [] | no_license | todorovich/mt_engine | fa9d8a08f9335c5344fb8610ac5ada8e286c71fb | 1590176dd1f58e9a9acab443e4c2beb02a689384 | refs/heads/master | 2021-01-24T17:15:17.098408 | 2020-05-05T18:14:10 | 2020-05-05T18:14:10 | 60,985,874 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | hpp | // Copyright 2018 Micho Todorovich, all rights reserved.
#pragma once
#include "WindowsMessage.hpp"
namespace mt::windows
{
class WM_NonClientPaint : public WindowsMessage
{
LRESULT execute(const HWND &hwnd, const UINT &msg, const WPARAM &wParam, const LPARAM &lParam);
};
} | [
"[email protected]"
] | |
b239d8894256cc8169041dade88ad63e86f63004 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/squid/hunk_1047.cpp | f8ebdb6626546deab3270c5e96e4883578182e20 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,902 | cpp | /* parent */
openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4);
- squid_signal(SIGINT, SIG_IGN, SA_RESTART);
-
-#if _SQUID_NEXT_
-
- pid = wait3(&status, 0, NULL);
-
-#else
-
- pid = waitpid(-1, &status, 0);
-
-#endif
- // Loop to collect all stopped kids before we go to sleep below.
- do {
- Kid* kid = TheKids.find(pid);
- if (kid) {
- kid->stop(status);
- if (kid->calledExit()) {
- syslog(LOG_NOTICE,
- "Squid Parent: %s process %d exited with status %d",
- kid->name().termedBuf(),
- kid->getPid(), kid->exitStatus());
- } else if (kid->signaled()) {
- syslog(LOG_NOTICE,
- "Squid Parent: %s process %d exited due to signal %d with status %d",
- kid->name().termedBuf(),
- kid->getPid(), kid->termSignal(), kid->exitStatus());
- } else {
- syslog(LOG_NOTICE, "Squid Parent: %s process %d exited",
- kid->name().termedBuf(), kid->getPid());
- }
- if (kid->hopeless()) {
- syslog(LOG_NOTICE, "Squid Parent: %s process %d will not"
- " be restarted due to repeated, frequent failures",
- kid->name().termedBuf(), kid->getPid());
- }
+ // If Squid received a signal while checking for dying kids (below) or
+ // starting new kids (above), then do a fast check for a new dying kid
+ // (WaitForAnyPid with the WNOHANG option) and continue to forward
+ // signals to kids. Otherwise, wait for a kid to die or for a signal
+ // to abort the blocking WaitForAnyPid() call.
+ // With the WNOHANG option, we could check whether WaitForAnyPid() was
+ // aborted by a dying kid or a signal, but it is not required: The
+ // next do/while loop will check again for any dying kids.
+ int waitFlag = 0;
+ if (masterSignaled())
+ waitFlag = WNOHANG;
+ pid = WaitForAnyPid(status, waitFlag);
+
+ // check for a stopped kid
+ Kid* kid = pid > 0 ? TheKids.find(pid) : NULL;
+ if (kid) {
+ kid->stop(status);
+ if (kid->calledExit()) {
+ syslog(LOG_NOTICE,
+ "Squid Parent: %s process %d exited with status %d",
+ kid->name().termedBuf(),
+ kid->getPid(), kid->exitStatus());
+ } else if (kid->signaled()) {
+ syslog(LOG_NOTICE,
+ "Squid Parent: %s process %d exited due to signal %d with status %d",
+ kid->name().termedBuf(),
+ kid->getPid(), kid->termSignal(), kid->exitStatus());
} else {
- syslog(LOG_NOTICE, "Squid Parent: unknown child process %d exited", pid);
+ syslog(LOG_NOTICE, "Squid Parent: %s process %d exited",
+ kid->name().termedBuf(), kid->getPid());
}
-#if _SQUID_NEXT_
- } while ((pid = wait3(&status, WNOHANG, NULL)) > 0);
-#else
+ if (kid->hopeless()) {
+ syslog(LOG_NOTICE, "Squid Parent: %s process %d will not"
+ " be restarted due to repeated, frequent failures",
+ kid->name().termedBuf(), kid->getPid());
+ }
+ } else if (pid > 0){
+ syslog(LOG_NOTICE, "Squid Parent: unknown child process %d exited", pid);
}
- while ((pid = waitpid(-1, &status, WNOHANG)) > 0);
-#endif
if (!TheKids.someRunning() && !TheKids.shouldRestartSome()) {
leave_suid();
| [
"[email protected]"
] | |
e96697c9254495bc7d36d780ee1b96f4c3d656e9 | 60596b96d2f4b7d3060821fbe41e853c6b6bb75f | /src/tweet.h | 95330cc276bca066b3782df4586580610055ba95 | [] | no_license | Russ09/twitter-precis | 9cba5c71abd24bafa73fd079f293065380b869ea | 2b6bf3e1513abf07f80c6126333f123c4945928a | refs/heads/master | 2021-01-10T15:28:31.767892 | 2016-01-18T21:55:54 | 2016-01-18T21:55:54 | 49,839,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | h | #ifndef __TWEET_H__
#define __TWEET_H__
class Tweet {
private:
const std::string _messageStringRaw;
const std::string _messageStringProcessed;
const std::string _authorName;
const int _numRetweets;
const int _numFavourites;
public:
Tweet(void);
~Tweet(void);
// Parse _messageStringProcessed and return vector containing each word in order
std::vector<std::string>& getProcessedWords() const;
};
#endif | [
"[email protected]"
] | |
bc1684fca81b8b06828aff16b65aaacd973988ca | 289d6b3bf42cdc64875198c38c9afb8501f3f1af | /problems/bzoj/4154.cpp | b73573b96e1d9511475300aff0b5db8e2296151c | [] | no_license | Yorathgz/OI-Record | bcb8adcf23c3ec6dcb461fcfaa77e39c0e19dbea | 22fa2a15251eb2773c146553d980d4c1ade92d2f | refs/heads/master | 2021-07-18T03:26:39.795733 | 2017-10-22T11:30:54 | 2017-10-22T11:30:54 | 93,631,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,036 | cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#define inf 0xffffff;
#define LL long long
using namespace std;
inline int read()
{
int x=0,f=1;char ch=0;
while(ch!='-'&&(ch>'9'||ch<'0')) ch=getchar();
if(ch=='-') f=-1,ch=getchar();
while(ch>='0'&&ch<='9') x=x*10+ch-'0',ch=getchar();
return x*f;
}
inline void write(int x)
{
if(x<0) x=-x,putchar('-');
if(x>9) write(x/10);
putchar(x%10+'0');
}
/*************************************************************/
//type19,
int ans;
int T,n,c,q,top,root,dfn,tp;
bool cmp_d;
int In[MAXN],Out[MAXN],deep[MAXN],sta[MAXN],id[MAXN];
struct edge { int to; edge *next; }e[MAXN],*prev[MAXN];
inline void insert(int u,int v) { e[++top].to=v;e[top].next=prev[u];prev[u]=&e[top]; }
struct KDtree
{
int ch[2],d[Dnum],minn[Dnum],maxn[Dnum],tim,col,f,flag;
inline void init() { for (int i=0;i<Dnum;++i) minn[i]=maxn[i]=d[i]; }
inline bool operator < (const KDtree& a)const { return d[cmp_d]<a.d[cmp_d]; }
}tree[MAXN];
inline void push_up(int rt)
{
id[tree[rt].flag]=rt;tree[rt].flag=0;tree[rt].col=1;
for (int i=0,x=0;i<2;++i)
if ((x=tree[rt].ch[i]))
{
for (int j=0;j<Dnum;++j)
tree[rt].minn[j]=min(tree[rt].minn[j],tree[x].minn[j]),
tree[rt].maxn[j]=max(tree[rt].maxn[j],tree[x].maxn[j]);
}
}
inline void push_down(int rt)
{
int tmp=0;
if ((tmp=tree[rt].flag))
{
for (int i=0,x=0;i<2;++i) if ((x=tree[rt].ch[i])) tree[x].col=tree[x].flag=tmp;
tree[rt].flag=0;
}
}
int rebuild(int l=1,int r=n,bool d=0,int f=0)
{
cmp_d=d;int mid=(l+r)>>1;nth_element(tree+l,tree+mid,tree+r+1);
tree[mid].init();tree[mid].f=f;
if (l!=mid) tree[mid].ch[0]=rebuild(l,mid-1,d^1,mid);
if (r!=mid) tree[mid].ch[1]=rebuild(mid+1,r,d^1,mid);
return push_up(mid),mid;
}
int col,x1,x2,y1,y2;
void modify(int rt=root)
{
if (tree[rt].minn[0]>x2||tree[rt].maxn[0]<x1||tree[rt].maxn[1]<y1||tree[rt].minn[1]>y2) return;
if (tree[rt].minn[0]>=x1&&tree[rt].maxn[0]<=x2&&tree[rt].minn[1]>=y1&&tree[rt].maxn[1]<=y2) { tree[rt].col=tree[rt].flag=c;return; }
push_down(rt);
if (tree[rt].d[0]>=x1&&tree[rt].d[0]<=x2&&tree[rt].d[1]>=y1&&tree[rt].d[1]<=y2) tree[rt].col=c;
for (int i=0,x=0;i<2;++i) if ((x=tree[rt].ch[i])) modify(x);
}
inline int query(int rt)
{
for (int i=rt;tree[i].f;i=tree[i].f) sta[++tp]=tree[i].f;
while (tp) push_down(sta[tp--]);return tree[rt].col;
}
void dfs(int x)
{
tree[x].flag=x;In[x]=tree[x].d[0]=++dfn;tree[x].d[1]=deep[x];
for (edge *i=prev[x];i;i=i->next) deep[i->to]=deep[x]+1,dfs(i->to);
Out[x]=dfn;
}
inline void clear()
{
for (int i=1;i<=n;i++) for (int j=0;j<2;++j) tree[i].ch[j]=0;
}
int main()
{
for (in(T);T;T--)
{
in(n);in(c);in(q);int u,v;dfn=top=0;
memset(prev+1,0,sizeof(edge*)*(n+1));clear();
for (int i=2;i<=n;i++) in(u),insert(u,i);
dfs(1);root=rebuild();ans=0;
for (int i=1;i<=q;i++)
{
in(u);in(v);in(c);
if (c) x1=In[u],x2=Out[u],y1=deep[u],y2=deep[u]+v,modify();
else ans=(1ll*query(id[u])*i+ans)%P;
}
printf("%d\n",ans);
}
}
| [
"[email protected]"
] | |
48fd04ed0ecedbd72ea9c9f060170e7861f6af32 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Plugins/Editor/GameplayTagsEditor/Source/GameplayTagsEditor/Private/GameplayTagsGraphPanelNodeFactory.h | 4aae061d0e038c6388c6e003d60826c6843a49d5 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 674 | h | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "EdGraphUtilities.h"
#include "SGraphNode.h"
#include "SGraphNode_MultiCompareGameplayTag.h"
#include "GameplayTagsK2Node_MultiCompareBase.h"
class FGameplayTagsGraphPanelNodeFactory : public FGraphPanelNodeFactory
{
virtual TSharedPtr<class SGraphNode> CreateNode(class UEdGraphNode* InNode) const override
{
if (UGameplayTagsK2Node_MultiCompareBase* CompareNode = Cast<UGameplayTagsK2Node_MultiCompareBase>(InNode))
{
return SNew(SGraphNode_MultiCompareGameplayTag, CompareNode);
}
return NULL;
}
};
| [
"[email protected]"
] | |
c2815a254b8c6bff24c6517809516b098a803a39 | 45d300db6d241ecc7ee0bda2d73afd011e97cf28 | /OTCDerivativesCalculatorModule/Project_Cpp/lib_static/FpmlSerialized/GenClass/fpml-mktenv-5-4/CreditCurveValuation.hpp | 15c46234daa81867fdb614750da13d37c0ec4969 | [] | no_license | fagan2888/OTCDerivativesCalculatorModule | 50076076f5634ffc3b88c52ef68329415725e22d | e698e12660c0c2c0d6899eae55204d618d315532 | refs/heads/master | 2021-05-30T03:52:28.667409 | 2015-11-27T06:57:45 | 2015-11-27T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,519 | hpp | // CreditCurveValuation.hpp
#ifndef FpmlSerialized_CreditCurveValuation_hpp
#define FpmlSerialized_CreditCurveValuation_hpp
#include <fpml-riskdef-5-4/PricingStructureValuation.hpp>
#include <fpml-riskdef-5-4/QuotedAssetSet.hpp>
#include <fpml-mktenv-5-4/DefaultProbabilityCurve.hpp>
#include <built_in_type/XsdTypeDecimal.hpp>
#include <fpml-mktenv-5-4/TermCurve.hpp>
namespace FpmlSerialized {
class CreditCurveValuation : public PricingStructureValuation {
public:
CreditCurveValuation(TiXmlNode* xmlNode);
bool isInputs(){return this->inputsIsNull_;}
boost::shared_ptr<QuotedAssetSet> getInputs();
std::string getInputsIDRef(){return inputsIDRef_;}
bool isDefaultProbabilityCurve(){return this->defaultProbabilityCurveIsNull_;}
boost::shared_ptr<DefaultProbabilityCurve> getDefaultProbabilityCurve();
std::string getDefaultProbabilityCurveIDRef(){return defaultProbabilityCurveIDRef_;}
bool isRecoveryRate(){return this->recoveryRateIsNull_;}
boost::shared_ptr<XsdTypeDecimal> getRecoveryRate();
std::string getRecoveryRateIDRef(){return recoveryRateIDRef_;}
bool isRecoveryRateCurve(){return this->recoveryRateCurveIsNull_;}
boost::shared_ptr<TermCurve> getRecoveryRateCurve();
std::string getRecoveryRateCurveIDRef(){return recoveryRateCurveIDRef_;}
std::string getChoiceStr_0(){
std::string str;
int count = 0;
if(!recoveryRateIsNull_){
count += 1;
str = "recoveryRate" ;
}
if(!recoveryRateCurveIsNull_){
count += 1;
str = "recoveryRateCurve" ;
}
QL_REQUIRE(count == 1 , "too many choice" << count);
choiceStr_0_ = str ;
return choiceStr_0_;
}
protected:
boost::shared_ptr<QuotedAssetSet> inputs_;
std::string inputsIDRef_;
bool inputsIsNull_;
boost::shared_ptr<DefaultProbabilityCurve> defaultProbabilityCurve_;
std::string defaultProbabilityCurveIDRef_;
bool defaultProbabilityCurveIsNull_;
boost::shared_ptr<XsdTypeDecimal> recoveryRate_; //choice
std::string recoveryRateIDRef_;
bool recoveryRateIsNull_;
boost::shared_ptr<TermCurve> recoveryRateCurve_; //choice
std::string recoveryRateCurveIDRef_;
bool recoveryRateCurveIsNull_;
//choiceStr
std::string choiceStr_0_;
};
} //namespaceFpmlSerialized end
#endif
| [
"[email protected]"
] | |
c32d6888d8373c26d455c85064dd1dcf22b152a0 | bf4a7f2638a3cf3b99bea8bc08189c7a334493b4 | /ECS/AISystem.cpp | aecd75d1d4503086322e221a40919ba136b27bc7 | [] | no_license | sybek96/Y4-GamesEngineering | 2e80a8b1a82db5e9d16acb228900526e7413aec2 | 39b0d14908dbf2b118e1b348c607c0d885f4c122 | refs/heads/master | 2020-03-28T22:37:13.068023 | 2019-03-28T09:47:42 | 2019-03-28T09:47:42 | 149,245,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | cpp | #include "AISystem.h"
AISystem::AISystem()
: m_output(false)
{
}
AISystem::~AISystem()
{
}
void AISystem::addEntity(Entity e)
{
m_entities.push_back(e);
}
void AISystem::update()
{
if (m_output == false)
{
std::cout << "AI system update" << std::endl;
for (auto entity : m_entities)
{
std::cout << "Updating AI of : " << entity.getName() << std::endl;
}
m_output = true;
}
}
| [
"[email protected]"
] | |
4c9e14821fc6c6c35d0dd06dd8232bac0f692ccb | 58f0f4c254237b00022142f3e0342cd56a6e333e | /include/pcl/ChebyshevFit.h | da036669c7972fed61b171ebc55d6deeb62686ab | [
"LicenseRef-scancode-other-permissive"
] | permissive | cameronleger/PCL | fc7948e5a02a72c67c4b3798619d5d2b4a886add | a231a00ba8ca4a02bac6f19b6d7beae6cfe70728 | refs/heads/master | 2021-09-23T14:40:28.291908 | 2017-10-16T10:27:14 | 2017-10-16T10:27:14 | 109,534,105 | 1 | 0 | null | 2017-11-04T22:12:45 | 2017-11-04T22:12:44 | null | UTF-8 | C++ | false | false | 29,578 | h | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 02.01.07.0873
// ----------------------------------------------------------------------------
// pcl/ChebyshevFit.h - Released 2017-08-01T14:23:31Z
// ----------------------------------------------------------------------------
// This file is part of the PixInsight Class Library (PCL).
// PCL is a multiplatform C++ framework for development of PixInsight modules.
//
// Copyright (c) 2003-2017 Pleiades Astrophoto S.L. All Rights Reserved.
//
// Redistribution and use in both source and binary forms, with or without
// modification, is permitted provided that the following conditions are met:
//
// 1. All redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// 2. All redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// 3. Neither the names "PixInsight" and "Pleiades Astrophoto", nor the names
// of their contributors, may be used to endorse or promote products derived
// from this software without specific prior written permission. For written
// permission, please contact [email protected].
//
// 4. All products derived from this software, in any form whatsoever, must
// reproduce the following acknowledgment in the end-user documentation
// and/or other materials provided with the product:
//
// "This product is based on software from the PixInsight project, developed
// by Pleiades Astrophoto and its contributors (http://pixinsight.com/)."
//
// Alternatively, if that is where third-party acknowledgments normally
// appear, this acknowledgment must be reproduced in the product itself.
//
// THIS SOFTWARE IS PROVIDED BY PLEIADES ASTROPHOTO AND ITS CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PLEIADES ASTROPHOTO OR ITS
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, BUSINESS
// INTERRUPTION; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; AND LOSS OF USE,
// DATA OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
// ----------------------------------------------------------------------------
#ifndef __PCL_ChebyshevFit_h
#define __PCL_ChebyshevFit_h
/// \file pcl/ChebyshevFit.h
#include <pcl/Defs.h>
#include <pcl/Constants.h>
#include <pcl/ErrorHandler.h>
#include <pcl/Exception.h>
#include <pcl/MultiVector.h>
namespace pcl
{
// ----------------------------------------------------------------------------
template <typename Tx, typename Ty> class GenericScalarChebyshevFit;
/*!
* \class GenericChebyshevFit
* \brief Function approximation by Chebyshev polynomial expansion
*
* %GenericChebyshevFit approximates a smooth, vector-valued function f(x) in a
* given interval [a,b] by expansion with a truncated series of Chebyshev
* polynomials. As is well known, the Chebyshev expansion:
*
* T(x) = Sum_i( ci*Ti(x) ),
*
* where i belongs to [0,∞), Ti(x) is the Chebyshev polynomial of the ith
* degree, and the ci's are polynomial coefficients, is very close to the
* optimal approximating polynomial that minimizes the error |T(x) - f(x)|,
* where x varies over the fitting interval [a,b].
*
* For functions converging strongly after a given series length n, one can
* truncate the Chebyshev series to a smaller length m < n to obtain an
* approximating polynomial with a maximum error close to |Tm+1(x)|.
*
* In addition to Chebyshev expansion, truncation and approximation, this class
* also implements generation of Chebyshev polynomials to approximate the
* first derivative and indefinite integral of the fitted function.
*
* The template argument Tx represents the type of the independent variable, or
* the type of the argument x of the fitted function y = f(x). The template
* argument Ty represents the type of a component of the value y of the fitted
* function.
*/
template <typename Tx, typename Ty>
class GenericChebyshevFit
{
public:
/*!
* Represents an ordered list of Chebyshev polynomial coefficients.
*/
typedef GenericVector<Ty> coefficients;
/*!
* Represents a set of ordered lists of Chebyshev polynomial coefficients.
*/
typedef GenericMultiVector<Ty> coefficient_series;
/*!
* Represents a function value.
*/
typedef GenericVector<Ty> function_value;
/*!
* Represents a set of function values.
*/
typedef GenericMultiVector<Ty> function_values;
/*!
* Constructs a truncated Chebyshev polynomial expansion with \a n
* coefficients to approximate the specified N-dimensional, vector-valued
* function \a f in the interval [\a x1,\a x2] of the independent variable.
*
* The function \a f will be called \a n times and should have the following
* prototype (or equivalent by means of suitable type conversions and/or
* default arguments):
*
* GenericVector<Ty> f( Tx )
*
* where the length of a returned vector must be equal to \a N.
*
* The expansion process will compute n^2 + n cosines, which may dominate the
* complexity of the process if the function \a f is comparatively fast.
*
* The interval [\a x1,\a x2] must not be empty or insignificant with
* respect to the machine epsilon. If that happens, this constructor will
* throw an appropriate Error exception. The interval bounds can be
* specified in any order, that is, \a x2 can legally be < \a x1; in such
* case the bounds will be implicitly swapped by this constructor.
*
* The interval [\a x1,\a x2] will be also the valid range of evaluation for
* this object, which can be retrieved with LowerBound() and UpperBound().
* See also the Evaluate() member function.
*
* The length \a n of the polynomial coefficient series should be ≥ 2. If
* \a n ≤ 1, the specified value will be ignored and \a n = 2 will be
* forced. Typically, a relatively large series length should be used, say
* between 30 and 100 coefficients, depending on the rate and amplitude of
* function variations within the fitting interval. The polynomial expansion
* can be further truncated to approximate the function to the desired error
* bound. See the Truncate() and Evaluate() member functions for details.
*/
template <class F>
GenericChebyshevFit( F f, Tx x1, Tx x2, int N, int n ) :
dx( Abs( x2 - x1 ) ),
x0( (x1 + x2)/2 ),
m( Max( 2, n ), Max( 1, N ) )
{
PCL_PRECONDITION( N > 0 )
PCL_PRECONDITION( n > 1 )
if ( 1 + dx == 1 )
throw Error( "GenericChebyshevFit: Empty or insignificant function evaluation interval." );
N = m.Length();
n = m[0];
Tx dx2 = dx/2;
function_values y( n, N );
for ( int j = 0; j < n; ++j )
y[j] = f( x0 + Cos( Const<Ty>::pi()*(j + 0.5)/n )*dx2 );
c = coefficient_series( N, n );
Ty k = 2.0/n;
for ( int i = 0; i < N; ++i )
for ( int j = 0; j < n; ++j )
{
Ty s = Ty( 0 );
for ( int k = 0; k < n; ++k )
s += y[k][i] * Cos( Const<Ty>::pi()*j*(k + 0.5)/n );
c[i][j] = k*s;
}
}
/*!
* Constructs a truncated Chebyshev polynomial expansion from the specified
* coefficient series \a ck to approximate a vector-valued function in the
* interval [\a x1,\a x2] of the independent variable. The dimension of the
* approximated function and the coefficient series lengths are acquired
* from the specified container \a ck.
*
* This constructor performs basic coherence and structural integrity checks
* on the specified parameters, and throws the appropriate Error exception
* if it detects any problem. However, the validity of polynomial expansion
* coefficients cannot be verified; ensuring it is the responsibility of the
* caller.
*/
GenericChebyshevFit( const coefficient_series& ck, Tx x1, Tx x2 ) :
dx( Abs( x2 - x1 ) ),
x0( (x1 + x2)/2 ),
c( ck ),
m( ck.Length() )
{
if ( 1 + dx == 1 )
throw Error( "GenericChebyshevFit: Empty or insignificant function evaluation interval." );
if ( c.IsEmpty() )
throw Error( "GenericChebyshevFit: Empty polynomial expansion." );
for ( int i = 0; i < m.Length(); ++i )
if ( (m[i] = c[i].Length()) < 1 )
throw Error( "GenericChebyshevFit: Invalid coefficient series for dimension " + String( i ) + '.' );
}
/*!
* Copy constructor.
*/
GenericChebyshevFit( const GenericChebyshevFit& ) = default;
/*!
* Move constructor.
*/
#ifndef _MSC_VER
GenericChebyshevFit( GenericChebyshevFit&& ) = default;
#else
GenericChebyshevFit( GenericChebyshevFit&& x ) :
dx( x.dx ),
x0( x.x0 ),
c( std::move( x.c ) ),
m( std::move( x.m ) )
{
}
#endif
/*!
* Copy assignment operator. Returns a reference to this object.
*/
GenericChebyshevFit& operator =( const GenericChebyshevFit& ) = default;
/*!
* Move assignment operator. Returns a reference to this object.
*/
#ifndef _MSC_VER
GenericChebyshevFit& operator =( GenericChebyshevFit&& ) = default;
#else
GenericChebyshevFit& operator =( GenericChebyshevFit&& x )
{
dx = x.dx;
x0 = x.x0;
c = std::move( x.c );
m = std::move( x.m );
return *this;
}
#endif
/*!
* Returns the lower bound of this Chebyshev fit. This is the smallest value
* of the independent variable for which the function has been fitted, and
* hence the smallest value for which this object can be legally evaluated
* for function approximation.
*
* \sa UpperBound()
*/
Tx LowerBound() const
{
return x0 - dx/2;
}
/*!
* Returns the upper bound of this Chebyshev fit. This is the largest value
* of the independent variable for which the function has been fitted, and
* hence the largest value for which this object can be legally evaluated
* for function approximation.
*
* \sa LowerBound()
*/
Tx UpperBound() const
{
return x0 + dx/2;
}
/*!
* Returns the number of components in the (vector-valued) dependent
* variable. This is the number of vector components in a fitted or
* approximated function value.
*/
int NumberOfComponents() const
{
return m.Length();
}
/*!
* Returns the number of coefficients in the generated Chebyshev polynomial
* expansion for the specified zero-based vector component index \a i. This
* is the number of coefficients that was specified or acquired in a class
* constructor.
*
* \sa TruncatedLength()
*/
int Length( int i = 0 ) const
{
PCL_PRECONDITION( i >= 0 && i < NumberOfComponents() )
return c[i].Length();
}
/*!
* Returns the number of coefficients in the truncated Chebyshev polynomial
* expansion for the specified zero-based vector component index \a i.
*
* If \a i < 0, returns the largest number of polynomial coefficients among
* all vector components.
*
* \sa Truncate(), Length()
*/
int TruncatedLength( int i = -1 ) const
{
PCL_PRECONDITION( i < 0 || i < NumberOfComponents() )
if ( i < 0 )
return m.MaxComponent();
return m[i];
}
/*!
* Returns true iff the Chebyshev polynomial expansion has been truncated
* for the specified zero-based vector component index \a i.
*
* If \a i < 0, returns true iff the expansions have been truncated for all
* vector components.
*
* \sa Truncate(), TruncatedLength()
*/
bool IsTruncated( int i = -1 ) const
{
PCL_PRECONDITION( i < 0 || i < NumberOfComponents() )
if ( i < 0 )
return m.MaxComponent() < Length();
return m[i] < c[i].Length();
}
/*!
* Returns an estimate of the maximum error in the truncated Chebyshev
* polynomial expansion for the specified zero-based vector component index
* \a i.
*
* If \a i < 0, returns the largest expansion error estimate among all
* vector components.
*
* \sa Truncate()
*/
Ty TruncationError( int i = -1 ) const
{
PCL_PRECONDITION( i < 0 || i < NumberOfComponents() )
if ( i < 0 )
{
int N = NumberOfComponents();
function_value e( N );
for ( int j = 0; j < N; ++j )
e[j] = TruncationError( j );
return e.MaxComponent();
}
if ( m[i] < c[i].Length() )
{
Ty e = Ty( 0 );
for ( int j = c[i].Length(); --j >= m[i]; )
e += Abs( c[i][j] );
return e;
}
return Abs( c[i][c[i].Length()-1] );
}
/*!
* Attempts to truncate the Chebyshev polynomial expansion for the specified
* maximum error \a e. Returns \c true iff the expansion could be truncated
* successfully for all vector components of the fitted function.
*
* If n is the length of a fitted polynomial series, this function finds a
* truncated length 1 < m ≤ n such that:
*
* Sum_i( |ci| ) < e
*
* where ci is a polynomial coefficient and the zero-based subindex i is in
* the interval [m,n-1].
*
* The truncated Chebyshev expansion will approximate the fitted function
* component with a maximum error close to ±|e| within the fitting
* interval.
*
* This member function does not remove any polynomial coefficients, so the
* original polynomial expansion remains intact. This means that the fitted
* polynomials can be truncated successively to achieve different error
* bounds, as required.
*
* If the polynomial series cannot be truncated to achieve the required
* tolerance in all function components (that is, if either all coefficients
* for a given component are larger than \a e in absolute value, or n = 2),
* this function forces m = n for the components where the requested
* truncation is not feasible, yielding the original, untruncated Chebyshev
* polynomials for those components. In such case this function returns
* \c false.
*/
bool Truncate( Ty e )
{
e = Abs( e );
int N = NumberOfComponents();
int tc = 0;
for ( int i = 0; i < N; ++i )
{
Ty s = Ty( 0 );
for ( m[i] = c[i].Length(); m[i] > 2; --m[i] )
if ( (s += Abs( c[i][m[i]-1] )) >= e )
break;
if ( m[i] < c[i].Length() )
++tc;
}
return tc == N;
}
/*!
* Returns a reference to the immutable set of Chebyshev polynomial
* expansion coefficients in this object.
*/
const coefficient_series& Coefficients() const
{
return c;
}
/*!
* Evaluates the truncated Chebyshev polynomial expansion for the specified
* value \a x of the independent variable, and returns the approximated
* function value.
*
* The specified evaluation point \a x must lie within the fitting interval,
* given by LowerBound() and UpperBound(), which was specified as the \a x1
* and \a x2 arguments when the function was initially fitted by the class
* constructor. For performance reasons, this precondition is not verified
* by this member function. If an out-of-range evaluation point is
* specified, this function will return an unpredictable result.
*
* If the polynomial series has been truncated by calling Truncate(), this
* function evaluates the current truncated Chebyshev expansions instead of
* the original ones.
*
* \sa operator ()()
*/
function_value Evaluate( Tx x ) const
{
PCL_PRECONDITION( x >= LowerBound() )
PCL_PRECONDITION( x <= UpperBound() )
const Ty y0 = Ty( 2*(x - x0)/dx );
const Ty y2 = 2*y0;
function_value y( NumberOfComponents() );
for ( int i = 0; i < y.Length(); ++i )
{
Ty d0 = Ty( 0 );
Ty d1 = Ty( 0 );
const Ty* k = c[i].At( m[i] );
for ( int j = m[i]; --j > 0; )
{
Ty d = d1;
d1 = y2*d1 - d0 + *--k;
d0 = d;
}
y[i] = y0*d1 - d0 + *--k/2;
}
return y;
}
/*!
* A synonym for Evaluate().
*/
function_value operator ()( Tx x ) const
{
return Evaluate( x );
}
/*!
* Returns a %GenericChebyshevFit object that approximates the derivative of
* the function fitted by this object.
*
* The returned object can be used to evaluate the derivative within the
* fitting interval of this object, defined by LowerBound() and
* UpperBound().
*
* The returned object will always own Chebyshev polynomials with the length
* of the originally fitted series, \e not of the current truncated lengths,
* if the polynomial expansions have been truncated.
*
* \sa Integral()
*/
GenericChebyshevFit Derivative() const
{
int N = NumberOfComponents();
GenericChebyshevFit ch1;
ch1.dx = dx;
ch1.x0 = x0;
ch1.c = coefficient_series( N );
ch1.m = IVector( N );
for ( int i = 0; i < N; ++i )
{
int n = Max( 1, c[i].Length()-1 );
ch1.c[i] = coefficients( n );
ch1.m[i] = n;
if ( n > 1 )
{
ch1.c[i][n-1] = 2*n*c[i][n];
ch1.c[i][n-2] = 2*(n-1)*c[i][n-1];
for ( int j = n-3; j >= 0; --j )
ch1.c[i][j] = ch1.c[i][j+2] + 2*(j+1)*c[i][j+1];
ch1.c[i] *= Ty( 2 )/dx;
}
else
ch1.c[i] = Ty( 0 );
}
return ch1;
}
/*!
* Returns a %GenericChebyshevFit object that approximates the indefinite
* integral of the function fitted by this object.
*
* The returned object can be used to evaluate the integral within the
* fitting interval of this object, as defined by LowerBound() and
* UpperBound(). The constant of integration is set to a value such that the
* integral is zero at the lower fitting bound.
*
* The returned object will always own Chebyshev polynomials with the length
* of the originally fitted series, \e not of the current truncated lengths,
* if the polynomial expansions have been truncated.
*
* \sa Derivative()
*/
GenericChebyshevFit Integral() const
{
int N = NumberOfComponents();
GenericChebyshevFit ch;
ch.dx = dx;
ch.x0 = x0;
ch.c = coefficient_series( N );
ch.m = IVector( N );
for ( int i = 0; i < N; ++i )
{
int n = c[i].Length();
ch.c[i] = coefficients( n );
ch.m[i] = n;
if ( n > 1 )
{
const Ty k = Ty( dx )/4;
Ty s = Ty( 0 );
int f = 1;
for ( int j = 1; j < n-1; ++j, f = -f )
s += f*(ch.c[i][j] = k*(c[i][j-1] - c[i][j+1])/j);
ch.c[i][0] = 2*(s + f*(ch.c[i][n-1] = k*c[i][n-2]/(n-1)));
}
else
ch.c[i] = Ty( 0 );
}
return ch;
}
private:
Tx dx; // x2 - x1
Tx x0; // (x1 + x2)/2
coefficient_series c; // Chebyshev polynomial coefficients
IVector m; // length of the truncated coefficient series
/*!
* \internal
* Default constructor, used internally by several member functions.
*/
GenericChebyshevFit()
{
}
friend class GenericScalarChebyshevFit<Tx,Ty>;
};
// ----------------------------------------------------------------------------
template <typename Tx, typename Ty>
class GenericScalarChebyshevFit : public GenericChebyshevFit<Tx,Ty>
{
public:
/*!
* Constructs a truncated Chebyshev polynomial expansion with \a n
* coefficients to approximate the specified N-dimensional, scalar-valued
* function \a f in the interval [\a x1,\a x2] of the independent variable.
*
* See GenericChebyshevFit::GenericChebyshevFit() for detailed information.
*/
template <class F>
GenericScalarChebyshevFit( F f, Tx x1, Tx x2, int n ) :
GenericChebyshevFit<Tx,Ty>( [f]( Tx x ){ return GenericVector<Ty>( f( x ), 1 ); }, x1, x2, 1, n )
{
}
/*!
* Copy constructor.
*/
GenericScalarChebyshevFit( const GenericScalarChebyshevFit& ) = default;
/*!
* Move constructor.
*/
GenericScalarChebyshevFit( GenericScalarChebyshevFit&& ) = default;
/*!
* Copy assignment operator.
*/
GenericScalarChebyshevFit& operator =( const GenericScalarChebyshevFit& ) = default;
/*!
* Move assignment operator.
*/
GenericScalarChebyshevFit& operator =( GenericScalarChebyshevFit&& ) = default;
/*!
* Returns the number of coefficients in the truncated Chebyshev polynomial
* expansion.
*
* \sa Truncate(), Length()
*/
int TruncatedLength() const
{
return GenericChebyshevFit<Tx,Ty>::TruncatedLength( 0 );
}
/*!
* Returns true iff the Chebyshev polynomial expansion has been truncated.
*
* \sa Truncate(), TruncatedLength()
*/
bool IsTruncated() const
{
return GenericChebyshevFit<Tx,Ty>::IsTruncated( 0 );
}
/*!
* Returns an estimate of the maximum error in the truncated Chebyshev
* polynomial expansion.
*
* \sa Truncate()
*/
Ty TruncationError() const
{
return GenericChebyshevFit<Tx,Ty>::TruncationError( 0 );
}
/*!
* Evaluates the truncated Chebyshev polynomial expansion for the specified
* value \a x of the independent variable, and returns the approximated
* function value.
*
* \sa operator ()()
*/
Ty Evaluate( Tx x ) const
{
return GenericChebyshevFit<Tx,Ty>::Evaluate( x )[0];
}
/*!
* A synonym for Evaluate().
*/
Ty operator ()( Tx x ) const
{
return Evaluate( x );
}
/*!
* Returns a %GenericChebyshevFit object that approximates the derivative of
* the function fitted by this object.
*
* See GenericChebyshevFit::Derivative() for detailed information.
*
* \sa Integral()
*/
GenericScalarChebyshevFit Derivative() const
{
return GenericChebyshevFit<Tx,Ty>::Derivative();
}
/*!
* Returns a %GenericChebyshevFit object that approximates the indefinite
* integral of the function fitted by this object.
*
* See GenericChebyshevFit::Integral() for detailed information.
*
* \sa Derivative()
*/
GenericScalarChebyshevFit Integral() const
{
return GenericChebyshevFit<Tx,Ty>::Integral();
}
private:
/*!
* \internal
* Private constructor from the base class.
*/
GenericScalarChebyshevFit( const GenericChebyshevFit<Tx,Ty>& T ) :
GenericChebyshevFit<Tx,Ty>()
{
this->dx = T.dx;
this->x0 = T.x0;
this->c = typename GenericChebyshevFit<Tx,Ty>::coefficient_series( 1 );
this->c[0] = T.c[0];
this->m = IVector( 1 );
this->m[0] = T.m[0];
}
};
// ----------------------------------------------------------------------------
#ifndef __PCL_NO_CHEBYSHEV_FIT_INSTANTIATE
/*!
* \defgroup chebyshev_fit_types Chebyshev Fit Types
*/
/*!
* \class pcl::F32ChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 32-bit floating point Chebyshev function approximation.
*
* %F32ChebyshevFit is a template instantiation of GenericChebyshevFit for the
* \c float type.
*/
typedef GenericChebyshevFit<float, float> F32ChebyshevFit;
/*!
* \class pcl::FChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 32-bit floating point Chebyshev function approximation.
*
* %FChebyshevFit is an alias for F32ChebyshevFit. It is a template
* instantiation of GenericChebyshevFit for the \c float type.
*/
typedef F32ChebyshevFit FChebyshevFit;
/*!
* \class pcl::F64ChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 64-bit floating point Chebyshev function approximation.
*
* %F64ChebyshevFit is a template instantiation of GenericChebyshevFit for the
* \c double type.
*/
typedef GenericChebyshevFit<double, double> F64ChebyshevFit;
/*!
* \class pcl::DChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 64-bit floating point Chebyshev function approximation.
*
* %DChebyshevFit is an alias for F64ChebyshevFit. It is a template
* instantiation of GenericChebyshevFit for the \c double type.
*/
typedef F64ChebyshevFit DChebyshevFit;
/*!
* \class pcl::ChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 64-bit floating point Chebyshev function approximation.
*
* %ChebyshevFit is an alias for DChebyshevFit. It is a template instantiation
* of GenericChebyshevFit for the \c double type.
*/
typedef DChebyshevFit ChebyshevFit;
#ifndef _MSC_VER
/*!
* \class pcl::F80ChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 80-bit extended precision floating point Chebyshev function
* approximation.
*
* %F80ChebyshevFit is a template instantiation of GenericChebyshevFit for the
* \c long \c double type.
*
* \note This template instantiation is not available on Windows with Visual
* C++ compilers.
*/
typedef GenericChebyshevFit<long double, long double> F80ChebyshevFit;
/*!
* \class pcl::LDChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 80-bit extended precision floating point Chebyshev function
* approximation.
*
* %LDChebyshevFit is an alias for F80ChebyshevFit. It is a template
* instantiation of GenericChebyshevFit for the \c long \c double type.
*
* \note This template instantiation is not available on Windows with Visual
* C++ compilers.
*/
typedef F80ChebyshevFit LDChebyshevFit;
#endif // !_MSC_VER
/*!
* \class pcl::F32ScalarChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 32-bit floating point scalar Chebyshev function approximation.
*
* %F32ScalarChebyshevFit is a template instantiation of
* GenericScalarChebyshevFit for the \c float type.
*/
typedef GenericScalarChebyshevFit<float, float> F32ScalarChebyshevFit;
/*!
* \class pcl::FScalarChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 32-bit floating point scalar Chebyshev function approximation.
*
* %FScalarChebyshevFit is an alias for F32ScalarChebyshevFit. It is a template
* instantiation of GenericScalarChebyshevFit for the \c float type.
*/
typedef F32ScalarChebyshevFit FScalarChebyshevFit;
/*!
* \class pcl::F64ScalarChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 64-bit floating point scalar Chebyshev function approximation.
*
* %F64ScalarChebyshevFit is a template instantiation of
* GenericScalarChebyshevFit for the \c double type.
*/
typedef GenericScalarChebyshevFit<double, double> F64ScalarChebyshevFit;
/*!
* \class pcl::DScalarChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 64-bit floating point scalar Chebyshev function approximation.
*
* %DScalarChebyshevFit is an alias for F64ScalarChebyshevFit. It is a template
* instantiation of GenericScalarChebyshevFit for the \c double type.
*/
typedef F64ScalarChebyshevFit DScalarChebyshevFit;
/*!
* \class pcl::ScalarChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 64-bit floating point scalar Chebyshev function approximation.
*
* %ScalarChebyshevFit is an alias for DScalarChebyshevFit. It is a template
* instantiation of GenericScalarChebyshevFit for the \c double type.
*/
typedef DScalarChebyshevFit ScalarChebyshevFit;
#ifndef _MSC_VER
/*!
* \class pcl::F80ScalarChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 80-bit extended precision floating point scalar Chebyshev function
* approximation.
*
* %F80ScalarChebyshevFit is a template instantiation of
* GenericScalarChebyshevFit for the \c long \c double type.
*
* \note This template instantiation is not available on Windows with Visual
* C++ compilers.
*/
typedef GenericScalarChebyshevFit<long double, long double> F80ScalarChebyshevFit;
/*!
* \class pcl::LDScalarChebyshevFit
* \ingroup chebyshev_fit_types
* \brief 80-bit extended precision floating point scalar Chebyshev function
* approximation.
*
* %LDScalarChebyshevFit is an alias for F80ScalarChebyshevFit. It is a
* template instantiation of GenericScalarChebyshevFit for the \c long
* \c double type.
*
* \note This template instantiation is not available on Windows with Visual
* C++ compilers.
*/
typedef F80ScalarChebyshevFit LDScalarChebyshevFit;
#endif // !_MSC_VER
#endif // !__PCL_NO_CHEBYSHEV_FIT_INSTANTIATE
// ----------------------------------------------------------------------------
} // pcl
#endif // __PCL_ChebyshevFit_h
// ----------------------------------------------------------------------------
// EOF pcl/ChebyshevFit.h - Released 2017-08-01T14:23:31Z
| [
"[email protected]"
] | |
38a6a8e011bda03f90e231bc3024c70bf8e1519e | 4663f1916f9841574023fdd5b86e3e9b422dc6e6 | /algorithms/heaps.cpp | e4dcda3fab82f341654b054bb83ee979afc75d53 | [] | no_license | MiniMinja/USACO.GUIDE | 4ca243a9a7b2a676063a668dcb2b7dda4060aaa4 | 4cbf4fe2c6fae02e9bd090df44d2e8a88ea3c11e | refs/heads/master | 2023-06-20T08:27:19.715900 | 2021-07-19T04:47:30 | 2021-07-19T04:47:30 | 368,712,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,405 | cpp | #include <bits/stdc++.h>
void printVector(std::vector<int>& arr){
for(int a: arr){
std::cout << a << " ";
}
std::cout << std::endl;
}
/*
* This is Heap's algorithm to come up with every perumtation. Typically the
* algorithm is recursive:
*/
void generate(int k, std::vector<int>& arr, int level){
for(int i = 0;i<level;i++) std::cout << "\t";
std::cout << "At level: " << level << std::endl;
for(int i = 0;i<level;i++) std::cout << "\t";
std::cout << "k: " << k << " Arr: ";
printVector(arr);
if(k == 1){
printVector(arr);
}
else{
generate(k-1, arr, level+1);
for(int i = 0;i<level;i++) std::cout << "\t";
std::cout << "For looping..." << std::endl;
for(int i = 0;i<k-1;i++){
for(int j = 0;j<level+1;j++) std::cout << "\t";
std::cout << "i: " << i << std::endl;
for(int j = 0;j<level+2;j++) std::cout << "\t";
if(k % 2 == 0){
std::cout << "Swapping: " << arr[i] << " and " << arr[k-1] << std::endl;
std::swap(arr[i], arr[k-1]);
}
else{
std::cout << "Swapping: " << arr[0] << " and " << arr[k-1] << std::endl;
std::swap(arr[0], arr[k-1]);
}
generate(k-1, arr, level+1);
}
}
}
struct generator{
private:
std::vector<int>* arr;
int k;
public:
generator(std::vector<int>* arr){
this->arr = arr;
k = arr->size();
}
};
int main(){
std::vector<int> arr = {1, 2, 3, 4, 5};
printVector(arr);
generate(arr.size(), arr, 0);
}
| [
"[email protected]"
] | |
4238d06fd470c598664b85609d8d89093ad7ad2f | 5d70c22e4d5fb887fa41042e204563140b29f271 | /WAEF/CodeAuditView.h | d64dc27dd341686fbf757d9d7122b099de0de9df | [] | no_license | Shark2016/WAEF | a2f0bfd898b0278a9b45f7d7e5f531cfc957dea6 | 379a8a5f8bed69433513b16331c09c59720b1df1 | refs/heads/main | 2023-04-07T23:58:52.470814 | 2021-04-12T08:20:31 | 2021-04-12T08:20:31 | 356,913,235 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 936 | h | #pragma once
#include "afxcmn.h"
#include "CodeAuditMdl.h"
// CCodeAuditView 窗体视图
class CCodeAuditView : public CFormView
{
DECLARE_DYNCREATE(CCodeAuditView)
public:
CCodeAuditView(); // 动态创建所使用的受保护的构造函数
virtual ~CCodeAuditView();
public:
enum { IDD = IDD_CODE_AUDIT_VIEW };
#ifdef _DEBUG
virtual void AssertValid() const;
#ifndef _WIN32_WCE
virtual void Dump(CDumpContext& dc) const;
#endif
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
virtual void OnInitialUpdate();
afx_msg void OnBnClickedAuditLoadProject();
private:
bool m_First;
CTreeCtrl m_ProjectTree;
CCodeAuditMdl _codeAuditMdl;
public:
afx_msg void OnBnClickedAuditStartAudit();
CListCtrl m_ResultList;
afx_msg void OnNMDblclkAuditResultList(NMHDR *pNMHDR, LRESULT *pResult);
};
| [
"[email protected]"
] | |
6b037083a27aea500a02cdf8ad51aa341ed75097 | f0a26ec6b779e86a62deaf3f405b7a83868bc743 | /Engine/Source/Developer/AssetTools/Private/AssetTypeActions/AssetTypeActions_InterpData.h | aecf78cb42993f268384ee7965f756b8b3680a26 | [] | no_license | Tigrouzen/UnrealEngine-4 | 0f15a56176439aef787b29d7c80e13bfe5c89237 | f81fe535e53ac69602bb62c5857bcdd6e9a245ed | refs/heads/master | 2021-01-15T13:29:57.883294 | 2014-03-20T15:12:46 | 2014-03-20T15:12:46 | 18,375,899 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | h | // Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
class FAssetTypeActions_InterpData : public FAssetTypeActions_Base
{
public:
// IAssetTypeActions Implementation
virtual FText GetName() const OVERRIDE { return NSLOCTEXT("AssetTypeActions", "AssetTypeActions_InterpData", "Matinee Data"); }
virtual FColor GetTypeColor() const OVERRIDE { return FColor(255,128,0); }
virtual UClass* GetSupportedClass() const OVERRIDE { return UInterpData::StaticClass(); }
virtual uint32 GetCategories() OVERRIDE { return EAssetTypeCategories::Misc; }
}; | [
"[email protected]"
] | |
6b5f440802080ffa496085587a925611062a99c5 | 291e73a8eb9b7b8ee00e4bccb67c5a2f879ed804 | /wjdgur778/캐시.cpp | 33943d23ff8c335ebfb728662025b6cf1d9a3f15 | [] | no_license | sejong-algorithm/Study | 7ce16fdd1318c1b1f2810fd434df9022ed26a17b | 6df92a22d3b8d59a3f5e0aa4555b8dd8d0e1b768 | refs/heads/master | 2020-12-04T19:08:58.123192 | 2020-11-22T08:30:22 | 2020-11-22T08:30:22 | 231,876,773 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 2,508 | cpp | #include <string>
#include <vector>
#include<deque>
#include<iostream>
#include<list>
using namespace std;
int solution(int cache, vector<string> cities) {
int answer = 0;
list <string> deq;
for (int i = 0; i < cities.size(); i++) {
for (int j = 0; j < cities[i].size(); j++) {
if (cities[i][j] < 97) {
cities[i][j] += 32;
}
}
}//소문자로 변환
for (int i = 0; i < cities.size(); i++) {
if (cache == 0)return cities.size() * 5;
else {
if (deq.empty()) {
deq.push_back(cities[i]);
answer += 5;
}
else {
if (deq.size() == cache) {
bool f = false;
for (auto j = deq.begin(); j != deq.end(); j++) {
if (!j->compare(cities[i])) {
//hit
deq.erase(j);
deq.push_back(cities[i]);
f = true;
break;
}
}
if (f) {
answer++;
}
else {
deq.pop_front();
deq.push_back(cities[i]);
answer += 5;
}
}
else {
bool f = false;
for (auto j = deq.begin(); j != deq.end(); j++) {
if (!j->compare(cities[i])) {
//hit
deq.erase(j);
deq.push_back(cities[i]);
f = true;
break;
}
}
if (f) {
answer++;
}
else {
deq.push_back(cities[i]);
answer += 5;
}
}
}
}
}
return answer;
}
int main() {
cout<< solution(12, { "a", "b", "c", "b", "a", "c","b"});
return 0;
} | [
"[email protected]"
] | |
885681d11e61da66b458f77fd6cc1d03bb24ab63 | 191daf1103b2aa2ec304afcee38501176806297e | /ex01/Span.hpp | d27db2f64ff3aa588ec0daeba3d839fc29e40591 | [] | no_license | dennis903/CPP_Module_08 | a3637aee0eadddff11db2e572a5459d9d7368d3e | 19d992485092ece0e4ed2affc2aee61b8b9d9cf6 | refs/heads/master | 2023-07-14T13:01:51.915345 | 2021-08-05T14:03:03 | 2021-08-05T14:03:03 | 391,669,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 592 | hpp | #ifndef SPAN_HPP
# define SPAN_HPP
# include <iostream>
# include <exception>
# include <vector>
# include <algorithm>
class Span
{
private:
unsigned int n;
std::vector<int> vt;
Span();
public:
Span(unsigned int _n);
Span(const Span &_Span);
~Span();
Span &operator = (const Span &_Span);
void addNumber(int n);
void addNumber(const std::vector<int>::iterator &begin, const std::vector<int>::iterator &end);
int shortestSpan(void);
int longestSpan(void);
class Exception : public std::exception
{
public:
const char *what() const throw();
};
};
#endif | [
"[email protected]"
] | |
71f901b1f2a5fe9971b1e02fc2dbb92a3fba6dd1 | 58e816e044264fc63af2cfc4933c25fcb617094d | /week-04/day-3/AnimalsInTheZoo/main.cpp | 373d8f2992b05934a89c0ba4f011e1eb97bdf84b | [] | no_license | green-fox-academy/Rozsnya | c3d68645cb513c37ec24b9bcbec2f58b9c9b2623 | 305a167925585d9e8917de26fda95d6128aa8f88 | refs/heads/master | 2020-04-16T18:51:55.774289 | 2019-03-21T18:23:12 | 2019-03-21T18:23:12 | 165,837,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 575 | cpp | #include <iostream>
#include "Animal.h"
#include "Mammal.h"
#include "Egglayer.h"
#include "Bird.h"
#include "Reptile.h"
int main()
{
Reptile reptile("Crocodile");
Mammal mammal("Koala");
Bird bird("Parrot");
std::cout << "How do you breed?" << std::endl;
std::cout << "A " << reptile.getName() << " is breeding by " << reptile.breed() << std::endl;
std::cout << "A " << mammal.getName() << " is breeding by " << mammal.breed() << std::endl;
std::cout << "A " << bird.getName() << " is breeding by " << bird.breed() << std::endl;
return 0;
} | [
"[email protected]"
] | |
e8be004d5220e5930f2526565ca3c546c17fdf02 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/curl/gumtree/curl_repos_function_1981_curl-7.35.0.cpp | cb78065297ac8e050f8e6795abbc36ca552e2be9 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 434 | cpp | static int ssl_ui_reader(UI *ui, UI_STRING *uis)
{
const char *password;
switch(UI_get_string_type(uis)) {
case UIT_PROMPT:
case UIT_VERIFY:
password = (const char*)UI_get0_user_data(ui);
if(NULL != password &&
UI_get_input_flags(uis) & UI_INPUT_FLAG_DEFAULT_PWD) {
UI_set_result(ui, uis, password);
return 1;
}
default:
break;
}
return (UI_method_get_reader(UI_OpenSSL()))(ui, uis);
} | [
"[email protected]"
] | |
67213cc22273fb730eb86fdb6b83a8f1904634b8 | 386c0d77daa0327c5d075019701fdc680413e1b4 | /cycle/main.cpp | 2a4d1311bf39796eae544bad5055d0fdb7927eb4 | [
"MIT"
] | permissive | Xtra-Computing/PathEnum | ee99123bafdeb7bb55e44c1f5d7f786dd108679f | 8e20c86799e5ef0170998bd119654fee846f90f3 | refs/heads/main | 2023-03-25T18:10:08.887119 | 2021-03-23T06:57:43 | 2021-03-23T06:57:43 | 349,334,212 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,982 | cpp | //
// Created by Shixuan Sun on 2020/6/30.
//
#include <chrono>
#include <future>
#include <numeric>
#include <iostream>
#include "util/log/log.h"
#include "util/graph/directed_graph.h"
#include "util/io/io.h"
#include "cycle_enumerator.h"
bool execute_within_time_limit(CycleEnumerator* enumerator, uint32_t src, uint32_t dst,
CycleEnumerator::query_method method_type, uint64_t time_limit) {
g_exit = false;
std::future<uint64_t> future = std::async(std::launch::async, [enumerator, src, dst, method_type](){
return enumerator->execute(src, dst, method_type);
});
std::future_status status;
do {
status = future.wait_for(std::chrono::seconds(time_limit));
if (status == std::future_status::deferred) {
log_error("Deferred.");
exit(-1);
} else if (status == std::future_status::timeout) {
g_exit = true;
}
} while (status != std::future_status::ready);
return !g_exit;
}
int main(int argc, char *argv[]) {
/**
* Parse command.
*/
std::string input_graph_folder(argv[1]);
std::string input_query_file(argv[2]);
std::string input_result_folder(argv[3]);
std::string input_method_type(argv[4]);
std::string input_length_constraint(argv[5]);
std::string input_per_query_time_limit(argv[6]);
CycleEnumerator::query_method method_type = CycleEnumerator::query_method::IDX_DFS;
if (input_method_type == "IDX_DFS") {
method_type = CycleEnumerator::query_method::IDX_DFS;
}
else if (input_method_type == "IDX_JOIN") {
method_type = CycleEnumerator::query_method::IDX_JOIN;
}
else if (input_method_type == "PATH_ENUM") {
method_type = CycleEnumerator::query_method::PATH_ENUM;
}
else if (input_method_type == "SPECTRUM") {
method_type = CycleEnumerator::query_method::SPECTRUM;
}
else {
std::cerr << "The input method type does not exist." << std::endl;
exit(-1);
}
uint32_t length_constraint = std::stoul(input_length_constraint);
uint32_t per_query_time_limit = std::stoul(input_per_query_time_limit);
uint64_t target_num_results = std::numeric_limits<uint64_t>::max();
if (argc > 7) {
std::string input_target_number_results(argv[7]);
target_num_results = std::stoull(input_target_number_results);
}
/**
* Print command.
*/
std::cout << "---------------------------------------------------------------------------" << std::endl;
std::cout << "Command:\n";
std::cout << "Input graph folder: " << input_graph_folder << '\n';
std::cout << "Input query file: " << input_query_file << '\n';
std::cout << "Input result folder: " << input_result_folder << '\n';
std::cout << "Input method: " << input_method_type << '\n';
std::cout << "Input length constraint: " << length_constraint << '\n';
std::cout << "Input per query time limit: " << per_query_time_limit << " seconds\n";
std::cout << "Input target number of results: " << target_num_results << '\n';
std::cout << "---------------------------------------------------------------------------" << std::endl;
/**
* Initialize graph, queries and enumerator.
*/
DirectedGraph digraph;
digraph.load_csr(input_graph_folder);
digraph.print_metadata();
std::vector<std::pair<uint32_t, uint32_t>> queries;
IO::read(input_query_file, queries);
CycleEnumerator enumerator;
enumerator.initialize(&digraph, length_constraint);
enumerator.target_number_results_ = target_num_results;
/**
* Execute queries.
*/
uint32_t terminated_query_count = 0;
uint32_t num_queries = queries.size();
printf("num of queries: %u", num_queries);
for (uint32_t i = 0; i < num_queries; ++i) {
auto query = queries[i];
std::string query_status = "Complete";
if (!execute_within_time_limit(&enumerator, query.first, query.second, method_type, per_query_time_limit)) {
terminated_query_count += 1;
query_status = "Time Out";
}
printf("ID %u, src %u, dst %u, status %s, result count %lu, preprocessing time %.6lf seconds, query time %.6lf seconds,\n",
i, query.first, query.second, query_status.c_str(), enumerator.result_count_arr_.back(),
enumerator.preprocess_time_arr_.back() / (double)1000000000, enumerator.query_time_arr_.back() / (double)1000000000);
}
/**
* Dump brief results to console.
*/
uint64_t total_query_time = std::accumulate(enumerator.query_time_arr_.begin(), enumerator.query_time_arr_.end(), 0ull);
uint64_t total_preprocess_time = std::accumulate(enumerator.preprocess_time_arr_.begin(), enumerator.preprocess_time_arr_.end(), 0ull);
uint64_t total_result_count = std::accumulate(enumerator.result_count_arr_.begin(), enumerator.result_count_arr_.end(), 0ull);
uint64_t total_partial_result_count = std::accumulate(enumerator.partial_result_count_arr_.begin(), enumerator.partial_result_count_arr_.end(), 0ull);
uint64_t total_invalid_partial_result_count = std::accumulate(enumerator.invalid_partial_result_count_arr_.begin(), enumerator.invalid_partial_result_count_arr_.end(), 0ull);
uint64_t total_neighbors_access_count = std::accumulate(enumerator.neighbors_access_count_arr_.begin(), enumerator.neighbors_access_count_arr_.end(), 0ull);
uint64_t total_conflict_count = std::accumulate(enumerator.conflict_count_arr_.begin(), enumerator.conflict_count_arr_.end(), 0ull);
uint64_t total_forward_bfs_time = std::accumulate(enumerator.forward_bfs_time_arr_.begin(), enumerator.forward_bfs_time_arr_.end(), 0ull);
uint64_t total_backward_bfs_time = std::accumulate(enumerator.backward_bfs_time_arr_.begin(), enumerator.backward_bfs_time_arr_.end(), 0ull);
uint64_t total_construct_bigraph_time = std::accumulate(enumerator.construct_bigraph_time_arr_.begin(), enumerator.construct_bigraph_time_arr_.end(), 0ull);
uint64_t total_full_fledged_estimation_time = std::accumulate(enumerator.full_fledged_estimation_time_arr_.begin(), enumerator.full_fledged_estimation_time_arr_.end(), 0ull);
uint64_t total_left_dfs_time = std::accumulate(enumerator.left_dfs_time_arr_.begin(), enumerator.left_dfs_time_arr_.end(), 0ull);
uint64_t total_right_dfs_time = std::accumulate(enumerator.right_dfs_time_arr_.begin(), enumerator.right_dfs_time_arr_.end(), 0ull);
uint64_t total_join_time = std::accumulate(enumerator.join_time_arr_.begin(), enumerator.join_time_arr_.end(), 0ull);
double average_estimate_accuracy = std::accumulate(enumerator.estimate_accuracy_arr_.begin(), enumerator.estimate_accuracy_arr_.end(), 0.0);
log_info("num of out of time queries: %u", terminated_query_count);
log_info("average query time: %.6lf seconds", (double)total_query_time / num_queries / 1000000000.0);
log_info("average preprocess time: %.6lf seconds", (double)total_preprocess_time / num_queries / 1000000000.0);
log_info("average forward bfs time: %.6lf seconds", (double)total_forward_bfs_time / num_queries / 1000000000.0);
log_info("average backward bfs time: %.6lf seconds", (double)total_backward_bfs_time / num_queries / 1000000000.0);
log_info("average construct bigraph time: %.6lf seconds", (double)total_construct_bigraph_time / num_queries / 1000000000.0);
log_info("average full fledged estimation time: %.6lf seconds", (double)total_full_fledged_estimation_time / num_queries / 1000000000.0);
log_info("average left dfs time: %.6lf seconds", (double)total_left_dfs_time / num_queries / 1000000000.0);
log_info("average right dfs time time: %.6lf seconds", (double)total_right_dfs_time / num_queries / 1000000000.0);
log_info("average join time: %.6lf seconds", (double)total_join_time / num_queries / 1000000000.0);
log_info("average result count: %.2lf", (double)total_result_count / num_queries);
log_info("average partial result count: %.2lf", (double)total_partial_result_count / num_queries);
log_info("average invalid partial result count: %.2lf", (double)total_invalid_partial_result_count / num_queries);
log_info("average neighbors access count: %.2lf", (double)total_neighbors_access_count / num_queries);
log_info("average conflict count: %.2lf", (double)total_conflict_count / num_queries);
log_info("average estimate accuracy: %.4lf", average_estimate_accuracy);
/**
* Dump detailed results to file.
*/
log_info("dump results into file...");
std::string file_path_prefix = input_result_folder + "/" + input_method_type + "-" + input_length_constraint
+ "-" + std::to_string(num_queries);
std::string file_path = file_path_prefix + std::string("-query_time.bin");
IO::write(file_path, enumerator.query_time_arr_);
file_path = file_path_prefix + std::string("-preprocess_time.bin");
IO::write(file_path, enumerator.preprocess_time_arr_);
file_path = file_path_prefix + std::string("-forward_bfs_time.bin");
IO::write(file_path, enumerator.forward_bfs_time_arr_);
file_path = file_path_prefix + std::string("-backward_bfs_time.bin");
IO::write(file_path, enumerator.backward_bfs_time_arr_);
file_path = file_path_prefix + std::string("-construct_bigraph_time.bin");
IO::write(file_path, enumerator.construct_bigraph_time_arr_);
file_path = file_path_prefix + std::string("-result_count.bin");
IO::write(file_path, enumerator.result_count_arr_);
file_path = file_path_prefix + std::string("-partial_result_count.bin");
IO::write(file_path, enumerator.partial_result_count_arr_);
file_path = file_path_prefix + std::string("-invalid_partial_result_count.bin");
IO::write(file_path, enumerator.invalid_partial_result_count_arr_);
file_path = file_path_prefix + std::string("-neighbors_access_count.bin");
IO::write(file_path, enumerator.neighbors_access_count_arr_);
file_path = file_path_prefix + std::string("-conflict_count.bin");
IO::write(file_path, enumerator.conflict_count_arr_);
file_path = file_path_prefix + std::string("-preliminary_estimated_result_count.bin");
IO::write(file_path, enumerator.preliminary_estimated_result_count_arr);
file_path = file_path_prefix + std::string("-full_fledged_estimated_result_count.bin");
IO::write(file_path, enumerator.full_fledged_estimated_result_count_arr);
file_path = file_path_prefix + std::string("-full_fledged_estimation_time.bin");
IO::write(file_path, enumerator.full_fledged_estimation_time_arr_);
file_path = file_path_prefix + std::string("-left_dfs_time.bin");
IO::write(file_path, enumerator.left_dfs_time_arr_);
file_path = file_path_prefix + std::string("-right_dfs_time.bin");
IO::write(file_path, enumerator.right_dfs_time_arr_);
file_path = file_path_prefix + std::string("-join_time.bin");
IO::write(file_path, enumerator.join_time_arr_);
file_path = file_path_prefix + std::string("-join_cost.bin");
IO::write(file_path, enumerator.estimated_join_cost_arr_);
file_path = file_path_prefix + std::string("-dfs_cost.bin");
IO::write(file_path, enumerator.estimated_dfs_cost_arr_);
file_path = file_path_prefix + std::string("-left_relation_size.bin");
IO::write(file_path, enumerator.estimated_left_relation_size_arr_);
file_path = file_path_prefix + std::string("-right_relation_size.bin");
IO::write(file_path, enumerator.estimated_right_relation_size_arr_);
file_path = file_path_prefix + std::string("-cut_position.bin");
IO::write(file_path, enumerator.cut_position_arr_);
file_path = file_path_prefix + std::string("-preliminary_selection.bin");
IO::write(file_path, enumerator.preliminary_selection_arr_);
file_path = file_path_prefix + std::string("-full_fledged_selection.bin");
IO::write(file_path, enumerator.full_fledged_selection_arr_);
file_path = file_path_prefix + std::string("-memory_cost.bin");
IO::write(file_path, enumerator.calculated_memory_cost_arr_);
file_path = file_path_prefix + std::string("-index_edge_count.bin");
IO::write(file_path, enumerator.index_edge_count_arr_);
file_path = file_path_prefix + std::string("-index_vertex_count.bin");
IO::write(file_path, enumerator.index_vertex_count_arr_);
file_path = file_path_prefix + std::string("-algorithm_selection.bin");
IO::write(file_path, enumerator.algorithm_selected_arr_);
file_path = file_path_prefix + std::string("-path_enum_exclude_index_construction.bin");
IO::write(file_path, enumerator.path_enum_time_arr_);
file_path = file_path_prefix + std::string("-dfs_spectrum.bin");
IO::write(file_path, enumerator.dfs_spectrum_time_arr_);
file_path = file_path_prefix + std::string("-join_spectrum.bin");
IO::write(file_path, enumerator.join_spectrum_time_arr_);
log_info("done.");
return 0;
}
| [
"[email protected]"
] | |
3193ff5b9acb4d9e85878145893ad42905c886be | 67154fbadb2da71fb5b040809815130914dc4916 | /src/main/VertilonToROOT.cc | b1892bb3c701cc84df15e2df0e6fb2e967d9f01f | [] | no_license | ANPPACSS/PACSSlib | 439d75518ecefd50bbb323c9e3a2d3ad9659a1d9 | df02341bb6e64b089c3506ec4c31d62ce16feac6 | refs/heads/master | 2021-01-19T18:11:34.050531 | 2013-07-25T17:30:03 | 2013-07-25T17:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 672 | cc | #include "../ParseLYSO.hh"
int main(int argc, char *argv[])
{
string inFileName;
string outFileName;
bool error = false;
// Handle the command line arguments
switch(argc)
{
case 3:
inFileName = (string)argv[1];
outFileName = (string)argv[2];
cout << "Beginning Vertilon data file parse." << endl;
break;
default:
cout << "Usage: " << argv[0] << " [Vertilon .log file] ";
cout << "[.root file]" << endl;
error = true;
return 1;
}
ParseLYSO *parseLYSO = new ParseLYSO(inFileName, outFileName);
error = parseLYSO->ReadAllEvents();
delete parseLYSO;
if(error == true)
return 1;
return 0;
}
| [
"[email protected]"
] | |
c78d2f2e8498a5f928b13bde3ed8d475ae577c08 | f91cbe3b643edff7d17a3790a5919d9ca0157d07 | /Code/GameSDK/GameDll/Graphics/ScreenFader.h | 8254247b310cf8534ff7a363d5b3d322d82bc497 | [] | no_license | salilkanetkar/AI-Playing-Games | 5b66b166fc6c84853410bf37961b14933fa20509 | 7dd6965678cbeebb572ab924812acb9ceccabcf3 | refs/heads/master | 2021-01-21T18:46:11.320518 | 2016-09-15T16:14:51 | 2016-09-15T16:14:51 | 68,309,388 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,685 | h | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
// Original file Copyright Crytek GMBH or its affiliates, used under license.
#pragma once
#ifndef SCREEN_FADER_H
#define SCREEN_FADER_H
#include "EngineFacade/Renderer.h"
namespace EngineFacade
{
struct IEngineFacade;
}
namespace Graphics
{
class CScreenFader
{
public:
CScreenFader(EngineFacade::IEngineFacade& engineFacade);
void FadeIn(const string& texturePath, const ColorF& targetColor, float fadeTime, bool useCurrentColor);
void FadeOut(const string& texturePath, const ColorF& targetColor, float fadeTime, bool useCurrentColor);
bool IsFadingIn() const;
bool IsFadingOut() const;
void Update(float frameTime);
void Reset();
protected:
void Render();
void SetTexture(const string& textureName);
ColorF GetDrawColor() const;
bool ShouldUpdate() const;
private:
ColorF m_currentColor;
ColorF m_targetColor;
float m_fadeTime;
float m_currentTime;
bool m_fadingIn;
bool m_fadingOut;
EngineFacade::IEngineFacade& m_engineFacade;
EngineFacade::IEngineTexture::Ptr m_texture;
};
}
#endif | [
"[email protected]"
] |
Subsets and Splits